[04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:24]accept exits with 8 [06:45:24]New connection [06:45:24]New thread 3067227492 created [06:45:24]Thread 3067084132 joined [06:45:24]Waiting for new connection... [06:45:24] Sock 8.Parse request [06:45:24]Sock 8.Check first char [06:45:24]Sock 8.First char is OK [06:45:24]request: POST /json_proto HTTP/1.0 [06:45:24]Method: POST [06:45:24]URL: /json_proto [06:45:24]Method is POST - this is cgi request [06:45:24]url: /json_proto [06:45:24]query_string will be loaded in cgi processing [06:45:24]execute_cgi json_proto POST (null) [06:45:24]execute_cgi path=json_proto method=POST [06:45:24]POST find Content-Length [06:45:24]Host: 172.17.59.68:8080 [06:45:24]Content-Length: 677 [06:45:24]Content-Type: application/json [06:45:24] [06:45:24]POST finish read [06:45:24]Found Content-Length = 677 [06:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:24]execute_script... [06:45: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)319825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:45:24]POST & json_proto [06:45:24]process_json_proto [06:45:24]json parsed OK: [06:45:24]protocol is kg_v1.0 [06:45:24]action value=close_receipt [06:45:24]process_action close_receipt [06:45:24]cmd_close_receipt [06:45:24]MH_GetDate [06:45:24]Write to MH i2c: F0 00 00 EA 3B 14 [06:45:24]Write i2c OK [06:45:24]MH_I2C_Read... [06:45:24]Read from MH i2c: F0 [06:45:24]MH_I2C_Read... [06:45:24]Read from MH i2c: F0 09 00 [06:45:24]MH_I2C_Read... [06:45:24]Read from MH i2c: F0 09 00 EA 3B 00 9D 7E 72 66 BC EC 60 65 7D [06:45:24]GetLastDocTimeStamp 1718769941 [06:45:24]current date 1718779549 [06:45:24]FM_GetShiftState [06:45:24]SAM_PROTO_GetShiftState [06:45:24]wFMCommunicate request_size=4 [06:45:24]MH_SAM_APDU [06:45:24]CAPDU: 80 13 01 00 [06:45:24]Write to MH i2c: E2 08 00 EB 3B 80 13 01 00 00 00 00 00 A3 [06:45:24]Write i2c OK [06:45:24]MH_I2C_Read... [06:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:24]Read from MH i2c: E2 [06:45:24]MH_I2C_Read... [06:45:24]Read from MH i2c: E2 0E 00 [06:45:24]MH_I2C_Read... [06:45:24]Read from MH i2c: E2 0E 00 EB 3B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 ED [06:45:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [06:45:24]wFMCommunicate OK [06:45:24]SAM_PROTO_GetShiftState done [06:45:24]FM_GetShiftState done [06:45:24]opened in 1718760753 [06:45:24]opened+sec_in_day 1718847153 [06:45:24]quantity*price = 50065 [06:45:24]sum+1 = 50067 [06:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 7 19.06.2024 06:45 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111258 ФПД: 139849120905464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T064549&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111258&fm=139849120905464&tin=02508201610067®Number=0000000000092771&sum=50000 [06:45:25]StoreToDocumentArchive [06:45:25]shift 388 fd 111258 [06:45:25]save to /storage/0388/doc_00111258 [06:45:25]save last doc name /storage/0388/doc_00111258 to /storage/kkm_last_doc_name [06:45:25]save OK [06:45:25]Clear old archive folders... [06:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:45:25]tlvbuf is 01941540 [06:45:25]SAM_PROTO_ClearQueue [06:45:25]wFMCommunicate request_size=4 [06:45:25]MH_SAM_APDU [06:45:25]CAPDU: 80 09 00 00 [06:45:25]Write to MH i2c: E2 08 00 F8 3B 80 09 00 00 00 00 00 00 A5 [06:45:25]Write i2c OK [06:45:25]MH_I2C_Read... [06:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:45:25]Read from MH i2c: E2 [06:45:25]MH_I2C_Read... [06:45:25]Read from MH i2c: E2 03 00 [06:45:25]MH_I2C_Read... [06:45:25]Read from MH i2c: E2 03 00 F8 3B 00 90 00 A7 [06:45:25]RAPDU: 90 00 [06:45:25]wFMCommunicate OK [06:45:25]SAM_PROTO_ClearQueue done [06:45:25]KKMCreateOFDPacket [06:45:25]OFDProtocolAddRootSTLVToBuf [06:45:25]FM_MakeSignedData [06:45:25]FM_MakeSignedData [06:45:25]SAM_PROTO_SignData [06:45:25]wFMCommunicate request_size=4 [06:45:25]MH_SAM_APDU [06:45:25]CAPDU: 80 0D 01 02 [06:45:25]Write to MH i2c: E2 08 00 F9 3B 80 0D 01 02 00 00 00 00 AD [06:45:25]Write i2c OK [06:45:25]MH_I2C_Read... [06:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:45:25]Read from MH i2c: E2 [06:45:25]MH_I2C_Read... [06:45:25]Read from MH i2c: E2 03 00 [06:45:25]MH_I2C_Read... [06:45:25]Read from MH i2c: E2 03 00 F9 3B 00 90 00 A8 [06:45:25]RAPDU: 90 00 [06:45:25]wFMCommunicate OK [06:45:25]wFMCommunicate request_size=255 [06:45:25]MH_SAM_APDU [06:45: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9D 7E 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B2 01 00 35 04 06 00 7F [06:45:25]Write to MH i2c: E2 02 01 FA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9D 7E 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B2 01 00 35 04 06 00 7F 00 00 AC [06:45:25]Write i2c OK [06:45:25]MH_I2C_Read... [06:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:26]Read from MH i2c: E2 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: E2 03 00 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: E2 03 00 FA 3B 00 90 00 A9 [06:45:26]RAPDU: 90 00 [06:45:26]wFMCommunicate OK [06:45:26]wFMCommunicate request_size=10 [06:45:26]MH_SAM_APDU [06:45:26]CAPDU: 80 0D 02 02 05 31 29 2C 78 F8 [06:45:26]Write to MH i2c: E2 0D 00 FB 3B 80 0D 02 02 05 00 31 29 2C 78 F8 00 00 B0 [06:45:26]Write i2c OK [06:45:26]MH_I2C_Read... [06:45:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:45:26]Read from MH i2c: E2 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: E2 03 00 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: E2 03 00 FB 3B 00 90 00 AA [06:45:26]RAPDU: 90 00 [06:45:26]wFMCommunicate OK [06:45:26]wFMCommunicate request_size=4 [06:45:26]MH_SAM_APDU [06:45:26]CAPDU: 80 0D 03 02 [06:45:26]Write to MH i2c: E2 08 00 FC 3B 80 0D 03 02 00 00 00 00 B2 [06:45:26]Write i2c OK [06:45:26]MH_I2C_Read... [06:45:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:45:26]Read from MH i2c: E2 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: E2 0B 00 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: E2 0B 00 FC 3B 00 ED 9A 04 9D AB 62 19 55 90 00 56 [06:45:26]RAPDU: ED 9A 04 9D AB 62 19 55 90 00 [06:45:26]wFMCommunicate OK [06:45:26]SAM_PROTO_SignData done [06:45:26]FM_MakeSignedData done [06:45:26]CreateOFDProtocolMessage [06:45:26]wFMCommunicate request_size=4 [06:45:26]MH_SAM_APDU [06:45:26]CAPDU: 80 11 00 00 [06:45:26]Write to MH i2c: E2 08 00 FD 3B 80 11 00 00 00 00 00 00 B2 [06:45:26]Write i2c OK [06:45:26]MH_I2C_Read... [06:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:26]Read from MH i2c: E2 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: E2 17 00 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: E2 17 00 FD 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [06:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [06:45:26]wFMCommunicate OK [06:45:26]CreateOFDProtocolMessage done [06:45:26]OFDSenderStorePacket 111258 [06:45:26]StoreOFDPacket docnum=111258 [06:45:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 B9 07 01 97 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9D 7E 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B2 01 00 35 04 06 00 7F 31 29 2C 78 F8 ED 9A 04 9D AB 62 19 55 [06:45:26]CheckFolder [06:45:26]dirname=/storage/ofd_packets [06:45:26]CheckFolder done [06:45:26]ProducePacketName [06:45:26]name=ofd_packets/00111258 [06:45:26]NVStorageSaveData ofd_packets/00111258 [06:45:26]File name is /storage/ofd_packets/00111258 [06:45:26]Write 301 bytes [06:45:26]NVStorageSaveData done [06:45:26]OFDSenderStorePacket done [06:45:26]KKMCreateOFDPacket done [06:45:26]NVStorageSaveData kkm_last_timestamp [06:45:26]File name is /storage/kkm_last_timestamp [06:45:26]Write 4 bytes [06:45:26]NVStorageSaveData done [06:45:26]ExternCall_PrintAddStr [06:45:26]wPrintStart [06:45:26]Write to MH i2c: 01 00 00 FE 3B 39 [06:45:26]Write i2c OK [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: 01 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: 01 07 00 [06:45:26]MH_I2C_Read... [06:45:26]Read from MH i2c: 01 07 00 FE 3B 00 00 00 00 00 FF 0F 4E [06:45:26]RasterBufferAndPrint [06:45:26]line Счет N : (1)319825 [06:45:26]line ИНН: 02508201610067 [06:45:26]line Контрольно-Кассовый Чек [06:45:26]line ПРОДАЖА [06:45:26]line ТРК (МРК, ГНК) : 11 [06:45:26]line Товар: 2710124130 [06:45:26]line Аи-92-К-5 [06:45:26]line 7.540 * 66.40 [06:45:26]line = 500.66 [06:45:26]line НДС 12% НСП 1% [06:45:26]line > о реализуемом товаре [06:45:26]line ОКРУГЛЕНИЕ: -0.66 [06:45:26]line ИТОГО: 500.00 [06:45:26]line Внесено: 500.00 [06:45:26]line СДАЧА: 0.00 [06:45:26]line НСП 1% : 4.43 [06:45:26]line НДС 12% : 53.17 [06:45:26]line Наличными: 500.00 [06:45:26]line Безнал.: 0.00 [06:45:26]line Место: АЗС № 65 "Партнер Нефть" [06:45:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [06:45:26]line СНО: Общий режим [06:45:26]line Чек 7 19.06.2024 06:45 [06:45:26]line Смена: 388 ФФД: 1.0 [06:45:26]line ЗНМ: 0300000198 [06:45:26]line РНМ: 0000000000092771 [06:45:26]line Версия ККМ: 001 [06:45:26]line ФМ: 0000000000875083 [06:45:26]line ФД: 111258 [06:45:26]line ФПД: 139849120905464 [06:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T064549&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111258&fm=139849120905464&tin=02508201610067®Number=0000000000092771&sum=50000 [06:45:26]OFD Sender: Processing packet 111258 [packets to send 38, broken 37] [06:45:26]ProducePacketName [06:45:26]name=ofd_packets/00111258 [06:45:26]OFD Sender: To server: pG, [06:45:26]CommunicateWithHost lk.salyk.kg:30040 [06:45:26]ConnectInit lk.salyk.kg [06:45:26]written 0, free lines is 4095 [06:45:26]Connected sock=10 [06:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 B9 07 01 97 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 9D 7E 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B2 01 00 35 04 06 00 7F 31 29 2C 78 F8 ED 9A 04 9D AB 62 19 55 [06:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8E 0E 47 00 41 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 35 30 38 33 10 04 04 00 9A B2 01 00 F4 03 04 00 0E 16 72 66 B6 04 01 00 00 90 B7 19 DC EE 22 EB E1 [06:45:26]CommunicateWithHost err = 0 [06:45:26]CheckOFDResponse [06:45:26]1017 (14) - 77093643461234 [06:45:26]1041 (16) - 0000000000875083 [06:45:26]1040 (4) - 111258 [06:45:26]1012 (4) - 18.06.2024 23:19 [06:45:26]1206 (1) - 0 [06:45:26]OFD Sender: Remove packet 111258 [06:45:26]ProducePacketName [06:45:26]name=ofd_packets/00111258 [06:45:26]NVStorageDeleteData [06:45:27]Write to MH i2c: 01 00 00 29 3C 65 [06:45:27]Write i2c OK [06:45:27]MH_I2C_Read... [06:45:27]Read from MH i2c: 01 [06:45:27]MH_I2C_Read... [06:45:27]Read from MH i2c: 01 07 00 [06:45:27]MH_I2C_Read... [06:45:27]Read from MH i2c: 01 07 00 29 3C 00 00 00 00 00 CD 0C 45 [06:45:27]RasterBufferAndPrint [06:45:27]line [06:45:27]line [06:45:27]line [06:45:27]line [06:45:27]line [06:45:27]written 0, free lines is 3283 [06:45:27]MH_Cut [06:45:27]Write to MH i2c: D1 01 00 30 3C 01 3E [06:45:27]Write i2c OK [06:45:27]MH_I2C_Read... [06:45:27]Read from MH i2c: D1 [06:45:27]MH_I2C_Read... [06:45:27]Read from MH i2c: D1 01 00 [06:45:27]MH_I2C_Read... [06:45:27]Read from MH i2c: D1 01 00 30 3C 00 3D [06:45:27]Write to MH i2c: 01 00 00 31 3C 6D [06:45:27]Write i2c OK [06:45:27]MH_I2C_Read... [06:45:27]OFD Sender: No OFD packet to send [06:45:27]*** Cut start [06:45:27]*** Partial cut [06:45:27]*** CUTSNS_PIN = 1 [06:45:27]*** CUTSNS_PIN = 0 [06:45:28]*** Brake cut motor [06:45:28]Read from MH i2c: 01 [06:45:28]MH_I2C_Read... [06:45:28]*** Stop cut motor [06:45:28]*** Cut end [06:45:28]Read from MH i2c: 01 07 00 [06:45:28]MH_I2C_Read... [06:45:28]Read from MH i2c: 01 07 00 31 3C 00 00 00 00 00 FF 0F 82 [06:45:28]process_action close_receipt done [06:45:28]requested_data is exist [06:45:28]produce_requested_data [06:45:28]requested_item fm.sn is exist - process it [06:45:28]wFMCommunicate request_size=4 [06:45:28]MH_SAM_APDU [06:45:28]CAPDU: 80 11 00 00 [06:45:28]Write to MH i2c: E2 08 00 32 3C 80 11 00 00 00 00 00 00 E8 [06:45:28]Write i2c OK [06:45:28]MH_I2C_Read... [06:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:45:28]Read from MH i2c: E2 [06:45:28]MH_I2C_Read... [06:45:28]Read from MH i2c: E2 17 00 [06:45:28]MH_I2C_Read... [06:45:28]Read from MH i2c: E2 17 00 32 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [06:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [06:45:28]wFMCommunicate OK [06:45:28]requested_item fd.num is exist - process it [06:45:28]SAM_PROTO_GetFieldsCounters [06:45:28]wFMCommunicate request_size=4 [06:45:28]MH_SAM_APDU [06:45:28]CAPDU: 80 13 00 00 [06:45:28]Write to MH i2c: E2 08 00 33 3C 80 13 00 00 00 00 00 00 EB [06:45:28]Write i2c OK [06:45:28]MH_I2C_Read... [06:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:45:28]Read from MH i2c: E2 [06:45:28]MH_I2C_Read... [06:45:28]Read from MH i2c: E2 62 00 [06:45:28]MH_I2C_Read... [06:45:28]Read from MH i2c: E2 62 00 33 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [06:45: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:45:28]wFMCommunicate OK [06:45:28]SAM_PROTO_GetFieldsCounters done [06:45:28]requested_item shift.num is exist - process it [06:45:28]requested_item shift.opened is exist - process it [06:45:28]req_shift_opened [06:45:28]FM_GetShiftState [06:45:28]SAM_PROTO_GetShiftState [06:45:28]wFMCommunicate request_size=4 [06:45:28]MH_SAM_APDU [06:45:28]CAPDU: 80 13 01 00 [06:45:28]Write to MH i2c: E2 08 00 34 3C 80 13 01 00 00 00 00 00 ED [06:45:28]Write i2c OK [06:45:28]MH_I2C_Read... [06:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:45:28]Read from MH i2c: E2 [06:45:28]MH_I2C_Read... [06:45:28]Read from MH i2c: E2 0E 00 [06:45:28]MH_I2C_Read... [06:45:28]Read from MH i2c: E2 0E 00 34 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 37 [06:45:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [06:45:28]wFMCommunicate OK [06:45:28]SAM_PROTO_GetShiftState done [06:45:28]FM_GetShiftState done [06:45:28]req_shift_opened done [06:45:28]requested_item shift.open_date is exist - process it [06:45:28]req_shift_open_date [06:45:28]req_shift_open_date done [06:45:28]produce_requested_data done [06:45:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111258,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [06:45:28]process_action_free close_receipt [06:45:28]json_value_free [06:45:28]json_value_free done [06:45:28]process_json_proto returns [06:45:28]Send response to host [06:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111258,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [06:45:28]free response buf [06:45:28]execute_script done [06:45:28]execute_script returns [06:45:28]free content buf [06:45:28]Sock 8.Close socket [06:45:28]Sock 8.Thread stoped [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:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]accept exits with 9 [07:12:43]New connection [07:12:43]New thread 3067084132 created [07:12:43]Thread 3067227492 joined [07:12:43]Waiting for new connection... [07:12:43] Sock 9.Parse request [07:12:43]Sock 9.Check first char [07:12:43]Sock 9.First char is OK [07:12:43]request: POST /json_proto HTTP/1.0 [07:12:43]Method: POST [07:12:43]URL: /json_proto [07:12:43]Method is POST - this is cgi request [07:12:43]url: /json_proto [07:12:43]query_string will be loaded in cgi processing [07:12:43]execute_cgi json_proto POST (null) [07:12:43]execute_cgi path=json_proto method=POST [07:12:43]POST find Content-Length [07:12:43]Host: 172.17.59.68:8080 [07:12:43]Content-Length: 682 [07:12:43]Content-Type: application/json [07:12:43] [07:12:43]POST finish read [07:12:43]Found Content-Length = 682 [07:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.850, "sum" : 1650.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1650.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:43]execute_script... [07:12: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)319826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 24.850, "sum" : 1650.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1650.00, "total" : 1650.00, "payments": [ { "type": 0, "sum" : 1650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:43]POST & json_proto [07:12:43]process_json_proto [07:12:43]json parsed OK: [07:12:43]protocol is kg_v1.0 [07:12:43]action value=close_receipt [07:12:43]process_action close_receipt [07:12:43]cmd_close_receipt [07:12:43]MH_GetDate [07:12:43]Write to MH i2c: F0 00 00 35 3C 60 [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: F0 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: F0 09 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: F0 09 00 35 3C 00 04 85 72 66 BC EC 60 65 37 [07:12:43]GetLastDocTimeStamp 1718779549 [07:12:43]current date 1718781188 [07:12:43]FM_GetShiftState [07:12:43]SAM_PROTO_GetShiftState [07:12:43]wFMCommunicate request_size=4 [07:12:43]MH_SAM_APDU [07:12:43]CAPDU: 80 13 01 00 [07:12:43]Write to MH i2c: E2 08 00 36 3C 80 13 01 00 00 00 00 00 EF [07:12:43]Write i2c OK [07:12:43]MH_I2C_Read... [07:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:43]Read from MH i2c: E2 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 0E 00 [07:12:43]MH_I2C_Read... [07:12:43]Read from MH i2c: E2 0E 00 36 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 39 [07:12:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:12:43]wFMCommunicate OK [07:12:43]SAM_PROTO_GetShiftState done [07:12:43]FM_GetShiftState done [07:12:43]opened in 1718760753 [07:12:43]opened+sec_in_day 1718847153 [07:12:43]quantity*price = 165004 [07:12:43]sum+1 = 165005 [07:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1650.00 Внесено: 1650.00 СДАЧА: 0.00 НСП 1% : 14.60 НДС 12% : 175.22 Наличными: 1650.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 8 19.06.2024 07:13 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111259 ФПД: 4799427273346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T071308&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111259&fm=4799427273346&tin=02508201610067®Number=0000000000092771&sum=165000 [07:12:44]StoreToDocumentArchive [07:12:44]shift 388 fd 111259 [07:12:44]save to /storage/0388/doc_00111259 [07:12:44]save last doc name /storage/0388/doc_00111259 to /storage/kkm_last_doc_name [07:12:44]save OK [07:12:44]Clear old archive folders... [07:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:44]tlvbuf is 0198E580 [07:12:44]SAM_PROTO_ClearQueue [07:12:44]wFMCommunicate request_size=4 [07:12:44]MH_SAM_APDU [07:12:44]CAPDU: 80 09 00 00 [07:12:44]Write to MH i2c: E2 08 00 43 3C 80 09 00 00 00 00 00 00 F1 [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:44]Read from MH i2c: E2 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 03 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 03 00 43 3C 00 90 00 F3 [07:12:44]RAPDU: 90 00 [07:12:44]wFMCommunicate OK [07:12:44]SAM_PROTO_ClearQueue done [07:12:44]KKMCreateOFDPacket [07:12:44]OFDProtocolAddRootSTLVToBuf [07:12:44]FM_MakeSignedData [07:12:44]FM_MakeSignedData [07:12:44]SAM_PROTO_SignData [07:12:44]wFMCommunicate request_size=4 [07:12:44]MH_SAM_APDU [07:12:44]CAPDU: 80 0D 01 02 [07:12:44]Write to MH i2c: E2 08 00 44 3C 80 0D 01 02 00 00 00 00 F9 [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:44]Read from MH i2c: E2 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 03 00 [07:12:44]MH_I2C_Read... [07:12:44]Read from MH i2c: E2 03 00 44 3C 00 90 00 F4 [07:12:44]RAPDU: 90 00 [07:12:44]wFMCommunicate OK [07:12:44]wFMCommunicate request_size=255 [07:12:44]MH_SAM_APDU [07:12: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 12 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 44 00 00 00 00 07 04 06 00 88 84 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 04 85 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B2 01 00 35 04 06 00 04 [07:12:44]Write to MH i2c: E2 02 01 45 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 12 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 44 00 00 00 00 07 04 06 00 88 84 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 04 85 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B2 01 00 35 04 06 00 04 00 00 5C [07:12:44]Write i2c OK [07:12:44]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 45 3C 00 90 00 F5 [07:12:45]RAPDU: 90 00 [07:12:45]wFMCommunicate OK [07:12:45]wFMCommunicate request_size=10 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 0D 02 02 05 5D 74 28 62 82 [07:12:45]Write to MH i2c: E2 0D 00 46 3C 80 0D 02 02 05 00 5D 74 28 62 82 00 00 E3 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 03 00 46 3C 00 90 00 F6 [07:12:45]RAPDU: 90 00 [07:12:45]wFMCommunicate OK [07:12:45]wFMCommunicate request_size=4 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 0D 03 02 [07:12:45]Write to MH i2c: E2 08 00 47 3C 80 0D 03 02 00 00 00 00 FE [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 0B 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 0B 00 47 3C 00 C2 25 5B BC E8 DB B8 35 90 00 AD [07:12:45]RAPDU: C2 25 5B BC E8 DB B8 35 90 00 [07:12:45]wFMCommunicate OK [07:12:45]SAM_PROTO_SignData done [07:12:45]FM_MakeSignedData done [07:12:45]CreateOFDProtocolMessage [07:12:45]wFMCommunicate request_size=4 [07:12:45]MH_SAM_APDU [07:12:45]CAPDU: 80 11 00 00 [07:12:45]Write to MH i2c: E2 08 00 48 3C 80 11 00 00 00 00 00 00 FE [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:45]Read from MH i2c: E2 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 17 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: E2 17 00 48 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [07:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:12:45]wFMCommunicate OK [07:12:45]CreateOFDProtocolMessage done [07:12:45]OFDSenderStorePacket 111259 [07:12:45]StoreOFDPacket docnum=111259 [07:12:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A5 C8 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 12 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 44 00 00 00 00 07 04 06 00 88 84 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 04 85 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B2 01 00 35 04 06 00 04 5D 74 28 62 82 C2 25 5B BC E8 DB B8 35 [07:12:45]CheckFolder [07:12:45]dirname=/storage/ofd_packets [07:12:45]CheckFolder done [07:12:45]ProducePacketName [07:12:45]name=ofd_packets/00111259 [07:12:45]NVStorageSaveData ofd_packets/00111259 [07:12:45]File name is /storage/ofd_packets/00111259 [07:12:45]Write 301 bytes [07:12:45]NVStorageSaveData done [07:12:45]OFDSenderStorePacket done [07:12:45]KKMCreateOFDPacket done [07:12:45]NVStorageSaveData kkm_last_timestamp [07:12:45]File name is /storage/kkm_last_timestamp [07:12:45]Write 4 bytes [07:12:45]NVStorageSaveData done [07:12:45]ExternCall_PrintAddStr [07:12:45]wPrintStart [07:12:45]Write to MH i2c: 01 00 00 49 3C 85 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: 01 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: 01 07 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: 01 07 00 49 3C 00 00 00 00 00 FF 0F 9A [07:12:45]RasterBufferAndPrint [07:12:45]line Счет N : (1)319826 [07:12:45]line ИНН: 02508201610067 [07:12:45]line Контрольно-Кассовый Чек [07:12:45]line ПРОДАЖА [07:12:45]line ТРК (МРК, ГНК) : 11 [07:12:45]line Товар: 2710124130 [07:12:45]line Аи-92-К-5 [07:12:45]line 24.850 * 66.40 [07:12:45]line = 1650.04 [07:12:45]line НДС 12% НСП 1% [07:12:45]line > о реализуемом товаре [07:12:45]line ОКРУГЛЕНИЕ: -0.04 [07:12:45]line ИТОГО: 1650.00 [07:12:45]line Внесено: 1650.00 [07:12:45]line СДАЧА: 0.00 [07:12:45]line НСП 1% : 14.60 [07:12:45]line НДС 12% : 175.22 [07:12:45]line Наличными: 1650.00 [07:12:45]line Безнал.: 0.00 [07:12:45]line Место: АЗС № 65 "Партнер Нефть" [07:12:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:12:45]line СНО: Общий режим [07:12:45]line Чек 8 19.06.2024 07:13 [07:12:45]line Смена: 388 ФФД: 1.0 [07:12:45]line ЗНМ: 0300000198 [07:12:45]line РНМ: 0000000000092771 [07:12:45]line Версия ККМ: 001 [07:12:45]line ФМ: 0000000000875083 [07:12:45]line ФД: 111259 [07:12:45]line ФПД: 4799427273346 [07:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T071308&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111259&fm=4799427273346&tin=02508201610067®Number=0000000000092771&sum=165000 [07:12:45]OFD Sender: Processing packet 111259 [packets to send 38, broken 37] [07:12:45]ProducePacketName [07:12:45]name=ofd_packets/00111259 [07:12:45]OFD Sender: To server: pG, [07:12:45]CommunicateWithHost lk.salyk.kg:30040 [07:12:45]ConnectInit lk.salyk.kg [07:12:45]written 0, free lines is 4095 [07:12:45]Connected sock=10 [07:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A5 C8 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 12 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 8C 84 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 84 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 44 00 00 00 00 07 04 06 00 88 84 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 04 85 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B2 01 00 35 04 06 00 04 5D 74 28 62 82 C2 25 5B BC E8 DB B8 35 [07:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A9 FB 47 00 66 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 35 30 38 33 10 04 04 00 9B B2 01 00 F4 03 04 00 75 1C 72 66 B6 04 01 00 00 B1 19 8E C5 64 30 9B 9E [07:12:45]CommunicateWithHost err = 0 [07:12:45]CheckOFDResponse [07:12:45]1017 (14) - 77093643461234 [07:12:45]1041 (16) - 0000000000875083 [07:12:45]1040 (4) - 111259 [07:12:45]1012 (4) - 18.06.2024 23:47 [07:12:45]1206 (1) - 0 [07:12:45]OFD Sender: Remove packet 111259 [07:12:45]ProducePacketName [07:12:45]name=ofd_packets/00111259 [07:12:45]NVStorageDeleteData [07:12:45]Write to MH i2c: 01 00 00 74 3C B0 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: 01 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: 01 07 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: 01 07 00 74 3C 00 00 00 00 00 C7 0C 8A [07:12:45]RasterBufferAndPrint [07:12:45]line [07:12:45]line [07:12:45]line [07:12:45]line [07:12:45]line [07:12:45]written 0, free lines is 3277 [07:12:45]MH_Cut [07:12:45]Write to MH i2c: D1 01 00 7B 3C 01 89 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: D1 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: D1 01 00 [07:12:45]MH_I2C_Read... [07:12:45]Read from MH i2c: D1 01 00 7B 3C 00 88 [07:12:45]Write to MH i2c: 01 00 00 7C 3C B8 [07:12:45]Write i2c OK [07:12:45]MH_I2C_Read... [07:12:46]OFD Sender: No OFD packet to send [07:12:46]*** Cut start [07:12:46]*** Partial cut [07:12:46]*** CUTSNS_PIN = 1 [07:12:46]*** CUTSNS_PIN = 0 [07:12:46]*** Brake cut motor [07:12:47]Read from MH i2c: 01 [07:12:47]MH_I2C_Read... [07:12:47]*** Stop cut motor [07:12:47]*** Cut end [07:12:47]Read from MH i2c: 01 07 00 [07:12:47]MH_I2C_Read... [07:12:47]Read from MH i2c: 01 07 00 7C 3C 00 00 00 00 00 FF 0F CD [07:12:47]process_action close_receipt done [07:12:47]requested_data is exist [07:12:47]produce_requested_data [07:12:47]requested_item fm.sn is exist - process it [07:12:47]wFMCommunicate request_size=4 [07:12:47]MH_SAM_APDU [07:12:47]CAPDU: 80 11 00 00 [07:12:47]Write to MH i2c: E2 08 00 7D 3C 80 11 00 00 00 00 00 00 33 [07:12:47]Write i2c OK [07:12:47]MH_I2C_Read... [07:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:47]Read from MH i2c: E2 [07:12:47]MH_I2C_Read... [07:12:47]Read from MH i2c: E2 17 00 [07:12:47]MH_I2C_Read... [07:12:47]Read from MH i2c: E2 17 00 7D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [07:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:12:47]wFMCommunicate OK [07:12:47]requested_item fd.num is exist - process it [07:12:47]SAM_PROTO_GetFieldsCounters [07:12:47]wFMCommunicate request_size=4 [07:12:47]MH_SAM_APDU [07:12:47]CAPDU: 80 13 00 00 [07:12:47]Write to MH i2c: E2 08 00 7E 3C 80 13 00 00 00 00 00 00 36 [07:12:47]Write i2c OK [07:12:47]MH_I2C_Read... [07:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:47]Read from MH i2c: E2 [07:12:47]MH_I2C_Read... [07:12:47]Read from MH i2c: E2 62 00 [07:12:47]MH_I2C_Read... [07:12:47]Read from MH i2c: E2 62 00 7E 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [07:12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:47]wFMCommunicate OK [07:12:47]SAM_PROTO_GetFieldsCounters done [07:12:47]requested_item shift.num is exist - process it [07:12:47]requested_item shift.opened is exist - process it [07:12:47]req_shift_opened [07:12:47]FM_GetShiftState [07:12:47]SAM_PROTO_GetShiftState [07:12:47]wFMCommunicate request_size=4 [07:12:47]MH_SAM_APDU [07:12:47]CAPDU: 80 13 01 00 [07:12:47]Write to MH i2c: E2 08 00 7F 3C 80 13 01 00 00 00 00 00 38 [07:12:47]Write i2c OK [07:12:47]MH_I2C_Read... [07:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:47]Read from MH i2c: E2 [07:12:47]MH_I2C_Read... [07:12:47]Read from MH i2c: E2 0E 00 [07:12:47]MH_I2C_Read... [07:12:47]Read from MH i2c: E2 0E 00 7F 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 82 [07:12:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:12:47]wFMCommunicate OK [07:12:47]SAM_PROTO_GetShiftState done [07:12:47]FM_GetShiftState done [07:12:47]req_shift_opened done [07:12:47]requested_item shift.open_date is exist - process it [07:12:47]req_shift_open_date [07:12:47]req_shift_open_date done [07:12:47]produce_requested_data done [07:12:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111259,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [07:12:47]process_action_free close_receipt [07:12:47]json_value_free [07:12:47]json_value_free done [07:12:47]process_json_proto returns [07:12:47]Send response to host [07:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111259,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [07:12:47]free response buf [07:12:47]execute_script done [07:12:47]execute_script returns [07:12:47]free content buf [07:12:47]Sock 9.Close socket [07:12:47]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]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]accept exits with 8 [07:35:12]New connection [07:35:12]New thread 3067227492 created [07:35:12]Thread 3067084132 joined [07:35:12]Waiting for new connection... [07:35:12] Sock 8.Parse request [07:35:12]Sock 8.Check first char [07:35:12]Sock 8.First char is OK [07:35:12]request: POST /json_proto HTTP/1.0 [07:35:12]Method: POST [07:35:12]URL: /json_proto [07:35:12]Method is POST - this is cgi request [07:35:12]url: /json_proto [07:35:12]query_string will be loaded in cgi processing [07:35:12]execute_cgi json_proto POST (null) [07:35:12]execute_cgi path=json_proto method=POST [07:35:12]POST find Content-Length [07:35:12]Host: 172.17.59.68:8080 [07:35:12]Content-Length: 682 [07:35:12]Content-Type: application/json [07:35:12] [07:35:12]POST finish read [07:35:12]Found Content-Length = 682 [07:35:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [07:35:12]execute_script... [07:35:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [07:35:12]POST & json_proto [07:35:12]process_json_proto [07:35:12]json parsed OK: [07:35:12]protocol is kg_v1.0 [07:35:12]action value=close_receipt [07:35:12]process_action close_receipt [07:35:12]cmd_close_receipt [07:35:12]MH_GetDate [07:35:12]Write to MH i2c: F0 00 00 80 3C AB [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: F0 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: F0 09 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: F0 09 00 80 3C 00 4A 8A 72 66 BC EC 60 65 CD [07:35:12]GetLastDocTimeStamp 1718781188 [07:35:12]current date 1718782538 [07:35:12]FM_GetShiftState [07:35:12]SAM_PROTO_GetShiftState [07:35:12]wFMCommunicate request_size=4 [07:35:12]MH_SAM_APDU [07:35:12]CAPDU: 80 13 01 00 [07:35:12]Write to MH i2c: E2 08 00 81 3C 80 13 01 00 00 00 00 00 3A [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:12]Read from MH i2c: E2 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 0E 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: E2 0E 00 81 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 84 [07:35:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:35:12]wFMCommunicate OK [07:35:12]SAM_PROTO_GetShiftState done [07:35:12]FM_GetShiftState done [07:35:12]opened in 1718760753 [07:35:12]opened+sec_in_day 1718847153 [07:35:12]quantity*price = 150064 [07:35:12]sum+1 = 150065 [07:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 9 19.06.2024 07:35 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111260 ФПД: 137193790102981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T073538&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111260&fm=137193790102981&tin=02508201610067®Number=0000000000092771&sum=150000 [07:35:13]StoreToDocumentArchive [07:35:13]shift 388 fd 111260 [07:35:13]save to /storage/0388/doc_00111260 [07:35:13]save last doc name /storage/0388/doc_00111260 to /storage/kkm_last_doc_name [07:35:13]save OK [07:35:13]Clear old archive folders... [07:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:35:13]tlvbuf is B6F1DBD0 [07:35:13]SAM_PROTO_ClearQueue [07:35:13]wFMCommunicate request_size=4 [07:35:13]MH_SAM_APDU [07:35:13]CAPDU: 80 09 00 00 [07:35:13]Write to MH i2c: E2 08 00 8E 3C 80 09 00 00 00 00 00 00 3C [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 03 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 03 00 8E 3C 00 90 00 3E [07:35:13]RAPDU: 90 00 [07:35:13]wFMCommunicate OK [07:35:13]SAM_PROTO_ClearQueue done [07:35:13]KKMCreateOFDPacket [07:35:13]OFDProtocolAddRootSTLVToBuf [07:35:13]FM_MakeSignedData [07:35:13]FM_MakeSignedData [07:35:13]SAM_PROTO_SignData [07:35:13]wFMCommunicate request_size=4 [07:35:13]MH_SAM_APDU [07:35:13]CAPDU: 80 0D 01 02 [07:35:13]Write to MH i2c: E2 08 00 8F 3C 80 0D 01 02 00 00 00 00 44 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 03 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 03 00 8F 3C 00 90 00 3F [07:35:13]RAPDU: 90 00 [07:35:13]wFMCommunicate OK [07:35:13]wFMCommunicate request_size=255 [07:35:13]MH_SAM_APDU [07:35: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 09 00 00 00 F4 03 04 00 4A 8A 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B2 01 00 35 04 06 00 7C [07:35:13]Write to MH i2c: E2 02 01 90 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 09 00 00 00 F4 03 04 00 4A 8A 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B2 01 00 35 04 06 00 7C 00 00 A1 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 03 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 03 00 90 3C 00 90 00 40 [07:35:13]RAPDU: 90 00 [07:35:13]wFMCommunicate OK [07:35:13]wFMCommunicate request_size=10 [07:35:13]MH_SAM_APDU [07:35:13]CAPDU: 80 0D 02 02 05 C6 EB 1F DD C5 [07:35:13]Write to MH i2c: E2 0D 00 91 3C 80 0D 02 02 05 00 C6 EB 1F DD C5 00 00 C3 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 03 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 03 00 91 3C 00 90 00 41 [07:35:13]RAPDU: 90 00 [07:35:13]wFMCommunicate OK [07:35:13]wFMCommunicate request_size=4 [07:35:13]MH_SAM_APDU [07:35:13]CAPDU: 80 0D 03 02 [07:35:13]Write to MH i2c: E2 08 00 92 3C 80 0D 03 02 00 00 00 00 49 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:13]Read from MH i2c: E2 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 0B 00 [07:35:13]MH_I2C_Read... [07:35:13]Read from MH i2c: E2 0B 00 92 3C 00 DF E3 0C D0 1B 02 4D B3 90 00 05 [07:35:13]RAPDU: DF E3 0C D0 1B 02 4D B3 90 00 [07:35:13]wFMCommunicate OK [07:35:13]SAM_PROTO_SignData done [07:35:13]FM_MakeSignedData done [07:35:13]CreateOFDProtocolMessage [07:35:13]wFMCommunicate request_size=4 [07:35:13]MH_SAM_APDU [07:35:13]CAPDU: 80 11 00 00 [07:35:13]Write to MH i2c: E2 08 00 93 3C 80 11 00 00 00 00 00 00 49 [07:35:13]Write i2c OK [07:35:13]MH_I2C_Read... [07:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:14]Read from MH i2c: E2 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 17 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 17 00 93 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [07:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:35:14]wFMCommunicate OK [07:35:14]CreateOFDProtocolMessage done [07:35:14]OFDSenderStorePacket 111260 [07:35:14]StoreOFDPacket docnum=111260 [07:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 94 07 01 E8 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 09 00 00 00 F4 03 04 00 4A 8A 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B2 01 00 35 04 06 00 7C C6 EB 1F DD C5 DF E3 0C D0 1B 02 4D B3 [07:35:14]CheckFolder [07:35:14]dirname=/storage/ofd_packets [07:35:14]CheckFolder done [07:35:14]ProducePacketName [07:35:14]name=ofd_packets/00111260 [07:35:14]NVStorageSaveData ofd_packets/00111260 [07:35:14]File name is /storage/ofd_packets/00111260 [07:35:14]Write 301 bytes [07:35:14]NVStorageSaveData done [07:35:14]OFDSenderStorePacket done [07:35:14]KKMCreateOFDPacket done [07:35:14]NVStorageSaveData kkm_last_timestamp [07:35:14]File name is /storage/kkm_last_timestamp [07:35:14]Write 4 bytes [07:35:14]NVStorageSaveData done [07:35:14]ExternCall_PrintAddStr [07:35:14]wPrintStart [07:35:14]Write to MH i2c: 01 00 00 94 3C D0 [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: 01 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: 01 07 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: 01 07 00 94 3C 00 00 00 00 00 FF 0F E5 [07:35:14]RasterBufferAndPrint [07:35:14]line Счет N : (1)319827 [07:35:14]line ИНН: 02508201610067 [07:35:14]line Контрольно-Кассовый Чек [07:35:14]line ПРОДАЖА [07:35:14]line ТРК (МРК, ГНК) : 11 [07:35:14]line Товар: 2710124130 [07:35:14]line Аи-92-К-5 [07:35:14]line 22.600 * 66.40 [07:35:14]line = 1500.64 [07:35:14]line НДС 12% НСП 1% [07:35:14]line > о реализуемом товаре [07:35:14]line ОКРУГЛЕНИЕ: -0.64 [07:35:14]line ИТОГО: 1500.00 [07:35:14]line Внесено: 1500.00 [07:35:14]line СДАЧА: 0.00 [07:35:14]line НСП 1% : 13.28 [07:35:14]line НДС 12% : 159.36 [07:35:14]line Наличными: 1500.00 [07:35:14]line Безнал.: 0.00 [07:35:14]line Место: АЗС № 65 "Партнер Нефть" [07:35:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:35:14]line СНО: Общий режим [07:35:14]line Чек 9 19.06.2024 07:35 [07:35:14]line Смена: 388 ФФД: 1.0 [07:35:14]line ЗНМ: 0300000198 [07:35:14]line РНМ: 0000000000092771 [07:35:14]line Версия ККМ: 001 [07:35:14]line ФМ: 0000000000875083 [07:35:14]line ФД: 111260 [07:35:14]line ФПД: 137193790102981 [07:35:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T073538&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111260&fm=137193790102981&tin=02508201610067®Number=0000000000092771&sum=150000 [07:35:14]OFD Sender: Processing packet 111260 [packets to send 38, broken 37] [07:35:14]ProducePacketName [07:35:14]name=ofd_packets/00111260 [07:35:14]OFD Sender: To server: pG, [07:35:14]CommunicateWithHost lk.salyk.kg:30040 [07:35:14]ConnectInit lk.salyk.kg [07:35:14]written 0, free lines is 4095 [07:35:14]Connected sock=10 [07:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C5 94 07 01 E8 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 09 00 00 00 F4 03 04 00 4A 8A 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B2 01 00 35 04 06 00 7C C6 EB 1F DD C5 DF E3 0C D0 1B 02 4D B3 [07:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 98 90 47 00 65 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 35 30 38 33 10 04 04 00 9C B2 01 00 F4 03 04 00 BA 21 72 66 B6 04 01 00 00 55 06 1A 56 D8 DF 54 15 [07:35:14]CommunicateWithHost err = 0 [07:35:14]CheckOFDResponse [07:35:14]1017 (14) - 77093643461234 [07:35:14]1041 (16) - 0000000000875083 [07:35:14]1040 (4) - 111260 [07:35:14]1012 (4) - 19.06.2024 00:09 [07:35:14]1206 (1) - 0 [07:35:14]OFD Sender: Remove packet 111260 [07:35:14]ProducePacketName [07:35:14]name=ofd_packets/00111260 [07:35:14]NVStorageDeleteData [07:35:14]Write to MH i2c: 01 00 00 BF 3C FB [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: 01 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: 01 07 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: 01 07 00 BF 3C 00 00 00 00 00 D9 0C E7 [07:35:14]RasterBufferAndPrint [07:35:14]line [07:35:14]line [07:35:14]line [07:35:14]line [07:35:14]line [07:35:14]written 0, free lines is 3296 [07:35:14]MH_Cut [07:35:14]Write to MH i2c: D1 01 00 C6 3C 01 D4 [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: D1 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: D1 01 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: D1 01 00 C6 3C 00 D3 [07:35:14]Write to MH i2c: 01 00 00 C7 3C 03 [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:15]OFD Sender: No OFD packet to send [07:35:15]*** Cut start [07:35:15]*** Partial cut [07:35:15]*** CUTSNS_PIN = 1 [07:35:15]*** CUTSNS_PIN = 0 [07:35:15]*** Brake cut motor [07:35:16]Read from MH i2c: 01 [07:35:16]MH_I2C_Read... [07:35:16]*** Stop cut motor [07:35:16]*** Cut end [07:35:16]Read from MH i2c: 01 07 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 C7 3C 00 00 00 00 00 FF 0F 18 [07:35:16]process_action close_receipt done [07:35:16]requested_data is exist [07:35:16]produce_requested_data [07:35:16]requested_item fm.sn is exist - process it [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 11 00 00 [07:35:16]Write to MH i2c: E2 08 00 C8 3C 80 11 00 00 00 00 00 00 7E [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 17 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 17 00 C8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [07:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:35:16]wFMCommunicate OK [07:35:16]requested_item fd.num is exist - process it [07:35:16]SAM_PROTO_GetFieldsCounters [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 13 00 00 [07:35:16]Write to MH i2c: E2 08 00 C9 3C 80 13 00 00 00 00 00 00 81 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 62 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 62 00 C9 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [07:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:16]wFMCommunicate OK [07:35:16]SAM_PROTO_GetFieldsCounters done [07:35:16]requested_item shift.num is exist - process it [07:35:16]requested_item shift.opened is exist - process it [07:35:16]req_shift_opened [07:35:16]FM_GetShiftState [07:35:16]SAM_PROTO_GetShiftState [07:35:16]wFMCommunicate request_size=4 [07:35:16]MH_SAM_APDU [07:35:16]CAPDU: 80 13 01 00 [07:35:16]Write to MH i2c: E2 08 00 CA 3C 80 13 01 00 00 00 00 00 83 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:16]Read from MH i2c: E2 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 0E 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: E2 0E 00 CA 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CD [07:35:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:35:16]wFMCommunicate OK [07:35:16]SAM_PROTO_GetShiftState done [07:35:16]FM_GetShiftState done [07:35:16]req_shift_opened done [07:35:16]requested_item shift.open_date is exist - process it [07:35:16]req_shift_open_date [07:35:16]req_shift_open_date done [07:35:16]produce_requested_data done [07:35:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111260,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [07:35:16]process_action_free close_receipt [07:35:16]json_value_free [07:35:16]json_value_free done [07:35:16]process_json_proto returns [07:35:16]Send response to host [07:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111260,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [07:35:16]free response buf [07:35:16]execute_script done [07:35:16]execute_script returns [07:35:16]free content buf [07:35:16]Sock 8.Close socket [07:35:16]Sock 8.Thread stoped [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:31]accept exits with 9 [07:39:31]New connection [07:39:31]New thread 3067084132 created [07:39:31]Thread 3067227492 joined [07:39:31]Waiting for new connection... [07:39:31] Sock 9.Parse request [07:39:31]Sock 9.Check first char [07:39:31]Sock 9.First char is OK [07:39:31]request: POST /json_proto HTTP/1.0 [07:39:31]Method: POST [07:39:31]URL: /json_proto [07:39:31]Method is POST - this is cgi request [07:39:31]url: /json_proto [07:39:31]query_string will be loaded in cgi processing [07:39:31]execute_cgi json_proto POST (null) [07:39:31]execute_cgi path=json_proto method=POST [07:39:31]POST find Content-Length [07:39:31]Host: 172.17.59.68:8080 [07:39:31]Content-Length: 679 [07:39:31]Content-Type: application/json [07:39:31] [07:39:31]POST finish read [07:39:31]Found Content-Length = 679 [07:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:31]execute_script... [07:39: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)319828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:31]POST & json_proto [07:39:31]process_json_proto [07:39:31]json parsed OK: [07:39:31]protocol is kg_v1.0 [07:39:31]action value=close_receipt [07:39:31]process_action close_receipt [07:39:31]cmd_close_receipt [07:39:31]MH_GetDate [07:39:31]Write to MH i2c: F0 00 00 CB 3C F6 [07:39:31]Write i2c OK [07:39:31]MH_I2C_Read... [07:39:31]Read from MH i2c: F0 [07:39:31]MH_I2C_Read... [07:39:31]Read from MH i2c: F0 09 00 [07:39:31]MH_I2C_Read... [07:39:31]Read from MH i2c: F0 09 00 CB 3C 00 4D 8B 72 66 BC EC 60 65 1C [07:39:31]GetLastDocTimeStamp 1718782538 [07:39:31]current date 1718782797 [07:39:31]FM_GetShiftState [07:39:31]SAM_PROTO_GetShiftState [07:39:31]wFMCommunicate request_size=4 [07:39:31]MH_SAM_APDU [07:39:31]CAPDU: 80 13 01 00 [07:39:31]Write to MH i2c: E2 08 00 CC 3C 80 13 01 00 00 00 00 00 85 [07:39:31]Write i2c OK [07:39:31]MH_I2C_Read... [07:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:31]Read from MH i2c: E2 [07:39:31]MH_I2C_Read... [07:39:31]Read from MH i2c: E2 0E 00 [07:39:31]MH_I2C_Read... [07:39:31]Read from MH i2c: E2 0E 00 CC 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CF [07:39:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:39:31]wFMCommunicate OK [07:39:31]SAM_PROTO_GetShiftState done [07:39:31]FM_GetShiftState done [07:39:31]opened in 1718760753 [07:39:31]opened+sec_in_day 1718847153 [07:39:31]quantity*price = 200037 [07:39:31]sum+1 = 200039 [07:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 10 19.06.2024 07:39 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111261 ФПД: 178330883201080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T073957&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111261&fm=178330883201080&tin=02508201610067®Number=0000000000092771&sum=200000 [07:39:32]StoreToDocumentArchive [07:39:32]shift 388 fd 111261 [07:39:32]save to /storage/0388/doc_00111261 [07:39:32]save last doc name /storage/0388/doc_00111261 to /storage/kkm_last_doc_name [07:39:32]save OK [07:39:32]Clear old archive folders... [07:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:39:32]tlvbuf is 019F6760 [07:39:32]SAM_PROTO_ClearQueue [07:39:32]wFMCommunicate request_size=4 [07:39:32]MH_SAM_APDU [07:39:32]CAPDU: 80 09 00 00 [07:39:32]Write to MH i2c: E2 08 00 D9 3C 80 09 00 00 00 00 00 00 87 [07:39:32]Write i2c OK [07:39:32]MH_I2C_Read... [07:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:32]Read from MH i2c: E2 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 03 00 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 03 00 D9 3C 00 90 00 89 [07:39:32]RAPDU: 90 00 [07:39:32]wFMCommunicate OK [07:39:32]SAM_PROTO_ClearQueue done [07:39:32]KKMCreateOFDPacket [07:39:32]OFDProtocolAddRootSTLVToBuf [07:39:32]FM_MakeSignedData [07:39:32]FM_MakeSignedData [07:39:32]SAM_PROTO_SignData [07:39:32]wFMCommunicate request_size=4 [07:39:32]MH_SAM_APDU [07:39:32]CAPDU: 80 0D 01 02 [07:39:32]Write to MH i2c: E2 08 00 DA 3C 80 0D 01 02 00 00 00 00 8F [07:39:32]Write i2c OK [07:39:32]MH_I2C_Read... [07:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:32]Read from MH i2c: E2 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 03 00 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 03 00 DA 3C 00 90 00 8A [07:39:32]RAPDU: 90 00 [07:39:32]wFMCommunicate OK [07:39:32]wFMCommunicate request_size=255 [07:39:32]MH_SAM_APDU [07:39: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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 4D 8B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B2 01 00 35 04 06 00 A2 30 E4 F2 [07:39:32]Write to MH i2c: E2 02 01 DB 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 4D 8B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B2 01 00 35 04 06 00 A2 30 E4 F2 00 00 A7 [07:39:32]Write i2c OK [07:39:32]MH_I2C_Read... [07:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:32]Read from MH i2c: E2 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 03 00 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 03 00 DB 3C 00 90 00 8B [07:39:32]RAPDU: 90 00 [07:39:32]wFMCommunicate OK [07:39:32]wFMCommunicate request_size=7 [07:39:32]MH_SAM_APDU [07:39:32]CAPDU: 80 0D 02 02 02 18 38 [07:39:32]Write to MH i2c: E2 0A 00 DC 3C 80 0D 02 02 02 00 18 38 00 00 E6 [07:39:32]Write i2c OK [07:39:32]MH_I2C_Read... [07:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:32]Read from MH i2c: E2 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 03 00 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 03 00 DC 3C 00 90 00 8C [07:39:32]RAPDU: 90 00 [07:39:32]wFMCommunicate OK [07:39:32]wFMCommunicate request_size=4 [07:39:32]MH_SAM_APDU [07:39:32]CAPDU: 80 0D 03 02 [07:39:32]Write to MH i2c: E2 08 00 DD 3C 80 0D 03 02 00 00 00 00 94 [07:39:32]Write i2c OK [07:39:32]MH_I2C_Read... [07:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:32]Read from MH i2c: E2 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 0B 00 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 0B 00 DD 3C 00 99 25 04 8C 92 E4 FC 31 90 00 86 [07:39:32]RAPDU: 99 25 04 8C 92 E4 FC 31 90 00 [07:39:32]wFMCommunicate OK [07:39:32]SAM_PROTO_SignData done [07:39:32]FM_MakeSignedData done [07:39:32]CreateOFDProtocolMessage [07:39:32]wFMCommunicate request_size=4 [07:39:32]MH_SAM_APDU [07:39:32]CAPDU: 80 11 00 00 [07:39:32]Write to MH i2c: E2 08 00 DE 3C 80 11 00 00 00 00 00 00 94 [07:39:32]Write i2c OK [07:39:32]MH_I2C_Read... [07:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:32]Read from MH i2c: E2 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 17 00 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: E2 17 00 DE 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [07:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:39:32]wFMCommunicate OK [07:39:32]CreateOFDProtocolMessage done [07:39:32]OFDSenderStorePacket 111261 [07:39:32]StoreOFDPacket docnum=111261 [07:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D2 75 04 01 D5 BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 4D 8B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B2 01 00 35 04 06 00 A2 30 E4 F2 18 38 99 25 04 8C 92 E4 FC 31 [07:39:32]CheckFolder [07:39:32]dirname=/storage/ofd_packets [07:39:32]CheckFolder done [07:39:32]ProducePacketName [07:39:32]name=ofd_packets/00111261 [07:39:32]NVStorageSaveData ofd_packets/00111261 [07:39:32]File name is /storage/ofd_packets/00111261 [07:39:32]Write 298 bytes [07:39:32]NVStorageSaveData done [07:39:32]OFDSenderStorePacket done [07:39:32]KKMCreateOFDPacket done [07:39:32]NVStorageSaveData kkm_last_timestamp [07:39:32]File name is /storage/kkm_last_timestamp [07:39:32]Write 4 bytes [07:39:32]NVStorageSaveData done [07:39:32]ExternCall_PrintAddStr [07:39:32]wPrintStart [07:39:32]Write to MH i2c: 01 00 00 DF 3C 1B [07:39:32]Write i2c OK [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: 01 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: 01 07 00 [07:39:32]MH_I2C_Read... [07:39:32]Read from MH i2c: 01 07 00 DF 3C 00 00 00 00 00 FF 0F 30 [07:39:32]RasterBufferAndPrint [07:39:32]line Счет N : (1)319828 [07:39:32]line ИНН: 02508201610067 [07:39:32]line Контрольно-Кассовый Чек [07:39:32]line ПРОДАЖА [07:39:32]line ТРК (МРК, ГНК) : 22 [07:39:32]line Товар: 2710194210 [07:39:32]line ДТ-К-5 [07:39:32]line 27.440 * 72.90 [07:39:32]line = 2000.38 [07:39:32]line НДС 12% НСП 1% [07:39:32]line > о реализуемом товаре [07:39:32]line ОКРУГЛЕНИЕ: -0.38 [07:39:32]line ИТОГО: 2000.00 [07:39:32]line Внесено: 2000.00 [07:39:32]line СДАЧА: 0.00 [07:39:32]line НСП 1% : 17.70 [07:39:32]line НДС 12% : 212.43 [07:39:32]line Наличными: 2000.00 [07:39:32]line Безнал.: 0.00 [07:39:32]line Место: АЗС № 65 "Партнер Нефть" [07:39:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:39:32]line СНО: Общий режим [07:39:32]line Чек 10 19.06.2024 07:39 [07:39:32]line Смена: 388 ФФД: 1.0 [07:39:32]line ЗНМ: 0300000198 [07:39:32]line РНМ: 0000000000092771 [07:39:32]line Версия ККМ: 001 [07:39:32]line ФМ: 0000000000875083 [07:39:32]line ФД: 111261 [07:39:32]line ФПД: 178330883201080 [07:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T073957&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111261&fm=178330883201080&tin=02508201610067®Number=0000000000092771&sum=200000 [07:39:33]OFD Sender: Processing packet 111261 [packets to send 38, broken 37] [07:39:33]ProducePacketName [07:39:33]name=ofd_packets/00111261 [07:39:33]OFD Sender: To server: pG, [07:39:33]CommunicateWithHost lk.salyk.kg:30040 [07:39:33]ConnectInit lk.salyk.kg [07:39:33]written 0, free lines is 4095 [07:39:33]Connected sock=10 [07:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D2 75 04 01 D5 BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 4D 8B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B2 01 00 35 04 06 00 A2 30 E4 F2 18 38 99 25 04 8C 92 E4 FC 31 [07:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3D 5A 47 00 4A 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 35 30 38 33 10 04 04 00 9D B2 01 00 F4 03 04 00 BD 22 72 66 B6 04 01 00 00 48 B1 8F 27 30 66 52 78 [07:39:33]CommunicateWithHost err = 0 [07:39:33]CheckOFDResponse [07:39:33]1017 (14) - 77093643461234 [07:39:33]1041 (16) - 0000000000875083 [07:39:33]1040 (4) - 111261 [07:39:33]1012 (4) - 19.06.2024 00:13 [07:39:33]1206 (1) - 0 [07:39:33]OFD Sender: Remove packet 111261 [07:39:33]ProducePacketName [07:39:33]name=ofd_packets/00111261 [07:39:33]NVStorageDeleteData [07:39:33]Write to MH i2c: 01 00 00 0A 3D 47 [07:39:33]Write i2c OK [07:39:33]MH_I2C_Read... [07:39:33]Read from MH i2c: 01 [07:39:33]MH_I2C_Read... [07:39:33]Read from MH i2c: 01 07 00 [07:39:33]MH_I2C_Read... [07:39:33]Read from MH i2c: 01 07 00 0A 3D 00 00 00 00 00 E0 0C 3A [07:39:33]RasterBufferAndPrint [07:39:33]line [07:39:33]line [07:39:33]line [07:39:33]line [07:39:33]line [07:39:33]written 0, free lines is 3305 [07:39:33]MH_Cut [07:39:33]Write to MH i2c: D1 01 00 11 3D 01 20 [07:39:33]Write i2c OK [07:39:33]MH_I2C_Read... [07:39:33]Read from MH i2c: D1 [07:39:33]MH_I2C_Read... [07:39:33]Read from MH i2c: D1 01 00 [07:39:33]MH_I2C_Read... [07:39:33]Read from MH i2c: D1 01 00 11 3D 00 1F [07:39:33]Write to MH i2c: 01 00 00 12 3D 4F [07:39:33]Write i2c OK [07:39:33]MH_I2C_Read... [07:39:33]OFD Sender: No OFD packet to send [07:39:34]*** Cut start [07:39:34]*** Partial cut [07:39:34]*** CUTSNS_PIN = 1 [07:39:34]*** CUTSNS_PIN = 0 [07:39:34]*** Brake cut motor [07:39:34]Read from MH i2c: 01 [07:39:34]MH_I2C_Read... [07:39:34]*** Stop cut motor [07:39:34]*** Cut end [07:39:34]Read from MH i2c: 01 07 00 [07:39:34]MH_I2C_Read... [07:39:34]Read from MH i2c: 01 07 00 12 3D 00 00 00 00 00 FF 0F 64 [07:39:34]process_action close_receipt done [07:39:34]requested_data is exist [07:39:34]produce_requested_data [07:39:34]requested_item fm.sn is exist - process it [07:39:34]wFMCommunicate request_size=4 [07:39:34]MH_SAM_APDU [07:39:34]CAPDU: 80 11 00 00 [07:39:34]Write to MH i2c: E2 08 00 13 3D 80 11 00 00 00 00 00 00 CA [07:39:34]Write i2c OK [07:39:34]MH_I2C_Read... [07:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:34]Read from MH i2c: E2 [07:39:34]MH_I2C_Read... [07:39:34]Read from MH i2c: E2 17 00 [07:39:34]MH_I2C_Read... [07:39:34]Read from MH i2c: E2 17 00 13 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [07:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:39:34]wFMCommunicate OK [07:39:34]requested_item fd.num is exist - process it [07:39:34]SAM_PROTO_GetFieldsCounters [07:39:34]wFMCommunicate request_size=4 [07:39:34]MH_SAM_APDU [07:39:34]CAPDU: 80 13 00 00 [07:39:34]Write to MH i2c: E2 08 00 14 3D 80 13 00 00 00 00 00 00 CD [07:39:34]Write i2c OK [07:39:34]MH_I2C_Read... [07:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:35]Read from MH i2c: E2 [07:39:35]MH_I2C_Read... [07:39:35]Read from MH i2c: E2 62 00 [07:39:35]MH_I2C_Read... [07:39:35]Read from MH i2c: E2 62 00 14 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [07:39: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:39:35]wFMCommunicate OK [07:39:35]SAM_PROTO_GetFieldsCounters done [07:39:35]requested_item shift.num is exist - process it [07:39:35]requested_item shift.opened is exist - process it [07:39:35]req_shift_opened [07:39:35]FM_GetShiftState [07:39:35]SAM_PROTO_GetShiftState [07:39:35]wFMCommunicate request_size=4 [07:39:35]MH_SAM_APDU [07:39:35]CAPDU: 80 13 01 00 [07:39:35]Write to MH i2c: E2 08 00 15 3D 80 13 01 00 00 00 00 00 CF [07:39:35]Write i2c OK [07:39:35]MH_I2C_Read... [07:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:35]Read from MH i2c: E2 [07:39:35]MH_I2C_Read... [07:39:35]Read from MH i2c: E2 0E 00 [07:39:35]MH_I2C_Read... [07:39:35]Read from MH i2c: E2 0E 00 15 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 19 [07:39:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:39:35]wFMCommunicate OK [07:39:35]SAM_PROTO_GetShiftState done [07:39:35]FM_GetShiftState done [07:39:35]req_shift_opened done [07:39:35]requested_item shift.open_date is exist - process it [07:39:35]req_shift_open_date [07:39:35]req_shift_open_date done [07:39:35]produce_requested_data done [07:39:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111261,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [07:39:35]process_action_free close_receipt [07:39:35]json_value_free [07:39:35]json_value_free done [07:39:35]process_json_proto returns [07:39:35]Send response to host [07:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111261,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [07:39:35]free response buf [07:39:35]execute_script done [07:39:35]execute_script returns [07:39:35]free content buf [07:39:35]Sock 9.Close socket [07:39:35]Sock 9.Thread stoped [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]accept exits with 8 [07:50:19]New connection [07:50:19]New thread 3067227492 created [07:50:19]Thread 3067084132 joined [07:50:19]Waiting for new connection... [07:50:19] Sock 8.Parse request [07:50:19]Sock 8.Check first char [07:50:19]Sock 8.First char is OK [07:50:19]request: POST /json_proto HTTP/1.0 [07:50:19]Method: POST [07:50:19]URL: /json_proto [07:50:19]Method is POST - this is cgi request [07:50:19]url: /json_proto [07:50:19]query_string will be loaded in cgi processing [07:50:19]execute_cgi json_proto POST (null) [07:50:19]execute_cgi path=json_proto method=POST [07:50:19]POST find Content-Length [07:50:19]Host: 172.17.59.68:8080 [07:50:19]Content-Length: 677 [07:50:19]Content-Type: application/json [07:50:19] [07:50:19]POST finish read [07:50:19]Found Content-Length = 677 [07:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:19]execute_script... [07:50: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)319829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:19]POST & json_proto [07:50:19]process_json_proto [07:50:19]json parsed OK: [07:50:19]protocol is kg_v1.0 [07:50:19]action value=close_receipt [07:50:19]process_action close_receipt [07:50:19]cmd_close_receipt [07:50:19]MH_GetDate [07:50:19]Write to MH i2c: F0 00 00 16 3D 42 [07:50:19]Write i2c OK [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: F0 [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: F0 09 00 [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: F0 09 00 16 3D 00 D5 8D 72 66 BC EC 60 65 F2 [07:50:19]GetLastDocTimeStamp 1718782797 [07:50:19]current date 1718783445 [07:50:19]FM_GetShiftState [07:50:19]SAM_PROTO_GetShiftState [07:50:19]wFMCommunicate request_size=4 [07:50:19]MH_SAM_APDU [07:50:19]CAPDU: 80 13 01 00 [07:50:19]Write to MH i2c: E2 08 00 17 3D 80 13 01 00 00 00 00 00 D1 [07:50:19]Write i2c OK [07:50:19]MH_I2C_Read... [07:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:19]Read from MH i2c: E2 [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: E2 0E 00 [07:50:19]MH_I2C_Read... [07:50:19]Read from MH i2c: E2 0E 00 17 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1B [07:50:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:50:19]wFMCommunicate OK [07:50:19]SAM_PROTO_GetShiftState done [07:50:19]FM_GetShiftState done [07:50:19]opened in 1718760753 [07:50:19]opened+sec_in_day 1718847153 [07:50:19]quantity*price = 50065 [07:50:19]sum+1 = 50067 [07:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 11 19.06.2024 07:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111262 ФПД: 90939877275331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T075045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111262&fm=90939877275331&tin=02508201610067®Number=0000000000092771&sum=50000 [07:50:20]StoreToDocumentArchive [07:50:20]shift 388 fd 111262 [07:50:20]save to /storage/0388/doc_00111262 [07:50:20]save last doc name /storage/0388/doc_00111262 to /storage/kkm_last_doc_name [07:50:20]save OK [07:50:20]Clear old archive folders... [07:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:20]tlvbuf is 01A303B0 [07:50:20]SAM_PROTO_ClearQueue [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 09 00 00 [07:50:20]Write to MH i2c: E2 08 00 24 3D 80 09 00 00 00 00 00 00 D3 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 24 3D 00 90 00 D5 [07:50:20]RAPDU: 90 00 [07:50:20]wFMCommunicate OK [07:50:20]SAM_PROTO_ClearQueue done [07:50:20]KKMCreateOFDPacket [07:50:20]OFDProtocolAddRootSTLVToBuf [07:50:20]FM_MakeSignedData [07:50:20]FM_MakeSignedData [07:50:20]SAM_PROTO_SignData [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 0D 01 02 [07:50:20]Write to MH i2c: E2 08 00 25 3D 80 0D 01 02 00 00 00 00 DB [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 25 3D 00 90 00 D6 [07:50:20]RAPDU: 90 00 [07:50:20]wFMCommunicate OK [07:50:20]wFMCommunicate request_size=255 [07:50:20]MH_SAM_APDU [07:50: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 D5 8D 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B2 01 00 35 04 06 00 52 [07:50:20]Write to MH i2c: E2 02 01 26 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 D5 8D 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B2 01 00 35 04 06 00 52 00 00 FC [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 26 3D 00 90 00 D7 [07:50:20]RAPDU: 90 00 [07:50:20]wFMCommunicate OK [07:50:20]wFMCommunicate request_size=10 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 0D 02 02 05 B5 97 14 B6 C3 [07:50:20]Write to MH i2c: E2 0D 00 27 3D 80 0D 02 02 05 00 B5 97 14 B6 C3 00 00 C1 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 03 00 27 3D 00 90 00 D8 [07:50:20]RAPDU: 90 00 [07:50:20]wFMCommunicate OK [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 0D 03 02 [07:50:20]Write to MH i2c: E2 08 00 28 3D 80 0D 03 02 00 00 00 00 E0 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 0B 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 0B 00 28 3D 00 30 28 AF 32 D0 48 B0 95 90 00 77 [07:50:20]RAPDU: 30 28 AF 32 D0 48 B0 95 90 00 [07:50:20]wFMCommunicate OK [07:50:20]SAM_PROTO_SignData done [07:50:20]FM_MakeSignedData done [07:50:20]CreateOFDProtocolMessage [07:50:20]wFMCommunicate request_size=4 [07:50:20]MH_SAM_APDU [07:50:20]CAPDU: 80 11 00 00 [07:50:20]Write to MH i2c: E2 08 00 29 3D 80 11 00 00 00 00 00 00 E0 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:20]Read from MH i2c: E2 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 17 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: E2 17 00 29 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [07:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:50:20]wFMCommunicate OK [07:50:20]CreateOFDProtocolMessage done [07:50:20]OFDSenderStorePacket 111262 [07:50:20]StoreOFDPacket docnum=111262 [07:50:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A 5D 07 01 C6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 D5 8D 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B2 01 00 35 04 06 00 52 B5 97 14 B6 C3 30 28 AF 32 D0 48 B0 95 [07:50:20]CheckFolder [07:50:20]dirname=/storage/ofd_packets [07:50:20]CheckFolder done [07:50:20]ProducePacketName [07:50:20]name=ofd_packets/00111262 [07:50:20]NVStorageSaveData ofd_packets/00111262 [07:50:20]File name is /storage/ofd_packets/00111262 [07:50:20]Write 301 bytes [07:50:20]NVStorageSaveData done [07:50:20]OFDSenderStorePacket done [07:50:20]KKMCreateOFDPacket done [07:50:20]NVStorageSaveData kkm_last_timestamp [07:50:20]File name is /storage/kkm_last_timestamp [07:50:20]Write 4 bytes [07:50:20]NVStorageSaveData done [07:50:20]ExternCall_PrintAddStr [07:50:20]wPrintStart [07:50:20]Write to MH i2c: 01 00 00 2A 3D 67 [07:50:20]Write i2c OK [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: 01 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: 01 07 00 [07:50:20]MH_I2C_Read... [07:50:20]Read from MH i2c: 01 07 00 2A 3D 00 00 00 00 00 FF 0F 7C [07:50:20]RasterBufferAndPrint [07:50:20]line Счет N : (1)319829 [07:50:20]line ИНН: 02508201610067 [07:50:20]line Контрольно-Кассовый Чек [07:50:20]line ПРОДАЖА [07:50:20]line ТРК (МРК, ГНК) : 11 [07:50:20]line Товар: 2710124130 [07:50:20]line Аи-92-К-5 [07:50:20]line 7.540 * 66.40 [07:50:20]line = 500.66 [07:50:20]line НДС 12% НСП 1% [07:50:20]line > о реализуемом товаре [07:50:20]line ОКРУГЛЕНИЕ: -0.66 [07:50:20]line ИТОГО: 500.00 [07:50:20]line Внесено: 500.00 [07:50:20]line СДАЧА: 0.00 [07:50:20]line НСП 1% : 4.43 [07:50:20]line НДС 12% : 53.17 [07:50:20]line Наличными: 500.00 [07:50:20]line Безнал.: 0.00 [07:50:20]line Место: АЗС № 65 "Партнер Нефть" [07:50:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:50:20]line СНО: Общий режим [07:50:20]line Чек 11 19.06.2024 07:50 [07:50:20]line Смена: 388 ФФД: 1.0 [07:50:20]line ЗНМ: 0300000198 [07:50:20]line РНМ: 0000000000092771 [07:50:20]line Версия ККМ: 001 [07:50:20]line ФМ: 0000000000875083 [07:50:20]line ФД: 111262 [07:50:20]line ФПД: 90939877275331 [07:50:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T075045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111262&fm=90939877275331&tin=02508201610067®Number=0000000000092771&sum=50000 [07:50:21]OFD Sender: Processing packet 111262 [packets to send 38, broken 37] [07:50:21]ProducePacketName [07:50:21]name=ofd_packets/00111262 [07:50:21]OFD Sender: To server: pG, [07:50:21]CommunicateWithHost lk.salyk.kg:30040 [07:50:21]ConnectInit lk.salyk.kg [07:50:21]written 0, free lines is 4095 [07:50:21]Connected sock=10 [07:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A 5D 07 01 C6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 D5 8D 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B2 01 00 35 04 06 00 52 B5 97 14 B6 C3 30 28 AF 32 D0 48 B0 95 [07:50:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 55 8F 47 00 42 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 35 30 38 33 10 04 04 00 9E B2 01 00 F4 03 04 00 45 25 72 66 B6 04 01 00 00 00 41 D9 CC ED 8B FA 49 [07:50:21]CommunicateWithHost err = 0 [07:50:21]CheckOFDResponse [07:50:21]1017 (14) - 77093643461234 [07:50:21]1041 (16) - 0000000000875083 [07:50:21]1040 (4) - 111262 [07:50:21]1012 (4) - 19.06.2024 00:24 [07:50:21]1206 (1) - 0 [07:50:21]OFD Sender: Remove packet 111262 [07:50:21]ProducePacketName [07:50:21]name=ofd_packets/00111262 [07:50:21]NVStorageDeleteData [07:50:21]Write to MH i2c: 01 00 00 55 3D 92 [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 07 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: 01 07 00 55 3D 00 00 00 00 00 CC 0C 71 [07:50:21]RasterBufferAndPrint [07:50:21]line [07:50:21]line [07:50:21]line [07:50:21]line [07:50:21]line [07:50:21]written 0, free lines is 3283 [07:50:21]MH_Cut [07:50:21]Write to MH i2c: D1 01 00 5C 3D 01 6B [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: D1 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: D1 01 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: D1 01 00 5C 3D 00 6A [07:50:21]Write to MH i2c: 01 00 00 5D 3D 9A [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]OFD Sender: No OFD packet to send [07:50:22]*** Cut start [07:50:22]*** Partial cut [07:50:22]*** CUTSNS_PIN = 1 [07:50:22]*** CUTSNS_PIN = 0 [07:50:22]*** Brake cut motor [07:50:22]Read from MH i2c: 01 [07:50:22]MH_I2C_Read... [07:50:22]*** Stop cut motor [07:50:22]*** Cut end [07:50:22]Read from MH i2c: 01 07 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: 01 07 00 5D 3D 00 00 00 00 00 FF 0F AF [07:50:22]process_action close_receipt done [07:50:22]requested_data is exist [07:50:22]produce_requested_data [07:50:22]requested_item fm.sn is exist - process it [07:50:22]wFMCommunicate request_size=4 [07:50:22]MH_SAM_APDU [07:50:22]CAPDU: 80 11 00 00 [07:50:22]Write to MH i2c: E2 08 00 5E 3D 80 11 00 00 00 00 00 00 15 [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:22]Read from MH i2c: E2 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 17 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 17 00 5E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 67 [07:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:50:22]wFMCommunicate OK [07:50:22]requested_item fd.num is exist - process it [07:50:22]SAM_PROTO_GetFieldsCounters [07:50:22]wFMCommunicate request_size=4 [07:50:22]MH_SAM_APDU [07:50:22]CAPDU: 80 13 00 00 [07:50:22]Write to MH i2c: E2 08 00 5F 3D 80 13 00 00 00 00 00 00 18 [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:23]Read from MH i2c: E2 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 62 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 62 00 5F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [07:50: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:50:23]wFMCommunicate OK [07:50:23]SAM_PROTO_GetFieldsCounters done [07:50:23]requested_item shift.num is exist - process it [07:50:23]requested_item shift.opened is exist - process it [07:50:23]req_shift_opened [07:50:23]FM_GetShiftState [07:50:23]SAM_PROTO_GetShiftState [07:50:23]wFMCommunicate request_size=4 [07:50:23]MH_SAM_APDU [07:50:23]CAPDU: 80 13 01 00 [07:50:23]Write to MH i2c: E2 08 00 60 3D 80 13 01 00 00 00 00 00 1A [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:23]Read from MH i2c: E2 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 0E 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: E2 0E 00 60 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 64 [07:50:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:50:23]wFMCommunicate OK [07:50:23]SAM_PROTO_GetShiftState done [07:50:23]FM_GetShiftState done [07:50:23]req_shift_opened done [07:50:23]requested_item shift.open_date is exist - process it [07:50:23]req_shift_open_date [07:50:23]req_shift_open_date done [07:50:23]produce_requested_data done [07:50:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111262,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [07:50:23]process_action_free close_receipt [07:50:23]json_value_free [07:50:23]json_value_free done [07:50:23]process_json_proto returns [07:50:23]Send response to host [07:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111262,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [07:50:23]free response buf [07:50:23]execute_script done [07:50:23]execute_script returns [07:50:23]free content buf [07:50:23]Sock 8.Close socket [07:50:23]Sock 8.Thread stoped [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57: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:50]accept exits with 9 [07:57:50]New connection [07:57:50]New thread 3067084132 created [07:57:50]Thread 3067227492 joined [07:57:50]Waiting for new connection... [07:57:50] Sock 9.Parse request [07:57:50]Sock 9.Check first char [07:57:50]Sock 9.First char is OK [07:57:50]request: POST /json_proto HTTP/1.0 [07:57:50]Method: POST [07:57:50]URL: /json_proto [07:57:50]Method is POST - this is cgi request [07:57:50]url: /json_proto [07:57:50]query_string will be loaded in cgi processing [07:57:50]execute_cgi json_proto POST (null) [07:57:50]execute_cgi path=json_proto method=POST [07:57:50]POST find Content-Length [07:57:50]Host: 172.17.59.68:8080 [07:57:50]Content-Length: 677 [07:57:50]Content-Type: application/json [07:57:50] [07:57:50]POST finish read [07:57:50]Found Content-Length = 677 [07:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.230, "sum" : 480.07, "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" ] } } [07:57:50]execute_script... [07:57: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)319831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.230, "sum" : 480.07, "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" ] } } [07:57:50]POST & json_proto [07:57:50]process_json_proto [07:57:50]json parsed OK: [07:57:50]protocol is kg_v1.0 [07:57:50]action value=close_receipt [07:57:50]process_action close_receipt [07:57:50]cmd_close_receipt [07:57:50]MH_GetDate [07:57:50]Write to MH i2c: F0 00 00 61 3D 8D [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: F0 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: F0 09 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: F0 09 00 61 3D 00 98 8F 72 66 BC EC 60 65 02 [07:57:50]GetLastDocTimeStamp 1718783445 [07:57:50]current date 1718783896 [07:57:50]FM_GetShiftState [07:57:50]SAM_PROTO_GetShiftState [07:57:50]wFMCommunicate request_size=4 [07:57:50]MH_SAM_APDU [07:57:50]CAPDU: 80 13 01 00 [07:57:50]Write to MH i2c: E2 08 00 62 3D 80 13 01 00 00 00 00 00 1C [07:57:50]Write i2c OK [07:57:50]MH_I2C_Read... [07:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:50]Read from MH i2c: E2 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 0E 00 [07:57:50]MH_I2C_Read... [07:57:50]Read from MH i2c: E2 0E 00 62 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 66 [07:57:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:57:50]wFMCommunicate OK [07:57:50]SAM_PROTO_GetShiftState done [07:57:50]FM_GetShiftState done [07:57:50]opened in 1718760753 [07:57:50]opened+sec_in_day 1718847153 [07:57:50]quantity*price = 48007 [07:57:50]sum+1 = 48008 [07:57:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 50.98 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 12 19.06.2024 07:58 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111263 ФПД: 118283450289621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T075816&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111263&fm=118283450289621&tin=02508201610067®Number=0000000000092771&sum=48000 [07:57:51]StoreToDocumentArchive [07:57:51]shift 388 fd 111263 [07:57:51]save to /storage/0388/doc_00111263 [07:57:51]save last doc name /storage/0388/doc_00111263 to /storage/kkm_last_doc_name [07:57:51]save OK [07:57:51]Clear old archive folders... [07:57:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:51]tlvbuf is 0197B790 [07:57:51]SAM_PROTO_ClearQueue [07:57:51]wFMCommunicate request_size=4 [07:57:51]MH_SAM_APDU [07:57:51]CAPDU: 80 09 00 00 [07:57:51]Write to MH i2c: E2 08 00 6F 3D 80 09 00 00 00 00 00 00 1E [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:51]Read from MH i2c: E2 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 03 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 03 00 6F 3D 00 90 00 20 [07:57:51]RAPDU: 90 00 [07:57:51]wFMCommunicate OK [07:57:51]SAM_PROTO_ClearQueue done [07:57:51]KKMCreateOFDPacket [07:57:51]OFDProtocolAddRootSTLVToBuf [07:57:51]FM_MakeSignedData [07:57:51]FM_MakeSignedData [07:57:51]SAM_PROTO_SignData [07:57:51]wFMCommunicate request_size=4 [07:57:51]MH_SAM_APDU [07:57:51]CAPDU: 80 0D 01 02 [07:57:51]Write to MH i2c: E2 08 00 70 3D 80 0D 01 02 00 00 00 00 26 [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:51]Read from MH i2c: E2 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 03 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 03 00 70 3D 00 90 00 21 [07:57:51]RAPDU: 90 00 [07:57:51]wFMCommunicate OK [07:57:51]wFMCommunicate request_size=255 [07:57:51]MH_SAM_APDU [07:57: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 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 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 EA 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 0C 00 00 00 F4 03 04 00 98 8F 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B2 01 00 35 04 06 00 6B [07:57:51]Write to MH i2c: E2 02 01 71 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 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 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 EA 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 0C 00 00 00 F4 03 04 00 98 8F 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B2 01 00 35 04 06 00 6B 00 00 3F [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:51]Read from MH i2c: E2 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 03 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 03 00 71 3D 00 90 00 22 [07:57:51]RAPDU: 90 00 [07:57:51]wFMCommunicate OK [07:57:51]wFMCommunicate request_size=10 [07:57:51]MH_SAM_APDU [07:57:51]CAPDU: 80 0D 02 02 05 94 03 09 8D D5 [07:57:51]Write to MH i2c: E2 0D 00 72 3D 80 0D 02 02 05 00 94 03 09 8D D5 00 00 35 [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:51]Read from MH i2c: E2 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 03 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 03 00 72 3D 00 90 00 23 [07:57:51]RAPDU: 90 00 [07:57:51]wFMCommunicate OK [07:57:51]wFMCommunicate request_size=4 [07:57:51]MH_SAM_APDU [07:57:51]CAPDU: 80 0D 03 02 [07:57:51]Write to MH i2c: E2 08 00 73 3D 80 0D 03 02 00 00 00 00 2B [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:51]Read from MH i2c: E2 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 0B 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 0B 00 73 3D 00 34 F5 B1 81 7F 33 BA 49 90 00 3C [07:57:51]RAPDU: 34 F5 B1 81 7F 33 BA 49 90 00 [07:57:51]wFMCommunicate OK [07:57:51]SAM_PROTO_SignData done [07:57:51]FM_MakeSignedData done [07:57:51]CreateOFDProtocolMessage [07:57:51]wFMCommunicate request_size=4 [07:57:51]MH_SAM_APDU [07:57:51]CAPDU: 80 11 00 00 [07:57:51]Write to MH i2c: E2 08 00 74 3D 80 11 00 00 00 00 00 00 2B [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:51]Read from MH i2c: E2 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 17 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: E2 17 00 74 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7D [07:57:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:57:51]wFMCommunicate OK [07:57:51]CreateOFDProtocolMessage done [07:57:51]OFDSenderStorePacket 111263 [07:57:51]StoreOFDPacket docnum=111263 [07:57:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 C2 07 01 F2 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 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 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 EA 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 0C 00 00 00 F4 03 04 00 98 8F 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B2 01 00 35 04 06 00 6B 94 03 09 8D D5 34 F5 B1 81 7F 33 BA 49 [07:57:51]CheckFolder [07:57:51]dirname=/storage/ofd_packets [07:57:51]CheckFolder done [07:57:51]ProducePacketName [07:57:51]name=ofd_packets/00111263 [07:57:51]NVStorageSaveData ofd_packets/00111263 [07:57:51]File name is /storage/ofd_packets/00111263 [07:57:51]Write 301 bytes [07:57:51]NVStorageSaveData done [07:57:51]OFDSenderStorePacket done [07:57:51]KKMCreateOFDPacket done [07:57:51]NVStorageSaveData kkm_last_timestamp [07:57:51]File name is /storage/kkm_last_timestamp [07:57:51]Write 4 bytes [07:57:51]NVStorageSaveData done [07:57:51]ExternCall_PrintAddStr [07:57:51]wPrintStart [07:57:51]Write to MH i2c: 01 00 00 75 3D B2 [07:57:51]Write i2c OK [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: 01 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: 01 07 00 [07:57:51]MH_I2C_Read... [07:57:51]Read from MH i2c: 01 07 00 75 3D 00 00 00 00 00 FF 0F C7 [07:57:51]RasterBufferAndPrint [07:57:51]line Счет N : (1)319831 [07:57:51]line ИНН: 02508201610067 [07:57:51]line Контрольно-Кассовый Чек [07:57:51]line ПРОДАЖА [07:57:51]line ТРК (МРК, ГНК) : 11 [07:57:51]line Товар: 2710124130 [07:57:51]line Аи-92-К-5 [07:57:51]line 7.230 * 66.40 [07:57:51]line = 480.07 [07:57:51]line НДС 12% НСП 1% [07:57:51]line > о реализуемом товаре [07:57:51]line ОКРУГЛЕНИЕ: -0.07 [07:57:51]line ИТОГО: 480.00 [07:57:51]line Внесено: 480.00 [07:57:51]line СДАЧА: 0.00 [07:57:51]line НСП 1% : 4.25 [07:57:51]line НДС 12% : 50.98 [07:57:51]line Наличными: 480.00 [07:57:51]line Безнал.: 0.00 [07:57:51]line Место: АЗС № 65 "Партнер Нефть" [07:57:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:57:51]line СНО: Общий режим [07:57:51]line Чек 12 19.06.2024 07:58 [07:57:51]line Смена: 388 ФФД: 1.0 [07:57:51]line ЗНМ: 0300000198 [07:57:51]line РНМ: 0000000000092771 [07:57:51]line Версия ККМ: 001 [07:57:51]line ФМ: 0000000000875083 [07:57:51]line ФД: 111263 [07:57:51]line ФПД: 118283450289621 [07:57:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T075816&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111263&fm=118283450289621&tin=02508201610067®Number=0000000000092771&sum=48000 [07:57:52]OFD Sender: Processing packet 111263 [packets to send 38, broken 37] [07:57:52]ProducePacketName [07:57:52]name=ofd_packets/00111263 [07:57:52]OFD Sender: To server: pG, [07:57:52]CommunicateWithHost lk.salyk.kg:30040 [07:57:52]ConnectInit lk.salyk.kg [07:57:52]written 0, free lines is 4095 [07:57:52]Connected sock=10 [07:57:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 87 C2 07 01 F2 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 3E 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 87 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 EA 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 0C 00 00 00 F4 03 04 00 98 8F 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B2 01 00 35 04 06 00 6B 94 03 09 8D D5 34 F5 B1 81 7F 33 BA 49 [07:57:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7A 27 47 00 E2 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 35 30 38 33 10 04 04 00 9F B2 01 00 F4 03 04 00 08 27 72 66 B6 04 01 00 00 D3 68 C4 03 1E 95 14 0C [07:57:52]CommunicateWithHost err = 0 [07:57:52]CheckOFDResponse [07:57:52]1017 (14) - 77093643461234 [07:57:52]1041 (16) - 0000000000875083 [07:57:52]1040 (4) - 111263 [07:57:52]1012 (4) - 19.06.2024 00:32 [07:57:52]1206 (1) - 0 [07:57:52]OFD Sender: Remove packet 111263 [07:57:52]ProducePacketName [07:57:52]name=ofd_packets/00111263 [07:57:52]NVStorageDeleteData [07:57:52]Write to MH i2c: 01 00 00 A0 3D DD [07:57:52]Write i2c OK [07:57:52]MH_I2C_Read... [07:57:52]Read from MH i2c: 01 [07:57:52]MH_I2C_Read... [07:57:52]Read from MH i2c: 01 07 00 [07:57:52]MH_I2C_Read... [07:57:52]Read from MH i2c: 01 07 00 A0 3D 00 00 00 00 00 CF 0C BF [07:57:52]RasterBufferAndPrint [07:57:52]line [07:57:52]line [07:57:52]line [07:57:52]line [07:57:52]line [07:57:52]written 0, free lines is 3288 [07:57:52]MH_Cut [07:57:52]Write to MH i2c: D1 01 00 A7 3D 01 B6 [07:57:52]Write i2c OK [07:57:52]MH_I2C_Read... [07:57:52]Read from MH i2c: D1 [07:57:52]MH_I2C_Read... [07:57:52]Read from MH i2c: D1 01 00 [07:57:52]MH_I2C_Read... [07:57:52]Read from MH i2c: D1 01 00 A7 3D 00 B5 [07:57:52]Write to MH i2c: 01 00 00 A8 3D E5 [07:57:52]Write i2c OK [07:57:52]MH_I2C_Read... [07:57:53]OFD Sender: No OFD packet to send [07:57:53]*** Cut start [07:57:53]*** Partial cut [07:57:53]*** CUTSNS_PIN = 1 [07:57:53]*** CUTSNS_PIN = 0 [07:57:53]*** Brake cut motor [07:57:54]Read from MH i2c: 01 [07:57:54]MH_I2C_Read... [07:57:54]*** Stop cut motor [07:57:54]*** Cut end [07:57:54]Read from MH i2c: 01 07 00 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: 01 07 00 A8 3D 00 00 00 00 00 FF 0F FA [07:57:54]process_action close_receipt done [07:57:54]requested_data is exist [07:57:54]produce_requested_data [07:57:54]requested_item fm.sn is exist - process it [07:57:54]wFMCommunicate request_size=4 [07:57:54]MH_SAM_APDU [07:57:54]CAPDU: 80 11 00 00 [07:57:54]Write to MH i2c: E2 08 00 A9 3D 80 11 00 00 00 00 00 00 60 [07:57:54]Write i2c OK [07:57:54]MH_I2C_Read... [07:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:54]Read from MH i2c: E2 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: E2 17 00 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: E2 17 00 A9 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [07:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:57:54]wFMCommunicate OK [07:57:54]requested_item fd.num is exist - process it [07:57:54]SAM_PROTO_GetFieldsCounters [07:57:54]wFMCommunicate request_size=4 [07:57:54]MH_SAM_APDU [07:57:54]CAPDU: 80 13 00 00 [07:57:54]Write to MH i2c: E2 08 00 AA 3D 80 13 00 00 00 00 00 00 63 [07:57:54]Write i2c OK [07:57:54]MH_I2C_Read... [07:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:54]Read from MH i2c: E2 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: E2 62 00 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: E2 62 00 AA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [07:57: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:57:54]wFMCommunicate OK [07:57:54]SAM_PROTO_GetFieldsCounters done [07:57:54]requested_item shift.num is exist - process it [07:57:54]requested_item shift.opened is exist - process it [07:57:54]req_shift_opened [07:57:54]FM_GetShiftState [07:57:54]SAM_PROTO_GetShiftState [07:57:54]wFMCommunicate request_size=4 [07:57:54]MH_SAM_APDU [07:57:54]CAPDU: 80 13 01 00 [07:57:54]Write to MH i2c: E2 08 00 AB 3D 80 13 01 00 00 00 00 00 65 [07:57:54]Write i2c OK [07:57:54]MH_I2C_Read... [07:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:54]Read from MH i2c: E2 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: E2 0E 00 [07:57:54]MH_I2C_Read... [07:57:54]Read from MH i2c: E2 0E 00 AB 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AF [07:57:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:57:54]wFMCommunicate OK [07:57:54]SAM_PROTO_GetShiftState done [07:57:54]FM_GetShiftState done [07:57:54]req_shift_opened done [07:57:54]requested_item shift.open_date is exist - process it [07:57:54]req_shift_open_date [07:57:54]req_shift_open_date done [07:57:54]produce_requested_data done [07:57:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111263,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [07:57:54]process_action_free close_receipt [07:57:54]json_value_free [07:57:54]json_value_free done [07:57:54]process_json_proto returns [07:57:54]Send response to host [07:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111263,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [07:57:54]free response buf [07:57:54]execute_script done [07:57:54]execute_script returns [07:57:54]free content buf [07:57:54]Sock 9.Close socket [07:57:54]Sock 9.Thread stoped [07:57:55]accept exits with 8 [07:57:55]New connection [07:57:55]New thread 3067227492 created [07:57:55]Thread 3067084132 joined [07:57:55]Waiting for new connection... [07:57:55] Sock 8.Parse request [07:57:55]Sock 8.Check first char [07:57:55]Sock 8.First char is OK [07:57:55]request: POST /json_proto HTTP/1.0 [07:57:55]Method: POST [07:57:55]URL: /json_proto [07:57:55]Method is POST - this is cgi request [07:57:55]url: /json_proto [07:57:55]query_string will be loaded in cgi processing [07:57:55]execute_cgi json_proto POST (null) [07:57:55]execute_cgi path=json_proto method=POST [07:57:55]POST find Content-Length [07:57:55]Host: 172.17.59.68:8080 [07:57:55]Content-Length: 679 [07:57:55]Content-Type: application/json [07:57:55] [07:57:55]POST finish read [07:57:55]Found Content-Length = 679 [07:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:55]execute_script... [07:57: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)319830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:55]POST & json_proto [07:57:55]process_json_proto [07:57:55]json parsed OK: [07:57:55]protocol is kg_v1.0 [07:57:55]action value=close_receipt [07:57:55]process_action close_receipt [07:57:55]cmd_close_receipt [07:57:55]MH_GetDate [07:57:55]Write to MH i2c: F0 00 00 AC 3D D8 [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: F0 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: F0 09 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: F0 09 00 AC 3D 00 9D 8F 72 66 BC EC 60 65 52 [07:57:55]GetLastDocTimeStamp 1718783896 [07:57:55]current date 1718783901 [07:57:55]FM_GetShiftState [07:57:55]SAM_PROTO_GetShiftState [07:57:55]wFMCommunicate request_size=4 [07:57:55]MH_SAM_APDU [07:57:55]CAPDU: 80 13 01 00 [07:57:55]Write to MH i2c: E2 08 00 AD 3D 80 13 01 00 00 00 00 00 67 [07:57:55]Write i2c OK [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 [07:57:55]MH_I2C_Read... [07:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:55]Read from MH i2c: E2 0E 00 [07:57:55]MH_I2C_Read... [07:57:55]Read from MH i2c: E2 0E 00 AD 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B1 [07:57:55]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:57:55]wFMCommunicate OK [07:57:55]SAM_PROTO_GetShiftState done [07:57:55]FM_GetShiftState done [07:57:55]opened in 1718760753 [07:57:55]opened+sec_in_day 1718847153 [07:57:55]quantity*price = 200037 [07:57:55]sum+1 = 200039 [07:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 13 19.06.2024 07:58 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111264 ФПД: 248204282965072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T075821&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111264&fm=248204282965072&tin=02508201610067®Number=0000000000092771&sum=200000 [07:57:56]StoreToDocumentArchive [07:57:56]shift 388 fd 111264 [07:57:56]save to /storage/0388/doc_00111264 [07:57:56]save last doc name /storage/0388/doc_00111264 to /storage/kkm_last_doc_name [07:57:56]save OK [07:57:56]Clear old archive folders... [07:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:57:56]tlvbuf is 0199A7E0 [07:57:56]SAM_PROTO_ClearQueue [07:57:56]wFMCommunicate request_size=4 [07:57:56]MH_SAM_APDU [07:57:56]CAPDU: 80 09 00 00 [07:57:56]Write to MH i2c: E2 08 00 BA 3D 80 09 00 00 00 00 00 00 69 [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:56]Read from MH i2c: E2 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 03 00 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 03 00 BA 3D 00 90 00 6B [07:57:56]RAPDU: 90 00 [07:57:56]wFMCommunicate OK [07:57:56]SAM_PROTO_ClearQueue done [07:57:56]KKMCreateOFDPacket [07:57:56]OFDProtocolAddRootSTLVToBuf [07:57:56]FM_MakeSignedData [07:57:56]FM_MakeSignedData [07:57:56]SAM_PROTO_SignData [07:57:56]wFMCommunicate request_size=4 [07:57:56]MH_SAM_APDU [07:57:56]CAPDU: 80 0D 01 02 [07:57:56]Write to MH i2c: E2 08 00 BB 3D 80 0D 01 02 00 00 00 00 71 [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:56]Read from MH i2c: E2 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 03 00 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 03 00 BB 3D 00 90 00 6C [07:57:56]RAPDU: 90 00 [07:57:56]wFMCommunicate OK [07:57:56]wFMCommunicate request_size=255 [07:57:56]MH_SAM_APDU [07:57: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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D 8F 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B2 01 00 35 04 06 00 E1 BD 90 1E [07:57:56]Write to MH i2c: E2 02 01 BC 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D 8F 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B2 01 00 35 04 06 00 E1 BD 90 1E 00 00 87 [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:56]Read from MH i2c: E2 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 03 00 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 03 00 BC 3D 00 90 00 6D [07:57:56]RAPDU: 90 00 [07:57:56]wFMCommunicate OK [07:57:56]wFMCommunicate request_size=7 [07:57:56]MH_SAM_APDU [07:57:56]CAPDU: 80 0D 02 02 02 2C 50 [07:57:56]Write to MH i2c: E2 0A 00 BD 3D 80 0D 02 02 02 00 2C 50 00 00 F4 [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:56]Read from MH i2c: E2 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 03 00 [07:57:56]MH_I2C_Read... [07:57:56]Read from MH i2c: E2 03 00 BD 3D 00 90 00 6E [07:57:56]RAPDU: 90 00 [07:57:56]wFMCommunicate OK [07:57:56]wFMCommunicate request_size=4 [07:57:56]MH_SAM_APDU [07:57:56]CAPDU: 80 0D 03 02 [07:57:56]Write to MH i2c: E2 08 00 BE 3D 80 0D 03 02 00 00 00 00 76 [07:57:56]Write i2c OK [07:57:56]MH_I2C_Read... [07:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:57]Read from MH i2c: E2 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 0B 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 0B 00 BE 3D 00 8B 70 C8 E1 F6 E5 53 BE 90 00 07 [07:57:57]RAPDU: 8B 70 C8 E1 F6 E5 53 BE 90 00 [07:57:57]wFMCommunicate OK [07:57:57]SAM_PROTO_SignData done [07:57:57]FM_MakeSignedData done [07:57:57]CreateOFDProtocolMessage [07:57:57]wFMCommunicate request_size=4 [07:57:57]MH_SAM_APDU [07:57:57]CAPDU: 80 11 00 00 [07:57:57]Write to MH i2c: E2 08 00 BF 3D 80 11 00 00 00 00 00 00 76 [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:57]Read from MH i2c: E2 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 17 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: E2 17 00 BF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C8 [07:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:57:57]wFMCommunicate OK [07:57:57]CreateOFDProtocolMessage done [07:57:57]OFDSenderStorePacket 111264 [07:57:57]StoreOFDPacket docnum=111264 [07:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 0F F7 04 01 D6 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D 8F 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B2 01 00 35 04 06 00 E1 BD 90 1E 2C 50 8B 70 C8 E1 F6 E5 53 BE [07:57:57]CheckFolder [07:57:57]dirname=/storage/ofd_packets [07:57:57]CheckFolder done [07:57:57]ProducePacketName [07:57:57]name=ofd_packets/00111264 [07:57:57]NVStorageSaveData ofd_packets/00111264 [07:57:57]File name is /storage/ofd_packets/00111264 [07:57:57]Write 298 bytes [07:57:57]NVStorageSaveData done [07:57:57]OFDSenderStorePacket done [07:57:57]KKMCreateOFDPacket done [07:57:57]NVStorageSaveData kkm_last_timestamp [07:57:57]File name is /storage/kkm_last_timestamp [07:57:57]Write 4 bytes [07:57:57]NVStorageSaveData done [07:57:57]ExternCall_PrintAddStr [07:57:57]wPrintStart [07:57:57]Write to MH i2c: 01 00 00 C0 3D FD [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 07 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 07 00 C0 3D 00 00 00 00 00 FF 0F 12 [07:57:57]RasterBufferAndPrint [07:57:57]line Счет N : (1)319830 [07:57:57]line ИНН: 02508201610067 [07:57:57]line Контрольно-Кассовый Чек [07:57:57]line ПРОДАЖА [07:57:57]line ТРК (МРК, ГНК) : 22 [07:57:57]line Товар: 2710194210 [07:57:57]line ДТ-К-5 [07:57:57]line 27.440 * 72.90 [07:57:57]line = 2000.38 [07:57:57]line НДС 12% НСП 1% [07:57:57]line > о реализуемом товаре [07:57:57]line ОКРУГЛЕНИЕ: -0.38 [07:57:57]line ИТОГО: 2000.00 [07:57:57]line Внесено: 2000.00 [07:57:57]line СДАЧА: 0.00 [07:57:57]line НСП 1% : 17.70 [07:57:57]line НДС 12% : 212.43 [07:57:57]line Наличными: 2000.00 [07:57:57]line Безнал.: 0.00 [07:57:57]line Место: АЗС № 65 "Партнер Нефть" [07:57:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [07:57:57]line СНО: Общий режим [07:57:57]line Чек 13 19.06.2024 07:58 [07:57:57]line Смена: 388 ФФД: 1.0 [07:57:57]line ЗНМ: 0300000198 [07:57:57]line РНМ: 0000000000092771 [07:57:57]line Версия ККМ: 001 [07:57:57]line ФМ: 0000000000875083 [07:57:57]line ФД: 111264 [07:57:57]line ФПД: 248204282965072 [07:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T075821&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111264&fm=248204282965072&tin=02508201610067®Number=0000000000092771&sum=200000 [07:57:57]OFD Sender: Processing packet 111264 [packets to send 38, broken 37] [07:57:57]ProducePacketName [07:57:57]name=ofd_packets/00111264 [07:57:57]OFD Sender: To server: pG, [07:57:57]CommunicateWithHost lk.salyk.kg:30040 [07:57:57]ConnectInit lk.salyk.kg [07:57:57]written 0, free lines is 4095 [07:57:57]Connected sock=10 [07:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 0F F7 04 01 D6 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 9D 8F 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B2 01 00 35 04 06 00 E1 BD 90 1E 2C 50 8B 70 C8 E1 F6 E5 53 BE [07:57:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E 28 47 00 8E 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B2 01 00 F4 03 04 00 0D 27 72 66 B6 04 01 00 00 88 43 4A 37 28 27 81 AB [07:57:57]CommunicateWithHost err = 0 [07:57:57]CheckOFDResponse [07:57:57]1017 (14) - 77093643461234 [07:57:57]1041 (16) - 0000000000875083 [07:57:57]1040 (4) - 111264 [07:57:57]1012 (4) - 19.06.2024 00:32 [07:57:57]1206 (1) - 0 [07:57:57]OFD Sender: Remove packet 111264 [07:57:57]ProducePacketName [07:57:57]name=ofd_packets/00111264 [07:57:57]NVStorageDeleteData [07:57:57]Write to MH i2c: 01 00 00 EB 3D 28 [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 07 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: 01 07 00 EB 3D 00 00 00 00 00 D8 0C 13 [07:57:57]RasterBufferAndPrint [07:57:57]line [07:57:57]line [07:57:57]line [07:57:57]line [07:57:57]line [07:57:57]written 0, free lines is 3301 [07:57:57]MH_Cut [07:57:57]Write to MH i2c: D1 01 00 F2 3D 01 01 [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: D1 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: D1 01 00 [07:57:57]MH_I2C_Read... [07:57:57]Read from MH i2c: D1 01 00 F2 3D 00 00 [07:57:57]Write to MH i2c: 01 00 00 F3 3D 30 [07:57:57]Write i2c OK [07:57:57]MH_I2C_Read... [07:57:57]OFD Sender: No OFD packet to send [07:57:58]*** Cut start [07:57:58]*** Partial cut [07:57:58]*** CUTSNS_PIN = 1 [07:57:58]*** CUTSNS_PIN = 0 [07:57:58]*** Brake cut motor [07:57:58]Read from MH i2c: 01 [07:57:58]MH_I2C_Read... [07:57:58]*** Stop cut motor [07:57:58]*** Cut end [07:57:58]Read from MH i2c: 01 07 00 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: 01 07 00 F3 3D 00 00 00 00 00 FF 0F 45 [07:57:58]process_action close_receipt done [07:57:58]requested_data is exist [07:57:58]produce_requested_data [07:57:58]requested_item fm.sn is exist - process it [07:57:58]wFMCommunicate request_size=4 [07:57:58]MH_SAM_APDU [07:57:58]CAPDU: 80 11 00 00 [07:57:58]Write to MH i2c: E2 08 00 F4 3D 80 11 00 00 00 00 00 00 AB [07:57:58]Write i2c OK [07:57:58]MH_I2C_Read... [07:57:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:58]Read from MH i2c: E2 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: E2 17 00 [07:57:58]MH_I2C_Read... [07:57:58]Read from MH i2c: E2 17 00 F4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FD [07:57:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [07:57:58]wFMCommunicate OK [07:57:58]requested_item fd.num is exist - process it [07:57:58]SAM_PROTO_GetFieldsCounters [07:57:58]wFMCommunicate request_size=4 [07:57:58]MH_SAM_APDU [07:57:58]CAPDU: 80 13 00 00 [07:57:58]Write to MH i2c: E2 08 00 F5 3D 80 13 00 00 00 00 00 00 AE [07:57:58]Write i2c OK [07:57:58]MH_I2C_Read... [07:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:59]Read from MH i2c: E2 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 62 00 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 62 00 F5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [07:57: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:57:59]wFMCommunicate OK [07:57:59]SAM_PROTO_GetFieldsCounters done [07:57:59]requested_item shift.num is exist - process it [07:57:59]requested_item shift.opened is exist - process it [07:57:59]req_shift_opened [07:57:59]FM_GetShiftState [07:57:59]SAM_PROTO_GetShiftState [07:57:59]wFMCommunicate request_size=4 [07:57:59]MH_SAM_APDU [07:57:59]CAPDU: 80 13 01 00 [07:57:59]Write to MH i2c: E2 08 00 F6 3D 80 13 01 00 00 00 00 00 B0 [07:57:59]Write i2c OK [07:57:59]MH_I2C_Read... [07:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:59]Read from MH i2c: E2 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 0E 00 [07:57:59]MH_I2C_Read... [07:57:59]Read from MH i2c: E2 0E 00 F6 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FA [07:57:59]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [07:57:59]wFMCommunicate OK [07:57:59]SAM_PROTO_GetShiftState done [07:57:59]FM_GetShiftState done [07:57:59]req_shift_opened done [07:57:59]requested_item shift.open_date is exist - process it [07:57:59]req_shift_open_date [07:57:59]req_shift_open_date done [07:57:59]produce_requested_data done [07:57:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111264,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [07:57:59]process_action_free close_receipt [07:57:59]json_value_free [07:57:59]json_value_free done [07:57:59]process_json_proto returns [07:57:59]Send response to host [07:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111264,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [07:57:59]free response buf [07:57:59]execute_script done [07:57:59]execute_script returns [07:57:59]free content buf [07:57:59]Sock 8.Close socket [07:57:59]Sock 8.Thread stoped [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]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:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:03]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:51]accept exits with 9 [08:06:51]New connection [08:06:51]New thread 3067084132 created [08:06:51]Thread 3067227492 joined [08:06:51]Waiting for new connection... [08:06:51] Sock 9.Parse request [08:06:51]Sock 9.Check first char [08:06:51]Sock 9.First char is OK [08:06:51]request: POST /json_proto HTTP/1.0 [08:06:51]Method: POST [08:06:51]URL: /json_proto [08:06:51]Method is POST - this is cgi request [08:06:51]url: /json_proto [08:06:51]query_string will be loaded in cgi processing [08:06:51]execute_cgi json_proto POST (null) [08:06:51]execute_cgi path=json_proto method=POST [08:06:51]POST find Content-Length [08:06:51]Host: 172.17.59.68:8080 [08:06:51]Content-Length: 805 [08:06:51]Content-Type: application/json [08:06:51] [08:06:51]POST finish read [08:06:51]Found Content-Length = 805 [08:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.000, "sum" : 1458.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1458.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:51]execute_script... [08:06: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)319832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.000, "sum" : 1458.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1458.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:51]POST & json_proto [08:06:51]process_json_proto [08:06:51]json parsed OK: [08:06:51]protocol is kg_v1.0 [08:06:51]action value=close_receipt [08:06:51]process_action close_receipt [08:06:51]cmd_close_receipt [08:06:51]MH_GetDate [08:06:51]Write to MH i2c: F0 00 00 F7 3D 23 [08:06:51]Write i2c OK [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: F0 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: F0 09 00 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: F0 09 00 F7 3D 00 B6 91 72 66 BC EC 60 65 B8 [08:06:51]GetLastDocTimeStamp 1718783901 [08:06:51]current date 1718784438 [08:06:51]FM_GetShiftState [08:06:51]SAM_PROTO_GetShiftState [08:06:51]wFMCommunicate request_size=4 [08:06:51]MH_SAM_APDU [08:06:51]CAPDU: 80 13 01 00 [08:06:51]Write to MH i2c: E2 08 00 F8 3D 80 13 01 00 00 00 00 00 B2 [08:06:51]Write i2c OK [08:06:51]MH_I2C_Read... [08:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:51]Read from MH i2c: E2 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: E2 0E 00 [08:06:51]MH_I2C_Read... [08:06:51]Read from MH i2c: E2 0E 00 F8 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FC [08:06:51]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:06:51]wFMCommunicate OK [08:06:51]SAM_PROTO_GetShiftState done [08:06:51]FM_GetShiftState done [08:06:51]opened in 1718760753 [08:06:51]opened+sec_in_day 1718847153 [08:06:51]quantity*price = 145800 [08:06:51]sum+1 = 145801 [08:06:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1458.00 НСП 1% : 12.90 НДС 12% : 154.83 Наличными: 0.00 Безнал.: 1458.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 14 19.06.2024 08:07 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111265 ФПД: 141955785931829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T080718&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111265&fm=141955785931829&tin=02508201610067®Number=0000000000092771&sum=145800 [08:06:52]StoreToDocumentArchive [08:06:52]shift 388 fd 111265 [08:06:52]save to /storage/0388/doc_00111265 [08:06:52]save last doc name /storage/0388/doc_00111265 to /storage/kkm_last_doc_name [08:06:52]save OK [08:06:52]Clear old archive folders... [08:06:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:06:52]tlvbuf is 01A06EF0 [08:06:52]SAM_PROTO_ClearQueue [08:06:52]wFMCommunicate request_size=4 [08:06:52]MH_SAM_APDU [08:06:52]CAPDU: 80 09 00 00 [08:06:52]Write to MH i2c: E2 08 00 05 3E 80 09 00 00 00 00 00 00 B5 [08:06:52]Write i2c OK [08:06:52]MH_I2C_Read... [08:06:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:52]Read from MH i2c: E2 [08:06:52]MH_I2C_Read... [08:06:52]Read from MH i2c: E2 03 00 [08:06:52]MH_I2C_Read... [08:06:52]Read from MH i2c: E2 03 00 05 3E 00 90 00 B7 [08:06:52]RAPDU: 90 00 [08:06:52]wFMCommunicate OK [08:06:52]SAM_PROTO_ClearQueue done [08:06:52]KKMCreateOFDPacket [08:06:52]OFDProtocolAddRootSTLVToBuf [08:06:52]FM_MakeSignedData [08:06:52]FM_MakeSignedData [08:06:52]SAM_PROTO_SignData [08:06:52]wFMCommunicate request_size=4 [08:06:52]MH_SAM_APDU [08:06:52]CAPDU: 80 0D 01 02 [08:06:52]Write to MH i2c: E2 08 00 06 3E 80 0D 01 02 00 00 00 00 BD [08:06:52]Write i2c OK [08:06:52]MH_I2C_Read... [08:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:53]Read from MH i2c: E2 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 06 3E 00 90 00 B8 [08:06:53]RAPDU: 90 00 [08:06:53]wFMCommunicate OK [08:06:53]wFMCommunicate request_size=255 [08:06:53]MH_SAM_APDU [08:06:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B6 91 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B2 01 00 35 04 06 00 81 1B A8 31 [08:06:53]Write to MH i2c: E2 02 01 07 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B6 91 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B2 01 00 35 04 06 00 81 1B A8 31 00 00 A8 [08:06:53]Write i2c OK [08:06:53]MH_I2C_Read... [08:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:53]Read from MH i2c: E2 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 07 3E 00 90 00 B9 [08:06:53]RAPDU: 90 00 [08:06:53]wFMCommunicate OK [08:06:53]wFMCommunicate request_size=7 [08:06:53]MH_SAM_APDU [08:06:53]CAPDU: 80 0D 02 02 02 BC 35 [08:06:53]Write to MH i2c: E2 0A 00 08 3E 80 0D 02 02 02 00 BC 35 00 00 B5 [08:06:53]Write i2c OK [08:06:53]MH_I2C_Read... [08:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:53]Read from MH i2c: E2 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 03 00 08 3E 00 90 00 BA [08:06:53]RAPDU: 90 00 [08:06:53]wFMCommunicate OK [08:06:53]wFMCommunicate request_size=4 [08:06:53]MH_SAM_APDU [08:06:53]CAPDU: 80 0D 03 02 [08:06:53]Write to MH i2c: E2 08 00 09 3E 80 0D 03 02 00 00 00 00 C2 [08:06:53]Write i2c OK [08:06:53]MH_I2C_Read... [08:06:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:53]Read from MH i2c: E2 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 0B 00 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 0B 00 09 3E 00 9D E3 2E D4 61 60 65 25 90 00 90 [08:06:53]RAPDU: 9D E3 2E D4 61 60 65 25 90 00 [08:06:53]wFMCommunicate OK [08:06:53]SAM_PROTO_SignData done [08:06:53]FM_MakeSignedData done [08:06:53]CreateOFDProtocolMessage [08:06:53]wFMCommunicate request_size=4 [08:06:53]MH_SAM_APDU [08:06:53]CAPDU: 80 11 00 00 [08:06:53]Write to MH i2c: E2 08 00 0A 3E 80 11 00 00 00 00 00 00 C2 [08:06:53]Write i2c OK [08:06:53]MH_I2C_Read... [08:06:53]OFD Sender: No OFD packet to send [08:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:53]Read from MH i2c: E2 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 17 00 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: E2 17 00 0A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 14 [08:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:06:53]wFMCommunicate OK [08:06:53]CreateOFDProtocolMessage done [08:06:53]OFDSenderStorePacket 111265 [08:06:53]StoreOFDPacket docnum=111265 [08:06:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BB 4F 04 01 88 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B6 91 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B2 01 00 35 04 06 00 81 1B A8 31 BC 35 9D E3 2E D4 61 60 65 25 [08:06:53]CheckFolder [08:06:53]dirname=/storage/ofd_packets [08:06:53]CheckFolder done [08:06:53]ProducePacketName [08:06:53]name=ofd_packets/00111265 [08:06:53]NVStorageSaveData ofd_packets/00111265 [08:06:53]File name is /storage/ofd_packets/00111265 [08:06:53]Write 298 bytes [08:06:53]NVStorageSaveData done [08:06:53]OFDSenderStorePacket done [08:06:53]KKMCreateOFDPacket done [08:06:53]NVStorageSaveData kkm_last_timestamp [08:06:53]File name is /storage/kkm_last_timestamp [08:06:53]Write 4 bytes [08:06:53]NVStorageSaveData done [08:06:53]ExternCall_PrintAddStr [08:06:53]wPrintStart [08:06:53]Write to MH i2c: 01 00 00 0B 3E 49 [08:06:53]Write i2c OK [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: 01 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: 01 07 00 [08:06:53]MH_I2C_Read... [08:06:53]Read from MH i2c: 01 07 00 0B 3E 00 00 00 00 00 FF 0F 5E [08:06:53]RasterBufferAndPrint [08:06:53]line Счет N : (1)319832 [08:06:53]line ИНН: 02508201610067 [08:06:53]line Контрольно-Кассовый Чек [08:06:53]line ПРОДАЖА [08:06:53]line ТРК (МРК, ГНК) : 22 [08:06:53]line Товар: 2710194210 [08:06:53]line ДТ-К-5 [08:06:53]line 20.000 * 72.90 [08:06:53]line = 1458.00 [08:06:53]line НДС 12% НСП 1% [08:06:53]line > о реализуемом товаре [08:06:53]line ИТОГО: 1458.00 [08:06:53]line НСП 1% : 12.90 [08:06:53]line НДС 12% : 154.83 [08:06:53]line Наличными: 0.00 [08:06:53]line Безнал.: 1458.00 [08:06:53]line Место: АЗС № 65 "Партнер Нефть" [08:06:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:06:53]line СНО: Общий режим [08:06:53]line Чек 14 19.06.2024 08:07 [08:06:53]line Смена: 388 ФФД: 1.0 [08:06:53]line ЗНМ: 0300000198 [08:06:53]line РНМ: 0000000000092771 [08:06:53]line Версия ККМ: 001 [08:06:53]line Платежная система: О! деньги [08:06:53]line ФМ: 0000000000875083 [08:06:53]line ФД: 111265 [08:06:53]line ФПД: 141955785931829 [08:06:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T080718&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111265&fm=141955785931829&tin=02508201610067®Number=0000000000092771&sum=145800 [08:06:53]OFD Sender: Processing packet 111265 [packets to send 38, broken 37] [08:06:53]ProducePacketName [08:06:53]name=ofd_packets/00111265 [08:06:53]OFD Sender: To server: pG, [08:06:53]CommunicateWithHost lk.salyk.kg:30040 [08:06:53]ConnectInit lk.salyk.kg [08:06:53]written 0, free lines is 4095 [08:06:53]Connected sock=8 [08:06:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 BB 4F 04 01 88 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 88 39 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 39 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 39 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B6 91 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B2 01 00 35 04 06 00 81 1B A8 31 BC 35 9D E3 2E D4 61 60 65 25 [08:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 01 59 47 00 52 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B2 01 00 F4 03 04 00 25 29 72 66 B6 04 01 00 00 99 59 E2 7F 43 B2 6F 23 [08:06:54]CommunicateWithHost err = 0 [08:06:54]CheckOFDResponse [08:06:54]1017 (14) - 77093643461234 [08:06:54]1041 (16) - 0000000000875083 [08:06:54]1040 (4) - 111265 [08:06:54]1012 (4) - 19.06.2024 00:41 [08:06:54]1206 (1) - 0 [08:06:54]OFD Sender: Remove packet 111265 [08:06:54]ProducePacketName [08:06:54]name=ofd_packets/00111265 [08:06:54]NVStorageDeleteData [08:06:54]Write to MH i2c: 01 00 00 35 3E 73 [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: 01 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: 01 07 00 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: 01 07 00 35 3E 00 00 00 00 00 E2 0C 68 [08:06:54]RasterBufferAndPrint [08:06:54]line [08:06:54]line [08:06:54]line [08:06:54]line [08:06:54]line [08:06:54]written 0, free lines is 3303 [08:06:54]MH_Cut [08:06:54]Write to MH i2c: D1 01 00 3C 3E 01 4C [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: D1 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: D1 01 00 [08:06:54]MH_I2C_Read... [08:06:54]Read from MH i2c: D1 01 00 3C 3E 00 4B [08:06:54]Write to MH i2c: 01 00 00 3D 3E 7B [08:06:54]Write i2c OK [08:06:54]MH_I2C_Read... [08:06:54]OFD Sender: No OFD packet to send [08:06:55]*** Cut start [08:06:55]*** Partial cut [08:06:55]*** CUTSNS_PIN = 1 [08:06:55]*** CUTSNS_PIN = 0 [08:06:55]*** Brake cut motor [08:06:55]Read from MH i2c: 01 [08:06:55]MH_I2C_Read... [08:06:55]*** Stop cut motor [08:06:55]*** Cut end [08:06:55]Read from MH i2c: 01 07 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: 01 07 00 3D 3E 00 00 00 00 00 FF 0F 90 [08:06:55]process_action close_receipt done [08:06:55]requested_data is exist [08:06:55]produce_requested_data [08:06:55]requested_item fm.sn is exist - process it [08:06:55]wFMCommunicate request_size=4 [08:06:55]MH_SAM_APDU [08:06:55]CAPDU: 80 11 00 00 [08:06:55]Write to MH i2c: E2 08 00 3E 3E 80 11 00 00 00 00 00 00 F6 [08:06:55]Write i2c OK [08:06:55]MH_I2C_Read... [08:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:55]Read from MH i2c: E2 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 17 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 17 00 3E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 48 [08:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:06:55]wFMCommunicate OK [08:06:55]requested_item fd.num is exist - process it [08:06:55]SAM_PROTO_GetFieldsCounters [08:06:55]wFMCommunicate request_size=4 [08:06:55]MH_SAM_APDU [08:06:55]CAPDU: 80 13 00 00 [08:06:55]Write to MH i2c: E2 08 00 3F 3E 80 13 00 00 00 00 00 00 F9 [08:06:55]Write i2c OK [08:06:55]MH_I2C_Read... [08:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:55]Read from MH i2c: E2 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 62 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 62 00 3F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [08:06: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:55]wFMCommunicate OK [08:06:55]SAM_PROTO_GetFieldsCounters done [08:06:55]requested_item shift.num is exist - process it [08:06:55]requested_item shift.opened is exist - process it [08:06:55]req_shift_opened [08:06:55]FM_GetShiftState [08:06:55]SAM_PROTO_GetShiftState [08:06:55]wFMCommunicate request_size=4 [08:06:55]MH_SAM_APDU [08:06:55]CAPDU: 80 13 01 00 [08:06:55]Write to MH i2c: E2 08 00 40 3E 80 13 01 00 00 00 00 00 FB [08:06:55]Write i2c OK [08:06:55]MH_I2C_Read... [08:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:55]Read from MH i2c: E2 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 0E 00 [08:06:55]MH_I2C_Read... [08:06:55]Read from MH i2c: E2 0E 00 40 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 45 [08:06:55]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:06:55]wFMCommunicate OK [08:06:55]SAM_PROTO_GetShiftState done [08:06:55]FM_GetShiftState done [08:06:55]req_shift_opened done [08:06:55]requested_item shift.open_date is exist - process it [08:06:55]req_shift_open_date [08:06:55]req_shift_open_date done [08:06:55]produce_requested_data done [08:06:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111265,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [08:06:55]process_action_free close_receipt [08:06:55]json_value_free [08:06:55]json_value_free done [08:06:55]process_json_proto returns [08:06:55]Send response to host [08:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111265,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [08:06:55]free response buf [08:06:55]execute_script done [08:06:55]execute_script returns [08:06:55]free content buf [08:06:55]Sock 9.Close socket [08:06:55]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17: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:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:33]accept exits with 10 [08:25:33]New connection [08:25:33]New thread 3067227492 created [08:25:33]Thread 3067084132 joined [08:25:33]Waiting for new connection... [08:25:33] Sock 10.Parse request [08:25:33]Sock 10.Check first char [08:25:33]Sock 10.First char is OK [08:25:33]request: POST /json_proto HTTP/1.0 [08:25:33]Method: POST [08:25:33]URL: /json_proto [08:25:33]Method is POST - this is cgi request [08:25:33]url: /json_proto [08:25:33]query_string will be loaded in cgi processing [08:25:33]execute_cgi json_proto POST (null) [08:25:33]execute_cgi path=json_proto method=POST [08:25:33]POST find Content-Length [08:25:33]Host: 172.17.59.68:8080 [08:25:33]Content-Length: 805 [08:25:33]Content-Type: application/json [08:25:33] [08:25:33]POST finish read [08:25:33]Found Content-Length = 805 [08:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:33]execute_script... [08:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:33]POST & json_proto [08:25:33]process_json_proto [08:25:33]json parsed OK: [08:25:33]protocol is kg_v1.0 [08:25:33]action value=close_receipt [08:25:33]process_action close_receipt [08:25:33]cmd_close_receipt [08:25:33]MH_GetDate [08:25:33]Write to MH i2c: F0 00 00 41 3E 6E [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: F0 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: F0 09 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: F0 09 00 41 3E 00 18 96 72 66 BC EC 60 65 6A [08:25:33]GetLastDocTimeStamp 1718784438 [08:25:33]current date 1718785560 [08:25:33]FM_GetShiftState [08:25:33]SAM_PROTO_GetShiftState [08:25:33]wFMCommunicate request_size=4 [08:25:33]MH_SAM_APDU [08:25:33]CAPDU: 80 13 01 00 [08:25:33]Write to MH i2c: E2 08 00 42 3E 80 13 01 00 00 00 00 00 FD [08:25:33]Write i2c OK [08:25:33]MH_I2C_Read... [08:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:33]Read from MH i2c: E2 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 0E 00 [08:25:33]MH_I2C_Read... [08:25:33]Read from MH i2c: E2 0E 00 42 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 47 [08:25:33]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:25:33]wFMCommunicate OK [08:25:33]SAM_PROTO_GetShiftState done [08:25:33]FM_GetShiftState done [08:25:33]opened in 1718760753 [08:25:33]opened+sec_in_day 1718847153 [08:25:33]quantity*price = 50065 [08:25:33]sum+1 = 50067 [08:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 15 19.06.2024 08:26 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111266 ФПД: 47510972306569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T082600&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111266&fm=47510972306569&tin=02508201610067®Number=0000000000092771&sum=50066 [08:25:34]StoreToDocumentArchive [08:25:34]shift 388 fd 111266 [08:25:34]save to /storage/0388/doc_00111266 [08:25:34]save last doc name /storage/0388/doc_00111266 to /storage/kkm_last_doc_name [08:25:34]save OK [08:25:34]Clear old archive folders... [08:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:34]tlvbuf is 01A1F390 [08:25:34]SAM_PROTO_ClearQueue [08:25:34]wFMCommunicate request_size=4 [08:25:34]MH_SAM_APDU [08:25:34]CAPDU: 80 09 00 00 [08:25:34]Write to MH i2c: E2 08 00 4F 3E 80 09 00 00 00 00 00 00 FF [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 4F 3E 00 90 00 01 [08:25:34]RAPDU: 90 00 [08:25:34]wFMCommunicate OK [08:25:34]SAM_PROTO_ClearQueue done [08:25:34]KKMCreateOFDPacket [08:25:34]OFDProtocolAddRootSTLVToBuf [08:25:34]FM_MakeSignedData [08:25:34]FM_MakeSignedData [08:25:34]SAM_PROTO_SignData [08:25:34]wFMCommunicate request_size=4 [08:25:34]MH_SAM_APDU [08:25:34]CAPDU: 80 0D 01 02 [08:25:34]Write to MH i2c: E2 08 00 50 3E 80 0D 01 02 00 00 00 00 07 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 50 3E 00 90 00 02 [08:25:34]RAPDU: 90 00 [08:25:34]wFMCommunicate OK [08:25:34]wFMCommunicate request_size=255 [08:25:34]MH_SAM_APDU [08:25: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 18 96 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B2 01 00 35 04 06 00 2B [08:25:34]Write to MH i2c: E2 02 01 51 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 18 96 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B2 01 00 35 04 06 00 2B 00 00 D9 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:34]Read from MH i2c: E2 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 [08:25:34]MH_I2C_Read... [08:25:34]Read from MH i2c: E2 03 00 51 3E 00 90 00 03 [08:25:34]RAPDU: 90 00 [08:25:34]wFMCommunicate OK [08:25:34]wFMCommunicate request_size=10 [08:25:34]MH_SAM_APDU [08:25:34]CAPDU: 80 0D 02 02 05 36 02 A0 94 89 [08:25:34]Write to MH i2c: E2 0D 00 52 3E 80 0D 02 02 05 00 36 02 A0 94 89 00 00 09 [08:25:34]Write i2c OK [08:25:34]MH_I2C_Read... [08:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 03 00 52 3E 00 90 00 04 [08:25:35]RAPDU: 90 00 [08:25:35]wFMCommunicate OK [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 0D 03 02 [08:25:35]Write to MH i2c: E2 08 00 53 3E 80 0D 03 02 00 00 00 00 0C [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0B 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 0B 00 53 3E 00 0D C2 23 F3 FB 98 F1 CF 90 00 45 [08:25:35]RAPDU: 0D C2 23 F3 FB 98 F1 CF 90 00 [08:25:35]wFMCommunicate OK [08:25:35]SAM_PROTO_SignData done [08:25:35]FM_MakeSignedData done [08:25:35]CreateOFDProtocolMessage [08:25:35]wFMCommunicate request_size=4 [08:25:35]MH_SAM_APDU [08:25:35]CAPDU: 80 11 00 00 [08:25:35]Write to MH i2c: E2 08 00 54 3E 80 11 00 00 00 00 00 00 0C [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:35]Read from MH i2c: E2 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 17 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: E2 17 00 54 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [08:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:25:35]wFMCommunicate OK [08:25:35]CreateOFDProtocolMessage done [08:25:35]OFDSenderStorePacket 111266 [08:25:35]StoreOFDPacket docnum=111266 [08:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C 47 07 01 87 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 18 96 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B2 01 00 35 04 06 00 2B 36 02 A0 94 89 0D C2 23 F3 FB 98 F1 CF [08:25:35]CheckFolder [08:25:35]dirname=/storage/ofd_packets [08:25:35]CheckFolder done [08:25:35]ProducePacketName [08:25:35]name=ofd_packets/00111266 [08:25:35]NVStorageSaveData ofd_packets/00111266 [08:25:35]File name is /storage/ofd_packets/00111266 [08:25:35]Write 301 bytes [08:25:35]NVStorageSaveData done [08:25:35]OFDSenderStorePacket done [08:25:35]KKMCreateOFDPacket done [08:25:35]NVStorageSaveData kkm_last_timestamp [08:25:35]File name is /storage/kkm_last_timestamp [08:25:35]Write 4 bytes [08:25:35]NVStorageSaveData done [08:25:35]ExternCall_PrintAddStr [08:25:35]wPrintStart [08:25:35]Write to MH i2c: 01 00 00 55 3E 93 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 55 3E 00 00 00 00 00 FF 0F A8 [08:25:35]RasterBufferAndPrint [08:25:35]line Счет N : (1)319833 [08:25:35]line ИНН: 02508201610067 [08:25:35]line Контрольно-Кассовый Чек [08:25:35]line ПРОДАЖА [08:25:35]line ТРК (МРК, ГНК) : 11 [08:25:35]line Товар: 2710124130 [08:25:35]line Аи-92-К-5 [08:25:35]line 7.540 * 66.40 [08:25:35]line = 500.66 [08:25:35]line НДС 12% НСП 1% [08:25:35]line > о реализуемом товаре [08:25:35]line ИТОГО: 500.66 [08:25:35]line НСП 1% : 4.43 [08:25:35]line НДС 12% : 53.17 [08:25:35]line Наличными: 0.00 [08:25:35]line Безнал.: 500.66 [08:25:35]line Место: АЗС № 65 "Партнер Нефть" [08:25:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:25:35]line СНО: Общий режим [08:25:35]line Чек 15 19.06.2024 08:26 [08:25:35]line Смена: 388 ФФД: 1.0 [08:25:35]line ЗНМ: 0300000198 [08:25:35]line РНМ: 0000000000092771 [08:25:35]line Версия ККМ: 001 [08:25:35]line Платежная система: О! деньги [08:25:35]line ФМ: 0000000000875083 [08:25:35]line ФД: 111266 [08:25:35]line ФПД: 47510972306569 [08:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T082600&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111266&fm=47510972306569&tin=02508201610067®Number=0000000000092771&sum=50066 [08:25:35]OFD Sender: Processing packet 111266 [packets to send 38, broken 37] [08:25:35]ProducePacketName [08:25:35]name=ofd_packets/00111266 [08:25:35]OFD Sender: To server: pG, [08:25:35]CommunicateWithHost lk.salyk.kg:30040 [08:25:35]ConnectInit lk.salyk.kg [08:25:35]written 0, free lines is 4095 [08:25:35]Connected sock=9 [08:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C 47 07 01 87 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 18 96 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B2 01 00 35 04 06 00 2B 36 02 A0 94 89 0D C2 23 F3 FB 98 F1 CF [08:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 04 4B 47 00 58 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 35 30 38 33 10 04 04 00 A2 B2 01 00 F4 03 04 00 87 2D 72 66 B6 04 01 00 00 97 8F 91 40 F7 17 89 EC [08:25:35]CommunicateWithHost err = 0 [08:25:35]CheckOFDResponse [08:25:35]1017 (14) - 77093643461234 [08:25:35]1041 (16) - 0000000000875083 [08:25:35]1040 (4) - 111266 [08:25:35]1012 (4) - 19.06.2024 00:59 [08:25:35]1206 (1) - 0 [08:25:35]OFD Sender: Remove packet 111266 [08:25:35]ProducePacketName [08:25:35]name=ofd_packets/00111266 [08:25:35]NVStorageDeleteData [08:25:35]Write to MH i2c: 01 00 00 7F 3E BD [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: 01 07 00 7F 3E 00 00 00 00 00 D7 0C A7 [08:25:35]RasterBufferAndPrint [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]line [08:25:35]written 0, free lines is 3295 [08:25:35]MH_Cut [08:25:35]Write to MH i2c: D1 01 00 86 3E 01 96 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 01 00 [08:25:35]MH_I2C_Read... [08:25:35]Read from MH i2c: D1 01 00 86 3E 00 95 [08:25:35]Write to MH i2c: 01 00 00 87 3E C5 [08:25:35]Write i2c OK [08:25:35]MH_I2C_Read... [08:25:36]OFD Sender: No OFD packet to send [08:25:36]*** Cut start [08:25:36]*** Partial cut [08:25:36]*** CUTSNS_PIN = 1 [08:25:36]*** CUTSNS_PIN = 0 [08:25:36]*** Brake cut motor [08:25:37]Read from MH i2c: 01 [08:25:37]MH_I2C_Read... [08:25:37]*** Stop cut motor [08:25:37]*** Cut end [08:25:37]Read from MH i2c: 01 07 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: 01 07 00 87 3E 00 00 00 00 00 FF 0F DA [08:25:37]process_action close_receipt done [08:25:37]requested_data is exist [08:25:37]produce_requested_data [08:25:37]requested_item fm.sn is exist - process it [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 11 00 00 [08:25:37]Write to MH i2c: E2 08 00 88 3E 80 11 00 00 00 00 00 00 40 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 17 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 17 00 88 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [08:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:25:37]wFMCommunicate OK [08:25:37]requested_item fd.num is exist - process it [08:25:37]SAM_PROTO_GetFieldsCounters [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 13 00 00 [08:25:37]Write to MH i2c: E2 08 00 89 3E 80 13 00 00 00 00 00 00 43 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 62 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 62 00 89 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [08:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:37]wFMCommunicate OK [08:25:37]SAM_PROTO_GetFieldsCounters done [08:25:37]requested_item shift.num is exist - process it [08:25:37]requested_item shift.opened is exist - process it [08:25:37]req_shift_opened [08:25:37]FM_GetShiftState [08:25:37]SAM_PROTO_GetShiftState [08:25:37]wFMCommunicate request_size=4 [08:25:37]MH_SAM_APDU [08:25:37]CAPDU: 80 13 01 00 [08:25:37]Write to MH i2c: E2 08 00 8A 3E 80 13 01 00 00 00 00 00 45 [08:25:37]Write i2c OK [08:25:37]MH_I2C_Read... [08:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:37]Read from MH i2c: E2 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 0E 00 [08:25:37]MH_I2C_Read... [08:25:37]Read from MH i2c: E2 0E 00 8A 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8F [08:25:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:25:37]wFMCommunicate OK [08:25:37]SAM_PROTO_GetShiftState done [08:25:37]FM_GetShiftState done [08:25:37]req_shift_opened done [08:25:37]requested_item shift.open_date is exist - process it [08:25:37]req_shift_open_date [08:25:37]req_shift_open_date done [08:25:37]produce_requested_data done [08:25:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111266,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [08:25:37]process_action_free close_receipt [08:25:37]json_value_free [08:25:37]json_value_free done [08:25:37]process_json_proto returns [08:25:37]Send response to host [08:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111266,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [08:25:37]free response buf [08:25:37]execute_script done [08:25:37]execute_script returns [08:25:37]free content buf [08:25:37]Sock 10.Close socket [08:25:37]Sock 10.Thread stoped [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:07]OFD Sender: No OFD packet to send [08:41:12]OFD Sender: No OFD packet to send [08:41:17]OFD Sender: No OFD packet to send [08:41:22]OFD Sender: No OFD packet to send [08:41:27]OFD Sender: No OFD packet to send [08:41:32]OFD Sender: No OFD packet to send [08:41:37]OFD Sender: No OFD packet to send [08:41:42]OFD Sender: No OFD packet to send [08:41:47]OFD Sender: No OFD packet to send [08:41:52]OFD Sender: No OFD packet to send [08:41:57]OFD Sender: No OFD packet to send [08:42:02]OFD Sender: No OFD packet to send [08:42:07]OFD Sender: No OFD packet to send [08:42:12]OFD Sender: No OFD packet to send [08:42:17]OFD Sender: No OFD packet to send [08:42:22]OFD Sender: No OFD packet to send [08:42:27]OFD Sender: No OFD packet to send [08:42:32]OFD Sender: No OFD packet to send [08:42:37]OFD Sender: No OFD packet to send [08:42:42]OFD Sender: No OFD packet to send [08:42:47]OFD Sender: No OFD packet to send [08:42:52]OFD Sender: No OFD packet to send [08:42:57]OFD Sender: No OFD packet to send [08:43:02]OFD Sender: No OFD packet to send [08:43:07]OFD Sender: No OFD packet to send [08:43:12]OFD Sender: No OFD packet to send [08:43:17]OFD Sender: No OFD packet to send [08:43:22]OFD Sender: No OFD packet to send [08:43:27]OFD Sender: No OFD packet to send [08:43:32]OFD Sender: No OFD packet to send [08:43:37]OFD Sender: No OFD packet to send [08:43:42]OFD Sender: No OFD packet to send [08:43:47]OFD Sender: No OFD packet to send [08:43:52]OFD Sender: No OFD packet to send [08:43:57]OFD Sender: No OFD packet to send [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:32]accept exits with 8 [08:48:32]New connection [08:48:32]New thread 3067084132 created [08:48:32]Thread 3067227492 joined [08:48:32]Waiting for new connection... [08:48:32] Sock 8.Parse request [08:48:32]Sock 8.Check first char [08:48:32]Sock 8.First char is OK [08:48:32]request: POST /json_proto HTTP/1.0 [08:48:32]Method: POST [08:48:32]URL: /json_proto [08:48:32]Method is POST - this is cgi request [08:48:32]url: /json_proto [08:48:32]query_string will be loaded in cgi processing [08:48:32]execute_cgi json_proto POST (null) [08:48:32]execute_cgi path=json_proto method=POST [08:48:32]POST find Content-Length [08:48:32]Host: 172.17.59.68:8080 [08:48:32]Content-Length: 677 [08:48:32]Content-Type: application/json [08:48:32] [08:48:32]POST finish read [08:48:32]Found Content-Length = 677 [08:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:32]execute_script... [08:48:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:32]POST & json_proto [08:48:32]process_json_proto [08:48:32]json parsed OK: [08:48:32]protocol is kg_v1.0 [08:48:32]action value=close_receipt [08:48:32]process_action close_receipt [08:48:32]cmd_close_receipt [08:48:32]MH_GetDate [08:48:32]Write to MH i2c: F0 00 00 8B 3E B8 [08:48:32]Write i2c OK [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: F0 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: F0 09 00 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: F0 09 00 8B 3E 00 7C 9B 72 66 BC EC 60 65 1D [08:48:32]GetLastDocTimeStamp 1718785560 [08:48:32]current date 1718786940 [08:48:32]FM_GetShiftState [08:48:32]SAM_PROTO_GetShiftState [08:48:32]wFMCommunicate request_size=4 [08:48:32]MH_SAM_APDU [08:48:32]CAPDU: 80 13 01 00 [08:48:32]Write to MH i2c: E2 08 00 8C 3E 80 13 01 00 00 00 00 00 47 [08:48:32]Write i2c OK [08:48:32]MH_I2C_Read... [08:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:32]Read from MH i2c: E2 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: E2 0E 00 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: E2 0E 00 8C 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 91 [08:48:32]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:48:32]wFMCommunicate OK [08:48:32]SAM_PROTO_GetShiftState done [08:48:32]FM_GetShiftState done [08:48:32]opened in 1718760753 [08:48:32]opened+sec_in_day 1718847153 [08:48:32]quantity*price = 50065 [08:48:32]sum+1 = 50067 [08:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 16 19.06.2024 08:49 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111267 ФПД: 2882587714815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T084900&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111267&fm=2882587714815&tin=02508201610067®Number=0000000000092771&sum=50000 [08:48:33]StoreToDocumentArchive [08:48:33]shift 388 fd 111267 [08:48:33]save to /storage/0388/doc_00111267 [08:48:33]save last doc name /storage/0388/doc_00111267 to /storage/kkm_last_doc_name [08:48:33]save OK [08:48:33]Clear old archive folders... [08:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:33]tlvbuf is 019E0140 [08:48:33]SAM_PROTO_ClearQueue [08:48:33]wFMCommunicate request_size=4 [08:48:33]MH_SAM_APDU [08:48:33]CAPDU: 80 09 00 00 [08:48:33]Write to MH i2c: E2 08 00 99 3E 80 09 00 00 00 00 00 00 49 [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:33]Read from MH i2c: E2 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 03 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 03 00 99 3E 00 90 00 4B [08:48:33]RAPDU: 90 00 [08:48:33]wFMCommunicate OK [08:48:33]SAM_PROTO_ClearQueue done [08:48:33]KKMCreateOFDPacket [08:48:33]OFDProtocolAddRootSTLVToBuf [08:48:33]FM_MakeSignedData [08:48:33]FM_MakeSignedData [08:48:33]SAM_PROTO_SignData [08:48:33]wFMCommunicate request_size=4 [08:48:33]MH_SAM_APDU [08:48:33]CAPDU: 80 0D 01 02 [08:48:33]Write to MH i2c: E2 08 00 9A 3E 80 0D 01 02 00 00 00 00 51 [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:33]Read from MH i2c: E2 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 03 00 [08:48:33]MH_I2C_Read... [08:48:33]Read from MH i2c: E2 03 00 9A 3E 00 90 00 4C [08:48:33]RAPDU: 90 00 [08:48:33]wFMCommunicate OK [08:48:33]wFMCommunicate request_size=255 [08:48:33]MH_SAM_APDU [08:48: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 7C 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B2 01 00 35 04 06 00 02 [08:48:33]Write to MH i2c: E2 02 01 9B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 7C 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B2 01 00 35 04 06 00 02 00 00 E1 [08:48:33]Write i2c OK [08:48:33]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 9B 3E 00 90 00 4D [08:48:34]RAPDU: 90 00 [08:48:34]wFMCommunicate OK [08:48:34]wFMCommunicate request_size=10 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 0D 02 02 05 9F 27 9D E4 FF [08:48:34]Write to MH i2c: E2 0D 00 9C 3E 80 0D 02 02 05 00 9F 27 9D E4 FF 00 00 A4 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 9C 3E 00 90 00 4E [08:48:34]RAPDU: 90 00 [08:48:34]wFMCommunicate OK [08:48:34]wFMCommunicate request_size=4 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 0D 03 02 [08:48:34]Write to MH i2c: E2 08 00 9D 3E 80 0D 03 02 00 00 00 00 56 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 0B 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 0B 00 9D 3E 00 43 9F BA CE B7 5A AA CB 90 00 47 [08:48:34]RAPDU: 43 9F BA CE B7 5A AA CB 90 00 [08:48:34]wFMCommunicate OK [08:48:34]SAM_PROTO_SignData done [08:48:34]FM_MakeSignedData done [08:48:34]CreateOFDProtocolMessage [08:48:34]wFMCommunicate request_size=4 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 11 00 00 [08:48:34]Write to MH i2c: E2 08 00 9E 3E 80 11 00 00 00 00 00 00 56 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 17 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 17 00 9E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [08:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:48:34]wFMCommunicate OK [08:48:34]CreateOFDProtocolMessage done [08:48:34]OFDSenderStorePacket 111267 [08:48:34]StoreOFDPacket docnum=111267 [08:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 95 07 01 C4 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 7C 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B2 01 00 35 04 06 00 02 9F 27 9D E4 FF 43 9F BA CE B7 5A AA CB [08:48:34]CheckFolder [08:48:34]dirname=/storage/ofd_packets [08:48:34]CheckFolder done [08:48:34]ProducePacketName [08:48:34]name=ofd_packets/00111267 [08:48:34]NVStorageSaveData ofd_packets/00111267 [08:48:34]File name is /storage/ofd_packets/00111267 [08:48:34]Write 301 bytes [08:48:34]NVStorageSaveData done [08:48:34]OFDSenderStorePacket done [08:48:34]KKMCreateOFDPacket done [08:48:34]NVStorageSaveData kkm_last_timestamp [08:48:34]File name is /storage/kkm_last_timestamp [08:48:34]Write 4 bytes [08:48:34]NVStorageSaveData done [08:48:34]ExternCall_PrintAddStr [08:48:34]wPrintStart [08:48:34]Write to MH i2c: 01 00 00 9F 3E DD [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 07 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 07 00 9F 3E 00 00 00 00 00 FF 0F F2 [08:48:34]RasterBufferAndPrint [08:48:34]line Счет N : (1)319834 [08:48:34]line ИНН: 02508201610067 [08:48:34]line Контрольно-Кассовый Чек [08:48:34]line ПРОДАЖА [08:48:34]line ТРК (МРК, ГНК) : 11 [08:48:34]line Товар: 2710124130 [08:48:34]line Аи-92-К-5 [08:48:34]line 7.540 * 66.40 [08:48:34]line = 500.66 [08:48:34]line НДС 12% НСП 1% [08:48:34]line > о реализуемом товаре [08:48:34]line ОКРУГЛЕНИЕ: -0.66 [08:48:34]line ИТОГО: 500.00 [08:48:34]line Внесено: 500.00 [08:48:34]line СДАЧА: 0.00 [08:48:34]line НСП 1% : 4.43 [08:48:34]line НДС 12% : 53.17 [08:48:34]line Наличными: 500.00 [08:48:34]line Безнал.: 0.00 [08:48:34]line Место: АЗС № 65 "Партнер Нефть" [08:48:34]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:48:34]line СНО: Общий режим [08:48:34]line Чек 16 19.06.2024 08:49 [08:48:34]line Смена: 388 ФФД: 1.0 [08:48:34]line ЗНМ: 0300000198 [08:48:34]line РНМ: 0000000000092771 [08:48:34]line Версия ККМ: 001 [08:48:34]line ФМ: 0000000000875083 [08:48:34]line ФД: 111267 [08:48:34]line ФПД: 2882587714815 [08:48:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T084900&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111267&fm=2882587714815&tin=02508201610067®Number=0000000000092771&sum=50000 [08:48:34]OFD Sender: Processing packet 111267 [packets to send 38, broken 37] [08:48:34]ProducePacketName [08:48:34]name=ofd_packets/00111267 [08:48:34]OFD Sender: To server: pG, [08:48:34]CommunicateWithHost lk.salyk.kg:30040 [08:48:34]ConnectInit lk.salyk.kg [08:48:34]written 0, free lines is 4095 [08:48:34]Connected sock=9 [08:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 95 07 01 C4 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 7C 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B2 01 00 35 04 06 00 02 9F 27 9D E4 FF 43 9F BA CE B7 5A AA CB [08:48:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 65 47 00 57 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 35 30 38 33 10 04 04 00 A3 B2 01 00 F4 03 04 00 EA 32 72 66 B6 04 01 00 00 AC 2A 36 B8 03 30 80 0E [08:48:34]CommunicateWithHost err = 0 [08:48:34]CheckOFDResponse [08:48:34]1017 (14) - 77093643461234 [08:48:34]1041 (16) - 0000000000875083 [08:48:34]1040 (4) - 111267 [08:48:34]1012 (4) - 19.06.2024 01:22 [08:48:34]1206 (1) - 0 [08:48:34]OFD Sender: Remove packet 111267 [08:48:34]ProducePacketName [08:48:34]name=ofd_packets/00111267 [08:48:34]NVStorageDeleteData [08:48:34]Write to MH i2c: 01 00 00 CA 3E 08 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 07 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 07 00 CA 3E 00 00 00 00 00 C7 0C E2 [08:48:34]RasterBufferAndPrint [08:48:34]line [08:48:34]line [08:48:34]line [08:48:34]line [08:48:34]line [08:48:35]written 0, free lines is 3277 [08:48:35]MH_Cut [08:48:35]Write to MH i2c: D1 01 00 D1 3E 01 E1 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 01 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 01 00 D1 3E 00 E0 [08:48:35]Write to MH i2c: 01 00 00 D2 3E 10 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]OFD Sender: No OFD packet to send [08:48:35]*** Cut start [08:48:35]*** Partial cut [08:48:35]*** CUTSNS_PIN = 1 [08:48:35]*** CUTSNS_PIN = 0 [08:48:36]*** Brake cut motor [08:48:36]Read from MH i2c: 01 [08:48:36]MH_I2C_Read... [08:48:36]*** Stop cut motor [08:48:36]*** Cut end [08:48:36]Read from MH i2c: 01 07 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: 01 07 00 D2 3E 00 00 00 00 00 FF 0F 25 [08:48:36]process_action close_receipt done [08:48:36]requested_data is exist [08:48:36]produce_requested_data [08:48:36]requested_item fm.sn is exist - process it [08:48:36]wFMCommunicate request_size=4 [08:48:36]MH_SAM_APDU [08:48:36]CAPDU: 80 11 00 00 [08:48:36]Write to MH i2c: E2 08 00 D3 3E 80 11 00 00 00 00 00 00 8B [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:36]Read from MH i2c: E2 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 17 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 17 00 D3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [08:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:48:36]wFMCommunicate OK [08:48:36]requested_item fd.num is exist - process it [08:48:36]SAM_PROTO_GetFieldsCounters [08:48:36]wFMCommunicate request_size=4 [08:48:36]MH_SAM_APDU [08:48:36]CAPDU: 80 13 00 00 [08:48:36]Write to MH i2c: E2 08 00 D4 3E 80 13 00 00 00 00 00 00 8E [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:36]Read from MH i2c: E2 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 62 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 62 00 D4 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [08:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:36]wFMCommunicate OK [08:48:36]SAM_PROTO_GetFieldsCounters done [08:48:36]requested_item shift.num is exist - process it [08:48:36]requested_item shift.opened is exist - process it [08:48:36]req_shift_opened [08:48:36]FM_GetShiftState [08:48:36]SAM_PROTO_GetShiftState [08:48:36]wFMCommunicate request_size=4 [08:48:36]MH_SAM_APDU [08:48:36]CAPDU: 80 13 01 00 [08:48:36]Write to MH i2c: E2 08 00 D5 3E 80 13 01 00 00 00 00 00 90 [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:36]Read from MH i2c: E2 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 0E 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 0E 00 D5 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DA [08:48:36]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:48:36]wFMCommunicate OK [08:48:36]SAM_PROTO_GetShiftState done [08:48:36]FM_GetShiftState done [08:48:36]req_shift_opened done [08:48:36]requested_item shift.open_date is exist - process it [08:48:36]req_shift_open_date [08:48:36]req_shift_open_date done [08:48:36]produce_requested_data done [08:48:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111267,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [08:48:36]process_action_free close_receipt [08:48:36]json_value_free [08:48:36]json_value_free done [08:48:36]process_json_proto returns [08:48:36]Send response to host [08:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111267,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [08:48:36]free response buf [08:48:36]execute_script done [08:48:36]execute_script returns [08:48:36]free content buf [08:48:36]Sock 8.Close socket [08:48:36]Sock 8.Thread stoped [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:47]accept exits with 10 [08:48:47]New connection [08:48:47]New thread 3067227492 created [08:48:47]Thread 3067084132 joined [08:48:47]Waiting for new connection... [08:48:47] Sock 10.Parse request [08:48:47]Sock 10.Check first char [08:48:47]Sock 10.First char is OK [08:48:47]request: POST /json_proto HTTP/1.0 [08:48:47]Method: POST [08:48:47]URL: /json_proto [08:48:47]Method is POST - this is cgi request [08:48:47]url: /json_proto [08:48:47]query_string will be loaded in cgi processing [08:48:47]execute_cgi json_proto POST (null) [08:48:47]execute_cgi path=json_proto method=POST [08:48:47]POST find Content-Length [08:48:47]Host: 172.17.59.68:8080 [08:48:47]Content-Length: 675 [08:48:47]Content-Type: application/json [08:48:47] [08:48:47]POST finish read [08:48:47]Found Content-Length = 675 [08:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:47]execute_script... [08:48:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:47]POST & json_proto [08:48:47]process_json_proto [08:48:47]json parsed OK: [08:48:47]protocol is kg_v1.0 [08:48:47]action value=close_receipt [08:48:47]process_action close_receipt [08:48:47]cmd_close_receipt [08:48:47]MH_GetDate [08:48:47]Write to MH i2c: F0 00 00 D6 3E 03 [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: F0 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: F0 09 00 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: F0 09 00 D6 3E 00 8B 9B 72 66 BC EC 60 65 77 [08:48:47]GetLastDocTimeStamp 1718786940 [08:48:47]current date 1718786955 [08:48:47]FM_GetShiftState [08:48:47]SAM_PROTO_GetShiftState [08:48:47]wFMCommunicate request_size=4 [08:48:47]MH_SAM_APDU [08:48:47]CAPDU: 80 13 01 00 [08:48:47]Write to MH i2c: E2 08 00 D7 3E 80 13 01 00 00 00 00 00 92 [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:47]Read from MH i2c: E2 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: E2 0E 00 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: E2 0E 00 D7 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DC [08:48:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:48:47]wFMCommunicate OK [08:48:47]SAM_PROTO_GetShiftState done [08:48:47]FM_GetShiftState done [08:48:47]opened in 1718760753 [08:48:47]opened+sec_in_day 1718847153 [08:48:47]quantity*price = 73045 [08:48:47]sum+1 = 73047 [08:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 17 19.06.2024 08:49 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111268 ФПД: 259563246476785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T084915&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111268&fm=259563246476785&tin=02508201610067®Number=0000000000092771&sum=73000 [08:48:48]StoreToDocumentArchive [08:48:48]shift 388 fd 111268 [08:48:48]save to /storage/0388/doc_00111268 [08:48:48]save last doc name /storage/0388/doc_00111268 to /storage/kkm_last_doc_name [08:48:48]save OK [08:48:48]Clear old archive folders... [08:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:48]tlvbuf is 019D7AE0 [08:48:48]SAM_PROTO_ClearQueue [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 09 00 00 [08:48:48]Write to MH i2c: E2 08 00 E4 3E 80 09 00 00 00 00 00 00 94 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 E4 3E 00 90 00 96 [08:48:48]RAPDU: 90 00 [08:48:48]wFMCommunicate OK [08:48:48]SAM_PROTO_ClearQueue done [08:48:48]KKMCreateOFDPacket [08:48:48]OFDProtocolAddRootSTLVToBuf [08:48:48]FM_MakeSignedData [08:48:48]FM_MakeSignedData [08:48:48]SAM_PROTO_SignData [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 0D 01 02 [08:48:48]Write to MH i2c: E2 08 00 E5 3E 80 0D 01 02 00 00 00 00 9C [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 03 00 E5 3E 00 90 00 97 [08:48:48]RAPDU: 90 00 [08:48:48]wFMCommunicate OK [08:48:48]wFMCommunicate request_size=255 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 8B 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B2 01 00 35 04 06 00 EC 12 47 1A [08:48:48]Write to MH i2c: E2 02 01 E6 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 8B 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B2 01 00 35 04 06 00 EC 12 47 1A 00 00 17 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 E6 3E 00 90 00 98 [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]wFMCommunicate request_size=7 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 02 02 02 5D F1 [08:48:49]Write to MH i2c: E2 0A 00 E7 3E 80 0D 02 02 02 00 5D F1 00 00 F1 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 E7 3E 00 90 00 99 [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 03 02 [08:48:49]Write to MH i2c: E2 08 00 E8 3E 80 0D 03 02 00 00 00 00 A1 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 0B 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 0B 00 E8 3E 00 F2 E2 FD 11 75 80 7F 63 90 00 5B [08:48:49]RAPDU: F2 E2 FD 11 75 80 7F 63 90 00 [08:48:49]wFMCommunicate OK [08:48:49]SAM_PROTO_SignData done [08:48:49]FM_MakeSignedData done [08:48:49]CreateOFDProtocolMessage [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 11 00 00 [08:48:49]Write to MH i2c: E2 08 00 E9 3E 80 11 00 00 00 00 00 00 A1 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 17 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 17 00 E9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [08:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:48:49]wFMCommunicate OK [08:48:49]CreateOFDProtocolMessage done [08:48:49]OFDSenderStorePacket 111268 [08:48:49]StoreOFDPacket docnum=111268 [08:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F9 2C 04 01 7C 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 8B 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B2 01 00 35 04 06 00 EC 12 47 1A 5D F1 F2 E2 FD 11 75 80 7F 63 [08:48:49]CheckFolder [08:48:49]dirname=/storage/ofd_packets [08:48:49]CheckFolder done [08:48:49]ProducePacketName [08:48:49]name=ofd_packets/00111268 [08:48:49]NVStorageSaveData ofd_packets/00111268 [08:48:49]File name is /storage/ofd_packets/00111268 [08:48:49]Write 298 bytes [08:48:49]NVStorageSaveData done [08:48:49]OFDSenderStorePacket done [08:48:49]KKMCreateOFDPacket done [08:48:49]NVStorageSaveData kkm_last_timestamp [08:48:49]File name is /storage/kkm_last_timestamp [08:48:49]Write 4 bytes [08:48:49]NVStorageSaveData done [08:48:49]ExternCall_PrintAddStr [08:48:49]wPrintStart [08:48:49]Write to MH i2c: 01 00 00 EA 3E 28 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 07 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 07 00 EA 3E 00 00 00 00 00 FF 0F 3D [08:48:49]RasterBufferAndPrint [08:48:49]line Счет N : (1)319835 [08:48:49]line ИНН: 02508201610067 [08:48:49]line Контрольно-Кассовый Чек [08:48:49]line ПРОДАЖА [08:48:49]line ТРК (МРК, ГНК) : 22 [08:48:49]line Товар: 2710194210 [08:48:49]line ДТ-К-5 [08:48:49]line 10.020 * 72.90 [08:48:49]line = 730.46 [08:48:49]line НДС 12% НСП 1% [08:48:49]line > о реализуемом товаре [08:48:49]line ОКРУГЛЕНИЕ: -0.46 [08:48:49]line ИТОГО: 730.00 [08:48:49]line Внесено: 730.00 [08:48:49]line СДАЧА: 0.00 [08:48:49]line НСП 1% : 6.46 [08:48:49]line НДС 12% : 77.57 [08:48:49]line Наличными: 730.00 [08:48:49]line Безнал.: 0.00 [08:48:49]line Место: АЗС № 65 "Партнер Нефть" [08:48:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:48:49]line СНО: Общий режим [08:48:49]line Чек 17 19.06.2024 08:49 [08:48:49]line Смена: 388 ФФД: 1.0 [08:48:49]line ЗНМ: 0300000198 [08:48:49]line РНМ: 0000000000092771 [08:48:49]line Версия ККМ: 001 [08:48:49]line ФМ: 0000000000875083 [08:48:49]line ФД: 111268 [08:48:49]line ФПД: 259563246476785 [08:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T084915&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111268&fm=259563246476785&tin=02508201610067®Number=0000000000092771&sum=73000 [08:48:49]OFD Sender: Processing packet 111268 [packets to send 38, broken 37] [08:48:49]ProducePacketName [08:48:49]name=ofd_packets/00111268 [08:48:49]OFD Sender: To server: pG, [08:48:49]CommunicateWithHost lk.salyk.kg:30040 [08:48:49]ConnectInit lk.salyk.kg [08:48:49]written 0, free lines is 4095 [08:48:49]Connected sock=9 [08:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F9 2C 04 01 7C 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 8B 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B2 01 00 35 04 06 00 EC 12 47 1A 5D F1 F2 E2 FD 11 75 80 7F 63 [08:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F2 28 47 00 5F 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B2 01 00 F4 03 04 00 F9 32 72 66 B6 04 01 00 00 25 1B 6E 79 E5 76 86 A5 [08:48:49]CommunicateWithHost err = 0 [08:48:49]CheckOFDResponse [08:48:49]1017 (14) - 77093643461234 [08:48:49]1041 (16) - 0000000000875083 [08:48:49]1040 (4) - 111268 [08:48:49]1012 (4) - 19.06.2024 01:23 [08:48:49]1206 (1) - 0 [08:48:49]OFD Sender: Remove packet 111268 [08:48:49]ProducePacketName [08:48:49]name=ofd_packets/00111268 [08:48:49]NVStorageDeleteData [08:48:50]Write to MH i2c: 01 00 00 15 3F 54 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 15 3F 00 00 00 00 00 D8 0C 3F [08:48:50]RasterBufferAndPrint [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]written 0, free lines is 3295 [08:48:50]MH_Cut [08:48:50]Write to MH i2c: D1 01 00 1C 3F 01 2D [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 01 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 01 00 1C 3F 00 2C [08:48:50]Write to MH i2c: 01 00 00 1D 3F 5C [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]OFD Sender: No OFD packet to send [08:48:50]*** Cut start [08:48:50]*** Partial cut [08:48:50]*** CUTSNS_PIN = 1 [08:48:50]*** CUTSNS_PIN = 0 [08:48:51]*** Brake cut motor [08:48:51]Read from MH i2c: 01 [08:48:51]MH_I2C_Read... [08:48:51]*** Stop cut motor [08:48:51]*** Cut end [08:48:51]Read from MH i2c: 01 07 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: 01 07 00 1D 3F 00 00 00 00 00 FF 0F 71 [08:48:51]process_action close_receipt done [08:48:51]requested_data is exist [08:48:51]produce_requested_data [08:48:51]requested_item fm.sn is exist - process it [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 11 00 00 [08:48:51]Write to MH i2c: E2 08 00 1E 3F 80 11 00 00 00 00 00 00 D7 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 17 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 17 00 1E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [08:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:48:51]wFMCommunicate OK [08:48:51]requested_item fd.num is exist - process it [08:48:51]SAM_PROTO_GetFieldsCounters [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 13 00 00 [08:48:51]Write to MH i2c: E2 08 00 1F 3F 80 13 00 00 00 00 00 00 DA [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 62 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 62 00 1F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [08:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:51]wFMCommunicate OK [08:48:51]SAM_PROTO_GetFieldsCounters done [08:48:51]requested_item shift.num is exist - process it [08:48:51]requested_item shift.opened is exist - process it [08:48:51]req_shift_opened [08:48:51]FM_GetShiftState [08:48:51]SAM_PROTO_GetShiftState [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 13 01 00 [08:48:51]Write to MH i2c: E2 08 00 20 3F 80 13 01 00 00 00 00 00 DC [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 20 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 26 [08:48:51]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:48:51]wFMCommunicate OK [08:48:51]SAM_PROTO_GetShiftState done [08:48:51]FM_GetShiftState done [08:48:51]req_shift_opened done [08:48:51]requested_item shift.open_date is exist - process it [08:48:51]req_shift_open_date [08:48:51]req_shift_open_date done [08:48:51]produce_requested_data done [08:48:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111268,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [08:48:51]process_action_free close_receipt [08:48:51]json_value_free [08:48:51]json_value_free done [08:48:51]process_json_proto returns [08:48:51]Send response to host [08:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111268,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [08:48:51]free response buf [08:48:51]execute_script done [08:48:51]execute_script returns [08:48:51]free content buf [08:48:51]Sock 10.Close socket [08:48:51]Sock 10.Thread stoped [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:26]accept exits with 8 [08:50:26]New connection [08:50:26]New thread 3067084132 created [08:50:26]Thread 3067227492 joined [08:50:26]Waiting for new connection... [08:50:26] Sock 8.Parse request [08:50:26]Sock 8.Check first char [08:50:26]Sock 8.First char is OK [08:50:26]request: POST /json_proto HTTP/1.0 [08:50:26]Method: POST [08:50:26]URL: /json_proto [08:50:26]Method is POST - this is cgi request [08:50:26]url: /json_proto [08:50:26]query_string will be loaded in cgi processing [08:50:26]execute_cgi json_proto POST (null) [08:50:26]execute_cgi path=json_proto method=POST [08:50:26]POST find Content-Length [08:50:26]Host: 172.17.59.68:8080 [08:50:26]Content-Length: 677 [08:50:26]Content-Type: application/json [08:50:26] [08:50:26]POST finish read [08:50:26]Found Content-Length = 677 [08:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:50:26]execute_script... [08:50: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)319836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:50:26]POST & json_proto [08:50:26]process_json_proto [08:50:26]json parsed OK: [08:50:26]protocol is kg_v1.0 [08:50:26]action value=close_receipt [08:50:26]process_action close_receipt [08:50:26]cmd_close_receipt [08:50:26]MH_GetDate [08:50:26]Write to MH i2c: F0 00 00 21 3F 4F [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 09 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: F0 09 00 21 3F 00 ED 9B 72 66 BC EC 60 65 25 [08:50:26]GetLastDocTimeStamp 1718786955 [08:50:26]current date 1718787053 [08:50:26]FM_GetShiftState [08:50:26]SAM_PROTO_GetShiftState [08:50:26]wFMCommunicate request_size=4 [08:50:26]MH_SAM_APDU [08:50:26]CAPDU: 80 13 01 00 [08:50:26]Write to MH i2c: E2 08 00 22 3F 80 13 01 00 00 00 00 00 DE [08:50:26]Write i2c OK [08:50:26]MH_I2C_Read... [08:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:26]Read from MH i2c: E2 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 0E 00 [08:50:26]MH_I2C_Read... [08:50:26]Read from MH i2c: E2 0E 00 22 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 28 [08:50:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:50:26]wFMCommunicate OK [08:50:26]SAM_PROTO_GetShiftState done [08:50:26]FM_GetShiftState done [08:50:26]opened in 1718760753 [08:50:26]opened+sec_in_day 1718847153 [08:50:26]quantity*price = 30012 [08:50:26]sum+1 = 30014 [08:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 18 19.06.2024 08:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111269 ФПД: 61137226901604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T085053&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111269&fm=61137226901604&tin=02508201610067®Number=0000000000092771&sum=30000 [08:50:27]StoreToDocumentArchive [08:50:27]shift 388 fd 111269 [08:50:27]save to /storage/0388/doc_00111269 [08:50:27]save last doc name /storage/0388/doc_00111269 to /storage/kkm_last_doc_name [08:50:27]save OK [08:50:27]Clear old archive folders... [08:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:27]tlvbuf is B6DEB2D0 [08:50:27]SAM_PROTO_ClearQueue [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 09 00 00 [08:50:27]Write to MH i2c: E2 08 00 2F 3F 80 09 00 00 00 00 00 00 E0 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 2F 3F 00 90 00 E2 [08:50:27]RAPDU: 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_ClearQueue done [08:50:27]KKMCreateOFDPacket [08:50:27]OFDProtocolAddRootSTLVToBuf [08:50:27]FM_MakeSignedData [08:50:27]FM_MakeSignedData [08:50:27]SAM_PROTO_SignData [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 0D 01 02 [08:50:27]Write to MH i2c: E2 08 00 30 3F 80 0D 01 02 00 00 00 00 E8 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 30 3F 00 90 00 E3 [08:50:27]RAPDU: 90 00 [08:50:27]wFMCommunicate OK [08:50:27]wFMCommunicate request_size=255 [08:50:27]MH_SAM_APDU [08:50: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 12 00 00 00 F4 03 04 00 ED 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B2 01 00 35 04 06 00 37 [08:50:27]Write to MH i2c: E2 02 01 31 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 12 00 00 00 F4 03 04 00 ED 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B2 01 00 35 04 06 00 37 00 00 C0 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 31 3F 00 90 00 E4 [08:50:27]RAPDU: 90 00 [08:50:27]wFMCommunicate OK [08:50:27]wFMCommunicate request_size=10 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 0D 02 02 05 9A 9E B1 28 64 [08:50:27]Write to MH i2c: E2 0D 00 32 3F 80 0D 02 02 05 00 9A 9E B1 28 64 00 00 6A [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 03 00 32 3F 00 90 00 E5 [08:50:27]RAPDU: 90 00 [08:50:27]wFMCommunicate OK [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 0D 03 02 [08:50:27]Write to MH i2c: E2 08 00 33 3F 80 0D 03 02 00 00 00 00 ED [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0B 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0B 00 33 3F 00 09 56 2D E7 0B 01 97 56 90 00 5A [08:50:27]RAPDU: 09 56 2D E7 0B 01 97 56 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_SignData done [08:50:27]FM_MakeSignedData done [08:50:27]CreateOFDProtocolMessage [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 11 00 00 [08:50:27]Write to MH i2c: E2 08 00 34 3F 80 11 00 00 00 00 00 00 ED [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 17 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 17 00 34 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [08:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:50:27]wFMCommunicate OK [08:50:27]CreateOFDProtocolMessage done [08:50:27]OFDSenderStorePacket 111269 [08:50:27]StoreOFDPacket docnum=111269 [08:50:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 12 07 01 7B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 12 00 00 00 F4 03 04 00 ED 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B2 01 00 35 04 06 00 37 9A 9E B1 28 64 09 56 2D E7 0B 01 97 56 [08:50:27]CheckFolder [08:50:27]dirname=/storage/ofd_packets [08:50:27]CheckFolder done [08:50:27]ProducePacketName [08:50:27]name=ofd_packets/00111269 [08:50:27]NVStorageSaveData ofd_packets/00111269 [08:50:27]File name is /storage/ofd_packets/00111269 [08:50:27]Write 301 bytes [08:50:27]NVStorageSaveData done [08:50:27]OFDSenderStorePacket done [08:50:27]KKMCreateOFDPacket done [08:50:27]NVStorageSaveData kkm_last_timestamp [08:50:27]File name is /storage/kkm_last_timestamp [08:50:27]Write 4 bytes [08:50:27]NVStorageSaveData done [08:50:27]ExternCall_PrintAddStr [08:50:27]wPrintStart [08:50:27]Write to MH i2c: 01 00 00 35 3F 74 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: 01 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: 01 07 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: 01 07 00 35 3F 00 00 00 00 00 FF 0F 89 [08:50:27]RasterBufferAndPrint [08:50:27]line Счет N : (1)319836 [08:50:27]line ИНН: 02508201610067 [08:50:27]line Контрольно-Кассовый Чек [08:50:27]line ПРОДАЖА [08:50:27]line ТРК (МРК, ГНК) : 11 [08:50:27]line Товар: 2710124130 [08:50:27]line Аи-92-К-5 [08:50:27]line 4.520 * 66.40 [08:50:27]line = 300.13 [08:50:27]line НДС 12% НСП 1% [08:50:27]line > о реализуемом товаре [08:50:27]line ОКРУГЛЕНИЕ: -0.13 [08:50:27]line ИТОГО: 300.00 [08:50:27]line Внесено: 300.00 [08:50:27]line СДАЧА: 0.00 [08:50:27]line НСП 1% : 2.66 [08:50:27]line НДС 12% : 31.87 [08:50:27]line Наличными: 300.00 [08:50:27]line Безнал.: 0.00 [08:50:27]line Место: АЗС № 65 "Партнер Нефть" [08:50:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:50:27]line СНО: Общий режим [08:50:27]line Чек 18 19.06.2024 08:50 [08:50:27]line Смена: 388 ФФД: 1.0 [08:50:27]line ЗНМ: 0300000198 [08:50:27]line РНМ: 0000000000092771 [08:50:27]line Версия ККМ: 001 [08:50:27]line ФМ: 0000000000875083 [08:50:27]line ФД: 111269 [08:50:27]line ФПД: 61137226901604 [08:50:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T085053&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111269&fm=61137226901604&tin=02508201610067®Number=0000000000092771&sum=30000 [08:50:28]OFD Sender: Processing packet 111269 [packets to send 38, broken 37] [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00111269 [08:50:28]OFD Sender: To server: pG, [08:50:28]CommunicateWithHost lk.salyk.kg:30040 [08:50:28]ConnectInit lk.salyk.kg [08:50:28]written 0, free lines is 4095 [08:50:28]Connected sock=11 [08:50:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 12 07 01 7B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 12 00 00 00 F4 03 04 00 ED 9B 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B2 01 00 35 04 06 00 37 9A 9E B1 28 64 09 56 2D E7 0B 01 97 56 [08:50:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 35 8A 47 00 C0 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B2 01 00 F4 03 04 00 5C 33 72 66 B6 04 01 00 00 51 DE 0A E1 20 77 BD 30 [08:50:28]CommunicateWithHost err = 0 [08:50:28]CheckOFDResponse [08:50:28]1017 (14) - 77093643461234 [08:50:28]1041 (16) - 0000000000875083 [08:50:28]1040 (4) - 111269 [08:50:28]1012 (4) - 19.06.2024 01:24 [08:50:28]1206 (1) - 0 [08:50:28]OFD Sender: Remove packet 111269 [08:50:28]ProducePacketName [08:50:28]name=ofd_packets/00111269 [08:50:28]NVStorageDeleteData [08:50:28]Write to MH i2c: 01 00 00 60 3F 9F [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: 01 07 00 60 3F 00 00 00 00 00 D4 0C 86 [08:50:28]RasterBufferAndPrint [08:50:28]line [08:50:28]line [08:50:28]line [08:50:28]line [08:50:28]line [08:50:28]written 0, free lines is 3292 [08:50:28]MH_Cut [08:50:28]Write to MH i2c: D1 01 00 67 3F 01 78 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: D1 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: D1 01 00 [08:50:28]MH_I2C_Read... [08:50:28]Read from MH i2c: D1 01 00 67 3F 00 77 [08:50:28]Write to MH i2c: 01 00 00 68 3F A7 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]OFD Sender: No OFD packet to send [08:50:29]*** Cut start [08:50:29]*** Partial cut [08:50:29]*** CUTSNS_PIN = 1 [08:50:29]*** CUTSNS_PIN = 0 [08:50:29]*** Brake cut motor [08:50:29]Read from MH i2c: 01 [08:50:29]MH_I2C_Read... [08:50:29]*** Stop cut motor [08:50:29]*** Cut end [08:50:29]Read from MH i2c: 01 07 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 68 3F 00 00 00 00 00 FF 0F BC [08:50:29]process_action close_receipt done [08:50:29]requested_data is exist [08:50:29]produce_requested_data [08:50:29]requested_item fm.sn is exist - process it [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 11 00 00 [08:50:29]Write to MH i2c: E2 08 00 69 3F 80 11 00 00 00 00 00 00 22 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 17 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 17 00 69 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [08:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:50:30]wFMCommunicate OK [08:50:30]requested_item fd.num is exist - process it [08:50:30]SAM_PROTO_GetFieldsCounters [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 13 00 00 [08:50:30]Write to MH i2c: E2 08 00 6A 3F 80 13 00 00 00 00 00 00 25 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 62 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 62 00 6A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [08:50: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:30]wFMCommunicate OK [08:50:30]SAM_PROTO_GetFieldsCounters done [08:50:30]requested_item shift.num is exist - process it [08:50:30]requested_item shift.opened is exist - process it [08:50:30]req_shift_opened [08:50:30]FM_GetShiftState [08:50:30]SAM_PROTO_GetShiftState [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 13 01 00 [08:50:30]Write to MH i2c: E2 08 00 6B 3F 80 13 01 00 00 00 00 00 27 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 0E 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 0E 00 6B 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 71 [08:50:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:50:30]wFMCommunicate OK [08:50:30]SAM_PROTO_GetShiftState done [08:50:30]FM_GetShiftState done [08:50:30]req_shift_opened done [08:50:30]requested_item shift.open_date is exist - process it [08:50:30]req_shift_open_date [08:50:30]req_shift_open_date done [08:50:30]produce_requested_data done [08:50:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111269,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [08:50:30]process_action_free close_receipt [08:50:30]json_value_free [08:50:30]json_value_free done [08:50:30]process_json_proto returns [08:50:30]Send response to host [08:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111269,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [08:50:30]free response buf [08:50:30]execute_script done [08:50:30]execute_script returns [08:50:30]free content buf [08:50:30]Sock 8.Close socket [08:50:30]Sock 8.Thread stoped [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:21]accept exits with 9 [08:52:21]New connection [08:52:21]New thread 3067227492 created [08:52:21]Thread 3067084132 joined [08:52:21]Waiting for new connection... [08:52:21] Sock 9.Parse request [08:52:21]Sock 9.Check first char [08:52:21]Sock 9.First char is OK [08:52:21]request: POST /json_proto HTTP/1.0 [08:52:21]Method: POST [08:52:21]URL: /json_proto [08:52:21]Method is POST - this is cgi request [08:52:21]url: /json_proto [08:52:21]query_string will be loaded in cgi processing [08:52:21]execute_cgi json_proto POST (null) [08:52:21]execute_cgi path=json_proto method=POST [08:52:21]POST find Content-Length [08:52:21]Host: 172.17.59.68:8080 [08:52:21]Content-Length: 679 [08:52:21]Content-Type: application/json [08:52:21] [08:52:21]POST finish read [08:52:21]Found Content-Length = 679 [08:52:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [08:52:21]execute_script... [08:52: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)319837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.38, "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" ] } } [08:52:21]POST & json_proto [08:52:21]process_json_proto [08:52:21]json parsed OK: [08:52:21]protocol is kg_v1.0 [08:52:21]action value=close_receipt [08:52:21]process_action close_receipt [08:52:21]cmd_close_receipt [08:52:21]MH_GetDate [08:52:21]Write to MH i2c: F0 00 00 6C 3F 9A [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: F0 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: F0 09 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: F0 09 00 6C 3F 00 60 9C 72 66 BC EC 60 65 E4 [08:52:21]GetLastDocTimeStamp 1718787053 [08:52:21]current date 1718787168 [08:52:21]FM_GetShiftState [08:52:21]SAM_PROTO_GetShiftState [08:52:21]wFMCommunicate request_size=4 [08:52:21]MH_SAM_APDU [08:52:21]CAPDU: 80 13 01 00 [08:52:21]Write to MH i2c: E2 08 00 6D 3F 80 13 01 00 00 00 00 00 29 [08:52:21]Write i2c OK [08:52:21]MH_I2C_Read... [08:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:21]Read from MH i2c: E2 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 0E 00 [08:52:21]MH_I2C_Read... [08:52:21]Read from MH i2c: E2 0E 00 6D 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 73 [08:52:21]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:52:21]wFMCommunicate OK [08:52:21]SAM_PROTO_GetShiftState done [08:52:21]FM_GetShiftState done [08:52:21]opened in 1718760753 [08:52:21]opened+sec_in_day 1718847153 [08:52:21]quantity*price = 200037 [08:52:21]sum+1 = 200039 [08:52:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 19 19.06.2024 08:52 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111270 ФПД: 23149051667743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T085248&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111270&fm=23149051667743&tin=02508201610067®Number=0000000000092771&sum=200000 [08:52:22]StoreToDocumentArchive [08:52:22]shift 388 fd 111270 [08:52:22]save to /storage/0388/doc_00111270 [08:52:22]save last doc name /storage/0388/doc_00111270 to /storage/kkm_last_doc_name [08:52:22]save OK [08:52:22]Clear old archive folders... [08:52:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:52:22]tlvbuf is 01A2FB20 [08:52:22]SAM_PROTO_ClearQueue [08:52:22]wFMCommunicate request_size=4 [08:52:22]MH_SAM_APDU [08:52:22]CAPDU: 80 09 00 00 [08:52:22]Write to MH i2c: E2 08 00 7A 3F 80 09 00 00 00 00 00 00 2B [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:22]Read from MH i2c: E2 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 03 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 03 00 7A 3F 00 90 00 2D [08:52:22]RAPDU: 90 00 [08:52:22]wFMCommunicate OK [08:52:22]SAM_PROTO_ClearQueue done [08:52:22]KKMCreateOFDPacket [08:52:22]OFDProtocolAddRootSTLVToBuf [08:52:22]FM_MakeSignedData [08:52:22]FM_MakeSignedData [08:52:22]SAM_PROTO_SignData [08:52:22]wFMCommunicate request_size=4 [08:52:22]MH_SAM_APDU [08:52:22]CAPDU: 80 0D 01 02 [08:52:22]Write to MH i2c: E2 08 00 7B 3F 80 0D 01 02 00 00 00 00 33 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:22]Read from MH i2c: E2 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 03 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 03 00 7B 3F 00 90 00 2E [08:52:22]RAPDU: 90 00 [08:52:22]wFMCommunicate OK [08:52:22]wFMCommunicate request_size=255 [08:52:22]MH_SAM_APDU [08:52: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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 9C 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B2 01 00 35 04 06 00 15 0D CF 00 [08:52:22]Write to MH i2c: E2 02 01 7C 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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 9C 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B2 01 00 35 04 06 00 15 0D CF 00 00 00 CA [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:22]Read from MH i2c: E2 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 03 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 03 00 7C 3F 00 90 00 2F [08:52:22]RAPDU: 90 00 [08:52:22]wFMCommunicate OK [08:52:22]wFMCommunicate request_size=7 [08:52:22]MH_SAM_APDU [08:52:22]CAPDU: 80 0D 02 02 02 65 1F [08:52:22]Write to MH i2c: E2 0A 00 7D 3F 80 0D 02 02 02 00 65 1F 00 00 BE [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:22]Read from MH i2c: E2 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 03 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 03 00 7D 3F 00 90 00 30 [08:52:22]RAPDU: 90 00 [08:52:22]wFMCommunicate OK [08:52:22]wFMCommunicate request_size=4 [08:52:22]MH_SAM_APDU [08:52:22]CAPDU: 80 0D 03 02 [08:52:22]Write to MH i2c: E2 08 00 7E 3F 80 0D 03 02 00 00 00 00 38 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:22]Read from MH i2c: E2 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 0B 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 0B 00 7E 3F 00 0A B4 3D 34 EE 03 B9 3A 90 00 4C [08:52:22]RAPDU: 0A B4 3D 34 EE 03 B9 3A 90 00 [08:52:22]wFMCommunicate OK [08:52:22]SAM_PROTO_SignData done [08:52:22]FM_MakeSignedData done [08:52:22]CreateOFDProtocolMessage [08:52:22]wFMCommunicate request_size=4 [08:52:22]MH_SAM_APDU [08:52:22]CAPDU: 80 11 00 00 [08:52:22]Write to MH i2c: E2 08 00 7F 3F 80 11 00 00 00 00 00 00 38 [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:22]Read from MH i2c: E2 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 17 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: E2 17 00 7F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [08:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:52:22]wFMCommunicate OK [08:52:22]CreateOFDProtocolMessage done [08:52:22]OFDSenderStorePacket 111270 [08:52:22]StoreOFDPacket docnum=111270 [08:52:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 45 CC 04 01 C9 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 9C 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B2 01 00 35 04 06 00 15 0D CF 00 65 1F 0A B4 3D 34 EE 03 B9 3A [08:52:22]CheckFolder [08:52:22]dirname=/storage/ofd_packets [08:52:22]CheckFolder done [08:52:22]ProducePacketName [08:52:22]name=ofd_packets/00111270 [08:52:22]NVStorageSaveData ofd_packets/00111270 [08:52:22]File name is /storage/ofd_packets/00111270 [08:52:22]Write 298 bytes [08:52:22]NVStorageSaveData done [08:52:22]OFDSenderStorePacket done [08:52:22]KKMCreateOFDPacket done [08:52:22]NVStorageSaveData kkm_last_timestamp [08:52:22]File name is /storage/kkm_last_timestamp [08:52:22]Write 4 bytes [08:52:22]NVStorageSaveData done [08:52:22]ExternCall_PrintAddStr [08:52:22]wPrintStart [08:52:22]Write to MH i2c: 01 00 00 80 3F BF [08:52:22]Write i2c OK [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 07 00 [08:52:22]MH_I2C_Read... [08:52:22]Read from MH i2c: 01 07 00 80 3F 00 00 00 00 00 FF 0F D4 [08:52:22]RasterBufferAndPrint [08:52:22]line Счет N : (1)319837 [08:52:22]line ИНН: 02508201610067 [08:52:22]line Контрольно-Кассовый Чек [08:52:22]line ПРОДАЖА [08:52:22]line ТРК (МРК, ГНК) : 22 [08:52:22]line Товар: 2710194210 [08:52:22]line ДТ-К-5 [08:52:22]line 27.440 * 72.90 [08:52:22]line = 2000.38 [08:52:22]line НДС 12% НСП 1% [08:52:22]line > о реализуемом товаре [08:52:22]line ОКРУГЛЕНИЕ: -0.38 [08:52:22]line ИТОГО: 2000.00 [08:52:22]line Внесено: 2000.00 [08:52:22]line СДАЧА: 0.00 [08:52:22]line НСП 1% : 17.70 [08:52:22]line НДС 12% : 212.43 [08:52:22]line Наличными: 2000.00 [08:52:22]line Безнал.: 0.00 [08:52:22]line Место: АЗС № 65 "Партнер Нефть" [08:52:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [08:52:22]line СНО: Общий режим [08:52:22]line Чек 19 19.06.2024 08:52 [08:52:22]line Смена: 388 ФФД: 1.0 [08:52:22]line ЗНМ: 0300000198 [08:52:22]line РНМ: 0000000000092771 [08:52:22]line Версия ККМ: 001 [08:52:22]line ФМ: 0000000000875083 [08:52:22]line ФД: 111270 [08:52:22]line ФПД: 23149051667743 [08:52:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T085248&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111270&fm=23149051667743&tin=02508201610067®Number=0000000000092771&sum=200000 [08:52:23]OFD Sender: Processing packet 111270 [packets to send 38, broken 37] [08:52:23]ProducePacketName [08:52:23]name=ofd_packets/00111270 [08:52:23]OFD Sender: To server: pG, [08:52:23]CommunicateWithHost lk.salyk.kg:30040 [08:52:23]ConnectInit lk.salyk.kg [08:52:23]written 0, free lines is 4095 [08:52:23]Connected sock=10 [08:52:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 45 CC 04 01 C9 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 60 9C 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B2 01 00 35 04 06 00 15 0D CF 00 65 1F 0A B4 3D 34 EE 03 B9 3A [08:52:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 93 1F 47 00 10 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 35 30 38 33 10 04 04 00 A6 B2 01 00 F4 03 04 00 CF 33 72 66 B6 04 01 00 00 92 57 C7 6B 24 8A 1F CE [08:52:23]CommunicateWithHost err = 0 [08:52:23]CheckOFDResponse [08:52:23]1017 (14) - 77093643461234 [08:52:23]1041 (16) - 0000000000875083 [08:52:23]1040 (4) - 111270 [08:52:23]1012 (4) - 19.06.2024 01:26 [08:52:23]1206 (1) - 0 [08:52:23]OFD Sender: Remove packet 111270 [08:52:23]ProducePacketName [08:52:23]name=ofd_packets/00111270 [08:52:23]NVStorageDeleteData [08:52:23]Write to MH i2c: 01 00 00 AB 3F EA [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 07 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: 01 07 00 AB 3F 00 00 00 00 00 E2 0C DF [08:52:23]RasterBufferAndPrint [08:52:23]line [08:52:23]line [08:52:23]line [08:52:23]line [08:52:23]line [08:52:23]written 0, free lines is 3307 [08:52:23]MH_Cut [08:52:23]Write to MH i2c: D1 01 00 B2 3F 01 C3 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: D1 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: D1 01 00 [08:52:23]MH_I2C_Read... [08:52:23]Read from MH i2c: D1 01 00 B2 3F 00 C2 [08:52:23]Write to MH i2c: 01 00 00 B3 3F F2 [08:52:23]Write i2c OK [08:52:23]MH_I2C_Read... [08:52:23]OFD Sender: No OFD packet to send [08:52:24]*** Cut start [08:52:24]*** Partial cut [08:52:24]*** CUTSNS_PIN = 1 [08:52:24]*** CUTSNS_PIN = 0 [08:52:24]*** Brake cut motor [08:52:25]Read from MH i2c: 01 [08:52:25]MH_I2C_Read... [08:52:25]*** Stop cut motor [08:52:25]*** Cut end [08:52:25]Read from MH i2c: 01 07 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: 01 07 00 B3 3F 00 00 00 00 00 FF 0F 07 [08:52:25]process_action close_receipt done [08:52:25]requested_data is exist [08:52:25]produce_requested_data [08:52:25]requested_item fm.sn is exist - process it [08:52:25]wFMCommunicate request_size=4 [08:52:25]MH_SAM_APDU [08:52:25]CAPDU: 80 11 00 00 [08:52:25]Write to MH i2c: E2 08 00 B4 3F 80 11 00 00 00 00 00 00 6D [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:25]Read from MH i2c: E2 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 17 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 17 00 B4 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [08:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [08:52:25]wFMCommunicate OK [08:52:25]requested_item fd.num is exist - process it [08:52:25]SAM_PROTO_GetFieldsCounters [08:52:25]wFMCommunicate request_size=4 [08:52:25]MH_SAM_APDU [08:52:25]CAPDU: 80 13 00 00 [08:52:25]Write to MH i2c: E2 08 00 B5 3F 80 13 00 00 00 00 00 00 70 [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:25]Read from MH i2c: E2 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 62 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 62 00 B5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [08:52: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:25]wFMCommunicate OK [08:52:25]SAM_PROTO_GetFieldsCounters done [08:52:25]requested_item shift.num is exist - process it [08:52:25]requested_item shift.opened is exist - process it [08:52:25]req_shift_opened [08:52:25]FM_GetShiftState [08:52:25]SAM_PROTO_GetShiftState [08:52:25]wFMCommunicate request_size=4 [08:52:25]MH_SAM_APDU [08:52:25]CAPDU: 80 13 01 00 [08:52:25]Write to MH i2c: E2 08 00 B6 3F 80 13 01 00 00 00 00 00 72 [08:52:25]Write i2c OK [08:52:25]MH_I2C_Read... [08:52:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:25]Read from MH i2c: E2 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 0E 00 [08:52:25]MH_I2C_Read... [08:52:25]Read from MH i2c: E2 0E 00 B6 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BC [08:52:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [08:52:25]wFMCommunicate OK [08:52:25]SAM_PROTO_GetShiftState done [08:52:25]FM_GetShiftState done [08:52:25]req_shift_opened done [08:52:25]requested_item shift.open_date is exist - process it [08:52:25]req_shift_open_date [08:52:25]req_shift_open_date done [08:52:25]produce_requested_data done [08:52:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111270,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [08:52:25]process_action_free close_receipt [08:52:25]json_value_free [08:52:25]json_value_free done [08:52:25]process_json_proto returns [08:52:25]Send response to host [08:52:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111270,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [08:52:25]free response buf [08:52:25]execute_script done [08:52:25]execute_script returns [08:52:25]free content buf [08:52:25]Sock 9.Close socket [08:52:25]Sock 9.Thread stoped [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]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:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:57]accept exits with 8 [09:00:57]New connection [09:00:57]New thread 3067084132 created [09:00:57]Thread 3067227492 joined [09:00:57]Waiting for new connection... [09:00:57] Sock 8.Parse request [09:00:57]Sock 8.Check first char [09:00:57]Sock 8.First char is OK [09:00:57]request: POST /json_proto HTTP/1.0 [09:00:57]Method: POST [09:00:57]URL: /json_proto [09:00:57]Method is POST - this is cgi request [09:00:57]url: /json_proto [09:00:57]query_string will be loaded in cgi processing [09:00:57]execute_cgi json_proto POST (null) [09:00:57]execute_cgi path=json_proto method=POST [09:00:57]POST find Content-Length [09:00:57]Host: 172.17.59.68:8080 [09:00:57]Content-Length: 677 [09:00:57]Content-Type: application/json [09:00:57] [09:00:57]POST finish read [09:00:57]Found Content-Length = 677 [09:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:00:57]execute_script... [09:00: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)319838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:00:57]POST & json_proto [09:00:57]process_json_proto [09:00:57]json parsed OK: [09:00:57]protocol is kg_v1.0 [09:00:57]action value=close_receipt [09:00:57]process_action close_receipt [09:00:57]cmd_close_receipt [09:00:57]MH_GetDate [09:00:57]Write to MH i2c: F0 00 00 B7 3F E5 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: F0 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: F0 09 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: F0 09 00 B7 3F 00 65 9E 72 66 BC EC 60 65 36 [09:00:57]GetLastDocTimeStamp 1718787168 [09:00:57]current date 1718787685 [09:00:57]FM_GetShiftState [09:00:57]SAM_PROTO_GetShiftState [09:00:57]wFMCommunicate request_size=4 [09:00:57]MH_SAM_APDU [09:00:57]CAPDU: 80 13 01 00 [09:00:57]Write to MH i2c: E2 08 00 B8 3F 80 13 01 00 00 00 00 00 74 [09:00:57]Write i2c OK [09:00:57]MH_I2C_Read... [09:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:57]Read from MH i2c: E2 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 0E 00 [09:00:57]MH_I2C_Read... [09:00:57]Read from MH i2c: E2 0E 00 B8 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BE [09:00:57]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:00:57]wFMCommunicate OK [09:00:57]SAM_PROTO_GetShiftState done [09:00:57]FM_GetShiftState done [09:00:57]opened in 1718760753 [09:00:57]opened+sec_in_day 1718847153 [09:00:57]quantity*price = 20052 [09:00:57]sum+1 = 20054 [09:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 20 19.06.2024 09:01 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111271 ФПД: 257721283312400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T090125&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111271&fm=257721283312400&tin=02508201610067®Number=0000000000092771&sum=20000 [09:00:59]StoreToDocumentArchive [09:00:59]shift 388 fd 111271 [09:00:59]save to /storage/0388/doc_00111271 [09:00:59]save last doc name /storage/0388/doc_00111271 to /storage/kkm_last_doc_name [09:00:59]save OK [09:00:59]Clear old archive folders... [09:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:59]tlvbuf is 01941DD0 [09:00:59]SAM_PROTO_ClearQueue [09:00:59]wFMCommunicate request_size=4 [09:00:59]MH_SAM_APDU [09:00:59]CAPDU: 80 09 00 00 [09:00:59]Write to MH i2c: E2 08 00 C5 3F 80 09 00 00 00 00 00 00 76 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 C5 3F 00 90 00 78 [09:00:59]RAPDU: 90 00 [09:00:59]wFMCommunicate OK [09:00:59]SAM_PROTO_ClearQueue done [09:00:59]KKMCreateOFDPacket [09:00:59]OFDProtocolAddRootSTLVToBuf [09:00:59]FM_MakeSignedData [09:00:59]FM_MakeSignedData [09:00:59]SAM_PROTO_SignData [09:00:59]wFMCommunicate request_size=4 [09:00:59]MH_SAM_APDU [09:00:59]CAPDU: 80 0D 01 02 [09:00:59]Write to MH i2c: E2 08 00 C6 3F 80 0D 01 02 00 00 00 00 7E [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 C6 3F 00 90 00 79 [09:00:59]RAPDU: 90 00 [09:00:59]wFMCommunicate OK [09:00:59]wFMCommunicate request_size=255 [09:00:59]MH_SAM_APDU [09:00: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 65 9E 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B2 01 00 35 04 06 00 EA [09:00:59]Write to MH i2c: E2 02 01 C7 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 65 9E 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B2 01 00 35 04 06 00 EA 00 00 A9 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 C7 3F 00 90 00 7A [09:00:59]RAPDU: 90 00 [09:00:59]wFMCommunicate OK [09:00:59]wFMCommunicate request_size=10 [09:00:59]MH_SAM_APDU [09:00:59]CAPDU: 80 0D 02 02 05 65 69 8A FB 10 [09:00:59]Write to MH i2c: E2 0D 00 C8 3F 80 0D 02 02 05 00 65 69 8A FB 10 00 00 EE [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 03 00 C8 3F 00 90 00 7B [09:00:59]RAPDU: 90 00 [09:00:59]wFMCommunicate OK [09:00:59]wFMCommunicate request_size=4 [09:00:59]MH_SAM_APDU [09:00:59]CAPDU: 80 0D 03 02 [09:00:59]Write to MH i2c: E2 08 00 C9 3F 80 0D 03 02 00 00 00 00 83 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]OFD Sender: No OFD packet to send [09:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 0B 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 0B 00 C9 3F 00 56 BA A6 EA E8 29 F0 BA 90 00 DF [09:00:59]RAPDU: 56 BA A6 EA E8 29 F0 BA 90 00 [09:00:59]wFMCommunicate OK [09:00:59]SAM_PROTO_SignData done [09:00:59]FM_MakeSignedData done [09:00:59]CreateOFDProtocolMessage [09:00:59]wFMCommunicate request_size=4 [09:00:59]MH_SAM_APDU [09:00:59]CAPDU: 80 11 00 00 [09:00:59]Write to MH i2c: E2 08 00 CA 3F 80 11 00 00 00 00 00 00 83 [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:59]Read from MH i2c: E2 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 17 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: E2 17 00 CA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [09:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:00:59]wFMCommunicate OK [09:00:59]CreateOFDProtocolMessage done [09:00:59]OFDSenderStorePacket 111271 [09:00:59]StoreOFDPacket docnum=111271 [09:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 92 47 07 01 B7 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 65 9E 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B2 01 00 35 04 06 00 EA 65 69 8A FB 10 56 BA A6 EA E8 29 F0 BA [09:00:59]CheckFolder [09:00:59]dirname=/storage/ofd_packets [09:00:59]CheckFolder done [09:00:59]ProducePacketName [09:00:59]name=ofd_packets/00111271 [09:00:59]NVStorageSaveData ofd_packets/00111271 [09:00:59]File name is /storage/ofd_packets/00111271 [09:00:59]Write 301 bytes [09:00:59]NVStorageSaveData done [09:00:59]OFDSenderStorePacket done [09:00:59]KKMCreateOFDPacket done [09:00:59]NVStorageSaveData kkm_last_timestamp [09:00:59]File name is /storage/kkm_last_timestamp [09:00:59]Write 4 bytes [09:00:59]NVStorageSaveData done [09:00:59]ExternCall_PrintAddStr [09:00:59]wPrintStart [09:00:59]Write to MH i2c: 01 00 00 CB 3F 0A [09:00:59]Write i2c OK [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 07 00 [09:00:59]MH_I2C_Read... [09:00:59]Read from MH i2c: 01 07 00 CB 3F 00 00 00 00 00 FF 0F 1F [09:00:59]RasterBufferAndPrint [09:00:59]line Счет N : (1)319838 [09:00:59]line ИНН: 02508201610067 [09:00:59]line Контрольно-Кассовый Чек [09:00:59]line ПРОДАЖА [09:00:59]line ТРК (МРК, ГНК) : 11 [09:00:59]line Товар: 2710124130 [09:00:59]line Аи-92-К-5 [09:00:59]line 3.020 * 66.40 [09:00:59]line = 200.53 [09:00:59]line НДС 12% НСП 1% [09:00:59]line > о реализуемом товаре [09:00:59]line ОКРУГЛЕНИЕ: -0.53 [09:00:59]line ИТОГО: 200.00 [09:00:59]line Внесено: 200.00 [09:00:59]line СДАЧА: 0.00 [09:00:59]line НСП 1% : 1.77 [09:00:59]line НДС 12% : 21.29 [09:00:59]line Наличными: 200.00 [09:00:59]line Безнал.: 0.00 [09:00:59]line Место: АЗС № 65 "Партнер Нефть" [09:00:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:00:59]line СНО: Общий режим [09:00:59]line Чек 20 19.06.2024 09:01 [09:00:59]line Смена: 388 ФФД: 1.0 [09:00:59]line ЗНМ: 0300000198 [09:00:59]line РНМ: 0000000000092771 [09:00:59]line Версия ККМ: 001 [09:00:59]line ФМ: 0000000000875083 [09:00:59]line ФД: 111271 [09:00:59]line ФПД: 257721283312400 [09:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T090125&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111271&fm=257721283312400&tin=02508201610067®Number=0000000000092771&sum=20000 [09:00:59]OFD Sender: Processing packet 111271 [packets to send 38, broken 37] [09:00:59]ProducePacketName [09:00:59]name=ofd_packets/00111271 [09:00:59]OFD Sender: To server: pG, [09:00:59]CommunicateWithHost lk.salyk.kg:30040 [09:00:59]ConnectInit lk.salyk.kg [09:00:59]written 0, free lines is 4095 [09:01:00]Connected sock=10 [09:01:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 92 47 07 01 B7 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 65 9E 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B2 01 00 35 04 06 00 EA 65 69 8A FB 10 56 BA A6 EA E8 29 F0 BA [09:01:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9A CE 47 00 EC 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 35 30 38 33 10 04 04 00 A7 B2 01 00 F4 03 04 00 D4 35 72 66 B6 04 01 00 00 5B 8D 56 C6 BC E4 85 75 [09:01:00]CommunicateWithHost err = 0 [09:01:00]CheckOFDResponse [09:01:00]1017 (14) - 77093643461234 [09:01:00]1041 (16) - 0000000000875083 [09:01:00]1040 (4) - 111271 [09:01:00]1012 (4) - 19.06.2024 01:35 [09:01:00]1206 (1) - 0 [09:01:00]OFD Sender: Remove packet 111271 [09:01:00]ProducePacketName [09:01:00]name=ofd_packets/00111271 [09:01:00]NVStorageDeleteData [09:01:00]Write to MH i2c: 01 00 00 F6 3F 35 [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: 01 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: 01 07 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: 01 07 00 F6 3F 00 00 00 00 00 DE 0C 26 [09:01:00]RasterBufferAndPrint [09:01:00]line [09:01:00]line [09:01:00]line [09:01:00]line [09:01:00]line [09:01:00]written 0, free lines is 3300 [09:01:00]MH_Cut [09:01:00]Write to MH i2c: D1 01 00 FD 3F 01 0E [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: D1 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: D1 01 00 [09:01:00]MH_I2C_Read... [09:01:00]Read from MH i2c: D1 01 00 FD 3F 00 0D [09:01:00]Write to MH i2c: 01 00 00 FE 3F 3D [09:01:00]Write i2c OK [09:01:00]MH_I2C_Read... [09:01:00]OFD Sender: No OFD packet to send [09:01:01]*** Cut start [09:01:01]*** Partial cut [09:01:01]*** CUTSNS_PIN = 1 [09:01:01]*** CUTSNS_PIN = 0 [09:01:01]*** Brake cut motor [09:01:01]Read from MH i2c: 01 [09:01:01]MH_I2C_Read... [09:01:01]*** Stop cut motor [09:01:01]*** Cut end [09:01:01]Read from MH i2c: 01 07 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: 01 07 00 FE 3F 00 00 00 00 00 FF 0F 52 [09:01:01]process_action close_receipt done [09:01:01]requested_data is exist [09:01:01]produce_requested_data [09:01:01]requested_item fm.sn is exist - process it [09:01:01]wFMCommunicate request_size=4 [09:01:01]MH_SAM_APDU [09:01:01]CAPDU: 80 11 00 00 [09:01:01]Write to MH i2c: E2 08 00 FF 3F 80 11 00 00 00 00 00 00 B8 [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:01]Read from MH i2c: E2 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 17 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 17 00 FF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [09:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:01:01]wFMCommunicate OK [09:01:01]requested_item fd.num is exist - process it [09:01:01]SAM_PROTO_GetFieldsCounters [09:01:01]wFMCommunicate request_size=4 [09:01:01]MH_SAM_APDU [09:01:01]CAPDU: 80 13 00 00 [09:01:01]Write to MH i2c: E2 08 00 00 40 80 13 00 00 00 00 00 00 BC [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:01]Read from MH i2c: E2 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 62 00 [09:01:01]MH_I2C_Read... [09:01:01]Read from MH i2c: E2 62 00 00 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [09:01: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:01]wFMCommunicate OK [09:01:01]SAM_PROTO_GetFieldsCounters done [09:01:01]requested_item shift.num is exist - process it [09:01:01]requested_item shift.opened is exist - process it [09:01:01]req_shift_opened [09:01:01]FM_GetShiftState [09:01:01]SAM_PROTO_GetShiftState [09:01:01]wFMCommunicate request_size=4 [09:01:01]MH_SAM_APDU [09:01:01]CAPDU: 80 13 01 00 [09:01:01]Write to MH i2c: E2 08 00 01 40 80 13 01 00 00 00 00 00 BE [09:01:01]Write i2c OK [09:01:01]MH_I2C_Read... [09:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:02]Read from MH i2c: E2 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 0E 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 0E 00 01 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 08 [09:01:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:01:02]wFMCommunicate OK [09:01:02]SAM_PROTO_GetShiftState done [09:01:02]FM_GetShiftState done [09:01:02]req_shift_opened done [09:01:02]requested_item shift.open_date is exist - process it [09:01:02]req_shift_open_date [09:01:02]req_shift_open_date done [09:01:02]produce_requested_data done [09:01:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111271,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:01:02]process_action_free close_receipt [09:01:02]json_value_free [09:01:02]json_value_free done [09:01:02]process_json_proto returns [09:01:02]Send response to host [09:01:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111271,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:01:02]free response buf [09:01:02]execute_script done [09:01:02]execute_script returns [09:01:02]free content buf [09:01:02]Sock 8.Close socket [09:01:02]Sock 8.Thread stoped [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22: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:56]OFD Sender: No OFD packet to send [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]accept exits with 9 [09:24:31]New connection [09:24:31]New thread 3067227492 created [09:24:31]Thread 3067084132 joined [09:24:31]Waiting for new connection... [09:24:31] Sock 9.Parse request [09:24:31]Sock 9.Check first char [09:24:31]Sock 9.First char is OK [09:24:31]request: POST /json_proto HTTP/1.0 [09:24:31]Method: POST [09:24:31]URL: /json_proto [09:24:31]Method is POST - this is cgi request [09:24:31]url: /json_proto [09:24:31]query_string will be loaded in cgi processing [09:24:31]execute_cgi json_proto POST (null) [09:24:31]execute_cgi path=json_proto method=POST [09:24:31]POST find Content-Length [09:24:31]Host: 172.17.59.68:8080 [09:24:31]Content-Length: 677 [09:24:31]Content-Type: application/json [09:24:31] [09:24:31]POST finish read [09:24:31]Found Content-Length = 677 [09:24:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.330, "sum" : 420.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:31]execute_script... [09:24: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)319839", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.330, "sum" : 420.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:31]POST & json_proto [09:24:31]process_json_proto [09:24:31]json parsed OK: [09:24:31]protocol is kg_v1.0 [09:24:31]action value=close_receipt [09:24:31]process_action close_receipt [09:24:31]cmd_close_receipt [09:24:31]MH_GetDate [09:24:31]Write to MH i2c: F0 00 00 02 40 31 [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: F0 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: F0 09 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: F0 09 00 02 40 00 EC A3 72 66 BC EC 60 65 0E [09:24:31]GetLastDocTimeStamp 1718787685 [09:24:31]current date 1718789100 [09:24:31]FM_GetShiftState [09:24:31]SAM_PROTO_GetShiftState [09:24:31]wFMCommunicate request_size=4 [09:24:31]MH_SAM_APDU [09:24:31]CAPDU: 80 13 01 00 [09:24:31]Write to MH i2c: E2 08 00 03 40 80 13 01 00 00 00 00 00 C0 [09:24:31]Write i2c OK [09:24:31]MH_I2C_Read... [09:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:31]Read from MH i2c: E2 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 0E 00 [09:24:31]MH_I2C_Read... [09:24:31]Read from MH i2c: E2 0E 00 03 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0A [09:24:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:24:31]wFMCommunicate OK [09:24:31]SAM_PROTO_GetShiftState done [09:24:31]FM_GetShiftState done [09:24:31]opened in 1718760753 [09:24:31]opened+sec_in_day 1718847153 [09:24:31]quantity*price = 42031 [09:24:31]sum+1 = 42032 [09:24:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.63 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 21 19.06.2024 09:25 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111272 ФПД: 198576546217739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T092500&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111272&fm=198576546217739&tin=02508201610067®Number=0000000000092771&sum=42000 [09:24:32]StoreToDocumentArchive [09:24:32]shift 388 fd 111272 [09:24:32]save to /storage/0388/doc_00111272 [09:24:32]save last doc name /storage/0388/doc_00111272 to /storage/kkm_last_doc_name [09:24:32]save OK [09:24:32]Clear old archive folders... [09:24:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:32]tlvbuf is 019E0260 [09:24:32]SAM_PROTO_ClearQueue [09:24:32]wFMCommunicate request_size=4 [09:24:32]MH_SAM_APDU [09:24:32]CAPDU: 80 09 00 00 [09:24:32]Write to MH i2c: E2 08 00 10 40 80 09 00 00 00 00 00 00 C2 [09:24:32]Write i2c OK [09:24:32]MH_I2C_Read... [09:24:32]Read from MH i2c: E2 [09:24:32]MH_I2C_Read... [09:24:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:32]Read from MH i2c: E2 03 00 [09:24:32]MH_I2C_Read... [09:24:32]Read from MH i2c: E2 03 00 10 40 00 90 00 C4 [09:24:32]RAPDU: 90 00 [09:24:32]wFMCommunicate OK [09:24:32]SAM_PROTO_ClearQueue done [09:24:32]KKMCreateOFDPacket [09:24:32]OFDProtocolAddRootSTLVToBuf [09:24:32]FM_MakeSignedData [09:24:32]FM_MakeSignedData [09:24:32]SAM_PROTO_SignData [09:24:32]wFMCommunicate request_size=4 [09:24:32]MH_SAM_APDU [09:24:32]CAPDU: 80 0D 01 02 [09:24:32]Write to MH i2c: E2 08 00 11 40 80 0D 01 02 00 00 00 00 CA [09:24:32]Write i2c OK [09:24:32]MH_I2C_Read... [09:24:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:32]Read from MH i2c: E2 [09:24:32]MH_I2C_Read... [09:24:32]Read from MH i2c: E2 03 00 [09:24:32]MH_I2C_Read... [09:24:32]Read from MH i2c: E2 03 00 11 40 00 90 00 C5 [09:24:32]RAPDU: 90 00 [09:24:32]wFMCommunicate OK [09:24:32]wFMCommunicate request_size=255 [09:24:32]MH_SAM_APDU [09:24: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 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 EC A3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B2 01 00 35 04 06 00 B4 [09:24:32]Write to MH i2c: E2 02 01 12 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 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 EC A3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B2 01 00 35 04 06 00 B4 00 00 EF [09:24:32]Write i2c OK [09:24:32]MH_I2C_Read... [09:24:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:33]Read from MH i2c: E2 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 03 00 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 03 00 12 40 00 90 00 C6 [09:24:33]RAPDU: 90 00 [09:24:33]wFMCommunicate OK [09:24:33]wFMCommunicate request_size=10 [09:24:33]MH_SAM_APDU [09:24:33]CAPDU: 80 0D 02 02 05 9A B4 7F 7F 0B [09:24:33]Write to MH i2c: E2 0D 00 13 40 80 0D 02 02 05 00 9A B4 7F 7F 0B 00 00 2E [09:24:33]Write i2c OK [09:24:33]MH_I2C_Read... [09:24:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:33]Read from MH i2c: E2 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 03 00 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 03 00 13 40 00 90 00 C7 [09:24:33]RAPDU: 90 00 [09:24:33]wFMCommunicate OK [09:24:33]wFMCommunicate request_size=4 [09:24:33]MH_SAM_APDU [09:24:33]CAPDU: 80 0D 03 02 [09:24:33]Write to MH i2c: E2 08 00 14 40 80 0D 03 02 00 00 00 00 CF [09:24:33]Write i2c OK [09:24:33]MH_I2C_Read... [09:24:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:33]Read from MH i2c: E2 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 0B 00 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 0B 00 14 40 00 CE 98 18 9F D8 31 7B 76 90 00 E7 [09:24:33]RAPDU: CE 98 18 9F D8 31 7B 76 90 00 [09:24:33]wFMCommunicate OK [09:24:33]SAM_PROTO_SignData done [09:24:33]FM_MakeSignedData done [09:24:33]CreateOFDProtocolMessage [09:24:33]wFMCommunicate request_size=4 [09:24:33]MH_SAM_APDU [09:24:33]CAPDU: 80 11 00 00 [09:24:33]Write to MH i2c: E2 08 00 15 40 80 11 00 00 00 00 00 00 CF [09:24:33]Write i2c OK [09:24:33]MH_I2C_Read... [09:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:33]Read from MH i2c: E2 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 17 00 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: E2 17 00 15 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [09:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:24:33]wFMCommunicate OK [09:24:33]CreateOFDProtocolMessage done [09:24:33]OFDSenderStorePacket 111272 [09:24:33]StoreOFDPacket docnum=111272 [09:24:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 11 07 01 BF 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 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 EC A3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B2 01 00 35 04 06 00 B4 9A B4 7F 7F 0B CE 98 18 9F D8 31 7B 76 [09:24:33]CheckFolder [09:24:33]dirname=/storage/ofd_packets [09:24:33]CheckFolder done [09:24:33]ProducePacketName [09:24:33]name=ofd_packets/00111272 [09:24:33]NVStorageSaveData ofd_packets/00111272 [09:24:33]File name is /storage/ofd_packets/00111272 [09:24:33]Write 301 bytes [09:24:33]NVStorageSaveData done [09:24:33]OFDSenderStorePacket done [09:24:33]KKMCreateOFDPacket done [09:24:33]NVStorageSaveData kkm_last_timestamp [09:24:33]File name is /storage/kkm_last_timestamp [09:24:33]Write 4 bytes [09:24:33]NVStorageSaveData done [09:24:33]ExternCall_PrintAddStr [09:24:33]wPrintStart [09:24:33]Write to MH i2c: 01 00 00 16 40 56 [09:24:33]Write i2c OK [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: 01 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: 01 07 00 [09:24:33]MH_I2C_Read... [09:24:33]Read from MH i2c: 01 07 00 16 40 00 00 00 00 00 FF 0F 6B [09:24:33]RasterBufferAndPrint [09:24:33]line Счет N : (1)319839 [09:24:33]line ИНН: 02508201610067 [09:24:33]line Контрольно-Кассовый Чек [09:24:33]line ПРОДАЖА [09:24:33]line ТРК (МРК, ГНК) : 11 [09:24:33]line Товар: 2710124130 [09:24:33]line Аи-92-К-5 [09:24:33]line 6.330 * 66.40 [09:24:33]line = 420.31 [09:24:33]line НДС 12% НСП 1% [09:24:33]line > о реализуемом товаре [09:24:33]line ОКРУГЛЕНИЕ: -0.31 [09:24:33]line ИТОГО: 420.00 [09:24:33]line Внесено: 420.00 [09:24:33]line СДАЧА: 0.00 [09:24:33]line НСП 1% : 3.72 [09:24:33]line НДС 12% : 44.63 [09:24:33]line Наличными: 420.00 [09:24:33]line Безнал.: 0.00 [09:24:33]line Место: АЗС № 65 "Партнер Нефть" [09:24:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:24:33]line СНО: Общий режим [09:24:33]line Чек 21 19.06.2024 09:25 [09:24:33]line Смена: 388 ФФД: 1.0 [09:24:33]line ЗНМ: 0300000198 [09:24:33]line РНМ: 0000000000092771 [09:24:33]line Версия ККМ: 001 [09:24:33]line ФМ: 0000000000875083 [09:24:33]line ФД: 111272 [09:24:33]line ФПД: 198576546217739 [09:24:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T092500&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111272&fm=198576546217739&tin=02508201610067®Number=0000000000092771&sum=42000 [09:24:33]OFD Sender: Processing packet 111272 [packets to send 38, broken 37] [09:24:33]ProducePacketName [09:24:33]name=ofd_packets/00111272 [09:24:33]OFD Sender: To server: pG, [09:24:33]CommunicateWithHost lk.salyk.kg:30040 [09:24:33]ConnectInit lk.salyk.kg [09:24:33]written 0, free lines is 4095 [09:24:33]Connected sock=10 [09:24:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 11 07 01 BF 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 BA 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2F A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 EC A3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B2 01 00 35 04 06 00 B4 9A B4 7F 7F 0B CE 98 18 9F D8 31 7B 76 [09:24:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8D B3 47 00 84 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 35 30 38 33 10 04 04 00 A8 B2 01 00 F4 03 04 00 59 3B 72 66 B6 04 01 00 00 D5 38 77 40 27 07 4E 2A [09:24:33]CommunicateWithHost err = 0 [09:24:33]CheckOFDResponse [09:24:33]1017 (14) - 77093643461234 [09:24:33]1041 (16) - 0000000000875083 [09:24:33]1040 (4) - 111272 [09:24:33]1012 (4) - 19.06.2024 01:58 [09:24:33]1206 (1) - 0 [09:24:33]OFD Sender: Remove packet 111272 [09:24:33]ProducePacketName [09:24:33]name=ofd_packets/00111272 [09:24:33]NVStorageDeleteData [09:24:34]Write to MH i2c: 01 00 00 41 40 81 [09:24:34]Write i2c OK [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: 01 [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: 01 07 00 [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: 01 07 00 41 40 00 00 00 00 00 DD 0C 71 [09:24:34]RasterBufferAndPrint [09:24:34]line [09:24:34]line [09:24:34]line [09:24:34]line [09:24:34]line [09:24:34]written 0, free lines is 3299 [09:24:34]MH_Cut [09:24:34]Write to MH i2c: D1 01 00 48 40 01 5A [09:24:34]Write i2c OK [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: D1 [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: D1 01 00 [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: D1 01 00 48 40 00 59 [09:24:34]Write to MH i2c: 01 00 00 49 40 89 [09:24:34]Write i2c OK [09:24:34]MH_I2C_Read... [09:24:34]OFD Sender: No OFD packet to send [09:24:34]*** Cut start [09:24:34]*** Partial cut [09:24:34]*** CUTSNS_PIN = 1 [09:24:34]*** CUTSNS_PIN = 0 [09:24:35]*** Brake cut motor [09:24:35]Read from MH i2c: 01 [09:24:35]MH_I2C_Read... [09:24:35]*** Stop cut motor [09:24:35]*** Cut end [09:24:35]Read from MH i2c: 01 07 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: 01 07 00 49 40 00 00 00 00 00 FF 0F 9E [09:24:35]process_action close_receipt done [09:24:35]requested_data is exist [09:24:35]produce_requested_data [09:24:35]requested_item fm.sn is exist - process it [09:24:35]wFMCommunicate request_size=4 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 11 00 00 [09:24:35]Write to MH i2c: E2 08 00 4A 40 80 11 00 00 00 00 00 00 04 [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 17 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 17 00 4A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [09:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:24:35]wFMCommunicate OK [09:24:35]requested_item fd.num is exist - process it [09:24:35]SAM_PROTO_GetFieldsCounters [09:24:35]wFMCommunicate request_size=4 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 13 00 00 [09:24:35]Write to MH i2c: E2 08 00 4B 40 80 13 00 00 00 00 00 00 07 [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 62 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 62 00 4B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [09:24: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:35]wFMCommunicate OK [09:24:35]SAM_PROTO_GetFieldsCounters done [09:24:35]requested_item shift.num is exist - process it [09:24:35]requested_item shift.opened is exist - process it [09:24:35]req_shift_opened [09:24:35]FM_GetShiftState [09:24:35]SAM_PROTO_GetShiftState [09:24:35]wFMCommunicate request_size=4 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 13 01 00 [09:24:35]Write to MH i2c: E2 08 00 4C 40 80 13 01 00 00 00 00 00 09 [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 0E 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 0E 00 4C 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 53 [09:24:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:24:35]wFMCommunicate OK [09:24:35]SAM_PROTO_GetShiftState done [09:24:35]FM_GetShiftState done [09:24:35]req_shift_opened done [09:24:35]requested_item shift.open_date is exist - process it [09:24:35]req_shift_open_date [09:24:35]req_shift_open_date done [09:24:35]produce_requested_data done [09:24:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111272,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:24:35]process_action_free close_receipt [09:24:35]json_value_free [09:24:35]json_value_free done [09:24:35]process_json_proto returns [09:24:35]Send response to host [09:24:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111272,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:24:35]free response buf [09:24:35]execute_script done [09:24:35]execute_script returns [09:24:35]free content buf [09:24:35]Sock 9.Close socket [09:24:35]Sock 9.Thread stoped [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:13]accept exits with 8 [09:28:13]New connection [09:28:13] Sock 8.Parse request [09:28:13]Sock 8.Check first char [09:28:13]Sock 8.First char is OK [09:28:13]New thread 3067084132 created [09:28:13]request: POST /json_proto HTTP/1.0 [09:28:13]Thread 3067227492 joined [09:28:13]Method: POST [09:28:13]Waiting for new connection... [09:28:13]URL: /json_proto [09:28:13]Method is POST - this is cgi request [09:28:13]url: /json_proto [09:28:13]query_string will be loaded in cgi processing [09:28:13]execute_cgi json_proto POST (null) [09:28:13]execute_cgi path=json_proto method=POST [09:28:13]POST find Content-Length [09:28:13]Host: 172.17.59.68:8080 [09:28:13]Content-Length: 677 [09:28:13]Content-Type: application/json [09:28:13] [09:28:13]POST finish read [09:28:13]Found Content-Length = 677 [09:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [09:28:13]execute_script... [09:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [09:28:13]POST & json_proto [09:28:13]process_json_proto [09:28:13]json parsed OK: [09:28:13]protocol is kg_v1.0 [09:28:13]action value=close_receipt [09:28:13]process_action close_receipt [09:28:13]cmd_close_receipt [09:28:13]MH_GetDate [09:28:13]Write to MH i2c: F0 00 00 4D 40 7C [09:28:13]Write i2c OK [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: F0 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: F0 09 00 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: F0 09 00 4D 40 00 C9 A4 72 66 BC EC 60 65 37 [09:28:13]GetLastDocTimeStamp 1718789100 [09:28:13]current date 1718789321 [09:28:13]FM_GetShiftState [09:28:13]SAM_PROTO_GetShiftState [09:28:13]wFMCommunicate request_size=4 [09:28:13]MH_SAM_APDU [09:28:13]CAPDU: 80 13 01 00 [09:28:13]Write to MH i2c: E2 08 00 4E 40 80 13 01 00 00 00 00 00 0B [09:28:13]Write i2c OK [09:28:13]MH_I2C_Read... [09:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:13]Read from MH i2c: E2 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 0E 00 [09:28:13]MH_I2C_Read... [09:28:13]Read from MH i2c: E2 0E 00 4E 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 55 [09:28:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:28:13]wFMCommunicate OK [09:28:13]SAM_PROTO_GetShiftState done [09:28:13]FM_GetShiftState done [09:28:13]opened in 1718760753 [09:28:13]opened+sec_in_day 1718847153 [09:28:13]quantity*price = 25032 [09:28:13]sum+1 = 25034 [09:28:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 22 19.06.2024 09:28 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111273 ФПД: 226618861812801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T092842&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111273&fm=226618861812801&tin=02508201610067®Number=0000000000092771&sum=25000 [09:28:14]StoreToDocumentArchive [09:28:14]shift 388 fd 111273 [09:28:14]save to /storage/0388/doc_00111273 [09:28:14]save last doc name /storage/0388/doc_00111273 to /storage/kkm_last_doc_name [09:28:14]save OK [09:28:14]Clear old archive folders... [09:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:14]tlvbuf is 0198EF10 [09:28:14]SAM_PROTO_ClearQueue [09:28:14]wFMCommunicate request_size=4 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 09 00 00 [09:28:14]Write to MH i2c: E2 08 00 5B 40 80 09 00 00 00 00 00 00 0D [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:14]Read from MH i2c: E2 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 5B 40 00 90 00 0F [09:28:14]RAPDU: 90 00 [09:28:14]wFMCommunicate OK [09:28:14]SAM_PROTO_ClearQueue done [09:28:14]KKMCreateOFDPacket [09:28:14]OFDProtocolAddRootSTLVToBuf [09:28:14]FM_MakeSignedData [09:28:14]FM_MakeSignedData [09:28:14]SAM_PROTO_SignData [09:28:14]wFMCommunicate request_size=4 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 0D 01 02 [09:28:14]Write to MH i2c: E2 08 00 5C 40 80 0D 01 02 00 00 00 00 15 [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:14]Read from MH i2c: E2 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 5C 40 00 90 00 10 [09:28:14]RAPDU: 90 00 [09:28:14]wFMCommunicate OK [09:28:14]wFMCommunicate request_size=255 [09:28:14]MH_SAM_APDU [09:28: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 16 00 00 00 F4 03 04 00 CA A4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B2 01 00 35 04 06 00 CE [09:28:14]Write to MH i2c: E2 02 01 5D 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 16 00 00 00 F4 03 04 00 CA A4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B2 01 00 35 04 06 00 CE 00 00 80 [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]OFD Sender: No OFD packet to send [09:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:14]Read from MH i2c: E2 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 5D 40 00 90 00 11 [09:28:14]RAPDU: 90 00 [09:28:14]wFMCommunicate OK [09:28:14]wFMCommunicate request_size=10 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 0D 02 02 05 1B D0 C1 FC 41 [09:28:14]Write to MH i2c: E2 0D 00 5E 40 80 0D 02 02 05 00 1B D0 C1 FC 41 00 00 0B [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:14]Read from MH i2c: E2 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 [09:28:14]MH_I2C_Read... [09:28:14]Read from MH i2c: E2 03 00 5E 40 00 90 00 12 [09:28:14]RAPDU: 90 00 [09:28:14]wFMCommunicate OK [09:28:14]wFMCommunicate request_size=4 [09:28:14]MH_SAM_APDU [09:28:14]CAPDU: 80 0D 03 02 [09:28:14]Write to MH i2c: E2 08 00 5F 40 80 0D 03 02 00 00 00 00 1A [09:28:14]Write i2c OK [09:28:14]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 0B 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 0B 00 5F 40 00 88 70 08 C4 35 F4 1D F3 90 00 18 [09:28:15]RAPDU: 88 70 08 C4 35 F4 1D F3 90 00 [09:28:15]wFMCommunicate OK [09:28:15]SAM_PROTO_SignData done [09:28:15]FM_MakeSignedData done [09:28:15]CreateOFDProtocolMessage [09:28:15]wFMCommunicate request_size=4 [09:28:15]MH_SAM_APDU [09:28:15]CAPDU: 80 11 00 00 [09:28:15]Write to MH i2c: E2 08 00 60 40 80 11 00 00 00 00 00 00 1A [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:15]Read from MH i2c: E2 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 17 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: E2 17 00 60 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [09:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:28:15]wFMCommunicate OK [09:28:15]CreateOFDProtocolMessage done [09:28:15]OFDSenderStorePacket 111273 [09:28:15]StoreOFDPacket docnum=111273 [09:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F CB 07 01 4C 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 16 00 00 00 F4 03 04 00 CA A4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B2 01 00 35 04 06 00 CE 1B D0 C1 FC 41 88 70 08 C4 35 F4 1D F3 [09:28:15]CheckFolder [09:28:15]dirname=/storage/ofd_packets [09:28:15]CheckFolder done [09:28:15]ProducePacketName [09:28:15]name=ofd_packets/00111273 [09:28:15]NVStorageSaveData ofd_packets/00111273 [09:28:15]File name is /storage/ofd_packets/00111273 [09:28:15]Write 301 bytes [09:28:15]NVStorageSaveData done [09:28:15]OFDSenderStorePacket done [09:28:15]KKMCreateOFDPacket done [09:28:15]NVStorageSaveData kkm_last_timestamp [09:28:15]File name is /storage/kkm_last_timestamp [09:28:15]Write 4 bytes [09:28:15]NVStorageSaveData done [09:28:15]ExternCall_PrintAddStr [09:28:15]wPrintStart [09:28:15]Write to MH i2c: 01 00 00 61 40 A1 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 61 40 00 00 00 00 00 FF 0F B6 [09:28:15]RasterBufferAndPrint [09:28:15]line Счет N : (1)319840 [09:28:15]line ИНН: 02508201610067 [09:28:15]line Контрольно-Кассовый Чек [09:28:15]line ПРОДАЖА [09:28:15]line ТРК (МРК, ГНК) : 11 [09:28:15]line Товар: 2710124130 [09:28:15]line Аи-92-К-5 [09:28:15]line 3.770 * 66.40 [09:28:15]line = 250.33 [09:28:15]line НДС 12% НСП 1% [09:28:15]line > о реализуемом товаре [09:28:15]line ОКРУГЛЕНИЕ: -0.33 [09:28:15]line ИТОГО: 250.00 [09:28:15]line Внесено: 250.00 [09:28:15]line СДАЧА: 0.00 [09:28:15]line НСП 1% : 2.21 [09:28:15]line НДС 12% : 26.58 [09:28:15]line Наличными: 250.00 [09:28:15]line Безнал.: 0.00 [09:28:15]line Место: АЗС № 65 "Партнер Нефть" [09:28:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:28:15]line СНО: Общий режим [09:28:15]line Чек 22 19.06.2024 09:28 [09:28:15]line Смена: 388 ФФД: 1.0 [09:28:15]line ЗНМ: 0300000198 [09:28:15]line РНМ: 0000000000092771 [09:28:15]line Версия ККМ: 001 [09:28:15]line ФМ: 0000000000875083 [09:28:15]line ФД: 111273 [09:28:15]line ФПД: 226618861812801 [09:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T092842&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111273&fm=226618861812801&tin=02508201610067®Number=0000000000092771&sum=25000 [09:28:15]OFD Sender: Processing packet 111273 [packets to send 38, broken 37] [09:28:15]ProducePacketName [09:28:15]name=ofd_packets/00111273 [09:28:15]OFD Sender: To server: pG, [09:28:15]CommunicateWithHost lk.salyk.kg:30040 [09:28:15]ConnectInit lk.salyk.kg [09:28:15]written 0, free lines is 4095 [09:28:15]Connected sock=10 [09:28:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F CB 07 01 4C 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 16 00 00 00 F4 03 04 00 CA A4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B2 01 00 35 04 06 00 CE 1B D0 C1 FC 41 88 70 08 C4 35 F4 1D F3 [09:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5B 42 47 00 CF 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 35 30 38 33 10 04 04 00 A9 B2 01 00 F4 03 04 00 37 3C 72 66 B6 04 01 00 00 91 94 EA AC 38 5F CE 14 [09:28:15]CommunicateWithHost err = 0 [09:28:15]CheckOFDResponse [09:28:15]1017 (14) - 77093643461234 [09:28:15]1041 (16) - 0000000000875083 [09:28:15]1040 (4) - 111273 [09:28:15]1012 (4) - 19.06.2024 02:02 [09:28:15]1206 (1) - 0 [09:28:15]OFD Sender: Remove packet 111273 [09:28:15]ProducePacketName [09:28:15]name=ofd_packets/00111273 [09:28:15]NVStorageDeleteData [09:28:15]Write to MH i2c: 01 00 00 8C 40 CC [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: 01 07 00 8C 40 00 00 00 00 00 CD 0C AC [09:28:15]RasterBufferAndPrint [09:28:15]line [09:28:15]line [09:28:15]line [09:28:15]line [09:28:15]line [09:28:15]written 0, free lines is 3283 [09:28:15]MH_Cut [09:28:15]Write to MH i2c: D1 01 00 93 40 01 A5 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: D1 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: D1 01 00 [09:28:15]MH_I2C_Read... [09:28:15]Read from MH i2c: D1 01 00 93 40 00 A4 [09:28:15]Write to MH i2c: 01 00 00 94 40 D4 [09:28:15]Write i2c OK [09:28:15]MH_I2C_Read... [09:28:16]OFD Sender: No OFD packet to send [09:28:16]*** Cut start [09:28:16]*** Partial cut [09:28:16]*** CUTSNS_PIN = 1 [09:28:16]*** CUTSNS_PIN = 0 [09:28:16]*** Brake cut motor [09:28:17]Read from MH i2c: 01 [09:28:17]MH_I2C_Read... [09:28:17]*** Stop cut motor [09:28:17]*** Cut end [09:28:17]Read from MH i2c: 01 07 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: 01 07 00 94 40 00 00 00 00 00 FF 0F E9 [09:28:17]process_action close_receipt done [09:28:17]requested_data is exist [09:28:17]produce_requested_data [09:28:17]requested_item fm.sn is exist - process it [09:28:17]wFMCommunicate request_size=4 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 11 00 00 [09:28:17]Write to MH i2c: E2 08 00 95 40 80 11 00 00 00 00 00 00 4F [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 [09:28:17]MH_I2C_Read... [09:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:17]Read from MH i2c: E2 17 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 17 00 95 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [09:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:28:17]wFMCommunicate OK [09:28:17]requested_item fd.num is exist - process it [09:28:17]SAM_PROTO_GetFieldsCounters [09:28:17]wFMCommunicate request_size=4 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 13 00 00 [09:28:17]Write to MH i2c: E2 08 00 96 40 80 13 00 00 00 00 00 00 52 [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:17]Read from MH i2c: E2 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 62 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 62 00 96 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [09:28: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:17]wFMCommunicate OK [09:28:17]SAM_PROTO_GetFieldsCounters done [09:28:17]requested_item shift.num is exist - process it [09:28:17]requested_item shift.opened is exist - process it [09:28:17]req_shift_opened [09:28:17]FM_GetShiftState [09:28:17]SAM_PROTO_GetShiftState [09:28:17]wFMCommunicate request_size=4 [09:28:17]MH_SAM_APDU [09:28:17]CAPDU: 80 13 01 00 [09:28:17]Write to MH i2c: E2 08 00 97 40 80 13 01 00 00 00 00 00 54 [09:28:17]Write i2c OK [09:28:17]MH_I2C_Read... [09:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:17]Read from MH i2c: E2 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 0E 00 [09:28:17]MH_I2C_Read... [09:28:17]Read from MH i2c: E2 0E 00 97 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9E [09:28:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:28:17]wFMCommunicate OK [09:28:17]SAM_PROTO_GetShiftState done [09:28:17]FM_GetShiftState done [09:28:17]req_shift_opened done [09:28:17]requested_item shift.open_date is exist - process it [09:28:17]req_shift_open_date [09:28:17]req_shift_open_date done [09:28:17]produce_requested_data done [09:28:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111273,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:28:17]process_action_free close_receipt [09:28:17]json_value_free [09:28:17]json_value_free done [09:28:17]process_json_proto returns [09:28:17]Send response to host [09:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111273,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:28:17]free response buf [09:28:17]execute_script done [09:28:17]execute_script returns [09:28:17]free content buf [09:28:17]Sock 8.Close socket [09:28:17]Sock 8.Thread stoped [09:28:21]OFD Sender: No OFD packet to send [09:28:26]OFD Sender: No OFD packet to send [09:28:31]OFD Sender: No OFD packet to send [09:28:36]OFD Sender: No OFD packet to send [09:28:41]OFD Sender: No OFD packet to send [09:28:46]OFD Sender: No OFD packet to send [09:28:51]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:32:59]accept exits with 9 [09:32:59]New connection [09:32:59]New thread 3067227492 created [09:32:59]Thread 3067084132 joined [09:32:59]Waiting for new connection... [09:32:59] Sock 9.Parse request [09:32:59]Sock 9.Check first char [09:32:59]Sock 9.First char is OK [09:32:59]request: POST /json_proto HTTP/1.0 [09:32:59]Method: POST [09:32:59]URL: /json_proto [09:32:59]Method is POST - this is cgi request [09:32:59]url: /json_proto [09:32:59]query_string will be loaded in cgi processing [09:32:59]execute_cgi json_proto POST (null) [09:32:59]execute_cgi path=json_proto method=POST [09:32:59]POST find Content-Length [09:32:59]Host: 172.17.59.68:8080 [09:32:59]Content-Length: 1191 [09:32:59]Content-Type: application/json [09:32:59] [09:32:59]POST finish read [09:32:59]Found Content-Length = 1191 [09:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319841\u000A19.06.2024 08:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3932996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:59]execute_script... [09:32:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319841\u000A19.06.2024 08:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3932996\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:59]POST & json_proto [09:32:59]process_json_proto [09:32:59]json parsed OK: [09:32:59]protocol is kg_v1.0 [09:32:59]action value=print_text [09:32:59]process_action print_text [09:32:59]cmd_print_text [09:32:59]ExternCall_PrintAddStr [09:32:59]wPrintStart [09:32:59]Write to MH i2c: 01 00 00 98 40 D8 [09:32:59]Write i2c OK [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: 01 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: 01 07 00 [09:32:59]MH_I2C_Read... [09:32:59]Read from MH i2c: 01 07 00 98 40 00 00 00 00 00 FF 0F ED [09:32:59]RasterBufferAndPrint [09:32:59]line *****ТОВАРНЫЙ ЧЕК***** [09:32:59]line АЗС 65 [09:32:59]line Партнер нефть [09:32:59]line 02508201610067 [09:32:59]line Кассир : Амантуров Р. [09:32:59]line Счет N : (1)319841 [09:32:59]line 19.06.2024 08:01 [09:32:59]line ПРОДАЖА [09:32:59]line ТРК (МРК, ГНК): 11 [09:32:59]line Вид ГСМ : 2710124130 [09:32:59]line Аи-92-К-5 [09:32:59]line 20.000 x 66.40 [09:32:59]line ИТОГ: 1328.00 [09:32:59]line Тип оплаты: Талоны: Партнер нефть [09:32:59]line 3932996 [09:32:59]line ______________________ [09:32:59]line (подпись) [09:32:59]written 0, free lines is 4095 [09:33:00]Write to MH i2c: 01 00 00 AC 40 EC [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: 01 07 00 AC 40 00 00 00 00 00 11 0E 12 [09:33:00]RasterBufferAndPrint [09:33:00]line [09:33:00]line [09:33:00]line [09:33:00]line [09:33:00]line [09:33:00]written 0, free lines is 3603 [09:33:00]MH_Cut [09:33:00]Write to MH i2c: D1 01 00 B3 40 01 C5 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: D1 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: D1 01 00 [09:33:00]MH_I2C_Read... [09:33:00]Read from MH i2c: D1 01 00 B3 40 00 C4 [09:33:00]Write to MH i2c: 01 00 00 B4 40 F4 [09:33:00]Write i2c OK [09:33:00]MH_I2C_Read... [09:33:00]*** Cut start [09:33:00]*** Partial cut [09:33:00]*** CUTSNS_PIN = 1 [09:33:00]*** CUTSNS_PIN = 0 [09:33:00]*** Brake cut motor [09:33:01]Read from MH i2c: 01 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: 01 07 00 [09:33:01]MH_I2C_Read... [09:33:01]*** Stop cut motor [09:33:01]*** Cut end [09:33:01]Read from MH i2c: 01 07 00 B4 40 00 00 00 00 00 FF 0F 09 [09:33:01]process_action print_text done [09:33:01]requested_data is exist [09:33:01]produce_requested_data [09:33:01]requested_item fm.sn is exist - process it [09:33:01]wFMCommunicate request_size=4 [09:33:01]MH_SAM_APDU [09:33:01]CAPDU: 80 11 00 00 [09:33:01]Write to MH i2c: E2 08 00 B5 40 80 11 00 00 00 00 00 00 6F [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 17 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 17 00 B5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C1 [09:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:33:01]wFMCommunicate OK [09:33:01]requested_item fd.num is exist - process it [09:33:01]SAM_PROTO_GetFieldsCounters [09:33:01]wFMCommunicate request_size=4 [09:33:01]MH_SAM_APDU [09:33:01]CAPDU: 80 13 00 00 [09:33:01]Write to MH i2c: E2 08 00 B6 40 80 13 00 00 00 00 00 00 72 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]OFD Sender: No OFD packet to send [09:33:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 62 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 62 00 B6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:33: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:01]wFMCommunicate OK [09:33:01]SAM_PROTO_GetFieldsCounters done [09:33:01]requested_item shift.num is exist - process it [09:33:01]requested_item shift.opened is exist - process it [09:33:01]req_shift_opened [09:33:01]FM_GetShiftState [09:33:01]SAM_PROTO_GetShiftState [09:33:01]wFMCommunicate request_size=4 [09:33:01]MH_SAM_APDU [09:33:01]CAPDU: 80 13 01 00 [09:33:01]Write to MH i2c: E2 08 00 B7 40 80 13 01 00 00 00 00 00 74 [09:33:01]Write i2c OK [09:33:01]MH_I2C_Read... [09:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:01]Read from MH i2c: E2 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 0E 00 [09:33:01]MH_I2C_Read... [09:33:01]Read from MH i2c: E2 0E 00 B7 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BE [09:33:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:33:01]wFMCommunicate OK [09:33:01]SAM_PROTO_GetShiftState done [09:33:01]FM_GetShiftState done [09:33:01]req_shift_opened done [09:33:01]requested_item shift.open_date is exist - process it [09:33:01]req_shift_open_date [09:33:01]req_shift_open_date done [09:33:01]produce_requested_data done [09:33:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111273,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:33:01]process_action_free print_text [09:33:01]json_value_free [09:33:01]json_value_free done [09:33:01]process_json_proto returns [09:33:01]Send response to host [09:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111273,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:33:01]free response buf [09:33:01]execute_script done [09:33:01]execute_script returns [09:33:01]free content buf [09:33:01]Sock 9.Close socket [09:33:01]Sock 9.Thread stoped [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:34:58]accept exits with 8 [09:34:58]New connection [09:34:58]New thread 3067084132 created [09:34:58]Thread 3067227492 joined [09:34:58]Waiting for new connection... [09:34:58] Sock 8.Parse request [09:34:58]Sock 8.Check first char [09:34:58]Sock 8.First char is OK [09:34:58]request: POST /json_proto HTTP/1.0 [09:34:58]Method: POST [09:34:58]URL: /json_proto [09:34:58]Method is POST - this is cgi request [09:34:58]url: /json_proto [09:34:58]query_string will be loaded in cgi processing [09:34:58]execute_cgi json_proto POST (null) [09:34:58]execute_cgi path=json_proto method=POST [09:34:58]POST find Content-Length [09:34:58]Host: 172.17.59.68:8080 [09:34:58]Content-Length: 678 [09:34:58]Content-Type: application/json [09:34:58] [09:34:58]POST finish read [09:34:58]Found Content-Length = 678 [09:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:34:58]execute_script... [09:34: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)319842", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:34:58]POST & json_proto [09:34:58]process_json_proto [09:34:58]json parsed OK: [09:34:58]protocol is kg_v1.0 [09:34:58]action value=close_receipt [09:34:58]process_action close_receipt [09:34:58]cmd_close_receipt [09:34:58]MH_GetDate [09:34:58]Write to MH i2c: F0 00 00 B8 40 E7 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: F0 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: F0 09 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: F0 09 00 B8 40 00 5F A6 72 66 BC EC 60 65 3A [09:34:58]GetLastDocTimeStamp 1718789322 [09:34:58]current date 1718789727 [09:34:58]FM_GetShiftState [09:34:58]SAM_PROTO_GetShiftState [09:34:58]wFMCommunicate request_size=4 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 13 01 00 [09:34:58]Write to MH i2c: E2 08 00 B9 40 80 13 01 00 00 00 00 00 76 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 0E 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 0E 00 B9 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C0 [09:34:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:34:58]wFMCommunicate OK [09:34:58]SAM_PROTO_GetShiftState done [09:34:58]FM_GetShiftState done [09:34:58]opened in 1718760753 [09:34:58]opened+sec_in_day 1718847153 [09:34:58]quantity*price = 70052 [09:34:58]sum+1 = 70053 [09:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 23 19.06.2024 09:35 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111274 ФПД: 31211644042036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T093527&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111274&fm=31211644042036&tin=02508201610067®Number=0000000000092771&sum=70000 [09:34:59]StoreToDocumentArchive [09:34:59]shift 388 fd 111274 [09:34:59]save to /storage/0388/doc_00111274 [09:34:59]save last doc name /storage/0388/doc_00111274 to /storage/kkm_last_doc_name [09:34:59]save OK [09:34:59]Clear old archive folders... [09:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:59]tlvbuf is 01A4C0A0 [09:34:59]SAM_PROTO_ClearQueue [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 09 00 00 [09:34:59]Write to MH i2c: E2 08 00 C6 40 80 09 00 00 00 00 00 00 78 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 C6 40 00 90 00 7A [09:34:59]RAPDU: 90 00 [09:34:59]wFMCommunicate OK [09:34:59]SAM_PROTO_ClearQueue done [09:34:59]KKMCreateOFDPacket [09:34:59]OFDProtocolAddRootSTLVToBuf [09:34:59]FM_MakeSignedData [09:34:59]FM_MakeSignedData [09:34:59]SAM_PROTO_SignData [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 0D 01 02 [09:34:59]Write to MH i2c: E2 08 00 C7 40 80 0D 01 02 00 00 00 00 80 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 C7 40 00 90 00 7B [09:34:59]RAPDU: 90 00 [09:34:59]wFMCommunicate OK [09:34:59]wFMCommunicate request_size=255 [09:34:59]MH_SAM_APDU [09:34: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 17 00 00 00 F4 03 04 00 5F A6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B2 01 00 35 04 06 00 1C [09:34:59]Write to MH i2c: E2 02 01 C8 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 17 00 00 00 F4 03 04 00 5F A6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B2 01 00 35 04 06 00 1C 00 00 38 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 C8 40 00 90 00 7C [09:34:59]RAPDU: 90 00 [09:34:59]wFMCommunicate OK [09:34:59]wFMCommunicate request_size=10 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 0D 02 02 05 63 06 F4 BB 34 [09:34:59]Write to MH i2c: E2 0D 00 C9 40 80 0D 02 02 05 00 63 06 F4 BB 34 00 00 D9 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 03 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 03 00 C9 40 00 90 00 7D [09:35:00]RAPDU: 90 00 [09:35:00]wFMCommunicate OK [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 0D 03 02 [09:35:00]Write to MH i2c: E2 08 00 CA 40 80 0D 03 02 00 00 00 00 85 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 0B 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 0B 00 CA 40 00 47 50 F6 D6 7D C5 75 61 90 00 01 [09:35:00]RAPDU: 47 50 F6 D6 7D C5 75 61 90 00 [09:35:00]wFMCommunicate OK [09:35:00]SAM_PROTO_SignData done [09:35:00]FM_MakeSignedData done [09:35:00]CreateOFDProtocolMessage [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 11 00 00 [09:35:00]Write to MH i2c: E2 08 00 CB 40 80 11 00 00 00 00 00 00 85 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 17 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 17 00 CB 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [09:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:35:00]wFMCommunicate OK [09:35:00]CreateOFDProtocolMessage done [09:35:00]OFDSenderStorePacket 111274 [09:35:00]StoreOFDPacket docnum=111274 [09:35:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 66 07 07 01 7E 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 17 00 00 00 F4 03 04 00 5F A6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B2 01 00 35 04 06 00 1C 63 06 F4 BB 34 47 50 F6 D6 7D C5 75 61 [09:35:00]CheckFolder [09:35:00]dirname=/storage/ofd_packets [09:35:00]CheckFolder done [09:35:00]ProducePacketName [09:35:00]name=ofd_packets/00111274 [09:35:00]NVStorageSaveData ofd_packets/00111274 [09:35:00]File name is /storage/ofd_packets/00111274 [09:35:00]Write 301 bytes [09:35:00]NVStorageSaveData done [09:35:00]OFDSenderStorePacket done [09:35:00]KKMCreateOFDPacket done [09:35:00]NVStorageSaveData kkm_last_timestamp [09:35:00]File name is /storage/kkm_last_timestamp [09:35:00]Write 4 bytes [09:35:00]NVStorageSaveData done [09:35:00]ExternCall_PrintAddStr [09:35:00]wPrintStart [09:35:00]Write to MH i2c: 01 00 00 CC 40 0C [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: 01 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: 01 07 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: 01 07 00 CC 40 00 00 00 00 00 FF 0F 21 [09:35:00]RasterBufferAndPrint [09:35:00]line Счет N : (1)319842 [09:35:00]line ИНН: 02508201610067 [09:35:00]line Контрольно-Кассовый Чек [09:35:00]line ПРОДАЖА [09:35:00]line ТРК (МРК, ГНК) : 11 [09:35:00]line Товар: 2710124130 [09:35:00]line Аи-92-К-5 [09:35:00]line 10.550 * 66.40 [09:35:00]line = 700.52 [09:35:00]line НДС 12% НСП 1% [09:35:00]line > о реализуемом товаре [09:35:00]line ОКРУГЛЕНИЕ: -0.52 [09:35:00]line ИТОГО: 700.00 [09:35:00]line Внесено: 700.00 [09:35:00]line СДАЧА: 0.00 [09:35:00]line НСП 1% : 6.20 [09:35:00]line НДС 12% : 74.39 [09:35:00]line Наличными: 700.00 [09:35:00]line Безнал.: 0.00 [09:35:00]line Место: АЗС № 65 "Партнер Нефть" [09:35:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:35:00]line СНО: Общий режим [09:35:00]line Чек 23 19.06.2024 09:35 [09:35:00]line Смена: 388 ФФД: 1.0 [09:35:00]line ЗНМ: 0300000198 [09:35:00]line РНМ: 0000000000092771 [09:35:00]line Версия ККМ: 001 [09:35:00]line ФМ: 0000000000875083 [09:35:00]line ФД: 111274 [09:35:00]line ФПД: 31211644042036 [09:35:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T093527&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111274&fm=31211644042036&tin=02508201610067®Number=0000000000092771&sum=70000 [09:35:00]OFD Sender: Processing packet 111274 [packets to send 38, broken 37] [09:35:00]ProducePacketName [09:35:00]name=ofd_packets/00111274 [09:35:00]OFD Sender: To server: pG, [09:35:00]CommunicateWithHost lk.salyk.kg:30040 [09:35:00]ConnectInit lk.salyk.kg [09:35:00]written 0, free lines is 4095 [09:35:00]Connected sock=10 [09:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 66 07 07 01 7E 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 17 00 00 00 F4 03 04 00 5F A6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B2 01 00 35 04 06 00 1C 63 06 F4 BB 34 47 50 F6 D6 7D C5 75 61 [09:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E6 A3 47 00 C2 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B2 01 00 F4 03 04 00 CC 3D 72 66 B6 04 01 00 00 5A C8 36 F8 EB F6 D0 71 [09:35:00]CommunicateWithHost err = 0 [09:35:00]CheckOFDResponse [09:35:00]1017 (14) - 77093643461234 [09:35:00]1041 (16) - 0000000000875083 [09:35:00]1040 (4) - 111274 [09:35:00]1012 (4) - 19.06.2024 02:09 [09:35:00]1206 (1) - 0 [09:35:00]OFD Sender: Remove packet 111274 [09:35:00]ProducePacketName [09:35:00]name=ofd_packets/00111274 [09:35:00]NVStorageDeleteData [09:35:00]Write to MH i2c: 01 00 00 F7 40 37 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: 01 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: 01 07 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: 01 07 00 F7 40 00 00 00 00 00 CA 0C 14 [09:35:00]RasterBufferAndPrint [09:35:00]line [09:35:00]line [09:35:00]line [09:35:00]line [09:35:00]line [09:35:00]written 0, free lines is 3280 [09:35:00]MH_Cut [09:35:00]Write to MH i2c: D1 01 00 FE 40 01 10 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: D1 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: D1 01 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: D1 01 00 FE 40 00 0F [09:35:00]Write to MH i2c: 01 00 00 FF 40 3F [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:01]OFD Sender: No OFD packet to send [09:35:01]*** Cut start [09:35:01]*** Partial cut [09:35:01]*** CUTSNS_PIN = 1 [09:35:01]*** CUTSNS_PIN = 0 [09:35:01]*** Brake cut motor [09:35:02]Read from MH i2c: 01 [09:35:02]MH_I2C_Read... [09:35:02]*** Stop cut motor [09:35:02]*** Cut end [09:35:02]Read from MH i2c: 01 07 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: 01 07 00 FF 40 00 00 00 00 00 FF 0F 54 [09:35:02]process_action close_receipt done [09:35:02]requested_data is exist [09:35:02]produce_requested_data [09:35:02]requested_item fm.sn is exist - process it [09:35:02]wFMCommunicate request_size=4 [09:35:02]MH_SAM_APDU [09:35:02]CAPDU: 80 11 00 00 [09:35:02]Write to MH i2c: E2 08 00 00 41 80 11 00 00 00 00 00 00 BB [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:02]Read from MH i2c: E2 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 17 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 17 00 00 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [09:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:35:02]wFMCommunicate OK [09:35:02]requested_item fd.num is exist - process it [09:35:02]SAM_PROTO_GetFieldsCounters [09:35:02]wFMCommunicate request_size=4 [09:35:02]MH_SAM_APDU [09:35:02]CAPDU: 80 13 00 00 [09:35:02]Write to MH i2c: E2 08 00 01 41 80 13 00 00 00 00 00 00 BE [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:02]Read from MH i2c: E2 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 62 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 62 00 01 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [09:35: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:02]wFMCommunicate OK [09:35:02]SAM_PROTO_GetFieldsCounters done [09:35:02]requested_item shift.num is exist - process it [09:35:02]requested_item shift.opened is exist - process it [09:35:02]req_shift_opened [09:35:02]FM_GetShiftState [09:35:02]SAM_PROTO_GetShiftState [09:35:02]wFMCommunicate request_size=4 [09:35:02]MH_SAM_APDU [09:35:02]CAPDU: 80 13 01 00 [09:35:02]Write to MH i2c: E2 08 00 02 41 80 13 01 00 00 00 00 00 C0 [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:02]Read from MH i2c: E2 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 0E 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 0E 00 02 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0A [09:35:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:35:02]wFMCommunicate OK [09:35:02]SAM_PROTO_GetShiftState done [09:35:02]FM_GetShiftState done [09:35:02]req_shift_opened done [09:35:02]requested_item shift.open_date is exist - process it [09:35:02]req_shift_open_date [09:35:02]req_shift_open_date done [09:35:02]produce_requested_data done [09:35:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111274,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:35:02]process_action_free close_receipt [09:35:02]json_value_free [09:35:02]json_value_free done [09:35:02]process_json_proto returns [09:35:02]Send response to host [09:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111274,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:35:02]free response buf [09:35:02]execute_script done [09:35:02]execute_script returns [09:35:02]free content buf [09:35:02]Sock 8.Close socket [09:35:02]Sock 8.Thread stoped [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:05]accept exits with 9 [09:37:05]New connection [09:37:05]New thread 3067227492 created [09:37:05]Thread 3067084132 joined [09:37:05]Waiting for new connection... [09:37:05] Sock 9.Parse request [09:37:05]Sock 9.Check first char [09:37:05]Sock 9.First char is OK [09:37:05]request: POST /json_proto HTTP/1.0 [09:37:05]Method: POST [09:37:05]URL: /json_proto [09:37:05]Method is POST - this is cgi request [09:37:05]url: /json_proto [09:37:05]query_string will be loaded in cgi processing [09:37:05]execute_cgi json_proto POST (null) [09:37:05]execute_cgi path=json_proto method=POST [09:37:05]POST find Content-Length [09:37:05]Host: 172.17.59.68:8080 [09:37:05]Content-Length: 678 [09:37:05]Content-Type: application/json [09:37:05] [09:37:05]POST finish read [09:37:05]Found Content-Length = 678 [09:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:37:05]execute_script... [09:37: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)319843", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:37:05]POST & json_proto [09:37:05]process_json_proto [09:37:05]json parsed OK: [09:37:05]protocol is kg_v1.0 [09:37:05]action value=close_receipt [09:37:05]process_action close_receipt [09:37:05]cmd_close_receipt [09:37:05]MH_GetDate [09:37:05]Write to MH i2c: F0 00 00 03 41 33 [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: F0 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: F0 09 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: F0 09 00 03 41 00 DE A6 72 66 BC EC 60 65 05 [09:37:05]GetLastDocTimeStamp 1718789727 [09:37:05]current date 1718789854 [09:37:05]FM_GetShiftState [09:37:05]SAM_PROTO_GetShiftState [09:37:05]wFMCommunicate request_size=4 [09:37:05]MH_SAM_APDU [09:37:05]CAPDU: 80 13 01 00 [09:37:05]Write to MH i2c: E2 08 00 04 41 80 13 01 00 00 00 00 00 C2 [09:37:05]Write i2c OK [09:37:05]MH_I2C_Read... [09:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:05]Read from MH i2c: E2 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 0E 00 [09:37:05]MH_I2C_Read... [09:37:05]Read from MH i2c: E2 0E 00 04 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0C [09:37:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:37:05]wFMCommunicate OK [09:37:05]SAM_PROTO_GetShiftState done [09:37:05]FM_GetShiftState done [09:37:05]opened in 1718760753 [09:37:05]opened+sec_in_day 1718847153 [09:37:05]quantity*price = 70052 [09:37:05]sum+1 = 70053 [09:37:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 24 19.06.2024 09:37 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111275 ФПД: 148686540566274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T093734&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111275&fm=148686540566274&tin=02508201610067®Number=0000000000092771&sum=70000 [09:37:06]StoreToDocumentArchive [09:37:06]shift 388 fd 111275 [09:37:06]save to /storage/0388/doc_00111275 [09:37:06]save last doc name /storage/0388/doc_00111275 to /storage/kkm_last_doc_name [09:37:06]save OK [09:37:06]Clear old archive folders... [09:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:06]tlvbuf is 0197B830 [09:37:06]SAM_PROTO_ClearQueue [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 09 00 00 [09:37:06]Write to MH i2c: E2 08 00 11 41 80 09 00 00 00 00 00 00 C4 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 03 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 03 00 11 41 00 90 00 C6 [09:37:06]RAPDU: 90 00 [09:37:06]wFMCommunicate OK [09:37:06]SAM_PROTO_ClearQueue done [09:37:06]KKMCreateOFDPacket [09:37:06]OFDProtocolAddRootSTLVToBuf [09:37:06]FM_MakeSignedData [09:37:06]FM_MakeSignedData [09:37:06]SAM_PROTO_SignData [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 0D 01 02 [09:37:06]Write to MH i2c: E2 08 00 12 41 80 0D 01 02 00 00 00 00 CC [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 03 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 03 00 12 41 00 90 00 C7 [09:37:06]RAPDU: 90 00 [09:37:06]wFMCommunicate OK [09:37:06]wFMCommunicate request_size=255 [09:37:06]MH_SAM_APDU [09:37: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 18 00 00 00 F4 03 04 00 DE A6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B2 01 00 35 04 06 00 87 [09:37:06]Write to MH i2c: E2 02 01 13 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 18 00 00 00 F4 03 04 00 DE A6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B2 01 00 35 04 06 00 87 00 00 70 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 13 41 00 90 00 C8 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=10 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 05 3A C8 6E EF 02 [09:37:07]Write to MH i2c: E2 0D 00 14 41 80 0D 02 02 05 00 3A C8 6E EF 02 00 00 3A [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 14 41 00 90 00 C9 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 03 02 [09:37:07]Write to MH i2c: E2 08 00 15 41 80 0D 03 02 00 00 00 00 D1 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0B 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0B 00 15 41 00 F6 A5 A8 EC 6D AB F6 A8 90 00 B7 [09:37:07]RAPDU: F6 A5 A8 EC 6D AB F6 A8 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_SignData done [09:37:07]FM_MakeSignedData done [09:37:07]CreateOFDProtocolMessage [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 11 00 00 [09:37:07]Write to MH i2c: E2 08 00 16 41 80 11 00 00 00 00 00 00 D1 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 17 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 17 00 16 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [09:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:37:07]wFMCommunicate OK [09:37:07]CreateOFDProtocolMessage done [09:37:07]OFDSenderStorePacket 111275 [09:37:07]StoreOFDPacket docnum=111275 [09:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 BE 07 01 2B 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 18 00 00 00 F4 03 04 00 DE A6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B2 01 00 35 04 06 00 87 3A C8 6E EF 02 F6 A5 A8 EC 6D AB F6 A8 [09:37:07]CheckFolder [09:37:07]dirname=/storage/ofd_packets [09:37:07]CheckFolder done [09:37:07]ProducePacketName [09:37:07]name=ofd_packets/00111275 [09:37:07]NVStorageSaveData ofd_packets/00111275 [09:37:07]File name is /storage/ofd_packets/00111275 [09:37:07]Write 301 bytes [09:37:07]NVStorageSaveData done [09:37:07]OFDSenderStorePacket done [09:37:07]KKMCreateOFDPacket done [09:37:07]NVStorageSaveData kkm_last_timestamp [09:37:07]File name is /storage/kkm_last_timestamp [09:37:07]Write 4 bytes [09:37:07]NVStorageSaveData done [09:37:07]ExternCall_PrintAddStr [09:37:07]wPrintStart [09:37:07]Write to MH i2c: 01 00 00 17 41 58 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 07 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 07 00 17 41 00 00 00 00 00 FF 0F 6D [09:37:07]RasterBufferAndPrint [09:37:07]line Счет N : (1)319843 [09:37:07]line ИНН: 02508201610067 [09:37:07]line Контрольно-Кассовый Чек [09:37:07]line ПРОДАЖА [09:37:07]line ТРК (МРК, ГНК) : 11 [09:37:07]line Товар: 2710124130 [09:37:07]line Аи-92-К-5 [09:37:07]line 10.550 * 66.40 [09:37:07]line = 700.52 [09:37:07]line НДС 12% НСП 1% [09:37:07]line > о реализуемом товаре [09:37:07]line ОКРУГЛЕНИЕ: -0.52 [09:37:07]line ИТОГО: 700.00 [09:37:07]line Внесено: 700.00 [09:37:07]line СДАЧА: 0.00 [09:37:07]line НСП 1% : 6.20 [09:37:07]line НДС 12% : 74.39 [09:37:07]line Наличными: 700.00 [09:37:07]line Безнал.: 0.00 [09:37:07]line Место: АЗС № 65 "Партнер Нефть" [09:37:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:37:07]line СНО: Общий режим [09:37:07]line Чек 24 19.06.2024 09:37 [09:37:07]line Смена: 388 ФФД: 1.0 [09:37:07]line ЗНМ: 0300000198 [09:37:07]line РНМ: 0000000000092771 [09:37:07]line Версия ККМ: 001 [09:37:07]line ФМ: 0000000000875083 [09:37:07]line ФД: 111275 [09:37:07]line ФПД: 148686540566274 [09:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T093734&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111275&fm=148686540566274&tin=02508201610067®Number=0000000000092771&sum=70000 [09:37:07]OFD Sender: Processing packet 111275 [packets to send 38, broken 37] [09:37:07]ProducePacketName [09:37:07]name=ofd_packets/00111275 [09:37:07]OFD Sender: To server: pG, [09:37:07]CommunicateWithHost lk.salyk.kg:30040 [09:37:07]ConnectInit lk.salyk.kg [09:37:07]written 0, free lines is 4095 [09:37:07]Connected sock=10 [09:37:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F7 BE 07 01 2B 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 18 00 00 00 F4 03 04 00 DE A6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B2 01 00 35 04 06 00 87 3A C8 6E EF 02 F6 A5 A8 EC 6D AB F6 A8 [09:37:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1A 1D 47 00 E3 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B2 01 00 F4 03 04 00 4B 3E 72 66 B6 04 01 00 00 67 2C 39 E4 6B B5 56 59 [09:37:07]CommunicateWithHost err = 0 [09:37:07]CheckOFDResponse [09:37:07]1017 (14) - 77093643461234 [09:37:07]1041 (16) - 0000000000875083 [09:37:07]1040 (4) - 111275 [09:37:07]1012 (4) - 19.06.2024 02:11 [09:37:07]1206 (1) - 0 [09:37:07]OFD Sender: Remove packet 111275 [09:37:07]ProducePacketName [09:37:07]name=ofd_packets/00111275 [09:37:07]NVStorageDeleteData [09:37:07]Write to MH i2c: 01 00 00 42 41 83 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 07 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 07 00 42 41 00 00 00 00 00 CC 0C 62 [09:37:07]RasterBufferAndPrint [09:37:07]line [09:37:07]line [09:37:07]line [09:37:07]line [09:37:07]line [09:37:07]written 0, free lines is 3281 [09:37:07]MH_Cut [09:37:07]Write to MH i2c: D1 01 00 49 41 01 5C [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: D1 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: D1 01 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: D1 01 00 49 41 00 5B [09:37:07]Write to MH i2c: 01 00 00 4A 41 8B [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:08]OFD Sender: No OFD packet to send [09:37:08]*** Cut start [09:37:08]*** Partial cut [09:37:08]*** CUTSNS_PIN = 1 [09:37:08]*** CUTSNS_PIN = 0 [09:37:08]*** Brake cut motor [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]*** Stop cut motor [09:37:09]*** Cut end [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 4A 41 00 00 00 00 00 FF 0F A0 [09:37:09]process_action close_receipt done [09:37:09]requested_data is exist [09:37:09]produce_requested_data [09:37:09]requested_item fm.sn is exist - process it [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 11 00 00 [09:37:09]Write to MH i2c: E2 08 00 4B 41 80 11 00 00 00 00 00 00 06 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 4B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [09:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:37:09]wFMCommunicate OK [09:37:09]requested_item fd.num is exist - process it [09:37:09]SAM_PROTO_GetFieldsCounters [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 13 00 00 [09:37:09]Write to MH i2c: E2 08 00 4C 41 80 13 00 00 00 00 00 00 09 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 62 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 62 00 4C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [09:37: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_GetFieldsCounters done [09:37:09]requested_item shift.num is exist - process it [09:37:09]requested_item shift.opened is exist - process it [09:37:09]req_shift_opened [09:37:09]FM_GetShiftState [09:37:09]SAM_PROTO_GetShiftState [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 13 01 00 [09:37:09]Write to MH i2c: E2 08 00 4D 41 80 13 01 00 00 00 00 00 0B [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0E 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0E 00 4D 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 55 [09:37:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_GetShiftState done [09:37:09]FM_GetShiftState done [09:37:09]req_shift_opened done [09:37:09]requested_item shift.open_date is exist - process it [09:37:09]req_shift_open_date [09:37:09]req_shift_open_date done [09:37:09]produce_requested_data done [09:37:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111275,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:37:09]process_action_free close_receipt [09:37:09]json_value_free [09:37:09]json_value_free done [09:37:09]process_json_proto returns [09:37:09]Send response to host [09:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111275,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:37:09]free response buf [09:37:09]execute_script done [09:37:09]execute_script returns [09:37:09]free content buf [09:37:09]Sock 9.Close socket [09:37:09]Sock 9.Thread stoped [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:05]accept exits with 8 [09:43:05]New connection [09:43:05]New thread 3067084132 created [09:43:05]Thread 3067227492 joined [09:43:05]Waiting for new connection... [09:43:05] Sock 8.Parse request [09:43:05]Sock 8.Check first char [09:43:05]Sock 8.First char is OK [09:43:05]request: POST /json_proto HTTP/1.0 [09:43:05]Method: POST [09:43:05]URL: /json_proto [09:43:05]Method is POST - this is cgi request [09:43:05]url: /json_proto [09:43:05]query_string will be loaded in cgi processing [09:43:05]execute_cgi json_proto POST (null) [09:43:05]execute_cgi path=json_proto method=POST [09:43:05]POST find Content-Length [09:43:05]Host: 172.17.59.68:8080 [09:43:05]Content-Length: 677 [09:43:05]Content-Type: application/json [09:43:05] [09:43:05]POST finish read [09:43:05]Found Content-Length = 677 [09:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:43:05]execute_script... [09:43: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)319844", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:43:05]POST & json_proto [09:43:05]process_json_proto [09:43:05]json parsed OK: [09:43:05]protocol is kg_v1.0 [09:43:05]action value=close_receipt [09:43:05]process_action close_receipt [09:43:05]cmd_close_receipt [09:43:05]MH_GetDate [09:43:05]Write to MH i2c: F0 00 00 4E 41 7E [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: F0 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: F0 09 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: F0 09 00 4E 41 00 46 A8 72 66 BC EC 60 65 BA [09:43:05]GetLastDocTimeStamp 1718789854 [09:43:05]current date 1718790214 [09:43:05]FM_GetShiftState [09:43:05]SAM_PROTO_GetShiftState [09:43:05]wFMCommunicate request_size=4 [09:43:05]MH_SAM_APDU [09:43:05]CAPDU: 80 13 01 00 [09:43:05]Write to MH i2c: E2 08 00 4F 41 80 13 01 00 00 00 00 00 0D [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:05]Read from MH i2c: E2 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 0E 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 0E 00 4F 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 57 [09:43:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:43:05]wFMCommunicate OK [09:43:05]SAM_PROTO_GetShiftState done [09:43:05]FM_GetShiftState done [09:43:05]opened in 1718760753 [09:43:05]opened+sec_in_day 1718847153 [09:43:05]quantity*price = 30012 [09:43:05]sum+1 = 30014 [09:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 25 19.06.2024 09:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111276 ФПД: 268457646683858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094334&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111276&fm=268457646683858&tin=02508201610067®Number=0000000000092771&sum=30000 [09:43:06]StoreToDocumentArchive [09:43:06]shift 388 fd 111276 [09:43:06]save to /storage/0388/doc_00111276 [09:43:06]save last doc name /storage/0388/doc_00111276 to /storage/kkm_last_doc_name [09:43:06]save OK [09:43:06]Clear old archive folders... [09:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:06]tlvbuf is 01A8AB90 [09:43:06]SAM_PROTO_ClearQueue [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 09 00 00 [09:43:06]Write to MH i2c: E2 08 00 5C 41 80 09 00 00 00 00 00 00 0F [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 5C 41 00 90 00 11 [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]SAM_PROTO_ClearQueue done [09:43:06]KKMCreateOFDPacket [09:43:06]OFDProtocolAddRootSTLVToBuf [09:43:06]FM_MakeSignedData [09:43:06]FM_MakeSignedData [09:43:06]SAM_PROTO_SignData [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 01 02 [09:43:06]Write to MH i2c: E2 08 00 5D 41 80 0D 01 02 00 00 00 00 17 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 5D 41 00 90 00 12 [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]wFMCommunicate request_size=255 [09:43:06]MH_SAM_APDU [09:43: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 46 A8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B2 01 00 35 04 06 00 F4 [09:43:06]Write to MH i2c: E2 02 01 5E 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 46 A8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B2 01 00 35 04 06 00 F4 00 00 20 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 5E 41 00 90 00 13 [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]wFMCommunicate request_size=10 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 02 02 05 29 2A AA F6 D2 [09:43:06]Write to MH i2c: E2 0D 00 5F 41 80 0D 02 02 05 00 29 2A AA F6 D2 00 00 E9 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 5F 41 00 90 00 14 [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 03 02 [09:43:06]Write to MH i2c: E2 08 00 60 41 80 0D 03 02 00 00 00 00 1C [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 0B 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 0B 00 60 41 00 6C 07 E7 38 1A 36 60 43 90 00 A2 [09:43:06]RAPDU: 6C 07 E7 38 1A 36 60 43 90 00 [09:43:06]wFMCommunicate OK [09:43:06]SAM_PROTO_SignData done [09:43:06]FM_MakeSignedData done [09:43:06]CreateOFDProtocolMessage [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 11 00 00 [09:43:06]Write to MH i2c: E2 08 00 61 41 80 11 00 00 00 00 00 00 1C [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 61 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [09:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:43:06]wFMCommunicate OK [09:43:06]CreateOFDProtocolMessage done [09:43:06]OFDSenderStorePacket 111276 [09:43:06]StoreOFDPacket docnum=111276 [09:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 C5 07 01 85 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 46 A8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B2 01 00 35 04 06 00 F4 29 2A AA F6 D2 6C 07 E7 38 1A 36 60 43 [09:43:06]CheckFolder [09:43:06]dirname=/storage/ofd_packets [09:43:06]CheckFolder done [09:43:06]ProducePacketName [09:43:06]name=ofd_packets/00111276 [09:43:06]NVStorageSaveData ofd_packets/00111276 [09:43:06]File name is /storage/ofd_packets/00111276 [09:43:06]Write 301 bytes [09:43:06]NVStorageSaveData done [09:43:06]OFDSenderStorePacket done [09:43:06]KKMCreateOFDPacket done [09:43:06]NVStorageSaveData kkm_last_timestamp [09:43:06]File name is /storage/kkm_last_timestamp [09:43:06]Write 4 bytes [09:43:06]NVStorageSaveData done [09:43:06]ExternCall_PrintAddStr [09:43:06]wPrintStart [09:43:06]Write to MH i2c: 01 00 00 62 41 A3 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 62 41 00 00 00 00 00 FF 0F B8 [09:43:06]RasterBufferAndPrint [09:43:06]line Счет N : (1)319844 [09:43:06]line ИНН: 02508201610067 [09:43:06]line Контрольно-Кассовый Чек [09:43:06]line ПРОДАЖА [09:43:06]line ТРК (МРК, ГНК) : 11 [09:43:06]line Товар: 2710124130 [09:43:06]line Аи-92-К-5 [09:43:06]line 4.520 * 66.40 [09:43:06]line = 300.13 [09:43:06]line НДС 12% НСП 1% [09:43:06]line > о реализуемом товаре [09:43:06]line ОКРУГЛЕНИЕ: -0.13 [09:43:06]line ИТОГО: 300.00 [09:43:06]line Внесено: 300.00 [09:43:06]line СДАЧА: 0.00 [09:43:06]line НСП 1% : 2.66 [09:43:06]line НДС 12% : 31.87 [09:43:06]line Наличными: 300.00 [09:43:06]line Безнал.: 0.00 [09:43:06]line Место: АЗС № 65 "Партнер Нефть" [09:43:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:43:06]line СНО: Общий режим [09:43:06]line Чек 25 19.06.2024 09:43 [09:43:06]line Смена: 388 ФФД: 1.0 [09:43:06]line ЗНМ: 0300000198 [09:43:06]line РНМ: 0000000000092771 [09:43:06]line Версия ККМ: 001 [09:43:06]line ФМ: 0000000000875083 [09:43:06]line ФД: 111276 [09:43:06]line ФПД: 268457646683858 [09:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094334&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111276&fm=268457646683858&tin=02508201610067®Number=0000000000092771&sum=30000 [09:43:07]OFD Sender: Processing packet 111276 [packets to send 38, broken 37] [09:43:07]ProducePacketName [09:43:07]name=ofd_packets/00111276 [09:43:07]OFD Sender: To server: pG, [09:43:07]CommunicateWithHost lk.salyk.kg:30040 [09:43:07]ConnectInit lk.salyk.kg [09:43:07]written 0, free lines is 4095 [09:43:07]Connected sock=10 [09:43:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 C5 07 01 85 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 46 A8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B2 01 00 35 04 06 00 F4 29 2A AA F6 D2 6C 07 E7 38 1A 36 60 43 [09:43:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 73 CA 47 00 4A 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B2 01 00 F4 03 04 00 B3 3F 72 66 B6 04 01 00 00 5D 0D D8 52 8A C3 0C 50 [09:43:07]CommunicateWithHost err = 0 [09:43:07]CheckOFDResponse [09:43:07]1017 (14) - 77093643461234 [09:43:07]1041 (16) - 0000000000875083 [09:43:07]1040 (4) - 111276 [09:43:07]1012 (4) - 19.06.2024 02:17 [09:43:07]1206 (1) - 0 [09:43:07]OFD Sender: Remove packet 111276 [09:43:07]ProducePacketName [09:43:07]name=ofd_packets/00111276 [09:43:07]NVStorageDeleteData [09:43:07]Write to MH i2c: 01 00 00 8D 41 CE [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 8D 41 00 00 00 00 00 D4 0C B5 [09:43:07]RasterBufferAndPrint [09:43:07]line [09:43:07]line [09:43:07]line [09:43:07]line [09:43:07]line [09:43:07]written 0, free lines is 3292 [09:43:07]MH_Cut [09:43:07]Write to MH i2c: D1 01 00 94 41 01 A7 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D1 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D1 01 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: D1 01 00 94 41 00 A6 [09:43:07]Write to MH i2c: 01 00 00 95 41 D6 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]OFD Sender: No OFD packet to send [09:43:08]*** Cut start [09:43:08]*** Partial cut [09:43:08]*** CUTSNS_PIN = 1 [09:43:08]*** CUTSNS_PIN = 0 [09:43:08]*** Brake cut motor [09:43:08]Read from MH i2c: 01 [09:43:08]MH_I2C_Read... [09:43:08]*** Stop cut motor [09:43:09]*** Cut end [09:43:09]Read from MH i2c: 01 07 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: 01 07 00 95 41 00 00 00 00 00 FF 0F EB [09:43:09]process_action close_receipt done [09:43:09]requested_data is exist [09:43:09]produce_requested_data [09:43:09]requested_item fm.sn is exist - process it [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 11 00 00 [09:43:09]Write to MH i2c: E2 08 00 96 41 80 11 00 00 00 00 00 00 51 [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 17 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 17 00 96 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [09:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:43:09]wFMCommunicate OK [09:43:09]requested_item fd.num is exist - process it [09:43:09]SAM_PROTO_GetFieldsCounters [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 13 00 00 [09:43:09]Write to MH i2c: E2 08 00 97 41 80 13 00 00 00 00 00 00 54 [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 62 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 62 00 97 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [09:43: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:09]wFMCommunicate OK [09:43:09]SAM_PROTO_GetFieldsCounters done [09:43:09]requested_item shift.num is exist - process it [09:43:09]requested_item shift.opened is exist - process it [09:43:09]req_shift_opened [09:43:09]FM_GetShiftState [09:43:09]SAM_PROTO_GetShiftState [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 13 01 00 [09:43:09]Write to MH i2c: E2 08 00 98 41 80 13 01 00 00 00 00 00 56 [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 0E 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 0E 00 98 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A0 [09:43:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:43:09]wFMCommunicate OK [09:43:09]SAM_PROTO_GetShiftState done [09:43:09]FM_GetShiftState done [09:43:09]req_shift_opened done [09:43:09]requested_item shift.open_date is exist - process it [09:43:09]req_shift_open_date [09:43:09]req_shift_open_date done [09:43:09]produce_requested_data done [09:43:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111276,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:43:09]process_action_free close_receipt [09:43:09]json_value_free [09:43:09]json_value_free done [09:43:09]process_json_proto returns [09:43:09]Send response to host [09:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111276,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:43:09]free response buf [09:43:09]execute_script done [09:43:09]execute_script returns [09:43:09]free content buf [09:43:09]Sock 8.Close socket [09:43:09]Sock 8.Thread stoped [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:38]accept exits with 9 [09:46:38]New connection [09:46:38]New thread 3067227492 created [09:46:38]Thread 3067084132 joined [09:46:38]Waiting for new connection... [09:46:38] Sock 9.Parse request [09:46:38]Sock 9.Check first char [09:46:38]Sock 9.First char is OK [09:46:38]request: POST /json_proto HTTP/1.0 [09:46:38]Method: POST [09:46:38]URL: /json_proto [09:46:38]Method is POST - this is cgi request [09:46:38]url: /json_proto [09:46:38]query_string will be loaded in cgi processing [09:46:38]execute_cgi json_proto POST (null) [09:46:38]execute_cgi path=json_proto method=POST [09:46:38]POST find Content-Length [09:46:38]Host: 172.17.59.68:8080 [09:46:38]Content-Length: 806 [09:46:38]Content-Type: application/json [09:46:38] [09:46:38]POST finish read [09:46:38]Found Content-Length = 806 [09:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 665.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:38]execute_script... [09:46: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)319845", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 665.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:38]POST & json_proto [09:46:38]process_json_proto [09:46:38]json parsed OK: [09:46:38]protocol is kg_v1.0 [09:46:38]action value=close_receipt [09:46:38]process_action close_receipt [09:46:38]cmd_close_receipt [09:46:38]MH_GetDate [09:46:38]Write to MH i2c: F0 00 00 99 41 C9 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 09 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 09 00 99 41 00 1B A9 72 66 BC EC 60 65 DB [09:46:38]GetLastDocTimeStamp 1718790214 [09:46:38]current date 1718790427 [09:46:38]FM_GetShiftState [09:46:38]SAM_PROTO_GetShiftState [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 13 01 00 [09:46:38]Write to MH i2c: E2 08 00 9A 41 80 13 01 00 00 00 00 00 58 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 9A 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A2 [09:46:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:46:38]wFMCommunicate OK [09:46:38]SAM_PROTO_GetShiftState done [09:46:38]FM_GetShiftState done [09:46:38]opened in 1718760753 [09:46:38]opened+sec_in_day 1718847153 [09:46:38]quantity*price = 66532 [09:46:38]sum+1 = 66534 [09:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 665.33 НСП 1% : 5.89 НДС 12% : 70.65 Наличными: 0.00 Безнал.: 665.33 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 26 19.06.2024 09:47 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111277 ФПД: 68797440768412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094707&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111277&fm=68797440768412&tin=02508201610067®Number=0000000000092771&sum=66533 [09:46:39]StoreToDocumentArchive [09:46:39]shift 388 fd 111277 [09:46:39]save to /storage/0388/doc_00111277 [09:46:39]save last doc name /storage/0388/doc_00111277 to /storage/kkm_last_doc_name [09:46:39]save OK [09:46:39]Clear old archive folders... [09:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:39]tlvbuf is 01A07280 [09:46:39]SAM_PROTO_ClearQueue [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 09 00 00 [09:46:39]Write to MH i2c: E2 08 00 A7 41 80 09 00 00 00 00 00 00 5A [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 A7 41 00 90 00 5C [09:46:39]RAPDU: 90 00 [09:46:39]wFMCommunicate OK [09:46:39]SAM_PROTO_ClearQueue done [09:46:39]KKMCreateOFDPacket [09:46:39]OFDProtocolAddRootSTLVToBuf [09:46:39]FM_MakeSignedData [09:46:39]FM_MakeSignedData [09:46:39]SAM_PROTO_SignData [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 0D 01 02 [09:46:39]Write to MH i2c: E2 08 00 A8 41 80 0D 01 02 00 00 00 00 62 [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 A8 41 00 90 00 5D [09:46:39]RAPDU: 90 00 [09:46:39]wFMCommunicate OK [09:46:39]wFMCommunicate request_size=255 [09:46:39]MH_SAM_APDU [09:46: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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1B A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B2 01 00 35 04 06 00 3E [09:46:39]Write to MH i2c: E2 02 01 A9 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1B A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B2 01 00 35 04 06 00 3E 00 00 57 [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 A9 41 00 90 00 5E [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=10 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 02 02 05 92 27 04 B9 9C [09:46:40]Write to MH i2c: E2 0D 00 AA 41 80 0D 02 02 05 00 92 27 04 B9 9C 00 00 81 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 AA 41 00 90 00 5F [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 03 02 [09:46:40]Write to MH i2c: E2 08 00 AB 41 80 0D 03 02 00 00 00 00 67 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0B 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0B 00 AB 41 00 99 6C 33 B5 65 66 50 87 90 00 F7 [09:46:40]RAPDU: 99 6C 33 B5 65 66 50 87 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_SignData done [09:46:40]FM_MakeSignedData done [09:46:40]CreateOFDProtocolMessage [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 11 00 00 [09:46:40]Write to MH i2c: E2 08 00 AC 41 80 11 00 00 00 00 00 00 67 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 17 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 17 00 AC 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [09:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:46:40]wFMCommunicate OK [09:46:40]CreateOFDProtocolMessage done [09:46:40]OFDSenderStorePacket 111277 [09:46:40]StoreOFDPacket docnum=111277 [09:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 1A 07 01 F8 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1B A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B2 01 00 35 04 06 00 3E 92 27 04 B9 9C 99 6C 33 B5 65 66 50 87 [09:46:40]CheckFolder [09:46:40]dirname=/storage/ofd_packets [09:46:40]CheckFolder done [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00111277 [09:46:40]NVStorageSaveData ofd_packets/00111277 [09:46:40]File name is /storage/ofd_packets/00111277 [09:46:40]Write 301 bytes [09:46:40]NVStorageSaveData done [09:46:40]OFDSenderStorePacket done [09:46:40]KKMCreateOFDPacket done [09:46:40]NVStorageSaveData kkm_last_timestamp [09:46:40]File name is /storage/kkm_last_timestamp [09:46:40]Write 4 bytes [09:46:40]NVStorageSaveData done [09:46:40]ExternCall_PrintAddStr [09:46:40]wPrintStart [09:46:40]Write to MH i2c: 01 00 00 AD 41 EE [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 AD 41 00 00 00 00 00 FF 0F 03 [09:46:40]RasterBufferAndPrint [09:46:40]line Счет N : (1)319845 [09:46:40]line ИНН: 02508201610067 [09:46:40]line Контрольно-Кассовый Чек [09:46:40]line ПРОДАЖА [09:46:40]line ТРК (МРК, ГНК) : 11 [09:46:40]line Товар: 2710124130 [09:46:40]line Аи-92-К-5 [09:46:40]line 10.020 * 66.40 [09:46:40]line = 665.33 [09:46:40]line НДС 12% НСП 1% [09:46:40]line > о реализуемом товаре [09:46:40]line ИТОГО: 665.33 [09:46:40]line НСП 1% : 5.89 [09:46:40]line НДС 12% : 70.65 [09:46:40]line Наличными: 0.00 [09:46:40]line Безнал.: 665.33 [09:46:40]line Место: АЗС № 65 "Партнер Нефть" [09:46:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:46:40]line СНО: Общий режим [09:46:40]line Чек 26 19.06.2024 09:47 [09:46:40]line Смена: 388 ФФД: 1.0 [09:46:40]line ЗНМ: 0300000198 [09:46:40]line РНМ: 0000000000092771 [09:46:40]line Версия ККМ: 001 [09:46:40]line Платежная система: О! деньги [09:46:40]line ФМ: 0000000000875083 [09:46:40]line ФД: 111277 [09:46:40]line ФПД: 68797440768412 [09:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094707&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111277&fm=68797440768412&tin=02508201610067®Number=0000000000092771&sum=66533 [09:46:40]OFD Sender: Processing packet 111277 [packets to send 38, broken 37] [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00111277 [09:46:40]OFD Sender: To server: pG, [09:46:40]CommunicateWithHost lk.salyk.kg:30040 [09:46:40]ConnectInit lk.salyk.kg [09:46:40]written 0, free lines is 4095 [09:46:40]Connected sock=10 [09:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 72 1A 07 01 F8 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 1B A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B2 01 00 35 04 06 00 3E 92 27 04 B9 9C 99 6C 33 B5 65 66 50 87 [09:46:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 61 FA 47 00 50 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 35 30 38 33 10 04 04 00 AD B2 01 00 F4 03 04 00 88 40 72 66 B6 04 01 00 00 3F 21 74 CE 29 53 E4 47 [09:46:40]CommunicateWithHost err = 0 [09:46:40]CheckOFDResponse [09:46:40]1017 (14) - 77093643461234 [09:46:40]1041 (16) - 0000000000875083 [09:46:40]1040 (4) - 111277 [09:46:40]1012 (4) - 19.06.2024 02:20 [09:46:40]1206 (1) - 0 [09:46:40]OFD Sender: Remove packet 111277 [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00111277 [09:46:40]NVStorageDeleteData [09:46:41]Write to MH i2c: 01 00 00 D7 41 18 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 D7 41 00 00 00 00 00 EA 0C 15 [09:46:41]RasterBufferAndPrint [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]written 0, free lines is 3312 [09:46:41]MH_Cut [09:46:41]Write to MH i2c: D1 01 00 DE 41 01 F1 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 01 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 01 00 DE 41 00 F0 [09:46:41]Write to MH i2c: 01 00 00 DF 41 20 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]OFD Sender: No OFD packet to send [09:46:41]*** Cut start [09:46:41]*** Partial cut [09:46:41]*** CUTSNS_PIN = 1 [09:46:41]*** CUTSNS_PIN = 0 [09:46:42]*** Brake cut motor [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]*** Stop cut motor [09:46:42]*** Cut end [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 DF 41 00 00 00 00 00 FF 0F 35 [09:46:42]process_action close_receipt done [09:46:42]requested_data is exist [09:46:42]produce_requested_data [09:46:42]requested_item fm.sn is exist - process it [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 11 00 00 [09:46:42]Write to MH i2c: E2 08 00 E0 41 80 11 00 00 00 00 00 00 9B [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 E0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 ED [09:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:46:42]wFMCommunicate OK [09:46:42]requested_item fd.num is exist - process it [09:46:42]SAM_PROTO_GetFieldsCounters [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 13 00 00 [09:46:42]Write to MH i2c: E2 08 00 E1 41 80 13 00 00 00 00 00 00 9E [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 62 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 62 00 E1 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [09:46: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_GetFieldsCounters done [09:46:42]requested_item shift.num is exist - process it [09:46:42]requested_item shift.opened is exist - process it [09:46:42]req_shift_opened [09:46:42]FM_GetShiftState [09:46:42]SAM_PROTO_GetShiftState [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 13 01 00 [09:46:42]Write to MH i2c: E2 08 00 E2 41 80 13 01 00 00 00 00 00 A0 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0E 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0E 00 E2 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EA [09:46:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_GetShiftState done [09:46:42]FM_GetShiftState done [09:46:42]req_shift_opened done [09:46:42]requested_item shift.open_date is exist - process it [09:46:42]req_shift_open_date [09:46:42]req_shift_open_date done [09:46:42]produce_requested_data done [09:46:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111277,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:46:42]process_action_free close_receipt [09:46:42]json_value_free [09:46:42]json_value_free done [09:46:42]process_json_proto returns [09:46:42]Send response to host [09:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111277,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:46:42]free response buf [09:46:42]execute_script done [09:46:42]execute_script returns [09:46:42]free content buf [09:46:42]Sock 9.Close socket [09:46:42]Sock 9.Thread stoped [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:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:51]accept exits with 8 [09:47:51]New connection [09:47:51]New thread 3067084132 created [09:47:51]Thread 3067227492 joined [09:47:51]Waiting for new connection... [09:47:51] Sock 8.Parse request [09:47:51]Sock 8.Check first char [09:47:51]Sock 8.First char is OK [09:47:51]request: POST /json_proto HTTP/1.0 [09:47:51]Method: POST [09:47:51]URL: /json_proto [09:47:51]Method is POST - this is cgi request [09:47:51]url: /json_proto [09:47:51]query_string will be loaded in cgi processing [09:47:51]execute_cgi json_proto POST (null) [09:47:51]execute_cgi path=json_proto method=POST [09:47:51]POST find Content-Length [09:47:51]Host: 172.17.59.68:8080 [09:47:51]Content-Length: 808 [09:47:51]Content-Type: application/json [09:47:51] [09:47:51]POST finish read [09:47:51]Found Content-Length = 808 [09:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:51]execute_script... [09:47:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319846", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:51]POST & json_proto [09:47:51]process_json_proto [09:47:51]json parsed OK: [09:47:51]protocol is kg_v1.0 [09:47:51]action value=close_receipt [09:47:51]process_action close_receipt [09:47:51]cmd_close_receipt [09:47:51]MH_GetDate [09:47:51]Write to MH i2c: F0 00 00 E3 41 13 [09:47:51]Write i2c OK [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: F0 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: F0 09 00 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: F0 09 00 E3 41 00 64 A9 72 66 BC EC 60 65 6E [09:47:51]GetLastDocTimeStamp 1718790427 [09:47:51]current date 1718790500 [09:47:51]FM_GetShiftState [09:47:51]SAM_PROTO_GetShiftState [09:47:51]wFMCommunicate request_size=4 [09:47:51]MH_SAM_APDU [09:47:51]CAPDU: 80 13 01 00 [09:47:51]Write to MH i2c: E2 08 00 E4 41 80 13 01 00 00 00 00 00 A2 [09:47:51]Write i2c OK [09:47:51]MH_I2C_Read... [09:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:51]Read from MH i2c: E2 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: E2 0E 00 [09:47:51]MH_I2C_Read... [09:47:51]Read from MH i2c: E2 0E 00 E4 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EC [09:47:51]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:47:51]wFMCommunicate OK [09:47:51]SAM_PROTO_GetShiftState done [09:47:51]FM_GetShiftState done [09:47:51]opened in 1718760753 [09:47:51]opened+sec_in_day 1718847153 [09:47:51]quantity*price = 100064 [09:47:51]sum+1 = 100066 [09:47:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 27 19.06.2024 09:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111278 ФПД: 262015996273392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094820&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111278&fm=262015996273392&tin=02508201610067®Number=0000000000092771&sum=100065 [09:47:52]StoreToDocumentArchive [09:47:52]shift 388 fd 111278 [09:47:52]save to /storage/0388/doc_00111278 [09:47:52]save last doc name /storage/0388/doc_00111278 to /storage/kkm_last_doc_name [09:47:52]save OK [09:47:52]Clear old archive folders... [09:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:52]tlvbuf is 01A04CA0 [09:47:52]SAM_PROTO_ClearQueue [09:47:52]wFMCommunicate request_size=4 [09:47:52]MH_SAM_APDU [09:47:52]CAPDU: 80 09 00 00 [09:47:52]Write to MH i2c: E2 08 00 F1 41 80 09 00 00 00 00 00 00 A4 [09:47:52]Write i2c OK [09:47:52]MH_I2C_Read... [09:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:52]Read from MH i2c: E2 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: E2 03 00 [09:47:52]MH_I2C_Read... [09:47:52]Read from MH i2c: E2 03 00 F1 41 00 90 00 A6 [09:47:52]RAPDU: 90 00 [09:47:52]wFMCommunicate OK [09:47:52]SAM_PROTO_ClearQueue done [09:47:52]KKMCreateOFDPacket [09:47:52]OFDProtocolAddRootSTLVToBuf [09:47:52]FM_MakeSignedData [09:47:52]FM_MakeSignedData [09:47:52]SAM_PROTO_SignData [09:47:52]wFMCommunicate request_size=4 [09:47:52]MH_SAM_APDU [09:47:52]CAPDU: 80 0D 01 02 [09:47:52]Write to MH i2c: E2 08 00 F2 41 80 0D 01 02 00 00 00 00 AC [09:47:52]Write i2c OK [09:47:52]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 F2 41 00 90 00 A7 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]wFMCommunicate request_size=255 [09:47:53]MH_SAM_APDU [09:47: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 64 A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B2 01 00 35 04 06 00 EE [09:47:53]Write to MH i2c: E2 02 01 F3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 64 A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B2 01 00 35 04 06 00 EE 00 00 06 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 F3 41 00 90 00 A8 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]wFMCommunicate request_size=10 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 0D 02 02 05 4D 5A 62 22 F0 [09:47:53]Write to MH i2c: E2 0D 00 F4 41 80 0D 02 02 05 00 4D 5A 62 22 F0 00 00 D4 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 03 00 F4 41 00 90 00 A9 [09:47:53]RAPDU: 90 00 [09:47:53]wFMCommunicate OK [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 0D 03 02 [09:47:53]Write to MH i2c: E2 08 00 F5 41 80 0D 03 02 00 00 00 00 B1 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 0B 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 0B 00 F5 41 00 AC 22 60 A3 E6 C6 A2 D2 90 00 A3 [09:47:53]RAPDU: AC 22 60 A3 E6 C6 A2 D2 90 00 [09:47:53]wFMCommunicate OK [09:47:53]SAM_PROTO_SignData done [09:47:53]FM_MakeSignedData done [09:47:53]CreateOFDProtocolMessage [09:47:53]wFMCommunicate request_size=4 [09:47:53]MH_SAM_APDU [09:47:53]CAPDU: 80 11 00 00 [09:47:53]Write to MH i2c: E2 08 00 F6 41 80 11 00 00 00 00 00 00 B1 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:53]Read from MH i2c: E2 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 17 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: E2 17 00 F6 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 03 [09:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:47:53]wFMCommunicate OK [09:47:53]CreateOFDProtocolMessage done [09:47:53]OFDSenderStorePacket 111278 [09:47:53]StoreOFDPacket docnum=111278 [09:47:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 19 07 01 E8 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 64 A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B2 01 00 35 04 06 00 EE 4D 5A 62 22 F0 AC 22 60 A3 E6 C6 A2 D2 [09:47:53]CheckFolder [09:47:53]dirname=/storage/ofd_packets [09:47:53]CheckFolder done [09:47:53]ProducePacketName [09:47:53]name=ofd_packets/00111278 [09:47:53]NVStorageSaveData ofd_packets/00111278 [09:47:53]File name is /storage/ofd_packets/00111278 [09:47:53]Write 301 bytes [09:47:53]NVStorageSaveData done [09:47:53]OFDSenderStorePacket done [09:47:53]KKMCreateOFDPacket done [09:47:53]NVStorageSaveData kkm_last_timestamp [09:47:53]File name is /storage/kkm_last_timestamp [09:47:53]Write 4 bytes [09:47:53]NVStorageSaveData done [09:47:53]ExternCall_PrintAddStr [09:47:53]wPrintStart [09:47:53]Write to MH i2c: 01 00 00 F7 41 38 [09:47:53]Write i2c OK [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: 01 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: 01 07 00 [09:47:53]MH_I2C_Read... [09:47:53]Read from MH i2c: 01 07 00 F7 41 00 00 00 00 00 FF 0F 4D [09:47:53]RasterBufferAndPrint [09:47:53]line Счет N : (1)319846 [09:47:53]line ИНН: 02508201610067 [09:47:53]line Контрольно-Кассовый Чек [09:47:53]line ПРОДАЖА [09:47:53]line ТРК (МРК, ГНК) : 11 [09:47:53]line Товар: 2710124130 [09:47:53]line Аи-92-К-5 [09:47:53]line 15.070 * 66.40 [09:47:53]line = 1000.65 [09:47:53]line НДС 12% НСП 1% [09:47:53]line > о реализуемом товаре [09:47:53]line ИТОГО: 1000.65 [09:47:53]line НСП 1% : 8.85 [09:47:53]line НДС 12% : 106.26 [09:47:53]line Наличными: 0.00 [09:47:53]line Безнал.: 1000.65 [09:47:53]line Место: АЗС № 65 "Партнер Нефть" [09:47:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:47:53]line СНО: Общий режим [09:47:53]line Чек 27 19.06.2024 09:48 [09:47:53]line Смена: 388 ФФД: 1.0 [09:47:53]line ЗНМ: 0300000198 [09:47:53]line РНМ: 0000000000092771 [09:47:53]line Версия ККМ: 001 [09:47:53]line Платежная система: О! деньги [09:47:53]line ФМ: 0000000000875083 [09:47:53]line ФД: 111278 [09:47:53]line ФПД: 262015996273392 [09:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094820&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111278&fm=262015996273392&tin=02508201610067®Number=0000000000092771&sum=100065 [09:47:53]written 0, free lines is 4095 [09:47:53]OFD Sender: Processing packet 111278 [packets to send 38, broken 37] [09:47:53]ProducePacketName [09:47:53]name=ofd_packets/00111278 [09:47:53]OFD Sender: To server: pG, [09:47:53]CommunicateWithHost lk.salyk.kg:30040 [09:47:53]ConnectInit lk.salyk.kg [09:47:53]Connected sock=10 [09:47:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 19 07 01 E8 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 64 A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B2 01 00 35 04 06 00 EE 4D 5A 62 22 F0 AC 22 60 A3 E6 C6 A2 D2 [09:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6A 0E 47 00 5A 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B2 01 00 F4 03 04 00 D2 40 72 66 B6 04 01 00 00 CF 58 59 CE 47 01 61 8C [09:47:54]CommunicateWithHost err = 0 [09:47:54]CheckOFDResponse [09:47:54]1017 (14) - 77093643461234 [09:47:54]1041 (16) - 0000000000875083 [09:47:54]1040 (4) - 111278 [09:47:54]1012 (4) - 19.06.2024 02:22 [09:47:54]1206 (1) - 0 [09:47:54]OFD Sender: Remove packet 111278 [09:47:54]ProducePacketName [09:47:54]name=ofd_packets/00111278 [09:47:54]NVStorageDeleteData [09:47:54]Write to MH i2c: 01 00 00 21 42 63 [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: 01 07 00 21 42 00 00 00 00 00 E1 0C 57 [09:47:54]RasterBufferAndPrint [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]line [09:47:54]written 0, free lines is 3302 [09:47:54]MH_Cut [09:47:54]Write to MH i2c: D1 01 00 28 42 01 3C [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 01 00 [09:47:54]MH_I2C_Read... [09:47:54]Read from MH i2c: D1 01 00 28 42 00 3B [09:47:54]Write to MH i2c: 01 00 00 29 42 6B [09:47:54]Write i2c OK [09:47:54]MH_I2C_Read... [09:47:54]OFD Sender: No OFD packet to send [09:47:55]*** Cut start [09:47:55]*** Partial cut [09:47:55]*** CUTSNS_PIN = 1 [09:47:55]*** CUTSNS_PIN = 0 [09:47:55]*** Brake cut motor [09:47:55]Read from MH i2c: 01 [09:47:55]MH_I2C_Read... [09:47:55]*** Stop cut motor [09:47:55]*** Cut end [09:47:55]Read from MH i2c: 01 07 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: 01 07 00 29 42 00 00 00 00 00 FF 0F 80 [09:47:55]process_action close_receipt done [09:47:55]requested_data is exist [09:47:55]produce_requested_data [09:47:55]requested_item fm.sn is exist - process it [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 11 00 00 [09:47:55]Write to MH i2c: E2 08 00 2A 42 80 11 00 00 00 00 00 00 E6 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 17 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 17 00 2A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [09:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:47:55]wFMCommunicate OK [09:47:55]requested_item fd.num is exist - process it [09:47:55]SAM_PROTO_GetFieldsCounters [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 13 00 00 [09:47:55]Write to MH i2c: E2 08 00 2B 42 80 13 00 00 00 00 00 00 E9 [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 62 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 62 00 2B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [09:47:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:55]wFMCommunicate OK [09:47:55]SAM_PROTO_GetFieldsCounters done [09:47:55]requested_item shift.num is exist - process it [09:47:55]requested_item shift.opened is exist - process it [09:47:55]req_shift_opened [09:47:55]FM_GetShiftState [09:47:55]SAM_PROTO_GetShiftState [09:47:55]wFMCommunicate request_size=4 [09:47:55]MH_SAM_APDU [09:47:55]CAPDU: 80 13 01 00 [09:47:55]Write to MH i2c: E2 08 00 2C 42 80 13 01 00 00 00 00 00 EB [09:47:55]Write i2c OK [09:47:55]MH_I2C_Read... [09:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:55]Read from MH i2c: E2 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 0E 00 [09:47:55]MH_I2C_Read... [09:47:55]Read from MH i2c: E2 0E 00 2C 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 35 [09:47:55]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:47:55]wFMCommunicate OK [09:47:55]SAM_PROTO_GetShiftState done [09:47:55]FM_GetShiftState done [09:47:55]req_shift_opened done [09:47:55]requested_item shift.open_date is exist - process it [09:47:55]req_shift_open_date [09:47:55]req_shift_open_date done [09:47:55]produce_requested_data done [09:47:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111278,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:47:55]process_action_free close_receipt [09:47:55]json_value_free [09:47:55]json_value_free done [09:47:55]process_json_proto returns [09:47:55]Send response to host [09:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111278,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:47:55]free response buf [09:47:55]execute_script done [09:47:55]execute_script returns [09:47:55]free content buf [09:47:55]Sock 8.Close socket [09:47:55]Sock 8.Thread stoped [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:18]accept exits with 9 [09:48:18]New connection [09:48:18]New thread 3067227492 created [09:48:18]Thread 3067084132 joined [09:48:18]Waiting for new connection... [09:48:18] Sock 9.Parse request [09:48:18]Sock 9.Check first char [09:48:18]Sock 9.First char is OK [09:48:18]request: POST /json_proto HTTP/1.0 [09:48:18]Method: POST [09:48:18]URL: /json_proto [09:48:18]Method is POST - this is cgi request [09:48:18]url: /json_proto [09:48:18]query_string will be loaded in cgi processing [09:48:18]execute_cgi json_proto POST (null) [09:48:18]execute_cgi path=json_proto method=POST [09:48:18]POST find Content-Length [09:48:18]Host: 172.17.59.68:8080 [09:48:18]Content-Length: 677 [09:48:18]Content-Type: application/json [09:48:18] [09:48:18]POST finish read [09:48:18]Found Content-Length = 677 [09:48:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:48:18]execute_script... [09:48: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)319848", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:48:18]POST & json_proto [09:48:18]process_json_proto [09:48:18]json parsed OK: [09:48:18]protocol is kg_v1.0 [09:48:18]action value=close_receipt [09:48:18]process_action close_receipt [09:48:18]cmd_close_receipt [09:48:18]MH_GetDate [09:48:18]Write to MH i2c: F0 00 00 2D 42 5E [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: F0 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: F0 09 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: F0 09 00 2D 42 00 7F A9 72 66 BC EC 60 65 D4 [09:48:18]GetLastDocTimeStamp 1718790500 [09:48:18]current date 1718790527 [09:48:18]FM_GetShiftState [09:48:18]SAM_PROTO_GetShiftState [09:48:18]wFMCommunicate request_size=4 [09:48:18]MH_SAM_APDU [09:48:18]CAPDU: 80 13 01 00 [09:48:18]Write to MH i2c: E2 08 00 2E 42 80 13 01 00 00 00 00 00 ED [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:18]Read from MH i2c: E2 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: E2 0E 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: E2 0E 00 2E 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 37 [09:48:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:48:18]wFMCommunicate OK [09:48:18]SAM_PROTO_GetShiftState done [09:48:18]FM_GetShiftState done [09:48:18]opened in 1718760753 [09:48:18]opened+sec_in_day 1718847153 [09:48:18]quantity*price = 20052 [09:48:18]sum+1 = 20054 [09:48:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 28 19.06.2024 09:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111279 ФПД: 73566409980485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094847&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111279&fm=73566409980485&tin=02508201610067®Number=0000000000092771&sum=20000 [09:48:19]StoreToDocumentArchive [09:48:19]shift 388 fd 111279 [09:48:19]save to /storage/0388/doc_00111279 [09:48:19]save last doc name /storage/0388/doc_00111279 to /storage/kkm_last_doc_name [09:48:19]save OK [09:48:19]Clear old archive folders... [09:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:19]tlvbuf is 0198E990 [09:48:19]SAM_PROTO_ClearQueue [09:48:19]wFMCommunicate request_size=4 [09:48:19]MH_SAM_APDU [09:48:19]CAPDU: 80 09 00 00 [09:48:19]Write to MH i2c: E2 08 00 3B 42 80 09 00 00 00 00 00 00 EF [09:48:19]Write i2c OK [09:48:19]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 3B 42 00 90 00 F1 [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]SAM_PROTO_ClearQueue done [09:48:20]KKMCreateOFDPacket [09:48:20]OFDProtocolAddRootSTLVToBuf [09:48:20]FM_MakeSignedData [09:48:20]FM_MakeSignedData [09:48:20]SAM_PROTO_SignData [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 01 02 [09:48:20]Write to MH i2c: E2 08 00 3C 42 80 0D 01 02 00 00 00 00 F7 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 3C 42 00 90 00 F2 [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=255 [09:48:20]MH_SAM_APDU [09:48: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7F A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B2 01 00 35 04 06 00 42 [09:48:20]Write to MH i2c: E2 02 01 3D 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7F A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B2 01 00 35 04 06 00 42 00 00 AF [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 3D 42 00 90 00 F3 [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=10 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 02 02 05 E8 83 BB FA 45 [09:48:20]Write to MH i2c: E2 0D 00 3E 42 80 0D 02 02 05 00 E8 83 BB FA 45 00 00 69 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 03 00 3E 42 00 90 00 F4 [09:48:20]RAPDU: 90 00 [09:48:20]wFMCommunicate OK [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 0D 03 02 [09:48:20]Write to MH i2c: E2 08 00 3F 42 80 0D 03 02 00 00 00 00 FC [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 0B 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 0B 00 3F 42 00 02 3D 91 DE 52 6A 78 C9 90 00 A8 [09:48:20]RAPDU: 02 3D 91 DE 52 6A 78 C9 90 00 [09:48:20]wFMCommunicate OK [09:48:20]SAM_PROTO_SignData done [09:48:20]FM_MakeSignedData done [09:48:20]CreateOFDProtocolMessage [09:48:20]wFMCommunicate request_size=4 [09:48:20]MH_SAM_APDU [09:48:20]CAPDU: 80 11 00 00 [09:48:20]Write to MH i2c: E2 08 00 40 42 80 11 00 00 00 00 00 00 FC [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:20]Read from MH i2c: E2 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 17 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: E2 17 00 40 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4E [09:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:48:20]wFMCommunicate OK [09:48:20]CreateOFDProtocolMessage done [09:48:20]OFDSenderStorePacket 111279 [09:48:20]StoreOFDPacket docnum=111279 [09:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 14 51 07 01 25 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7F A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B2 01 00 35 04 06 00 42 E8 83 BB FA 45 02 3D 91 DE 52 6A 78 C9 [09:48:20]CheckFolder [09:48:20]dirname=/storage/ofd_packets [09:48:20]CheckFolder done [09:48:20]ProducePacketName [09:48:20]name=ofd_packets/00111279 [09:48:20]NVStorageSaveData ofd_packets/00111279 [09:48:20]File name is /storage/ofd_packets/00111279 [09:48:20]Write 301 bytes [09:48:20]NVStorageSaveData done [09:48:20]OFDSenderStorePacket done [09:48:20]KKMCreateOFDPacket done [09:48:20]NVStorageSaveData kkm_last_timestamp [09:48:20]File name is /storage/kkm_last_timestamp [09:48:20]Write 4 bytes [09:48:20]NVStorageSaveData done [09:48:20]ExternCall_PrintAddStr [09:48:20]wPrintStart [09:48:20]Write to MH i2c: 01 00 00 41 42 83 [09:48:20]Write i2c OK [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 07 00 [09:48:20]MH_I2C_Read... [09:48:20]Read from MH i2c: 01 07 00 41 42 00 00 00 00 00 FF 0F 98 [09:48:20]RasterBufferAndPrint [09:48:20]line Счет N : (1)319848 [09:48:20]line ИНН: 02508201610067 [09:48:20]line Контрольно-Кассовый Чек [09:48:20]line ПРОДАЖА [09:48:20]line ТРК (МРК, ГНК) : 11 [09:48:20]line Товар: 2710124130 [09:48:20]line Аи-92-К-5 [09:48:20]line 3.020 * 66.40 [09:48:20]line = 200.53 [09:48:20]line НДС 12% НСП 1% [09:48:20]line > о реализуемом товаре [09:48:20]line ОКРУГЛЕНИЕ: -0.53 [09:48:20]line ИТОГО: 200.00 [09:48:20]line Внесено: 200.00 [09:48:20]line СДАЧА: 0.00 [09:48:20]line НСП 1% : 1.77 [09:48:20]line НДС 12% : 21.29 [09:48:20]line Наличными: 200.00 [09:48:20]line Безнал.: 0.00 [09:48:20]line Место: АЗС № 65 "Партнер Нефть" [09:48:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:48:20]line СНО: Общий режим [09:48:20]line Чек 28 19.06.2024 09:48 [09:48:20]line Смена: 388 ФФД: 1.0 [09:48:20]line ЗНМ: 0300000198 [09:48:20]line РНМ: 0000000000092771 [09:48:20]line Версия ККМ: 001 [09:48:20]line ФМ: 0000000000875083 [09:48:20]line ФД: 111279 [09:48:20]line ФПД: 73566409980485 [09:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094847&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111279&fm=73566409980485&tin=02508201610067®Number=0000000000092771&sum=20000 [09:48:20]OFD Sender: Processing packet 111279 [packets to send 38, broken 37] [09:48:20]ProducePacketName [09:48:20]name=ofd_packets/00111279 [09:48:20]OFD Sender: To server: pG, [09:48:20]CommunicateWithHost lk.salyk.kg:30040 [09:48:20]ConnectInit lk.salyk.kg [09:48:20]written 0, free lines is 4095 [09:48:20]Connected sock=10 [09:48:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 14 51 07 01 25 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 7F A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B2 01 00 35 04 06 00 42 E8 83 BB FA 45 02 3D 91 DE 52 6A 78 C9 [09:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5B 90 47 00 99 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B2 01 00 F4 03 04 00 ED 40 72 66 B6 04 01 00 00 E3 30 D4 45 6F 12 F9 DB [09:48:21]CommunicateWithHost err = 0 [09:48:21]CheckOFDResponse [09:48:21]1017 (14) - 77093643461234 [09:48:21]1041 (16) - 0000000000875083 [09:48:21]1040 (4) - 111279 [09:48:21]1012 (4) - 19.06.2024 02:22 [09:48:21]1206 (1) - 0 [09:48:21]OFD Sender: Remove packet 111279 [09:48:21]ProducePacketName [09:48:21]name=ofd_packets/00111279 [09:48:21]NVStorageDeleteData [09:48:21]Write to MH i2c: 01 00 00 6C 42 AE [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 07 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: 01 07 00 6C 42 00 00 00 00 00 C7 0C 88 [09:48:21]RasterBufferAndPrint [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]line [09:48:21]written 0, free lines is 3277 [09:48:21]MH_Cut [09:48:21]Write to MH i2c: D1 01 00 73 42 01 87 [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 01 00 [09:48:21]MH_I2C_Read... [09:48:21]Read from MH i2c: D1 01 00 73 42 00 86 [09:48:21]Write to MH i2c: 01 00 00 74 42 B6 [09:48:21]Write i2c OK [09:48:21]MH_I2C_Read... [09:48:21]OFD Sender: No OFD packet to send [09:48:22]*** Cut start [09:48:22]*** Partial cut [09:48:22]*** CUTSNS_PIN = 1 [09:48:22]*** CUTSNS_PIN = 0 [09:48:22]*** Brake cut motor [09:48:22]Read from MH i2c: 01 [09:48:22]MH_I2C_Read... [09:48:22]*** Stop cut motor [09:48:22]*** Cut end [09:48:22]Read from MH i2c: 01 07 00 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: 01 07 00 74 42 00 00 00 00 00 FF 0F CB [09:48:22]process_action close_receipt done [09:48:22]requested_data is exist [09:48:22]produce_requested_data [09:48:22]requested_item fm.sn is exist - process it [09:48:22]wFMCommunicate request_size=4 [09:48:22]MH_SAM_APDU [09:48:22]CAPDU: 80 11 00 00 [09:48:22]Write to MH i2c: E2 08 00 75 42 80 11 00 00 00 00 00 00 31 [09:48:22]Write i2c OK [09:48:22]MH_I2C_Read... [09:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:22]Read from MH i2c: E2 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 17 00 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 17 00 75 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [09:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:48:22]wFMCommunicate OK [09:48:22]requested_item fd.num is exist - process it [09:48:22]SAM_PROTO_GetFieldsCounters [09:48:22]wFMCommunicate request_size=4 [09:48:22]MH_SAM_APDU [09:48:22]CAPDU: 80 13 00 00 [09:48:22]Write to MH i2c: E2 08 00 76 42 80 13 00 00 00 00 00 00 34 [09:48:22]Write i2c OK [09:48:22]MH_I2C_Read... [09:48:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:22]Read from MH i2c: E2 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 62 00 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 62 00 76 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:22]wFMCommunicate OK [09:48:22]SAM_PROTO_GetFieldsCounters done [09:48:22]requested_item shift.num is exist - process it [09:48:22]requested_item shift.opened is exist - process it [09:48:22]req_shift_opened [09:48:22]FM_GetShiftState [09:48:22]SAM_PROTO_GetShiftState [09:48:22]wFMCommunicate request_size=4 [09:48:22]MH_SAM_APDU [09:48:22]CAPDU: 80 13 01 00 [09:48:22]Write to MH i2c: E2 08 00 77 42 80 13 01 00 00 00 00 00 36 [09:48:22]Write i2c OK [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 [09:48:22]MH_I2C_Read... [09:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:22]Read from MH i2c: E2 0E 00 [09:48:22]MH_I2C_Read... [09:48:22]Read from MH i2c: E2 0E 00 77 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 80 [09:48:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:48:22]wFMCommunicate OK [09:48:22]SAM_PROTO_GetShiftState done [09:48:22]FM_GetShiftState done [09:48:22]req_shift_opened done [09:48:22]requested_item shift.open_date is exist - process it [09:48:22]req_shift_open_date [09:48:22]req_shift_open_date done [09:48:22]produce_requested_data done [09:48:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111279,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:48:22]process_action_free close_receipt [09:48:22]json_value_free [09:48:22]json_value_free done [09:48:22]process_json_proto returns [09:48:22]Send response to host [09:48:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111279,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:48:22]free response buf [09:48:22]execute_script done [09:48:22]execute_script returns [09:48:22]free content buf [09:48:22]Sock 9.Close socket [09:48:22]Sock 9.Thread stoped [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:40]accept exits with 8 [09:48:40]New connection [09:48:40]New thread 3067084132 created [09:48:40]Thread 3067227492 joined [09:48:40]Waiting for new connection... [09:48:40] Sock 8.Parse request [09:48:40]Sock 8.Check first char [09:48:40]Sock 8.First char is OK [09:48:40]request: POST /json_proto HTTP/1.0 [09:48:40]Method: POST [09:48:40]URL: /json_proto [09:48:40]Method is POST - this is cgi request [09:48:40]url: /json_proto [09:48:40]query_string will be loaded in cgi processing [09:48:40]execute_cgi json_proto POST (null) [09:48:40]execute_cgi path=json_proto method=POST [09:48:40]POST find Content-Length [09:48:40]Host: 172.17.59.68:8080 [09:48:40]Content-Length: 679 [09:48:40]Content-Type: application/json [09:48:40] [09:48:40]POST finish read [09:48:40]Found Content-Length = 679 [09:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:40]execute_script... [09:48: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)319847", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:40]POST & json_proto [09:48:40]process_json_proto [09:48:40]json parsed OK: [09:48:40]protocol is kg_v1.0 [09:48:40]action value=close_receipt [09:48:40]process_action close_receipt [09:48:40]cmd_close_receipt [09:48:40]MH_GetDate [09:48:40]Write to MH i2c: F0 00 00 78 42 A9 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: F0 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: F0 09 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: F0 09 00 78 42 00 95 A9 72 66 BC EC 60 65 35 [09:48:40]GetLastDocTimeStamp 1718790527 [09:48:40]current date 1718790549 [09:48:40]FM_GetShiftState [09:48:40]SAM_PROTO_GetShiftState [09:48:40]wFMCommunicate request_size=4 [09:48:40]MH_SAM_APDU [09:48:40]CAPDU: 80 13 01 00 [09:48:40]Write to MH i2c: E2 08 00 79 42 80 13 01 00 00 00 00 00 38 [09:48:40]Write i2c OK [09:48:40]MH_I2C_Read... [09:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:40]Read from MH i2c: E2 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0E 00 [09:48:40]MH_I2C_Read... [09:48:40]Read from MH i2c: E2 0E 00 79 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 82 [09:48:40]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:48:40]wFMCommunicate OK [09:48:40]SAM_PROTO_GetShiftState done [09:48:40]FM_GetShiftState done [09:48:40]opened in 1718760753 [09:48:40]opened+sec_in_day 1718847153 [09:48:40]quantity*price = 100018 [09:48:40]sum+1 = 100020 [09:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 29 19.06.2024 09:49 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111280 ФПД: 42638243695809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094909&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111280&fm=42638243695809&tin=02508201610067®Number=0000000000092771&sum=100000 [09:48:41]StoreToDocumentArchive [09:48:41]shift 388 fd 111280 [09:48:41]save to /storage/0388/doc_00111280 [09:48:41]save last doc name /storage/0388/doc_00111280 to /storage/kkm_last_doc_name [09:48:41]save OK [09:48:41]Clear old archive folders... [09:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:41]tlvbuf is 01A06BE0 [09:48:41]SAM_PROTO_ClearQueue [09:48:41]wFMCommunicate request_size=4 [09:48:41]MH_SAM_APDU [09:48:41]CAPDU: 80 09 00 00 [09:48:41]Write to MH i2c: E2 08 00 86 42 80 09 00 00 00 00 00 00 3A [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:41]Read from MH i2c: E2 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 03 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 03 00 86 42 00 90 00 3C [09:48:41]RAPDU: 90 00 [09:48:41]wFMCommunicate OK [09:48:41]SAM_PROTO_ClearQueue done [09:48:41]KKMCreateOFDPacket [09:48:41]OFDProtocolAddRootSTLVToBuf [09:48:41]FM_MakeSignedData [09:48:41]FM_MakeSignedData [09:48:41]SAM_PROTO_SignData [09:48:41]wFMCommunicate request_size=4 [09:48:41]MH_SAM_APDU [09:48:41]CAPDU: 80 0D 01 02 [09:48:41]Write to MH i2c: E2 08 00 87 42 80 0D 01 02 00 00 00 00 42 [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]OFD Sender: No OFD packet to send [09:48:41]Read from MH i2c: E2 [09:48:41]MH_I2C_Read... [09:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:41]Read from MH i2c: E2 03 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 03 00 87 42 00 90 00 3D [09:48:41]RAPDU: 90 00 [09:48:41]wFMCommunicate OK [09:48:41]wFMCommunicate request_size=255 [09:48:41]MH_SAM_APDU [09:48:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 95 A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B2 01 00 35 04 06 00 26 C7 7D 5E [09:48:41]Write to MH i2c: E2 02 01 88 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 95 A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B2 01 00 35 04 06 00 26 C7 7D 5E 00 00 8B [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:41]Read from MH i2c: E2 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 03 00 [09:48:41]MH_I2C_Read... [09:48:41]Read from MH i2c: E2 03 00 88 42 00 90 00 3E [09:48:41]RAPDU: 90 00 [09:48:41]wFMCommunicate OK [09:48:41]wFMCommunicate request_size=7 [09:48:41]MH_SAM_APDU [09:48:41]CAPDU: 80 0D 02 02 02 8C C1 [09:48:41]Write to MH i2c: E2 0A 00 89 42 80 0D 02 02 02 00 8C C1 00 00 96 [09:48:41]Write i2c OK [09:48:41]MH_I2C_Read... [09:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:42]Read from MH i2c: E2 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 03 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 03 00 89 42 00 90 00 3F [09:48:42]RAPDU: 90 00 [09:48:42]wFMCommunicate OK [09:48:42]wFMCommunicate request_size=4 [09:48:42]MH_SAM_APDU [09:48:42]CAPDU: 80 0D 03 02 [09:48:42]Write to MH i2c: E2 08 00 8A 42 80 0D 03 02 00 00 00 00 47 [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:42]Read from MH i2c: E2 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 0B 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 0B 00 8A 42 00 EF 20 C1 47 B3 83 5A 85 90 00 74 [09:48:42]RAPDU: EF 20 C1 47 B3 83 5A 85 90 00 [09:48:42]wFMCommunicate OK [09:48:42]SAM_PROTO_SignData done [09:48:42]FM_MakeSignedData done [09:48:42]CreateOFDProtocolMessage [09:48:42]wFMCommunicate request_size=4 [09:48:42]MH_SAM_APDU [09:48:42]CAPDU: 80 11 00 00 [09:48:42]Write to MH i2c: E2 08 00 8B 42 80 11 00 00 00 00 00 00 47 [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:42]Read from MH i2c: E2 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 17 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: E2 17 00 8B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [09:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:48:42]wFMCommunicate OK [09:48:42]CreateOFDProtocolMessage done [09:48:42]OFDSenderStorePacket 111280 [09:48:42]StoreOFDPacket docnum=111280 [09:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 AD 60 04 01 A6 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 95 A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B2 01 00 35 04 06 00 26 C7 7D 5E 8C C1 EF 20 C1 47 B3 83 5A 85 [09:48:42]CheckFolder [09:48:42]dirname=/storage/ofd_packets [09:48:42]CheckFolder done [09:48:42]ProducePacketName [09:48:42]name=ofd_packets/00111280 [09:48:42]NVStorageSaveData ofd_packets/00111280 [09:48:42]File name is /storage/ofd_packets/00111280 [09:48:42]Write 298 bytes [09:48:42]NVStorageSaveData done [09:48:42]OFDSenderStorePacket done [09:48:42]KKMCreateOFDPacket done [09:48:42]NVStorageSaveData kkm_last_timestamp [09:48:42]File name is /storage/kkm_last_timestamp [09:48:42]Write 4 bytes [09:48:42]NVStorageSaveData done [09:48:42]ExternCall_PrintAddStr [09:48:42]wPrintStart [09:48:42]Write to MH i2c: 01 00 00 8C 42 CE [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: 01 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: 01 07 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: 01 07 00 8C 42 00 00 00 00 00 FF 0F E3 [09:48:42]RasterBufferAndPrint [09:48:42]line Счет N : (1)319847 [09:48:42]line ИНН: 02508201610067 [09:48:42]line Контрольно-Кассовый Чек [09:48:42]line ПРОДАЖА [09:48:42]line ТРК (МРК, ГНК) : 22 [09:48:42]line Товар: 2710194210 [09:48:42]line ДТ-К-5 [09:48:42]line 13.720 * 72.90 [09:48:42]line = 1000.19 [09:48:42]line НДС 12% НСП 1% [09:48:42]line > о реализуемом товаре [09:48:42]line ОКРУГЛЕНИЕ: -0.19 [09:48:42]line ИТОГО: 1000.00 [09:48:42]line Внесено: 1000.00 [09:48:42]line СДАЧА: 0.00 [09:48:42]line НСП 1% : 8.85 [09:48:42]line НДС 12% : 106.21 [09:48:42]line Наличными: 1000.00 [09:48:42]line Безнал.: 0.00 [09:48:42]line Место: АЗС № 65 "Партнер Нефть" [09:48:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:48:42]line СНО: Общий режим [09:48:42]line Чек 29 19.06.2024 09:49 [09:48:42]line Смена: 388 ФФД: 1.0 [09:48:42]line ЗНМ: 0300000198 [09:48:42]line РНМ: 0000000000092771 [09:48:42]line Версия ККМ: 001 [09:48:42]line ФМ: 0000000000875083 [09:48:42]line ФД: 111280 [09:48:42]line ФПД: 42638243695809 [09:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T094909&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111280&fm=42638243695809&tin=02508201610067®Number=0000000000092771&sum=100000 [09:48:42]OFD Sender: Processing packet 111280 [packets to send 38, broken 37] [09:48:42]ProducePacketName [09:48:42]name=ofd_packets/00111280 [09:48:42]OFD Sender: To server: pG, [09:48:42]CommunicateWithHost lk.salyk.kg:30040 [09:48:42]ConnectInit lk.salyk.kg [09:48:42]written 0, free lines is 4095 [09:48:42]Connected sock=9 [09:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 AD 60 04 01 A6 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 95 A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B2 01 00 35 04 06 00 26 C7 7D 5E 8C C1 EF 20 C1 47 B3 83 5A 85 [09:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8C 8E 47 00 A6 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B2 01 00 F4 03 04 00 02 41 72 66 B6 04 01 00 00 3B 07 57 A5 0C 17 C4 D6 [09:48:42]CommunicateWithHost err = 0 [09:48:42]CheckOFDResponse [09:48:42]1017 (14) - 77093643461234 [09:48:42]1041 (16) - 0000000000875083 [09:48:42]1040 (4) - 111280 [09:48:42]1012 (4) - 19.06.2024 02:22 [09:48:42]1206 (1) - 0 [09:48:42]OFD Sender: Remove packet 111280 [09:48:42]ProducePacketName [09:48:42]name=ofd_packets/00111280 [09:48:42]NVStorageDeleteData [09:48:42]Write to MH i2c: 01 00 00 B7 42 F9 [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: 01 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: 01 07 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: 01 07 00 B7 42 00 00 00 00 00 D9 0C E5 [09:48:42]RasterBufferAndPrint [09:48:42]line [09:48:42]line [09:48:42]line [09:48:42]line [09:48:42]line [09:48:42]written 0, free lines is 3296 [09:48:42]MH_Cut [09:48:42]Write to MH i2c: D1 01 00 BE 42 01 D2 [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: D1 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: D1 01 00 [09:48:42]MH_I2C_Read... [09:48:42]Read from MH i2c: D1 01 00 BE 42 00 D1 [09:48:42]Write to MH i2c: 01 00 00 BF 42 01 [09:48:42]Write i2c OK [09:48:42]MH_I2C_Read... [09:48:43]OFD Sender: No OFD packet to send [09:48:43]*** Cut start [09:48:43]*** Partial cut [09:48:43]*** CUTSNS_PIN = 1 [09:48:43]*** CUTSNS_PIN = 0 [09:48:43]*** Brake cut motor [09:48:44]Read from MH i2c: 01 [09:48:44]MH_I2C_Read... [09:48:44]*** Stop cut motor [09:48:44]*** Cut end [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 BF 42 00 00 00 00 00 FF 0F 16 [09:48:44]process_action close_receipt done [09:48:44]requested_data is exist [09:48:44]produce_requested_data [09:48:44]requested_item fm.sn is exist - process it [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 C0 42 80 11 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 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 C0 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [09:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:48:44]wFMCommunicate OK [09:48:44]requested_item fd.num is exist - process it [09:48:44]SAM_PROTO_GetFieldsCounters [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 13 00 00 [09:48:44]Write to MH i2c: E2 08 00 C1 42 80 13 00 00 00 00 00 00 7F [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 62 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 62 00 C1 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [09:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:44]wFMCommunicate OK [09:48:44]SAM_PROTO_GetFieldsCounters done [09:48:44]requested_item shift.num is exist - process it [09:48:44]requested_item shift.opened is exist - process it [09:48:44]req_shift_opened [09:48:44]FM_GetShiftState [09:48:44]SAM_PROTO_GetShiftState [09:48:44]wFMCommunicate request_size=4 [09:48:44]MH_SAM_APDU [09:48:44]CAPDU: 80 13 01 00 [09:48:44]Write to MH i2c: E2 08 00 C2 42 80 13 01 00 00 00 00 00 81 [09:48:44]Write i2c OK [09:48:44]MH_I2C_Read... [09:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:44]Read from MH i2c: E2 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 0E 00 [09:48:44]MH_I2C_Read... [09:48:44]Read from MH i2c: E2 0E 00 C2 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CB [09:48:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:48:44]wFMCommunicate OK [09:48:44]SAM_PROTO_GetShiftState done [09:48:44]FM_GetShiftState done [09:48:44]req_shift_opened done [09:48:44]requested_item shift.open_date is exist - process it [09:48:44]req_shift_open_date [09:48:44]req_shift_open_date done [09:48:44]produce_requested_data done [09:48:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111280,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:48:44]process_action_free close_receipt [09:48:44]json_value_free [09:48:44]json_value_free done [09:48:44]process_json_proto returns [09:48:44]Send response to host [09:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111280,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:48:44]free response buf [09:48:44]execute_script done [09:48:44]execute_script returns [09:48:44]free content buf [09:48:44]Sock 8.Close socket [09:48:44]Sock 8.Thread stoped [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:33]accept exits with 10 [09:49:33]New connection [09:49:33]New thread 3067227492 created [09:49:33]Thread 3067084132 joined [09:49:33]Waiting for new connection... [09:49:33] Sock 10.Parse request [09:49:33]Sock 10.Check first char [09:49:33]Sock 10.First char is OK [09:49:33]request: POST /json_proto HTTP/1.0 [09:49:33]Method: POST [09:49:33]URL: /json_proto [09:49:33]Method is POST - this is cgi request [09:49:33]url: /json_proto [09:49:33]query_string will be loaded in cgi processing [09:49:33]execute_cgi json_proto POST (null) [09:49:33]execute_cgi path=json_proto method=POST [09:49:33]POST find Content-Length [09:49:33]Host: 172.17.59.68:8080 [09:49:33]Content-Length: 677 [09:49:33]Content-Type: application/json [09:49:33] [09:49:33]POST finish read [09:49:33]Found Content-Length = 677 [09:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.850, "sum" : 322.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 322.00, "total" : 322.00, "payments": [ { "type": 0, "sum" : 322.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:33]execute_script... [09:49: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)319849", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.850, "sum" : 322.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 322.00, "total" : 322.00, "payments": [ { "type": 0, "sum" : 322.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:33]POST & json_proto [09:49:33]process_json_proto [09:49:33]json parsed OK: [09:49:33]protocol is kg_v1.0 [09:49:33]action value=close_receipt [09:49:33]process_action close_receipt [09:49:33]cmd_close_receipt [09:49:33]MH_GetDate [09:49:33]Write to MH i2c: F0 00 00 C3 42 F4 [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: F0 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: F0 09 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: F0 09 00 C3 42 00 CA A9 72 66 BC EC 60 65 B5 [09:49:33]GetLastDocTimeStamp 1718790549 [09:49:33]current date 1718790602 [09:49:33]FM_GetShiftState [09:49:33]SAM_PROTO_GetShiftState [09:49:33]wFMCommunicate request_size=4 [09:49:33]MH_SAM_APDU [09:49:33]CAPDU: 80 13 01 00 [09:49:33]Write to MH i2c: E2 08 00 C4 42 80 13 01 00 00 00 00 00 83 [09:49:33]Write i2c OK [09:49:33]MH_I2C_Read... [09:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:33]Read from MH i2c: E2 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 0E 00 [09:49:33]MH_I2C_Read... [09:49:33]Read from MH i2c: E2 0E 00 C4 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CD [09:49:33]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:49:33]wFMCommunicate OK [09:49:33]SAM_PROTO_GetShiftState done [09:49:33]FM_GetShiftState done [09:49:33]opened in 1718760753 [09:49:33]opened+sec_in_day 1718847153 [09:49:33]quantity*price = 32204 [09:49:33]sum+1 = 32205 [09:49:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 322.00 Внесено: 322.00 СДАЧА: 0.00 НСП 1% : 2.85 НДС 12% : 34.20 Наличными: 322.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 30 19.06.2024 09:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111281 ФПД: 225166621395364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095002&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111281&fm=225166621395364&tin=02508201610067®Number=0000000000092771&sum=32200 [09:49:34]StoreToDocumentArchive [09:49:34]shift 388 fd 111281 [09:49:34]save to /storage/0388/doc_00111281 [09:49:34]save last doc name /storage/0388/doc_00111281 to /storage/kkm_last_doc_name [09:49:34]save OK [09:49:34]Clear old archive folders... [09:49:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:34]tlvbuf is 01A07490 [09:49:34]SAM_PROTO_ClearQueue [09:49:34]wFMCommunicate request_size=4 [09:49:34]MH_SAM_APDU [09:49:34]CAPDU: 80 09 00 00 [09:49:34]Write to MH i2c: E2 08 00 D1 42 80 09 00 00 00 00 00 00 85 [09:49:34]Write i2c OK [09:49:34]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 D1 42 00 90 00 87 [09:49:35]RAPDU: 90 00 [09:49:35]wFMCommunicate OK [09:49:35]SAM_PROTO_ClearQueue done [09:49:35]KKMCreateOFDPacket [09:49:35]OFDProtocolAddRootSTLVToBuf [09:49:35]FM_MakeSignedData [09:49:35]FM_MakeSignedData [09:49:35]SAM_PROTO_SignData [09:49:35]wFMCommunicate request_size=4 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 0D 01 02 [09:49:35]Write to MH i2c: E2 08 00 D2 42 80 0D 01 02 00 00 00 00 8D [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 D2 42 00 90 00 88 [09:49:35]RAPDU: 90 00 [09:49:35]wFMCommunicate OK [09:49:35]wFMCommunicate request_size=255 [09:49:35]MH_SAM_APDU [09:49: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 F2 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0D 00 00 00 00 07 04 06 00 C8 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 00 00 00 F4 03 04 00 CA A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B2 01 00 35 04 06 00 CC [09:49:35]Write to MH i2c: E2 02 01 D3 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 F2 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0D 00 00 00 00 07 04 06 00 C8 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 00 00 00 F4 03 04 00 CA A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B2 01 00 35 04 06 00 CC 00 00 1C [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 D3 42 00 90 00 89 [09:49:35]RAPDU: 90 00 [09:49:35]wFMCommunicate OK [09:49:35]wFMCommunicate request_size=10 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 0D 02 02 05 C9 B0 7B C9 A4 [09:49:35]Write to MH i2c: E2 0D 00 D4 42 80 0D 02 02 05 00 C9 B0 7B C9 A4 00 00 FB [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 03 00 D4 42 00 90 00 8A [09:49:35]RAPDU: 90 00 [09:49:35]wFMCommunicate OK [09:49:35]wFMCommunicate request_size=4 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 0D 03 02 [09:49:35]Write to MH i2c: E2 08 00 D5 42 80 0D 03 02 00 00 00 00 92 [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 0B 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 0B 00 D5 42 00 19 0E E6 80 71 69 57 72 90 00 C3 [09:49:35]RAPDU: 19 0E E6 80 71 69 57 72 90 00 [09:49:35]wFMCommunicate OK [09:49:35]SAM_PROTO_SignData done [09:49:35]FM_MakeSignedData done [09:49:35]CreateOFDProtocolMessage [09:49:35]wFMCommunicate request_size=4 [09:49:35]MH_SAM_APDU [09:49:35]CAPDU: 80 11 00 00 [09:49:35]Write to MH i2c: E2 08 00 D6 42 80 11 00 00 00 00 00 00 92 [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:35]Read from MH i2c: E2 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 17 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: E2 17 00 D6 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [09:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:49:35]wFMCommunicate OK [09:49:35]CreateOFDProtocolMessage done [09:49:35]OFDSenderStorePacket 111281 [09:49:35]StoreOFDPacket docnum=111281 [09:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 97 07 01 61 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 F2 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0D 00 00 00 00 07 04 06 00 C8 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 00 00 00 F4 03 04 00 CA A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B2 01 00 35 04 06 00 CC C9 B0 7B C9 A4 19 0E E6 80 71 69 57 72 [09:49:35]CheckFolder [09:49:35]dirname=/storage/ofd_packets [09:49:35]CheckFolder done [09:49:35]ProducePacketName [09:49:35]name=ofd_packets/00111281 [09:49:35]NVStorageSaveData ofd_packets/00111281 [09:49:35]File name is /storage/ofd_packets/00111281 [09:49:35]Write 301 bytes [09:49:35]NVStorageSaveData done [09:49:35]OFDSenderStorePacket done [09:49:35]KKMCreateOFDPacket done [09:49:35]NVStorageSaveData kkm_last_timestamp [09:49:35]File name is /storage/kkm_last_timestamp [09:49:35]Write 4 bytes [09:49:35]NVStorageSaveData done [09:49:35]ExternCall_PrintAddStr [09:49:35]wPrintStart [09:49:35]Write to MH i2c: 01 00 00 D7 42 19 [09:49:35]Write i2c OK [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: 01 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: 01 07 00 [09:49:35]MH_I2C_Read... [09:49:35]Read from MH i2c: 01 07 00 D7 42 00 00 00 00 00 FF 0F 2E [09:49:35]RasterBufferAndPrint [09:49:35]line Счет N : (1)319849 [09:49:35]line ИНН: 02508201610067 [09:49:35]line Контрольно-Кассовый Чек [09:49:35]line ПРОДАЖА [09:49:35]line ТРК (МРК, ГНК) : 11 [09:49:35]line Товар: 2710124130 [09:49:35]line Аи-92-К-5 [09:49:35]line 4.850 * 66.40 [09:49:35]line = 322.04 [09:49:35]line НДС 12% НСП 1% [09:49:35]line > о реализуемом товаре [09:49:35]line ОКРУГЛЕНИЕ: -0.04 [09:49:35]line ИТОГО: 322.00 [09:49:35]line Внесено: 322.00 [09:49:35]line СДАЧА: 0.00 [09:49:35]line НСП 1% : 2.85 [09:49:35]line НДС 12% : 34.20 [09:49:35]line Наличными: 322.00 [09:49:35]line Безнал.: 0.00 [09:49:35]line Место: АЗС № 65 "Партнер Нефть" [09:49:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:49:35]line СНО: Общий режим [09:49:35]line Чек 30 19.06.2024 09:50 [09:49:35]line Смена: 388 ФФД: 1.0 [09:49:35]line ЗНМ: 0300000198 [09:49:35]line РНМ: 0000000000092771 [09:49:35]line Версия ККМ: 001 [09:49:35]line ФМ: 0000000000875083 [09:49:35]line ФД: 111281 [09:49:35]line ФПД: 225166621395364 [09:49:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095002&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111281&fm=225166621395364&tin=02508201610067®Number=0000000000092771&sum=32200 [09:49:35]OFD Sender: Processing packet 111281 [packets to send 38, broken 37] [09:49:35]ProducePacketName [09:49:35]name=ofd_packets/00111281 [09:49:35]OFD Sender: To server: pG, [09:49:35]CommunicateWithHost lk.salyk.kg:30040 [09:49:35]ConnectInit lk.salyk.kg [09:49:35]written 0, free lines is 4095 [09:49:35]Connected sock=9 [09:49:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 97 07 01 61 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 F2 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CC 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0D 00 00 00 00 07 04 06 00 C8 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 00 00 00 F4 03 04 00 CA A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B2 01 00 35 04 06 00 CC C9 B0 7B C9 A4 19 0E E6 80 71 69 57 72 [09:49:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3A 0D 47 00 28 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B2 01 00 F4 03 04 00 38 41 72 66 B6 04 01 00 00 10 4E 61 87 BE F5 C2 05 [09:49:36]CommunicateWithHost err = 0 [09:49:36]CheckOFDResponse [09:49:36]1017 (14) - 77093643461234 [09:49:36]1041 (16) - 0000000000875083 [09:49:36]1040 (4) - 111281 [09:49:36]1012 (4) - 19.06.2024 02:23 [09:49:36]1206 (1) - 0 [09:49:36]OFD Sender: Remove packet 111281 [09:49:36]ProducePacketName [09:49:36]name=ofd_packets/00111281 [09:49:36]NVStorageDeleteData [09:49:36]Write to MH i2c: 01 00 00 02 43 45 [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 07 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: 01 07 00 02 43 00 00 00 00 00 CE 0C 26 [09:49:36]RasterBufferAndPrint [09:49:36]line [09:49:36]line [09:49:36]line [09:49:36]line [09:49:36]line [09:49:36]written 0, free lines is 3284 [09:49:36]MH_Cut [09:49:36]Write to MH i2c: D1 01 00 09 43 01 1E [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: D1 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: D1 01 00 [09:49:36]MH_I2C_Read... [09:49:36]Read from MH i2c: D1 01 00 09 43 00 1D [09:49:36]Write to MH i2c: 01 00 00 0A 43 4D [09:49:36]Write i2c OK [09:49:36]MH_I2C_Read... [09:49:36]OFD Sender: No OFD packet to send [09:49:37]*** Cut start [09:49:37]*** Partial cut [09:49:37]*** CUTSNS_PIN = 1 [09:49:37]*** CUTSNS_PIN = 0 [09:49:37]*** Brake cut motor [09:49:37]Read from MH i2c: 01 [09:49:37]MH_I2C_Read... [09:49:37]*** Stop cut motor [09:49:37]*** Cut end [09:49:37]Read from MH i2c: 01 07 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: 01 07 00 0A 43 00 00 00 00 00 FF 0F 62 [09:49:37]process_action close_receipt done [09:49:37]requested_data is exist [09:49:37]produce_requested_data [09:49:37]requested_item fm.sn is exist - process it [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 11 00 00 [09:49:37]Write to MH i2c: E2 08 00 0B 43 80 11 00 00 00 00 00 00 C8 [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 17 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 17 00 0B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [09:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:49:37]wFMCommunicate OK [09:49:37]requested_item fd.num is exist - process it [09:49:37]SAM_PROTO_GetFieldsCounters [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 13 00 00 [09:49:37]Write to MH i2c: E2 08 00 0C 43 80 13 00 00 00 00 00 00 CB [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 62 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 62 00 0C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:49: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:37]wFMCommunicate OK [09:49:37]SAM_PROTO_GetFieldsCounters done [09:49:37]requested_item shift.num is exist - process it [09:49:37]requested_item shift.opened is exist - process it [09:49:37]req_shift_opened [09:49:37]FM_GetShiftState [09:49:37]SAM_PROTO_GetShiftState [09:49:37]wFMCommunicate request_size=4 [09:49:37]MH_SAM_APDU [09:49:37]CAPDU: 80 13 01 00 [09:49:37]Write to MH i2c: E2 08 00 0D 43 80 13 01 00 00 00 00 00 CD [09:49:37]Write i2c OK [09:49:37]MH_I2C_Read... [09:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:37]Read from MH i2c: E2 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 0E 00 [09:49:37]MH_I2C_Read... [09:49:37]Read from MH i2c: E2 0E 00 0D 43 00 09 00 01 31 35 72 66 00 00 00 00 90 00 17 [09:49:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:49:37]wFMCommunicate OK [09:49:37]SAM_PROTO_GetShiftState done [09:49:37]FM_GetShiftState done [09:49:37]req_shift_opened done [09:49:37]requested_item shift.open_date is exist - process it [09:49:37]req_shift_open_date [09:49:37]req_shift_open_date done [09:49:37]produce_requested_data done [09:49:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111281,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:49:37]process_action_free close_receipt [09:49:37]json_value_free [09:49:37]json_value_free done [09:49:37]process_json_proto returns [09:49:37]Send response to host [09:49:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111281,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:49:37]free response buf [09:49:37]execute_script done [09:49:37]execute_script returns [09:49:37]free content buf [09:49:37]Sock 10.Close socket [09:49:37]Sock 10.Thread stoped [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:22]accept exits with 8 [09:50:22]New connection [09:50:22]New thread 3067084132 created [09:50:22]Thread 3067227492 joined [09:50:22]Waiting for new connection... [09:50:22] Sock 8.Parse request [09:50:22]Sock 8.Check first char [09:50:22]Sock 8.First char is OK [09:50:22]request: POST /json_proto HTTP/1.0 [09:50:22]Method: POST [09:50:22]URL: /json_proto [09:50:22]Method is POST - this is cgi request [09:50:22]url: /json_proto [09:50:22]query_string will be loaded in cgi processing [09:50:22]execute_cgi json_proto POST (null) [09:50:22]execute_cgi path=json_proto method=POST [09:50:22]POST find Content-Length [09:50:22]Host: 172.17.59.68:8080 [09:50:22]Content-Length: 677 [09:50:22]Content-Type: application/json [09:50:22] [09:50:22]POST finish read [09:50:22]Found Content-Length = 677 [09:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:50:22]execute_script... [09:50: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)319850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:50:22]POST & json_proto [09:50:22]process_json_proto [09:50:22]json parsed OK: [09:50:22]protocol is kg_v1.0 [09:50:22]action value=close_receipt [09:50:22]process_action close_receipt [09:50:22]cmd_close_receipt [09:50:22]MH_GetDate [09:50:22]Write to MH i2c: F0 00 00 0E 43 40 [09:50:22]Write i2c OK [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: F0 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: F0 09 00 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: F0 09 00 0E 43 00 FB A9 72 66 BC EC 60 65 32 [09:50:22]GetLastDocTimeStamp 1718790602 [09:50:22]current date 1718790651 [09:50:22]FM_GetShiftState [09:50:22]SAM_PROTO_GetShiftState [09:50:22]wFMCommunicate request_size=4 [09:50:22]MH_SAM_APDU [09:50:22]CAPDU: 80 13 01 00 [09:50:22]Write to MH i2c: E2 08 00 0F 43 80 13 01 00 00 00 00 00 CF [09:50:22]Write i2c OK [09:50:22]MH_I2C_Read... [09:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:22]Read from MH i2c: E2 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: E2 0E 00 [09:50:22]MH_I2C_Read... [09:50:22]Read from MH i2c: E2 0E 00 0F 43 00 09 00 01 31 35 72 66 00 00 00 00 90 00 19 [09:50:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:50:22]wFMCommunicate OK [09:50:22]SAM_PROTO_GetShiftState done [09:50:22]FM_GetShiftState done [09:50:22]opened in 1718760753 [09:50:22]opened+sec_in_day 1718847153 [09:50:22]quantity*price = 40039 [09:50:22]sum+1 = 40040 [09:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 31 19.06.2024 09:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111282 ФПД: 81649293311403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095051&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111282&fm=81649293311403&tin=02508201610067®Number=0000000000092771&sum=40000 [09:50:23]StoreToDocumentArchive [09:50:23]shift 388 fd 111282 [09:50:23]save to /storage/0388/doc_00111282 [09:50:23]save last doc name /storage/0388/doc_00111282 to /storage/kkm_last_doc_name [09:50:23]save OK [09:50:23]Clear old archive folders... [09:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:23]tlvbuf is B6F9B290 [09:50:23]SAM_PROTO_ClearQueue [09:50:23]wFMCommunicate request_size=4 [09:50:23]MH_SAM_APDU [09:50:23]CAPDU: 80 09 00 00 [09:50:23]Write to MH i2c: E2 08 00 1C 43 80 09 00 00 00 00 00 00 D1 [09:50:23]Write i2c OK [09:50:23]MH_I2C_Read... [09:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:23]Read from MH i2c: E2 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 03 00 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 03 00 1C 43 00 90 00 D3 [09:50:23]RAPDU: 90 00 [09:50:23]wFMCommunicate OK [09:50:23]SAM_PROTO_ClearQueue done [09:50:23]KKMCreateOFDPacket [09:50:23]OFDProtocolAddRootSTLVToBuf [09:50:23]FM_MakeSignedData [09:50:23]FM_MakeSignedData [09:50:23]SAM_PROTO_SignData [09:50:23]wFMCommunicate request_size=4 [09:50:23]MH_SAM_APDU [09:50:23]CAPDU: 80 0D 01 02 [09:50:23]Write to MH i2c: E2 08 00 1D 43 80 0D 01 02 00 00 00 00 D9 [09:50:23]Write i2c OK [09:50:23]MH_I2C_Read... [09:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:23]Read from MH i2c: E2 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 03 00 [09:50:23]MH_I2C_Read... [09:50:23]Read from MH i2c: E2 03 00 1D 43 00 90 00 D4 [09:50:23]RAPDU: 90 00 [09:50:23]wFMCommunicate OK [09:50:23]wFMCommunicate request_size=255 [09:50:23]MH_SAM_APDU [09:50: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 FB A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B2 01 00 35 04 06 00 4A [09:50:23]Write to MH i2c: E2 02 01 1E 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 FB A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B2 01 00 35 04 06 00 4A 00 00 2A [09:50:23]Write i2c OK [09:50:23]MH_I2C_Read... [09:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:24]Read from MH i2c: E2 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 03 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 03 00 1E 43 00 90 00 D5 [09:50:24]RAPDU: 90 00 [09:50:24]wFMCommunicate OK [09:50:24]wFMCommunicate request_size=10 [09:50:24]MH_SAM_APDU [09:50:24]CAPDU: 80 0D 02 02 05 42 75 1F BD AB [09:50:24]Write to MH i2c: E2 0D 00 1F 43 80 0D 02 02 05 00 42 75 1F BD AB 00 00 24 [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:24]Read from MH i2c: E2 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 03 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 03 00 1F 43 00 90 00 D6 [09:50:24]RAPDU: 90 00 [09:50:24]wFMCommunicate OK [09:50:24]wFMCommunicate request_size=4 [09:50:24]MH_SAM_APDU [09:50:24]CAPDU: 80 0D 03 02 [09:50:24]Write to MH i2c: E2 08 00 20 43 80 0D 03 02 00 00 00 00 DE [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:24]Read from MH i2c: E2 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 0B 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 0B 00 20 43 00 99 15 07 25 DE 97 EC BD 90 00 D7 [09:50:24]RAPDU: 99 15 07 25 DE 97 EC BD 90 00 [09:50:24]wFMCommunicate OK [09:50:24]SAM_PROTO_SignData done [09:50:24]FM_MakeSignedData done [09:50:24]CreateOFDProtocolMessage [09:50:24]wFMCommunicate request_size=4 [09:50:24]MH_SAM_APDU [09:50:24]CAPDU: 80 11 00 00 [09:50:24]Write to MH i2c: E2 08 00 21 43 80 11 00 00 00 00 00 00 DE [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:24]Read from MH i2c: E2 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 17 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 17 00 21 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 30 [09:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:50:24]wFMCommunicate OK [09:50:24]CreateOFDProtocolMessage done [09:50:24]OFDSenderStorePacket 111282 [09:50:24]StoreOFDPacket docnum=111282 [09:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 6B 07 01 3B 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 FB A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B2 01 00 35 04 06 00 4A 42 75 1F BD AB 99 15 07 25 DE 97 EC BD [09:50:24]CheckFolder [09:50:24]dirname=/storage/ofd_packets [09:50:24]CheckFolder done [09:50:24]ProducePacketName [09:50:24]name=ofd_packets/00111282 [09:50:24]NVStorageSaveData ofd_packets/00111282 [09:50:24]File name is /storage/ofd_packets/00111282 [09:50:24]Write 301 bytes [09:50:24]NVStorageSaveData done [09:50:24]OFDSenderStorePacket done [09:50:24]KKMCreateOFDPacket done [09:50:24]NVStorageSaveData kkm_last_timestamp [09:50:24]File name is /storage/kkm_last_timestamp [09:50:24]Write 4 bytes [09:50:24]NVStorageSaveData done [09:50:24]ExternCall_PrintAddStr [09:50:24]wPrintStart [09:50:24]Write to MH i2c: 01 00 00 22 43 65 [09:50:24]OFD Sender: Processing packet 111282 [packets to send 38, broken 37] [09:50:24]ProducePacketName [09:50:24]name=ofd_packets/00111282 [09:50:24]OFD Sender: To server: pG, [09:50:24]CommunicateWithHost lk.salyk.kg:30040 [09:50:24]ConnectInit lk.salyk.kg [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: 01 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: 01 07 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: 01 07 00 22 43 00 00 00 00 00 FF 0F 7A [09:50:24]RasterBufferAndPrint [09:50:24]line Счет N : (1)319850 [09:50:24]line ИНН: 02508201610067 [09:50:24]line Контрольно-Кассовый Чек [09:50:24]line ПРОДАЖА [09:50:24]line ТРК (МРК, ГНК) : 11 [09:50:24]line Товар: 2710124130 [09:50:24]line Аи-92-К-5 [09:50:24]line 6.030 * 66.40 [09:50:24]line = 400.39 [09:50:24]line НДС 12% НСП 1% [09:50:24]line > о реализуемом товаре [09:50:24]line ОКРУГЛЕНИЕ: -0.39 [09:50:24]line ИТОГО: 400.00 [09:50:24]line Внесено: 400.00 [09:50:24]line СДАЧА: 0.00 [09:50:24]line НСП 1% : 3.54 [09:50:24]line НДС 12% : 42.52 [09:50:24]line Наличными: 400.00 [09:50:24]line Безнал.: 0.00 [09:50:24]line Место: АЗС № 65 "Партнер Нефть" [09:50:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:50:24]line СНО: Общий режим [09:50:24]line Чек 31 19.06.2024 09:50 [09:50:24]line Смена: 388 ФФД: 1.0 [09:50:24]line ЗНМ: 0300000198 [09:50:24]line РНМ: 0000000000092771 [09:50:24]line Версия ККМ: 001 [09:50:24]line ФМ: 0000000000875083 [09:50:24]line ФД: 111282 [09:50:24]line ФПД: 81649293311403 [09:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095051&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111282&fm=81649293311403&tin=02508201610067®Number=0000000000092771&sum=40000 [09:50:24]written 0, free lines is 4095 [09:50:24]Connected sock=10 [09:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B2 6B 07 01 3B 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 FB A9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B2 01 00 35 04 06 00 4A 42 75 1F BD AB 99 15 07 25 DE 97 EC BD [09:50:24]Write to MH i2c: 01 00 00 4D 43 90 [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: 01 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: 01 07 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: 01 07 00 4D 43 00 00 00 00 00 CC 0C 6F [09:50:24]RasterBufferAndPrint [09:50:24]line [09:50:24]line [09:50:24]line [09:50:24]line [09:50:24]line [09:50:24]written 0, free lines is 3284 [09:50:24]MH_Cut [09:50:24]Write to MH i2c: D1 01 00 54 43 01 69 [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: D1 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: D1 01 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: D1 01 00 54 43 00 68 [09:50:24]Write to MH i2c: 01 00 00 55 43 98 [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6E 87 47 00 F2 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 35 30 38 33 10 04 04 00 B2 B2 01 00 F4 03 04 00 68 41 72 66 B6 04 01 00 00 18 61 E2 A4 79 4A D6 9C [09:50:24]CommunicateWithHost err = 0 [09:50:24]CheckOFDResponse [09:50:24]1017 (14) - 77093643461234 [09:50:24]1041 (16) - 0000000000875083 [09:50:24]1040 (4) - 111282 [09:50:24]1012 (4) - 19.06.2024 02:24 [09:50:24]1206 (1) - 0 [09:50:24]OFD Sender: Remove packet 111282 [09:50:24]ProducePacketName [09:50:24]name=ofd_packets/00111282 [09:50:24]NVStorageDeleteData [09:50:25]OFD Sender: No OFD packet to send [09:50:25]*** Cut start [09:50:25]*** Partial cut [09:50:25]*** CUTSNS_PIN = 1 [09:50:25]*** CUTSNS_PIN = 0 [09:50:25]*** Brake cut motor [09:50:26]Read from MH i2c: 01 [09:50:26]MH_I2C_Read... [09:50:26]*** Stop cut motor [09:50:26]*** Cut end [09:50:26]Read from MH i2c: 01 07 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 55 43 00 00 00 00 00 FF 0F AD [09:50:26]process_action close_receipt done [09:50:26]requested_data is exist [09:50:26]produce_requested_data [09:50:26]requested_item fm.sn is exist - process it [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 11 00 00 [09:50:26]Write to MH i2c: E2 08 00 56 43 80 11 00 00 00 00 00 00 13 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 17 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 17 00 56 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [09:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:50:26]wFMCommunicate OK [09:50:26]requested_item fd.num is exist - process it [09:50:26]SAM_PROTO_GetFieldsCounters [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 13 00 00 [09:50:26]Write to MH i2c: E2 08 00 57 43 80 13 00 00 00 00 00 00 16 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 62 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 62 00 57 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:50: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:26]wFMCommunicate OK [09:50:26]SAM_PROTO_GetFieldsCounters done [09:50:26]requested_item shift.num is exist - process it [09:50:26]requested_item shift.opened is exist - process it [09:50:26]req_shift_opened [09:50:26]FM_GetShiftState [09:50:26]SAM_PROTO_GetShiftState [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 13 01 00 [09:50:26]Write to MH i2c: E2 08 00 58 43 80 13 01 00 00 00 00 00 18 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 0E 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 0E 00 58 43 00 09 00 01 31 35 72 66 00 00 00 00 90 00 62 [09:50:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:50:26]wFMCommunicate OK [09:50:26]SAM_PROTO_GetShiftState done [09:50:26]FM_GetShiftState done [09:50:26]req_shift_opened done [09:50:26]requested_item shift.open_date is exist - process it [09:50:26]req_shift_open_date [09:50:26]req_shift_open_date done [09:50:26]produce_requested_data done [09:50:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111282,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:50:26]process_action_free close_receipt [09:50:26]json_value_free [09:50:26]json_value_free done [09:50:26]process_json_proto returns [09:50:26]Send response to host [09:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111282,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:50:26]free response buf [09:50:26]execute_script done [09:50:26]execute_script returns [09:50:26]free content buf [09:50:26]Sock 8.Close socket [09:50:26]Sock 8.Thread stoped [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:18]accept exits with 9 [09:52:18]New connection [09:52:18]New thread 3067227492 created [09:52:18]Thread 3067084132 joined [09:52:18]Waiting for new connection... [09:52:18] Sock 9.Parse request [09:52:18]Sock 9.Check first char [09:52:18]Sock 9.First char is OK [09:52:18]request: POST /json_proto HTTP/1.0 [09:52:18]Method: POST [09:52:18]URL: /json_proto [09:52:18]Method is POST - this is cgi request [09:52:18]url: /json_proto [09:52:18]query_string will be loaded in cgi processing [09:52:18]execute_cgi json_proto POST (null) [09:52:18]execute_cgi path=json_proto method=POST [09:52:18]POST find Content-Length [09:52:18]Host: 172.17.59.68:8080 [09:52:18]Content-Length: 677 [09:52:18]Content-Type: application/json [09:52:18] [09:52:18]POST finish read [09:52:18]Found Content-Length = 677 [09:52:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:18]execute_script... [09:52:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319851", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:18]POST & json_proto [09:52:18]process_json_proto [09:52:18]json parsed OK: [09:52:18]protocol is kg_v1.0 [09:52:18]action value=close_receipt [09:52:18]process_action close_receipt [09:52:18]cmd_close_receipt [09:52:18]MH_GetDate [09:52:18]Write to MH i2c: F0 00 00 59 43 8B [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: F0 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: F0 09 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: F0 09 00 59 43 00 6F AA 72 66 BC EC 60 65 F2 [09:52:18]GetLastDocTimeStamp 1718790651 [09:52:18]current date 1718790767 [09:52:18]FM_GetShiftState [09:52:18]SAM_PROTO_GetShiftState [09:52:18]wFMCommunicate request_size=4 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 13 01 00 [09:52:18]Write to MH i2c: E2 08 00 5A 43 80 13 01 00 00 00 00 00 1A [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 0E 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 0E 00 5A 43 00 09 00 01 31 35 72 66 00 00 00 00 90 00 64 [09:52:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:52:18]wFMCommunicate OK [09:52:18]SAM_PROTO_GetShiftState done [09:52:18]FM_GetShiftState done [09:52:18]opened in 1718760753 [09:52:18]opened+sec_in_day 1718847153 [09:52:18]quantity*price = 50065 [09:52:18]sum+1 = 50067 [09:52:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 32 19.06.2024 09:52 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111283 ФПД: 70745397486902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111283&fm=70745397486902&tin=02508201610067®Number=0000000000092771&sum=50000 [09:52:19]StoreToDocumentArchive [09:52:19]shift 388 fd 111283 [09:52:19]save to /storage/0388/doc_00111283 [09:52:19]save last doc name /storage/0388/doc_00111283 to /storage/kkm_last_doc_name [09:52:19]save OK [09:52:19]Clear old archive folders... [09:52:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:19]tlvbuf is B6F1DAF0 [09:52:19]SAM_PROTO_ClearQueue [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 09 00 00 [09:52:19]Write to MH i2c: E2 08 00 67 43 80 09 00 00 00 00 00 00 1C [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 67 43 00 90 00 1E [09:52:19]RAPDU: 90 00 [09:52:19]wFMCommunicate OK [09:52:19]SAM_PROTO_ClearQueue done [09:52:19]KKMCreateOFDPacket [09:52:19]OFDProtocolAddRootSTLVToBuf [09:52:19]FM_MakeSignedData [09:52:19]FM_MakeSignedData [09:52:19]SAM_PROTO_SignData [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 0D 01 02 [09:52:19]Write to MH i2c: E2 08 00 68 43 80 0D 01 02 00 00 00 00 24 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 68 43 00 90 00 1F [09:52:19]RAPDU: 90 00 [09:52:19]wFMCommunicate OK [09:52:19]wFMCommunicate request_size=255 [09:52:19]MH_SAM_APDU [09:52: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 6F AA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B2 01 00 35 04 06 00 40 [09:52:19]Write to MH i2c: E2 02 01 69 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 6F AA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B2 01 00 35 04 06 00 40 00 00 14 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 69 43 00 90 00 20 [09:52:20]RAPDU: 90 00 [09:52:20]wFMCommunicate OK [09:52:20]wFMCommunicate request_size=10 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 0D 02 02 05 57 B2 49 65 36 [09:52:20]Write to MH i2c: E2 0D 00 6A 43 80 0D 02 02 05 00 57 B2 49 65 36 00 00 1E [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 03 00 6A 43 00 90 00 21 [09:52:20]RAPDU: 90 00 [09:52:20]wFMCommunicate OK [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 0D 03 02 [09:52:20]Write to MH i2c: E2 08 00 6B 43 80 0D 03 02 00 00 00 00 29 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 0B 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 0B 00 6B 43 00 14 F2 1F EC 28 58 E9 D4 90 00 78 [09:52:20]RAPDU: 14 F2 1F EC 28 58 E9 D4 90 00 [09:52:20]wFMCommunicate OK [09:52:20]SAM_PROTO_SignData done [09:52:20]FM_MakeSignedData done [09:52:20]CreateOFDProtocolMessage [09:52:20]wFMCommunicate request_size=4 [09:52:20]MH_SAM_APDU [09:52:20]CAPDU: 80 11 00 00 [09:52:20]Write to MH i2c: E2 08 00 6C 43 80 11 00 00 00 00 00 00 29 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:20]Read from MH i2c: E2 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 17 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: E2 17 00 6C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [09:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:52:20]wFMCommunicate OK [09:52:20]CreateOFDProtocolMessage done [09:52:20]OFDSenderStorePacket 111283 [09:52:20]StoreOFDPacket docnum=111283 [09:52:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 08 07 01 50 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 6F AA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B2 01 00 35 04 06 00 40 57 B2 49 65 36 14 F2 1F EC 28 58 E9 D4 [09:52:20]CheckFolder [09:52:20]dirname=/storage/ofd_packets [09:52:20]CheckFolder done [09:52:20]ProducePacketName [09:52:20]name=ofd_packets/00111283 [09:52:20]NVStorageSaveData ofd_packets/00111283 [09:52:20]File name is /storage/ofd_packets/00111283 [09:52:20]Write 301 bytes [09:52:20]NVStorageSaveData done [09:52:20]OFDSenderStorePacket done [09:52:20]KKMCreateOFDPacket done [09:52:20]NVStorageSaveData kkm_last_timestamp [09:52:20]File name is /storage/kkm_last_timestamp [09:52:20]Write 4 bytes [09:52:20]NVStorageSaveData done [09:52:20]ExternCall_PrintAddStr [09:52:20]wPrintStart [09:52:20]Write to MH i2c: 01 00 00 6D 43 B0 [09:52:20]Write i2c OK [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 [09:52:20]MH_I2C_Read... [09:52:20]Read from MH i2c: 01 07 00 6D 43 00 00 00 00 00 FF 0F C5 [09:52:20]RasterBufferAndPrint [09:52:20]line Счет N : (1)319851 [09:52:20]line ИНН: 02508201610067 [09:52:20]line Контрольно-Кассовый Чек [09:52:20]line ПРОДАЖА [09:52:20]line ТРК (МРК, ГНК) : 11 [09:52:20]line Товар: 2710124130 [09:52:20]line Аи-92-К-5 [09:52:20]line 7.540 * 66.40 [09:52:20]line = 500.66 [09:52:20]line НДС 12% НСП 1% [09:52:20]line > о реализуемом товаре [09:52:20]line ОКРУГЛЕНИЕ: -0.66 [09:52:20]line ИТОГО: 500.00 [09:52:20]line Внесено: 500.00 [09:52:20]line СДАЧА: 0.00 [09:52:20]line НСП 1% : 4.43 [09:52:20]line НДС 12% : 53.17 [09:52:20]line Наличными: 500.00 [09:52:20]line Безнал.: 0.00 [09:52:20]line Место: АЗС № 65 "Партнер Нефть" [09:52:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:52:20]line СНО: Общий режим [09:52:20]line Чек 32 19.06.2024 09:52 [09:52:20]line Смена: 388 ФФД: 1.0 [09:52:20]line ЗНМ: 0300000198 [09:52:20]line РНМ: 0000000000092771 [09:52:20]line Версия ККМ: 001 [09:52:20]line ФМ: 0000000000875083 [09:52:20]line ФД: 111283 [09:52:20]line ФПД: 70745397486902 [09:52:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111283&fm=70745397486902&tin=02508201610067®Number=0000000000092771&sum=50000 [09:52:20]OFD Sender: Processing packet 111283 [packets to send 38, broken 37] [09:52:20]ProducePacketName [09:52:20]name=ofd_packets/00111283 [09:52:20]OFD Sender: To server: pG, [09:52:20]CommunicateWithHost lk.salyk.kg:30040 [09:52:20]ConnectInit lk.salyk.kg [09:52:20]written 0, free lines is 4095 [09:52:20]Connected sock=10 [09:52:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 22 08 07 01 50 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 6F AA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B2 01 00 35 04 06 00 40 57 B2 49 65 36 14 F2 1F EC 28 58 E9 D4 [09:52:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E 44 47 00 4D 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 35 30 38 33 10 04 04 00 B3 B2 01 00 F4 03 04 00 DC 41 72 66 B6 04 01 00 00 E7 CC B0 FE 30 D8 0C CD [09:52:20]CommunicateWithHost err = 0 [09:52:20]CheckOFDResponse [09:52:20]1017 (14) - 77093643461234 [09:52:20]1041 (16) - 0000000000875083 [09:52:20]1040 (4) - 111283 [09:52:20]1012 (4) - 19.06.2024 02:26 [09:52:20]1206 (1) - 0 [09:52:20]OFD Sender: Remove packet 111283 [09:52:20]ProducePacketName [09:52:20]name=ofd_packets/00111283 [09:52:20]NVStorageDeleteData [09:52:21]Write to MH i2c: 01 00 00 98 43 DB [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: 01 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: 01 07 00 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: 01 07 00 98 43 00 00 00 00 00 CD 0C BB [09:52:21]RasterBufferAndPrint [09:52:21]line [09:52:21]line [09:52:21]line [09:52:21]line [09:52:21]line [09:52:21]written 0, free lines is 3283 [09:52:21]MH_Cut [09:52:21]Write to MH i2c: D1 01 00 9F 43 01 B4 [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: D1 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: D1 01 00 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: D1 01 00 9F 43 00 B3 [09:52:21]Write to MH i2c: 01 00 00 A0 43 E3 [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]OFD Sender: No OFD packet to send [09:52:21]*** Cut start [09:52:21]*** Partial cut [09:52:21]*** CUTSNS_PIN = 1 [09:52:21]*** CUTSNS_PIN = 0 [09:52:22]*** Brake cut motor [09:52:22]Read from MH i2c: 01 [09:52:22]MH_I2C_Read... [09:52:22]*** Stop cut motor [09:52:22]*** Cut end [09:52:22]Read from MH i2c: 01 07 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: 01 07 00 A0 43 00 00 00 00 00 FF 0F F8 [09:52:22]process_action close_receipt done [09:52:22]requested_data is exist [09:52:22]produce_requested_data [09:52:22]requested_item fm.sn is exist - process it [09:52:22]wFMCommunicate request_size=4 [09:52:22]MH_SAM_APDU [09:52:22]CAPDU: 80 11 00 00 [09:52:22]Write to MH i2c: E2 08 00 A1 43 80 11 00 00 00 00 00 00 5E [09:52:22]Write i2c OK [09:52:22]MH_I2C_Read... [09:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:22]Read from MH i2c: E2 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 17 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 17 00 A1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [09:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:52:22]wFMCommunicate OK [09:52:22]requested_item fd.num is exist - process it [09:52:22]SAM_PROTO_GetFieldsCounters [09:52:22]wFMCommunicate request_size=4 [09:52:22]MH_SAM_APDU [09:52:22]CAPDU: 80 13 00 00 [09:52:22]Write to MH i2c: E2 08 00 A2 43 80 13 00 00 00 00 00 00 61 [09:52:22]Write i2c OK [09:52:22]MH_I2C_Read... [09:52:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:22]Read from MH i2c: E2 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 62 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 62 00 A2 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:52: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:22]wFMCommunicate OK [09:52:22]SAM_PROTO_GetFieldsCounters done [09:52:22]requested_item shift.num is exist - process it [09:52:22]requested_item shift.opened is exist - process it [09:52:22]req_shift_opened [09:52:22]FM_GetShiftState [09:52:22]SAM_PROTO_GetShiftState [09:52:22]wFMCommunicate request_size=4 [09:52:22]MH_SAM_APDU [09:52:22]CAPDU: 80 13 01 00 [09:52:22]Write to MH i2c: E2 08 00 A3 43 80 13 01 00 00 00 00 00 63 [09:52:22]Write i2c OK [09:52:22]MH_I2C_Read... [09:52:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:22]Read from MH i2c: E2 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 0E 00 [09:52:22]MH_I2C_Read... [09:52:22]Read from MH i2c: E2 0E 00 A3 43 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AD [09:52:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:52:22]wFMCommunicate OK [09:52:22]SAM_PROTO_GetShiftState done [09:52:22]FM_GetShiftState done [09:52:22]req_shift_opened done [09:52:22]requested_item shift.open_date is exist - process it [09:52:22]req_shift_open_date [09:52:22]req_shift_open_date done [09:52:22]produce_requested_data done [09:52:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111283,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:52:22]process_action_free close_receipt [09:52:22]json_value_free [09:52:22]json_value_free done [09:52:22]process_json_proto returns [09:52:22]Send response to host [09:52:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111283,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:52:22]free response buf [09:52:22]execute_script done [09:52:22]execute_script returns [09:52:22]free content buf [09:52:22]Sock 9.Close socket [09:52:22]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:29]accept exits with 8 [09:58:29]New connection [09:58:29]New thread 3067084132 created [09:58:29]Thread 3067227492 joined [09:58:29]Waiting for new connection... [09:58:29] Sock 8.Parse request [09:58:29]Sock 8.Check first char [09:58:29]Sock 8.First char is OK [09:58:29]request: POST /json_proto HTTP/1.0 [09:58:29]Method: POST [09:58:29]URL: /json_proto [09:58:29]Method is POST - this is cgi request [09:58:29]url: /json_proto [09:58:29]query_string will be loaded in cgi processing [09:58:29]execute_cgi json_proto POST (null) [09:58:29]execute_cgi path=json_proto method=POST [09:58:29]POST find Content-Length [09:58:29]Host: 172.17.59.68:8080 [09:58:29]Content-Length: 677 [09:58:29]Content-Type: application/json [09:58:29] [09:58:29]POST finish read [09:58:29]Found Content-Length = 677 [09:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:58:29]execute_script... [09:58:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:58:29]POST & json_proto [09:58:29]process_json_proto [09:58:29]json parsed OK: [09:58:29]protocol is kg_v1.0 [09:58:29]action value=close_receipt [09:58:29]process_action close_receipt [09:58:29]cmd_close_receipt [09:58:29]MH_GetDate [09:58:29]Write to MH i2c: F0 00 00 A4 43 D6 [09:58:29]Write i2c OK [09:58:29]MH_I2C_Read... [09:58:29]Read from MH i2c: F0 [09:58:29]MH_I2C_Read... [09:58:29]Read from MH i2c: F0 09 00 [09:58:29]MH_I2C_Read... [09:58:29]Read from MH i2c: F0 09 00 A4 43 00 E3 AB 72 66 BC EC 60 65 B2 [09:58:29]GetLastDocTimeStamp 1718790767 [09:58:29]current date 1718791139 [09:58:29]FM_GetShiftState [09:58:29]SAM_PROTO_GetShiftState [09:58:29]wFMCommunicate request_size=4 [09:58:29]MH_SAM_APDU [09:58:29]CAPDU: 80 13 01 00 [09:58:29]Write to MH i2c: E2 08 00 A5 43 80 13 01 00 00 00 00 00 65 [09:58:29]Write i2c OK [09:58:29]MH_I2C_Read... [09:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:29]Read from MH i2c: E2 [09:58:29]MH_I2C_Read... [09:58:29]Read from MH i2c: E2 0E 00 [09:58:29]MH_I2C_Read... [09:58:29]Read from MH i2c: E2 0E 00 A5 43 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AF [09:58:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:58:29]wFMCommunicate OK [09:58:29]SAM_PROTO_GetShiftState done [09:58:29]FM_GetShiftState done [09:58:29]opened in 1718760753 [09:58:29]opened+sec_in_day 1718847153 [09:58:29]quantity*price = 20052 [09:58:29]sum+1 = 20054 [09:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 33 19.06.2024 09:58 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111284 ФПД: 7995666603671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095859&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111284&fm=7995666603671&tin=02508201610067®Number=0000000000092771&sum=20000 [09:58:31]StoreToDocumentArchive [09:58:31]shift 388 fd 111284 [09:58:31]save to /storage/0388/doc_00111284 [09:58:31]save last doc name /storage/0388/doc_00111284 to /storage/kkm_last_doc_name [09:58:31]save OK [09:58:31]Clear old archive folders... [09:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:31]tlvbuf is 0195F490 [09:58:31]SAM_PROTO_ClearQueue [09:58:31]wFMCommunicate request_size=4 [09:58:31]MH_SAM_APDU [09:58:31]CAPDU: 80 09 00 00 [09:58:31]Write to MH i2c: E2 08 00 B2 43 80 09 00 00 00 00 00 00 67 [09:58:31]Write i2c OK [09:58:31]MH_I2C_Read... [09:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:31]Read from MH i2c: E2 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 03 00 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 03 00 B2 43 00 90 00 69 [09:58:31]RAPDU: 90 00 [09:58:31]wFMCommunicate OK [09:58:31]SAM_PROTO_ClearQueue done [09:58:31]KKMCreateOFDPacket [09:58:31]OFDProtocolAddRootSTLVToBuf [09:58:31]FM_MakeSignedData [09:58:31]FM_MakeSignedData [09:58:31]SAM_PROTO_SignData [09:58:31]wFMCommunicate request_size=4 [09:58:31]MH_SAM_APDU [09:58:31]CAPDU: 80 0D 01 02 [09:58:31]Write to MH i2c: E2 08 00 B3 43 80 0D 01 02 00 00 00 00 6F [09:58:31]Write i2c OK [09:58:31]MH_I2C_Read... [09:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:31]Read from MH i2c: E2 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 03 00 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 03 00 B3 43 00 90 00 6A [09:58:31]RAPDU: 90 00 [09:58:31]wFMCommunicate OK [09:58:31]wFMCommunicate request_size=255 [09:58:31]MH_SAM_APDU [09:58: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E3 AB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B2 01 00 35 04 06 00 07 [09:58:31]Write to MH i2c: E2 02 01 B4 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E3 AB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B2 01 00 35 04 06 00 07 00 00 5C [09:58:31]Write i2c OK [09:58:31]MH_I2C_Read... [09:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:31]Read from MH i2c: E2 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 03 00 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 03 00 B4 43 00 90 00 6B [09:58:31]RAPDU: 90 00 [09:58:31]wFMCommunicate OK [09:58:31]wFMCommunicate request_size=10 [09:58:31]MH_SAM_APDU [09:58:31]CAPDU: 80 0D 02 02 05 45 A2 DE 1E 97 [09:58:31]Write to MH i2c: E2 0D 00 B5 43 80 0D 02 02 05 00 45 A2 DE 1E 97 00 00 F6 [09:58:31]Write i2c OK [09:58:31]MH_I2C_Read... [09:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:31]Read from MH i2c: E2 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 03 00 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 03 00 B5 43 00 90 00 6C [09:58:31]RAPDU: 90 00 [09:58:31]wFMCommunicate OK [09:58:31]wFMCommunicate request_size=4 [09:58:31]MH_SAM_APDU [09:58:31]CAPDU: 80 0D 03 02 [09:58:31]Write to MH i2c: E2 08 00 B6 43 80 0D 03 02 00 00 00 00 74 [09:58:31]Write i2c OK [09:58:31]MH_I2C_Read... [09:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:31]Read from MH i2c: E2 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 0B 00 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 0B 00 B6 43 00 E9 46 4F B0 9E 6B B1 6B 90 00 C8 [09:58:31]RAPDU: E9 46 4F B0 9E 6B B1 6B 90 00 [09:58:31]wFMCommunicate OK [09:58:31]SAM_PROTO_SignData done [09:58:31]FM_MakeSignedData done [09:58:31]CreateOFDProtocolMessage [09:58:31]wFMCommunicate request_size=4 [09:58:31]MH_SAM_APDU [09:58:31]CAPDU: 80 11 00 00 [09:58:31]Write to MH i2c: E2 08 00 B7 43 80 11 00 00 00 00 00 00 74 [09:58:31]Write i2c OK [09:58:31]MH_I2C_Read... [09:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:31]Read from MH i2c: E2 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 17 00 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: E2 17 00 B7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [09:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:58:31]wFMCommunicate OK [09:58:31]CreateOFDProtocolMessage done [09:58:31]OFDSenderStorePacket 111284 [09:58:31]StoreOFDPacket docnum=111284 [09:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 9F 07 01 DE 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E3 AB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B2 01 00 35 04 06 00 07 45 A2 DE 1E 97 E9 46 4F B0 9E 6B B1 6B [09:58:31]CheckFolder [09:58:31]dirname=/storage/ofd_packets [09:58:31]CheckFolder done [09:58:31]ProducePacketName [09:58:31]name=ofd_packets/00111284 [09:58:31]NVStorageSaveData ofd_packets/00111284 [09:58:31]File name is /storage/ofd_packets/00111284 [09:58:31]Write 301 bytes [09:58:31]NVStorageSaveData done [09:58:31]OFDSenderStorePacket done [09:58:31]KKMCreateOFDPacket done [09:58:31]NVStorageSaveData kkm_last_timestamp [09:58:31]File name is /storage/kkm_last_timestamp [09:58:31]Write 4 bytes [09:58:31]NVStorageSaveData done [09:58:31]ExternCall_PrintAddStr [09:58:31]wPrintStart [09:58:31]Write to MH i2c: 01 00 00 B8 43 FB [09:58:31]Write i2c OK [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: 01 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: 01 07 00 [09:58:31]MH_I2C_Read... [09:58:31]Read from MH i2c: 01 07 00 B8 43 00 00 00 00 00 FF 0F 10 [09:58:31]RasterBufferAndPrint [09:58:31]line Счет N : (1)319852 [09:58:31]line ИНН: 02508201610067 [09:58:31]line Контрольно-Кассовый Чек [09:58:31]line ПРОДАЖА [09:58:31]line ТРК (МРК, ГНК) : 11 [09:58:31]line Товар: 2710124130 [09:58:31]line Аи-92-К-5 [09:58:31]line 3.020 * 66.40 [09:58:31]line = 200.53 [09:58:31]line НДС 12% НСП 1% [09:58:31]line > о реализуемом товаре [09:58:31]line ОКРУГЛЕНИЕ: -0.53 [09:58:31]line ИТОГО: 200.00 [09:58:31]line Внесено: 200.00 [09:58:31]line СДАЧА: 0.00 [09:58:31]line НСП 1% : 1.77 [09:58:31]line НДС 12% : 21.29 [09:58:31]line Наличными: 200.00 [09:58:31]line Безнал.: 0.00 [09:58:31]line Место: АЗС № 65 "Партнер Нефть" [09:58:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [09:58:31]line СНО: Общий режим [09:58:31]line Чек 33 19.06.2024 09:58 [09:58:31]line Смена: 388 ФФД: 1.0 [09:58:31]line ЗНМ: 0300000198 [09:58:31]line РНМ: 0000000000092771 [09:58:31]line Версия ККМ: 001 [09:58:31]line ФМ: 0000000000875083 [09:58:31]line ФД: 111284 [09:58:31]line ФПД: 7995666603671 [09:58:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T095859&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111284&fm=7995666603671&tin=02508201610067®Number=0000000000092771&sum=20000 [09:58:31]OFD Sender: Processing packet 111284 [packets to send 38, broken 37] [09:58:31]ProducePacketName [09:58:31]name=ofd_packets/00111284 [09:58:31]OFD Sender: To server: pG, [09:58:31]CommunicateWithHost lk.salyk.kg:30040 [09:58:31]ConnectInit lk.salyk.kg [09:58:31]written 0, free lines is 4095 [09:58:31]Connected sock=10 [09:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 9F 07 01 DE 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E3 AB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B2 01 00 35 04 06 00 07 45 A2 DE 1E 97 E9 46 4F B0 9E 6B B1 6B [09:58:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8E 61 47 00 30 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 35 30 38 33 10 04 04 00 B4 B2 01 00 F4 03 04 00 50 43 72 66 B6 04 01 00 00 BD 5E 9D 6B 12 A3 AD DA [09:58:32]CommunicateWithHost err = 0 [09:58:32]CheckOFDResponse [09:58:32]1017 (14) - 77093643461234 [09:58:32]1041 (16) - 0000000000875083 [09:58:32]1040 (4) - 111284 [09:58:32]1012 (4) - 19.06.2024 02:32 [09:58:32]1206 (1) - 0 [09:58:32]OFD Sender: Remove packet 111284 [09:58:32]ProducePacketName [09:58:32]name=ofd_packets/00111284 [09:58:32]NVStorageDeleteData [09:58:32]Write to MH i2c: 01 00 00 E3 43 26 [09:58:32]Write i2c OK [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: 01 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: 01 07 00 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: 01 07 00 E3 43 00 00 00 00 00 D2 0C 0B [09:58:32]RasterBufferAndPrint [09:58:32]line [09:58:32]line [09:58:32]line [09:58:32]line [09:58:32]line [09:58:32]written 0, free lines is 3290 [09:58:32]MH_Cut [09:58:32]Write to MH i2c: D1 01 00 EA 43 01 FF [09:58:32]Write i2c OK [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: D1 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: D1 01 00 [09:58:32]MH_I2C_Read... [09:58:32]Read from MH i2c: D1 01 00 EA 43 00 FE [09:58:32]Write to MH i2c: 01 00 00 EB 43 2E [09:58:32]Write i2c OK [09:58:32]MH_I2C_Read... [09:58:32]OFD Sender: No OFD packet to send [09:58:33]*** Cut start [09:58:33]*** Partial cut [09:58:33]*** CUTSNS_PIN = 1 [09:58:33]*** CUTSNS_PIN = 0 [09:58:33]*** Brake cut motor [09:58:33]Read from MH i2c: 01 [09:58:33]MH_I2C_Read... [09:58:33]*** Stop cut motor [09:58:33]*** Cut end [09:58:33]Read from MH i2c: 01 07 00 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: 01 07 00 EB 43 00 00 00 00 00 FF 0F 43 [09:58:33]process_action close_receipt done [09:58:33]requested_data is exist [09:58:33]produce_requested_data [09:58:33]requested_item fm.sn is exist - process it [09:58:33]wFMCommunicate request_size=4 [09:58:33]MH_SAM_APDU [09:58:33]CAPDU: 80 11 00 00 [09:58:33]Write to MH i2c: E2 08 00 EC 43 80 11 00 00 00 00 00 00 A9 [09:58:33]Write i2c OK [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: E2 [09:58:33]MH_I2C_Read... [09:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:33]Read from MH i2c: E2 17 00 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: E2 17 00 EC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [09:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [09:58:33]wFMCommunicate OK [09:58:33]requested_item fd.num is exist - process it [09:58:33]SAM_PROTO_GetFieldsCounters [09:58:33]wFMCommunicate request_size=4 [09:58:33]MH_SAM_APDU [09:58:33]CAPDU: 80 13 00 00 [09:58:33]Write to MH i2c: E2 08 00 ED 43 80 13 00 00 00 00 00 00 AC [09:58:33]Write i2c OK [09:58:33]MH_I2C_Read... [09:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:33]Read from MH i2c: E2 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: E2 62 00 [09:58:33]MH_I2C_Read... [09:58:33]Read from MH i2c: E2 62 00 ED 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [09:58: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:33]wFMCommunicate OK [09:58:33]SAM_PROTO_GetFieldsCounters done [09:58:33]requested_item shift.num is exist - process it [09:58:33]requested_item shift.opened is exist - process it [09:58:33]req_shift_opened [09:58:33]FM_GetShiftState [09:58:33]SAM_PROTO_GetShiftState [09:58:33]wFMCommunicate request_size=4 [09:58:33]MH_SAM_APDU [09:58:33]CAPDU: 80 13 01 00 [09:58:33]Write to MH i2c: E2 08 00 EE 43 80 13 01 00 00 00 00 00 AE [09:58:33]Write i2c OK [09:58:33]MH_I2C_Read... [09:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:34]Read from MH i2c: E2 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 0E 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 0E 00 EE 43 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F8 [09:58:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [09:58:34]wFMCommunicate OK [09:58:34]SAM_PROTO_GetShiftState done [09:58:34]FM_GetShiftState done [09:58:34]req_shift_opened done [09:58:34]requested_item shift.open_date is exist - process it [09:58:34]req_shift_open_date [09:58:34]req_shift_open_date done [09:58:34]produce_requested_data done [09:58:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111284,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [09:58:34]process_action_free close_receipt [09:58:34]json_value_free [09:58:34]json_value_free done [09:58:34]process_json_proto returns [09:58:34]Send response to host [09:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111284,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [09:58:34]free response buf [09:58:34]execute_script done [09:58:34]execute_script returns [09:58:34]free content buf [09:58:34]Sock 8.Close socket [09:58:34]Sock 8.Thread stoped [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:30]accept exits with 9 [10:05:30]New connection [10:05:30]New thread 3067227492 created [10:05:30]Thread 3067084132 joined [10:05:30]Waiting for new connection... [10:05:30] Sock 9.Parse request [10:05:30]Sock 9.Check first char [10:05:30]Sock 9.First char is OK [10:05:30]request: POST /json_proto HTTP/1.0 [10:05:30]Method: POST [10:05:30]URL: /json_proto [10:05:30]Method is POST - this is cgi request [10:05:30]url: /json_proto [10:05:30]query_string will be loaded in cgi processing [10:05:30]execute_cgi json_proto POST (null) [10:05:30]execute_cgi path=json_proto method=POST [10:05:30]POST find Content-Length [10:05:30]Host: 172.17.59.68:8080 [10:05:30]Content-Length: 678 [10:05:30]Content-Type: application/json [10:05:30] [10:05:30]POST finish read [10:05:30]Found Content-Length = 678 [10:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:30]execute_script... [10:05: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)319853", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:30]POST & json_proto [10:05:30]process_json_proto [10:05:30]json parsed OK: [10:05:30]protocol is kg_v1.0 [10:05:30]action value=close_receipt [10:05:30]process_action close_receipt [10:05:30]cmd_close_receipt [10:05:30]MH_GetDate [10:05:30]Write to MH i2c: F0 00 00 EF 43 21 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: F0 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: F0 09 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: F0 09 00 EF 43 00 87 AD 72 66 BC EC 60 65 A3 [10:05:30]GetLastDocTimeStamp 1718791139 [10:05:30]current date 1718791559 [10:05:30]FM_GetShiftState [10:05:30]SAM_PROTO_GetShiftState [10:05:30]wFMCommunicate request_size=4 [10:05:30]MH_SAM_APDU [10:05:30]CAPDU: 80 13 01 00 [10:05:30]Write to MH i2c: E2 08 00 F0 43 80 13 01 00 00 00 00 00 B0 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 0E 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 0E 00 F0 43 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FA [10:05:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:05:30]wFMCommunicate OK [10:05:30]SAM_PROTO_GetShiftState done [10:05:30]FM_GetShiftState done [10:05:30]opened in 1718760753 [10:05:30]opened+sec_in_day 1718847153 [10:05:30]quantity*price = 74047 [10:05:30]sum+1 = 74049 [10:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.63 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 34 19.06.2024 10:05 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111285 ФПД: 86430990512078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T100559&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111285&fm=86430990512078&tin=02508201610067®Number=0000000000092771&sum=74000 [10:05:31]StoreToDocumentArchive [10:05:31]shift 388 fd 111285 [10:05:31]save to /storage/0388/doc_00111285 [10:05:31]save last doc name /storage/0388/doc_00111285 to /storage/kkm_last_doc_name [10:05:31]save OK [10:05:31]Clear old archive folders... [10:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:31]tlvbuf is 01AAC460 [10:05:31]SAM_PROTO_ClearQueue [10:05:31]wFMCommunicate request_size=4 [10:05:31]MH_SAM_APDU [10:05:31]CAPDU: 80 09 00 00 [10:05:31]Write to MH i2c: E2 08 00 FD 43 80 09 00 00 00 00 00 00 B2 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:31]Read from MH i2c: E2 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 03 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 03 00 FD 43 00 90 00 B4 [10:05:31]RAPDU: 90 00 [10:05:31]wFMCommunicate OK [10:05:31]SAM_PROTO_ClearQueue done [10:05:31]KKMCreateOFDPacket [10:05:31]OFDProtocolAddRootSTLVToBuf [10:05:31]FM_MakeSignedData [10:05:31]FM_MakeSignedData [10:05:31]SAM_PROTO_SignData [10:05:31]wFMCommunicate request_size=4 [10:05:31]MH_SAM_APDU [10:05:31]CAPDU: 80 0D 01 02 [10:05:31]Write to MH i2c: E2 08 00 FE 43 80 0D 01 02 00 00 00 00 BA [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:31]Read from MH i2c: E2 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 03 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 03 00 FE 43 00 90 00 B5 [10:05:31]RAPDU: 90 00 [10:05:31]wFMCommunicate OK [10:05:31]wFMCommunicate request_size=255 [10:05:31]MH_SAM_APDU [10:05:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 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 87 AD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B2 01 00 35 04 06 00 4E [10:05:31]Write to MH i2c: E2 02 01 FF 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 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 87 AD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B2 01 00 35 04 06 00 4E 00 00 A2 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:31]Read from MH i2c: E2 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 03 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 03 00 FF 43 00 90 00 B6 [10:05:31]RAPDU: 90 00 [10:05:31]wFMCommunicate OK [10:05:31]wFMCommunicate request_size=10 [10:05:31]MH_SAM_APDU [10:05:31]CAPDU: 80 0D 02 02 05 9B C8 7C AF CE [10:05:31]Write to MH i2c: E2 0D 00 00 44 80 0D 02 02 05 00 9B C8 7C AF CE 00 00 24 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:31]Read from MH i2c: E2 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 03 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 03 00 00 44 00 90 00 B8 [10:05:31]RAPDU: 90 00 [10:05:31]wFMCommunicate OK [10:05:31]wFMCommunicate request_size=4 [10:05:31]MH_SAM_APDU [10:05:31]CAPDU: 80 0D 03 02 [10:05:31]Write to MH i2c: E2 08 00 01 44 80 0D 03 02 00 00 00 00 C0 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:31]Read from MH i2c: E2 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 0B 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 0B 00 01 44 00 49 BE 46 D4 66 69 B3 FE 90 00 62 [10:05:31]RAPDU: 49 BE 46 D4 66 69 B3 FE 90 00 [10:05:31]wFMCommunicate OK [10:05:31]SAM_PROTO_SignData done [10:05:31]FM_MakeSignedData done [10:05:31]CreateOFDProtocolMessage [10:05:31]wFMCommunicate request_size=4 [10:05:31]MH_SAM_APDU [10:05:31]CAPDU: 80 11 00 00 [10:05:31]Write to MH i2c: E2 08 00 02 44 80 11 00 00 00 00 00 00 C0 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:31]Read from MH i2c: E2 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 17 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 17 00 02 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [10:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:05:31]wFMCommunicate OK [10:05:31]CreateOFDProtocolMessage done [10:05:31]OFDSenderStorePacket 111285 [10:05:31]StoreOFDPacket docnum=111285 [10:05:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D5 1D 07 01 7D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 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 87 AD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B2 01 00 35 04 06 00 4E 9B C8 7C AF CE 49 BE 46 D4 66 69 B3 FE [10:05:31]CheckFolder [10:05:31]dirname=/storage/ofd_packets [10:05:31]CheckFolder done [10:05:31]ProducePacketName [10:05:31]name=ofd_packets/00111285 [10:05:31]NVStorageSaveData ofd_packets/00111285 [10:05:31]File name is /storage/ofd_packets/00111285 [10:05:31]Write 301 bytes [10:05:31]NVStorageSaveData done [10:05:31]OFDSenderStorePacket done [10:05:31]KKMCreateOFDPacket done [10:05:31]NVStorageSaveData kkm_last_timestamp [10:05:31]File name is /storage/kkm_last_timestamp [10:05:31]Write 4 bytes [10:05:31]NVStorageSaveData done [10:05:31]ExternCall_PrintAddStr [10:05:31]wPrintStart [10:05:31]Write to MH i2c: 01 00 00 03 44 47 [10:05:31]Write i2c OK [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: 01 07 00 03 44 00 00 00 00 00 FF 0F 5C [10:05:31]RasterBufferAndPrint [10:05:31]line Счет N : (1)319853 [10:05:31]line ИНН: 02508201610067 [10:05:31]line Контрольно-Кассовый Чек [10:05:31]line ПРОДАЖА [10:05:31]line ТРК (МРК, ГНК) : 12 [10:05:31]line Товар: 2710124500 [10:05:31]line Аи-95-К-5 [10:05:31]line 10.020 * 73.90 [10:05:31]line = 740.48 [10:05:31]line НДС 12% НСП 1% [10:05:31]line > о реализуемом товаре [10:05:31]line ОКРУГЛЕНИЕ: -0.48 [10:05:31]line ИТОГО: 740.00 [10:05:31]line Внесено: 740.00 [10:05:31]line СДАЧА: 0.00 [10:05:31]line НСП 1% : 6.55 [10:05:31]line НДС 12% : 78.63 [10:05:31]line Наличными: 740.00 [10:05:31]line Безнал.: 0.00 [10:05:31]line Место: АЗС № 65 "Партнер Нефть" [10:05:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:05:31]line СНО: Общий режим [10:05:31]line Чек 34 19.06.2024 10:05 [10:05:31]line Смена: 388 ФФД: 1.0 [10:05:31]line ЗНМ: 0300000198 [10:05:31]line РНМ: 0000000000092771 [10:05:31]line Версия ККМ: 001 [10:05:31]line ФМ: 0000000000875083 [10:05:31]line ФД: 111285 [10:05:31]line ФПД: 86430990512078 [10:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T100559&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111285&fm=86430990512078&tin=02508201610067®Number=0000000000092771&sum=74000 [10:05:32]OFD Sender: Processing packet 111285 [packets to send 38, broken 37] [10:05:32]ProducePacketName [10:05:32]name=ofd_packets/00111285 [10:05:32]OFD Sender: To server: pG, [10:05:32]CommunicateWithHost lk.salyk.kg:30040 [10:05:32]ConnectInit lk.salyk.kg [10:05:32]written 0, free lines is 4095 [10:05:32]Connected sock=10 [10:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D5 1D 07 01 7D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 10 21 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 87 AD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B2 01 00 35 04 06 00 4E 9B C8 7C AF CE 49 BE 46 D4 66 69 B3 FE [10:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 87 BC 47 00 B2 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B2 01 00 F4 03 04 00 F4 44 72 66 B6 04 01 00 00 87 1F A2 37 C1 49 FB BA [10:05:32]CommunicateWithHost err = 0 [10:05:32]CheckOFDResponse [10:05:32]1017 (14) - 77093643461234 [10:05:32]1041 (16) - 0000000000875083 [10:05:32]1040 (4) - 111285 [10:05:32]1012 (4) - 19.06.2024 02:39 [10:05:32]1206 (1) - 0 [10:05:32]OFD Sender: Remove packet 111285 [10:05:32]ProducePacketName [10:05:32]name=ofd_packets/00111285 [10:05:32]NVStorageDeleteData [10:05:32]Write to MH i2c: 01 00 00 2E 44 72 [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 2E 44 00 00 00 00 00 D4 0C 59 [10:05:32]RasterBufferAndPrint [10:05:32]line [10:05:32]line [10:05:32]line [10:05:32]line [10:05:32]line [10:05:32]written 0, free lines is 3292 [10:05:32]MH_Cut [10:05:32]Write to MH i2c: D1 01 00 35 44 01 4B [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: D1 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: D1 01 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: D1 01 00 35 44 00 4A [10:05:32]Write to MH i2c: 01 00 00 36 44 7A [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:33]OFD Sender: No OFD packet to send [10:05:33]*** Cut start [10:05:33]*** Partial cut [10:05:33]*** CUTSNS_PIN = 1 [10:05:33]*** CUTSNS_PIN = 0 [10:05:33]*** Brake cut motor [10:05:34]Read from MH i2c: 01 [10:05:34]MH_I2C_Read... [10:05:34]*** Stop cut motor [10:05:34]*** Cut end [10:05:34]Read from MH i2c: 01 07 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: 01 07 00 36 44 00 00 00 00 00 FF 0F 8F [10:05:34]process_action close_receipt done [10:05:34]requested_data is exist [10:05:34]produce_requested_data [10:05:34]requested_item fm.sn is exist - process it [10:05:34]wFMCommunicate request_size=4 [10:05:34]MH_SAM_APDU [10:05:34]CAPDU: 80 11 00 00 [10:05:34]Write to MH i2c: E2 08 00 37 44 80 11 00 00 00 00 00 00 F5 [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:34]Read from MH i2c: E2 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 17 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 17 00 37 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [10:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:05:34]wFMCommunicate OK [10:05:34]requested_item fd.num is exist - process it [10:05:34]SAM_PROTO_GetFieldsCounters [10:05:34]wFMCommunicate request_size=4 [10:05:34]MH_SAM_APDU [10:05:34]CAPDU: 80 13 00 00 [10:05:34]Write to MH i2c: E2 08 00 38 44 80 13 00 00 00 00 00 00 F8 [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:34]Read from MH i2c: E2 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 62 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 62 00 38 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [10:05: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:34]wFMCommunicate OK [10:05:34]SAM_PROTO_GetFieldsCounters done [10:05:34]requested_item shift.num is exist - process it [10:05:34]requested_item shift.opened is exist - process it [10:05:34]req_shift_opened [10:05:34]FM_GetShiftState [10:05:34]SAM_PROTO_GetShiftState [10:05:34]wFMCommunicate request_size=4 [10:05:34]MH_SAM_APDU [10:05:34]CAPDU: 80 13 01 00 [10:05:34]Write to MH i2c: E2 08 00 39 44 80 13 01 00 00 00 00 00 FA [10:05:34]Write i2c OK [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 [10:05:34]MH_I2C_Read... [10:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:34]Read from MH i2c: E2 0E 00 [10:05:34]MH_I2C_Read... [10:05:34]Read from MH i2c: E2 0E 00 39 44 00 09 00 01 31 35 72 66 00 00 00 00 90 00 44 [10:05:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:05:34]wFMCommunicate OK [10:05:34]SAM_PROTO_GetShiftState done [10:05:34]FM_GetShiftState done [10:05:34]req_shift_opened done [10:05:34]requested_item shift.open_date is exist - process it [10:05:34]req_shift_open_date [10:05:34]req_shift_open_date done [10:05:34]produce_requested_data done [10:05:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111285,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:05:34]process_action_free close_receipt [10:05:34]json_value_free [10:05:34]json_value_free done [10:05:34]process_json_proto returns [10:05:34]Send response to host [10:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111285,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:05:34]free response buf [10:05:34]execute_script done [10:05:34]execute_script returns [10:05:34]free content buf [10:05:34]Sock 9.Close socket [10:05:34]Sock 9.Thread stoped [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:54]accept exits with 8 [10:05:54]New connection [10:05:54]New thread 3067084132 created [10:05:54]Thread 3067227492 joined [10:05:54]Waiting for new connection... [10:05:54] Sock 8.Parse request [10:05:54]Sock 8.Check first char [10:05:54]Sock 8.First char is OK [10:05:54]request: POST /json_proto HTTP/1.0 [10:05:54]Method: POST [10:05:54]URL: /json_proto [10:05:54]Method is POST - this is cgi request [10:05:54]url: /json_proto [10:05:54]query_string will be loaded in cgi processing [10:05:54]execute_cgi json_proto POST (null) [10:05:54]execute_cgi path=json_proto method=POST [10:05:54]POST find Content-Length [10:05:54]Host: 172.17.59.68:8080 [10:05:54]Content-Length: 678 [10:05:54]Content-Type: application/json [10:05:54] [10:05:54]POST finish read [10:05:54]Found Content-Length = 678 [10:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:54]execute_script... [10:05: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)319854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:54]POST & json_proto [10:05:54]process_json_proto [10:05:54]json parsed OK: [10:05:54]protocol is kg_v1.0 [10:05:54]action value=close_receipt [10:05:54]process_action close_receipt [10:05:54]cmd_close_receipt [10:05:54]MH_GetDate [10:05:54]Write to MH i2c: F0 00 00 3A 44 6D [10:05:54]Write i2c OK [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: F0 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: F0 09 00 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: F0 09 00 3A 44 00 9F AD 72 66 BC EC 60 65 07 [10:05:54]GetLastDocTimeStamp 1718791559 [10:05:54]current date 1718791583 [10:05:54]FM_GetShiftState [10:05:54]SAM_PROTO_GetShiftState [10:05:54]wFMCommunicate request_size=4 [10:05:54]MH_SAM_APDU [10:05:54]CAPDU: 80 13 01 00 [10:05:54]Write to MH i2c: E2 08 00 3B 44 80 13 01 00 00 00 00 00 FC [10:05:54]Write i2c OK [10:05:54]MH_I2C_Read... [10:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:54]Read from MH i2c: E2 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 0E 00 [10:05:54]MH_I2C_Read... [10:05:54]Read from MH i2c: E2 0E 00 3B 44 00 09 00 01 31 35 72 66 00 00 00 00 90 00 46 [10:05:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:05:54]wFMCommunicate OK [10:05:54]SAM_PROTO_GetShiftState done [10:05:54]FM_GetShiftState done [10:05:54]opened in 1718760753 [10:05:54]opened+sec_in_day 1718847153 [10:05:54]quantity*price = 70052 [10:05:54]sum+1 = 70053 [10:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 35 19.06.2024 10:06 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111286 ФПД: 101804380919205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T100623&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111286&fm=101804380919205&tin=02508201610067®Number=0000000000092771&sum=70000 [10:05:55]StoreToDocumentArchive [10:05:55]shift 388 fd 111286 [10:05:55]save to /storage/0388/doc_00111286 [10:05:55]save last doc name /storage/0388/doc_00111286 to /storage/kkm_last_doc_name [10:05:55]save OK [10:05:55]Clear old archive folders... [10:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:55]tlvbuf is 01A30440 [10:05:55]SAM_PROTO_ClearQueue [10:05:55]wFMCommunicate request_size=4 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 09 00 00 [10:05:55]Write to MH i2c: E2 08 00 48 44 80 09 00 00 00 00 00 00 FE [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 48 44 00 90 00 00 [10:05:55]RAPDU: 90 00 [10:05:55]wFMCommunicate OK [10:05:55]SAM_PROTO_ClearQueue done [10:05:55]KKMCreateOFDPacket [10:05:55]OFDProtocolAddRootSTLVToBuf [10:05:55]FM_MakeSignedData [10:05:55]FM_MakeSignedData [10:05:55]SAM_PROTO_SignData [10:05:55]wFMCommunicate request_size=4 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 0D 01 02 [10:05:55]Write to MH i2c: E2 08 00 49 44 80 0D 01 02 00 00 00 00 06 [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 49 44 00 90 00 01 [10:05:55]RAPDU: 90 00 [10:05:55]wFMCommunicate OK [10:05:55]wFMCommunicate request_size=255 [10:05:55]MH_SAM_APDU [10:05: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 23 00 00 00 F4 03 04 00 9F AD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B2 01 00 35 04 06 00 5C [10:05:55]Write to MH i2c: E2 02 01 4A 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 23 00 00 00 F4 03 04 00 9F AD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B2 01 00 35 04 06 00 5C 00 00 5D [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 4A 44 00 90 00 02 [10:05:55]RAPDU: 90 00 [10:05:55]wFMCommunicate OK [10:05:55]wFMCommunicate request_size=10 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 0D 02 02 05 97 2D F6 15 A5 [10:05:55]Write to MH i2c: E2 0D 00 4B 44 80 0D 02 02 05 00 97 2D F6 15 A5 00 00 87 [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:55]Read from MH i2c: E2 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 [10:05:55]MH_I2C_Read... [10:05:55]Read from MH i2c: E2 03 00 4B 44 00 90 00 03 [10:05:55]RAPDU: 90 00 [10:05:55]wFMCommunicate OK [10:05:55]wFMCommunicate request_size=4 [10:05:55]MH_SAM_APDU [10:05:55]CAPDU: 80 0D 03 02 [10:05:55]Write to MH i2c: E2 08 00 4C 44 80 0D 03 02 00 00 00 00 0B [10:05:55]Write i2c OK [10:05:55]MH_I2C_Read... [10:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:56]Read from MH i2c: E2 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: E2 0B 00 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: E2 0B 00 4C 44 00 AB 59 CB 29 B6 87 86 B9 90 00 80 [10:05:56]RAPDU: AB 59 CB 29 B6 87 86 B9 90 00 [10:05:56]wFMCommunicate OK [10:05:56]SAM_PROTO_SignData done [10:05:56]FM_MakeSignedData done [10:05:56]CreateOFDProtocolMessage [10:05:56]wFMCommunicate request_size=4 [10:05:56]MH_SAM_APDU [10:05:56]CAPDU: 80 11 00 00 [10:05:56]Write to MH i2c: E2 08 00 4D 44 80 11 00 00 00 00 00 00 0B [10:05:56]Write i2c OK [10:05:56]MH_I2C_Read... [10:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:56]Read from MH i2c: E2 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: E2 17 00 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: E2 17 00 4D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [10:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:05:56]wFMCommunicate OK [10:05:56]CreateOFDProtocolMessage done [10:05:56]OFDSenderStorePacket 111286 [10:05:56]StoreOFDPacket docnum=111286 [10:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 82 07 01 83 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 23 00 00 00 F4 03 04 00 9F AD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B2 01 00 35 04 06 00 5C 97 2D F6 15 A5 AB 59 CB 29 B6 87 86 B9 [10:05:56]CheckFolder [10:05:56]dirname=/storage/ofd_packets [10:05:56]CheckFolder done [10:05:56]ProducePacketName [10:05:56]name=ofd_packets/00111286 [10:05:56]NVStorageSaveData ofd_packets/00111286 [10:05:56]File name is /storage/ofd_packets/00111286 [10:05:56]Write 301 bytes [10:05:56]NVStorageSaveData done [10:05:56]OFDSenderStorePacket done [10:05:56]KKMCreateOFDPacket done [10:05:56]NVStorageSaveData kkm_last_timestamp [10:05:56]File name is /storage/kkm_last_timestamp [10:05:56]Write 4 bytes [10:05:56]NVStorageSaveData done [10:05:56]ExternCall_PrintAddStr [10:05:56]wPrintStart [10:05:56]Write to MH i2c: 01 00 00 4E 44 92 [10:05:56]Write i2c OK [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 07 00 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 07 00 4E 44 00 00 00 00 00 FF 0F A7 [10:05:56]RasterBufferAndPrint [10:05:56]line Счет N : (1)319854 [10:05:56]line ИНН: 02508201610067 [10:05:56]line Контрольно-Кассовый Чек [10:05:56]line ПРОДАЖА [10:05:56]line ТРК (МРК, ГНК) : 11 [10:05:56]line Товар: 2710124130 [10:05:56]line Аи-92-К-5 [10:05:56]line 10.550 * 66.40 [10:05:56]line = 700.52 [10:05:56]line НДС 12% НСП 1% [10:05:56]line > о реализуемом товаре [10:05:56]line ОКРУГЛЕНИЕ: -0.52 [10:05:56]line ИТОГО: 700.00 [10:05:56]line Внесено: 700.00 [10:05:56]line СДАЧА: 0.00 [10:05:56]line НСП 1% : 6.20 [10:05:56]line НДС 12% : 74.39 [10:05:56]line Наличными: 700.00 [10:05:56]line Безнал.: 0.00 [10:05:56]line Место: АЗС № 65 "Партнер Нефть" [10:05:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:05:56]line СНО: Общий режим [10:05:56]line Чек 35 19.06.2024 10:06 [10:05:56]line Смена: 388 ФФД: 1.0 [10:05:56]line ЗНМ: 0300000198 [10:05:56]line РНМ: 0000000000092771 [10:05:56]line Версия ККМ: 001 [10:05:56]line ФМ: 0000000000875083 [10:05:56]line ФД: 111286 [10:05:56]line ФПД: 101804380919205 [10:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T100623&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111286&fm=101804380919205&tin=02508201610067®Number=0000000000092771&sum=70000 [10:05:56]OFD Sender: Processing packet 111286 [packets to send 38, broken 37] [10:05:56]ProducePacketName [10:05:56]name=ofd_packets/00111286 [10:05:56]OFD Sender: To server: pG, [10:05:56]CommunicateWithHost lk.salyk.kg:30040 [10:05:56]ConnectInit lk.salyk.kg [10:05:56]written 0, free lines is 4095 [10:05:56]Connected sock=10 [10:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC 82 07 01 83 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 23 00 00 00 F4 03 04 00 9F AD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B2 01 00 35 04 06 00 5C 97 2D F6 15 A5 AB 59 CB 29 B6 87 86 B9 [10:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A2 1B 47 00 62 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 35 30 38 33 10 04 04 00 B6 B2 01 00 F4 03 04 00 0C 45 72 66 B6 04 01 00 00 4C CB C7 EF 7A 40 4A EB [10:05:56]CommunicateWithHost err = 0 [10:05:56]CheckOFDResponse [10:05:56]1017 (14) - 77093643461234 [10:05:56]1041 (16) - 0000000000875083 [10:05:56]1040 (4) - 111286 [10:05:56]1012 (4) - 19.06.2024 02:40 [10:05:56]1206 (1) - 0 [10:05:56]OFD Sender: Remove packet 111286 [10:05:56]ProducePacketName [10:05:56]name=ofd_packets/00111286 [10:05:56]NVStorageDeleteData [10:05:56]Write to MH i2c: 01 00 00 79 44 BD [10:05:56]Write i2c OK [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 07 00 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: 01 07 00 79 44 00 00 00 00 00 CB 0C 9B [10:05:56]RasterBufferAndPrint [10:05:56]line [10:05:56]line [10:05:56]line [10:05:56]line [10:05:56]line [10:05:56]written 0, free lines is 3281 [10:05:56]MH_Cut [10:05:56]Write to MH i2c: D1 01 00 80 44 01 96 [10:05:56]Write i2c OK [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: D1 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: D1 01 00 [10:05:56]MH_I2C_Read... [10:05:56]Read from MH i2c: D1 01 00 80 44 00 95 [10:05:56]Write to MH i2c: 01 00 00 81 44 C5 [10:05:56]Write i2c OK [10:05:56]MH_I2C_Read... [10:05:57]OFD Sender: No OFD packet to send [10:05:57]*** Cut start [10:05:57]*** Partial cut [10:05:57]*** CUTSNS_PIN = 1 [10:05:57]*** CUTSNS_PIN = 0 [10:05:57]*** Brake cut motor [10:05:58]Read from MH i2c: 01 [10:05:58]MH_I2C_Read... [10:05:58]*** Stop cut motor [10:05:58]*** Cut end [10:05:58]Read from MH i2c: 01 07 00 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: 01 07 00 81 44 00 00 00 00 00 FF 0F DA [10:05:58]process_action close_receipt done [10:05:58]requested_data is exist [10:05:58]produce_requested_data [10:05:58]requested_item fm.sn is exist - process it [10:05:58]wFMCommunicate request_size=4 [10:05:58]MH_SAM_APDU [10:05:58]CAPDU: 80 11 00 00 [10:05:58]Write to MH i2c: E2 08 00 82 44 80 11 00 00 00 00 00 00 40 [10:05:58]Write i2c OK [10:05:58]MH_I2C_Read... [10:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:58]Read from MH i2c: E2 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 17 00 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 17 00 82 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [10:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:05:58]wFMCommunicate OK [10:05:58]requested_item fd.num is exist - process it [10:05:58]SAM_PROTO_GetFieldsCounters [10:05:58]wFMCommunicate request_size=4 [10:05:58]MH_SAM_APDU [10:05:58]CAPDU: 80 13 00 00 [10:05:58]Write to MH i2c: E2 08 00 83 44 80 13 00 00 00 00 00 00 43 [10:05:58]Write i2c OK [10:05:58]MH_I2C_Read... [10:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:58]Read from MH i2c: E2 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 62 00 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 62 00 83 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [10:05: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:58]wFMCommunicate OK [10:05:58]SAM_PROTO_GetFieldsCounters done [10:05:58]requested_item shift.num is exist - process it [10:05:58]requested_item shift.opened is exist - process it [10:05:58]req_shift_opened [10:05:58]FM_GetShiftState [10:05:58]SAM_PROTO_GetShiftState [10:05:58]wFMCommunicate request_size=4 [10:05:58]MH_SAM_APDU [10:05:58]CAPDU: 80 13 01 00 [10:05:58]Write to MH i2c: E2 08 00 84 44 80 13 01 00 00 00 00 00 45 [10:05:58]Write i2c OK [10:05:58]MH_I2C_Read... [10:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:58]Read from MH i2c: E2 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 0E 00 [10:05:58]MH_I2C_Read... [10:05:58]Read from MH i2c: E2 0E 00 84 44 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8F [10:05:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:05:58]wFMCommunicate OK [10:05:58]SAM_PROTO_GetShiftState done [10:05:58]FM_GetShiftState done [10:05:58]req_shift_opened done [10:05:58]requested_item shift.open_date is exist - process it [10:05:58]req_shift_open_date [10:05:58]req_shift_open_date done [10:05:58]produce_requested_data done [10:05:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111286,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:05:58]process_action_free close_receipt [10:05:58]json_value_free [10:05:58]json_value_free done [10:05:58]process_json_proto returns [10:05:58]Send response to host [10:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111286,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:05:58]free response buf [10:05:58]execute_script done [10:05:58]execute_script returns [10:05:58]free content buf [10:05:58]Sock 8.Close socket [10:05:58]Sock 8.Thread stoped [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:21]accept exits with 9 [10:08:21]New connection [10:08:21]New thread 3067227492 created [10:08:21]Thread 3067084132 joined [10:08:21]Waiting for new connection... [10:08:21] Sock 9.Parse request [10:08:21]Sock 9.Check first char [10:08:21]Sock 9.First char is OK [10:08:21]request: POST /json_proto HTTP/1.0 [10:08:21]Method: POST [10:08:21]URL: /json_proto [10:08:21]Method is POST - this is cgi request [10:08:21]url: /json_proto [10:08:21]query_string will be loaded in cgi processing [10:08:21]execute_cgi json_proto POST (null) [10:08:21]execute_cgi path=json_proto method=POST [10:08:21]POST find Content-Length [10:08:21]Host: 172.17.59.68:8080 [10:08:21]Content-Length: 682 [10:08:21]Content-Type: application/json [10:08:21] [10:08:21]POST finish read [10:08:21]Found Content-Length = 682 [10:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:21]execute_script... [10:08: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)319855", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 21.090, "sum" : 1400.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:21]POST & json_proto [10:08:21]process_json_proto [10:08:21]json parsed OK: [10:08:21]protocol is kg_v1.0 [10:08:21]action value=close_receipt [10:08:21]process_action close_receipt [10:08:21]cmd_close_receipt [10:08:21]MH_GetDate [10:08:21]Write to MH i2c: F0 00 00 85 44 B8 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: F0 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: F0 09 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: F0 09 00 85 44 00 33 AE 72 66 BC EC 60 65 E7 [10:08:21]GetLastDocTimeStamp 1718791583 [10:08:21]current date 1718791731 [10:08:21]FM_GetShiftState [10:08:21]SAM_PROTO_GetShiftState [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 13 01 00 [10:08:21]Write to MH i2c: E2 08 00 86 44 80 13 01 00 00 00 00 00 47 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 0E 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 0E 00 86 44 00 09 00 01 31 35 72 66 00 00 00 00 90 00 91 [10:08:21]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:08:21]wFMCommunicate OK [10:08:21]SAM_PROTO_GetShiftState done [10:08:21]FM_GetShiftState done [10:08:21]opened in 1718760753 [10:08:21]opened+sec_in_day 1718847153 [10:08:21]quantity*price = 140037 [10:08:21]sum+1 = 140039 [10:08:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 36 19.06.2024 10:08 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111287 ФПД: 237170349571885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T100851&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111287&fm=237170349571885&tin=02508201610067®Number=0000000000092771&sum=140000 [10:08:22]StoreToDocumentArchive [10:08:22]shift 388 fd 111287 [10:08:22]save to /storage/0388/doc_00111287 [10:08:22]save last doc name /storage/0388/doc_00111287 to /storage/kkm_last_doc_name [10:08:22]save OK [10:08:22]Clear old archive folders... [10:08:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:22]tlvbuf is 01A8A2E0 [10:08:22]SAM_PROTO_ClearQueue [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 09 00 00 [10:08:22]Write to MH i2c: E2 08 00 93 44 80 09 00 00 00 00 00 00 49 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 93 44 00 90 00 4B [10:08:22]RAPDU: 90 00 [10:08:22]wFMCommunicate OK [10:08:22]SAM_PROTO_ClearQueue done [10:08:22]KKMCreateOFDPacket [10:08:22]OFDProtocolAddRootSTLVToBuf [10:08:22]FM_MakeSignedData [10:08:22]FM_MakeSignedData [10:08:22]SAM_PROTO_SignData [10:08:22]wFMCommunicate request_size=4 [10:08:22]MH_SAM_APDU [10:08:22]CAPDU: 80 0D 01 02 [10:08:22]Write to MH i2c: E2 08 00 94 44 80 0D 01 02 00 00 00 00 51 [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:22]Read from MH i2c: E2 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 [10:08:22]MH_I2C_Read... [10:08:22]Read from MH i2c: E2 03 00 94 44 00 90 00 4C [10:08:22]RAPDU: 90 00 [10:08:22]wFMCommunicate OK [10:08:22]wFMCommunicate request_size=255 [10:08:22]MH_SAM_APDU [10:08: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 62 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 33 AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B2 01 00 35 04 06 00 D7 [10:08:22]Write to MH i2c: E2 02 01 95 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 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 33 AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B2 01 00 35 04 06 00 D7 00 00 1A [10:08:22]Write i2c OK [10:08:22]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 95 44 00 90 00 4D [10:08:23]RAPDU: 90 00 [10:08:23]wFMCommunicate OK [10:08:23]wFMCommunicate request_size=10 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 0D 02 02 05 B4 86 6F FF 2D [10:08:23]Write to MH i2c: E2 0D 00 96 44 80 0D 02 02 05 00 B4 86 6F FF 2D 00 00 33 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 03 00 96 44 00 90 00 4E [10:08:23]RAPDU: 90 00 [10:08:23]wFMCommunicate OK [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 0D 03 02 [10:08:23]Write to MH i2c: E2 08 00 97 44 80 0D 03 02 00 00 00 00 56 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 0B 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 0B 00 97 44 00 56 36 C0 B3 AA 9D EE 7B 90 00 06 [10:08:23]RAPDU: 56 36 C0 B3 AA 9D EE 7B 90 00 [10:08:23]wFMCommunicate OK [10:08:23]SAM_PROTO_SignData done [10:08:23]FM_MakeSignedData done [10:08:23]CreateOFDProtocolMessage [10:08:23]wFMCommunicate request_size=4 [10:08:23]MH_SAM_APDU [10:08:23]CAPDU: 80 11 00 00 [10:08:23]Write to MH i2c: E2 08 00 98 44 80 11 00 00 00 00 00 00 56 [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:23]Read from MH i2c: E2 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 17 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: E2 17 00 98 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [10:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:08:23]wFMCommunicate OK [10:08:23]CreateOFDProtocolMessage done [10:08:23]OFDSenderStorePacket 111287 [10:08:23]StoreOFDPacket docnum=111287 [10:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 00 73 07 01 9B 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 33 AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B2 01 00 35 04 06 00 D7 B4 86 6F FF 2D 56 36 C0 B3 AA 9D EE 7B [10:08:23]CheckFolder [10:08:23]dirname=/storage/ofd_packets [10:08:23]CheckFolder done [10:08:23]ProducePacketName [10:08:23]name=ofd_packets/00111287 [10:08:23]NVStorageSaveData ofd_packets/00111287 [10:08:23]File name is /storage/ofd_packets/00111287 [10:08:23]Write 301 bytes [10:08:23]NVStorageSaveData done [10:08:23]OFDSenderStorePacket done [10:08:23]KKMCreateOFDPacket done [10:08:23]NVStorageSaveData kkm_last_timestamp [10:08:23]File name is /storage/kkm_last_timestamp [10:08:23]Write 4 bytes [10:08:23]NVStorageSaveData done [10:08:23]ExternCall_PrintAddStr [10:08:23]wPrintStart [10:08:23]Write to MH i2c: 01 00 00 99 44 DD [10:08:23]Write i2c OK [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: 01 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: 01 07 00 [10:08:23]MH_I2C_Read... [10:08:23]Read from MH i2c: 01 07 00 99 44 00 00 00 00 00 FF 0F F2 [10:08:23]RasterBufferAndPrint [10:08:23]line Счет N : (1)319855 [10:08:23]line ИНН: 02508201610067 [10:08:23]line Контрольно-Кассовый Чек [10:08:23]line ПРОДАЖА [10:08:23]line ТРК (МРК, ГНК) : 11 [10:08:23]line Товар: 2710124130 [10:08:23]line Аи-92-К-5 [10:08:23]line 21.090 * 66.40 [10:08:23]line = 1400.38 [10:08:23]line НДС 12% НСП 1% [10:08:23]line > о реализуемом товаре [10:08:23]line ОКРУГЛЕНИЕ: -0.38 [10:08:23]line ИТОГО: 1400.00 [10:08:23]line Внесено: 1400.00 [10:08:23]line СДАЧА: 0.00 [10:08:23]line НСП 1% : 12.39 [10:08:23]line НДС 12% : 148.71 [10:08:23]line Наличными: 1400.00 [10:08:23]line Безнал.: 0.00 [10:08:23]line Место: АЗС № 65 "Партнер Нефть" [10:08:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:08:23]line СНО: Общий режим [10:08:23]line Чек 36 19.06.2024 10:08 [10:08:23]line Смена: 388 ФФД: 1.0 [10:08:23]line ЗНМ: 0300000198 [10:08:23]line РНМ: 0000000000092771 [10:08:23]line Версия ККМ: 001 [10:08:23]line ФМ: 0000000000875083 [10:08:23]line ФД: 111287 [10:08:23]line ФПД: 237170349571885 [10:08:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T100851&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111287&fm=237170349571885&tin=02508201610067®Number=0000000000092771&sum=140000 [10:08:23]OFD Sender: Processing packet 111287 [packets to send 38, broken 37] [10:08:23]ProducePacketName [10:08:23]name=ofd_packets/00111287 [10:08:23]OFD Sender: To server: pG, [10:08:23]CommunicateWithHost lk.salyk.kg:30040 [10:08:23]ConnectInit lk.salyk.kg [10:08:23]written 0, free lines is 4095 [10:08:23]Connected sock=10 [10:08:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 00 73 07 01 9B 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 33 AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B2 01 00 35 04 06 00 D7 B4 86 6F FF 2D 56 36 C0 B3 AA 9D EE 7B [10:08:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 15 8D 47 00 F1 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B2 01 00 F4 03 04 00 9F 45 72 66 B6 04 01 00 00 CA 41 13 0E 7D A3 A4 2B [10:08:23]CommunicateWithHost err = 0 [10:08:23]CheckOFDResponse [10:08:23]1017 (14) - 77093643461234 [10:08:23]1041 (16) - 0000000000875083 [10:08:23]1040 (4) - 111287 [10:08:23]1012 (4) - 19.06.2024 02:42 [10:08:23]1206 (1) - 0 [10:08:23]OFD Sender: Remove packet 111287 [10:08:23]ProducePacketName [10:08:23]name=ofd_packets/00111287 [10:08:23]NVStorageDeleteData [10:08:24]Write to MH i2c: 01 00 00 C4 44 08 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: 01 07 00 C4 44 00 00 00 00 00 D4 0C EF [10:08:24]RasterBufferAndPrint [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]line [10:08:24]written 0, free lines is 3292 [10:08:24]MH_Cut [10:08:24]Write to MH i2c: D1 01 00 CB 44 01 E1 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 01 00 [10:08:24]MH_I2C_Read... [10:08:24]Read from MH i2c: D1 01 00 CB 44 00 E0 [10:08:24]Write to MH i2c: 01 00 00 CC 44 10 [10:08:24]Write i2c OK [10:08:24]MH_I2C_Read... [10:08:24]OFD Sender: No OFD packet to send [10:08:24]*** Cut start [10:08:24]*** Partial cut [10:08:24]*** CUTSNS_PIN = 1 [10:08:24]*** CUTSNS_PIN = 0 [10:08:25]*** Brake cut motor [10:08:25]Read from MH i2c: 01 [10:08:25]MH_I2C_Read... [10:08:25]*** Stop cut motor [10:08:25]*** Cut end [10:08:25]Read from MH i2c: 01 07 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: 01 07 00 CC 44 00 00 00 00 00 FF 0F 25 [10:08:25]process_action close_receipt done [10:08:25]requested_data is exist [10:08:25]produce_requested_data [10:08:25]requested_item fm.sn is exist - process it [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 11 00 00 [10:08:25]Write to MH i2c: E2 08 00 CD 44 80 11 00 00 00 00 00 00 8B [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 17 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 17 00 CD 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [10:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:08:25]wFMCommunicate OK [10:08:25]requested_item fd.num is exist - process it [10:08:25]SAM_PROTO_GetFieldsCounters [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 13 00 00 [10:08:25]Write to MH i2c: E2 08 00 CE 44 80 13 00 00 00 00 00 00 8E [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 62 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 62 00 CE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [10:08: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_GetFieldsCounters done [10:08:25]requested_item shift.num is exist - process it [10:08:25]requested_item shift.opened is exist - process it [10:08:25]req_shift_opened [10:08:25]FM_GetShiftState [10:08:25]SAM_PROTO_GetShiftState [10:08:25]wFMCommunicate request_size=4 [10:08:25]MH_SAM_APDU [10:08:25]CAPDU: 80 13 01 00 [10:08:25]Write to MH i2c: E2 08 00 CF 44 80 13 01 00 00 00 00 00 90 [10:08:25]Write i2c OK [10:08:25]MH_I2C_Read... [10:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:25]Read from MH i2c: E2 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 [10:08:25]MH_I2C_Read... [10:08:25]Read from MH i2c: E2 0E 00 CF 44 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DA [10:08:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:08:25]wFMCommunicate OK [10:08:25]SAM_PROTO_GetShiftState done [10:08:25]FM_GetShiftState done [10:08:25]req_shift_opened done [10:08:25]requested_item shift.open_date is exist - process it [10:08:25]req_shift_open_date [10:08:25]req_shift_open_date done [10:08:25]produce_requested_data done [10:08:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111287,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:08:25]process_action_free close_receipt [10:08:25]json_value_free [10:08:25]json_value_free done [10:08:25]process_json_proto returns [10:08:25]Send response to host [10:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111287,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:08:25]free response buf [10:08:25]execute_script done [10:08:25]execute_script returns [10:08:25]free content buf [10:08:25]Sock 9.Close socket [10:08:25]Sock 9.Thread stoped [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:18]accept exits with 8 [10:09:18]New connection [10:09:18]New thread 3067084132 created [10:09:18]Thread 3067227492 joined [10:09:18]Waiting for new connection... [10:09:18] Sock 8.Parse request [10:09:18]Sock 8.Check first char [10:09:18]Sock 8.First char is OK [10:09:18]request: POST /json_proto HTTP/1.0 [10:09:18]Method: POST [10:09:18]URL: /json_proto [10:09:18]Method is POST - this is cgi request [10:09:18]url: /json_proto [10:09:18]query_string will be loaded in cgi processing [10:09:18]execute_cgi json_proto POST (null) [10:09:18]execute_cgi path=json_proto method=POST [10:09:18]POST find Content-Length [10:09:18]Host: 172.17.59.68:8080 [10:09:18]Content-Length: 677 [10:09:18]Content-Type: application/json [10:09:18] [10:09:18]POST finish read [10:09:18]Found Content-Length = 677 [10:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:09:18]execute_script... [10:09: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)319856", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:09:18]POST & json_proto [10:09:18]process_json_proto [10:09:18]json parsed OK: [10:09:18]protocol is kg_v1.0 [10:09:18]action value=close_receipt [10:09:18]process_action close_receipt [10:09:18]cmd_close_receipt [10:09:18]MH_GetDate [10:09:18]Write to MH i2c: F0 00 00 D0 44 03 [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: F0 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: F0 09 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: F0 09 00 D0 44 00 6B AE 72 66 BC EC 60 65 6A [10:09:18]GetLastDocTimeStamp 1718791731 [10:09:18]current date 1718791787 [10:09:18]FM_GetShiftState [10:09:18]SAM_PROTO_GetShiftState [10:09:18]wFMCommunicate request_size=4 [10:09:18]MH_SAM_APDU [10:09:18]CAPDU: 80 13 01 00 [10:09:18]Write to MH i2c: E2 08 00 D1 44 80 13 01 00 00 00 00 00 92 [10:09:18]Write i2c OK [10:09:18]MH_I2C_Read... [10:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:18]Read from MH i2c: E2 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 0E 00 [10:09:18]MH_I2C_Read... [10:09:18]Read from MH i2c: E2 0E 00 D1 44 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DC [10:09:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:09:18]wFMCommunicate OK [10:09:18]SAM_PROTO_GetShiftState done [10:09:18]FM_GetShiftState done [10:09:18]opened in 1718760753 [10:09:18]opened+sec_in_day 1718847153 [10:09:18]quantity*price = 40039 [10:09:18]sum+1 = 40040 [10:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 37 19.06.2024 10:09 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111288 ФПД: 44746475606432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T100947&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111288&fm=44746475606432&tin=02508201610067®Number=0000000000092771&sum=40000 [10:09:19]StoreToDocumentArchive [10:09:19]shift 388 fd 111288 [10:09:19]save to /storage/0388/doc_00111288 [10:09:19]save last doc name /storage/0388/doc_00111288 to /storage/kkm_last_doc_name [10:09:19]save OK [10:09:19]Clear old archive folders... [10:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:19]tlvbuf is 01A30300 [10:09:19]SAM_PROTO_ClearQueue [10:09:19]wFMCommunicate request_size=4 [10:09:19]MH_SAM_APDU [10:09:19]CAPDU: 80 09 00 00 [10:09:19]Write to MH i2c: E2 08 00 DE 44 80 09 00 00 00 00 00 00 94 [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:19]Read from MH i2c: E2 03 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 03 00 DE 44 00 90 00 96 [10:09:19]RAPDU: 90 00 [10:09:19]wFMCommunicate OK [10:09:19]SAM_PROTO_ClearQueue done [10:09:19]KKMCreateOFDPacket [10:09:19]OFDProtocolAddRootSTLVToBuf [10:09:19]FM_MakeSignedData [10:09:19]FM_MakeSignedData [10:09:19]SAM_PROTO_SignData [10:09:19]wFMCommunicate request_size=4 [10:09:19]MH_SAM_APDU [10:09:19]CAPDU: 80 0D 01 02 [10:09:19]Write to MH i2c: E2 08 00 DF 44 80 0D 01 02 00 00 00 00 9C [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 03 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 03 00 DF 44 00 90 00 97 [10:09:19]RAPDU: 90 00 [10:09:19]wFMCommunicate OK [10:09:19]wFMCommunicate request_size=255 [10:09:19]MH_SAM_APDU [10:09: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 25 00 00 00 F4 03 04 00 6B AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B2 01 00 35 04 06 00 28 [10:09:19]Write to MH i2c: E2 02 01 E0 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 25 00 00 00 F4 03 04 00 6B AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B2 01 00 35 04 06 00 28 00 00 4C [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]OFD Sender: No OFD packet to send [10:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 03 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 03 00 E0 44 00 90 00 98 [10:09:19]RAPDU: 90 00 [10:09:19]wFMCommunicate OK [10:09:19]wFMCommunicate request_size=10 [10:09:19]MH_SAM_APDU [10:09:19]CAPDU: 80 0D 02 02 05 B2 59 C8 91 A0 [10:09:19]Write to MH i2c: E2 0D 00 E1 44 80 0D 02 02 05 00 B2 59 C8 91 A0 00 00 AD [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 03 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 03 00 E1 44 00 90 00 99 [10:09:19]RAPDU: 90 00 [10:09:19]wFMCommunicate OK [10:09:19]wFMCommunicate request_size=4 [10:09:19]MH_SAM_APDU [10:09:19]CAPDU: 80 0D 03 02 [10:09:19]Write to MH i2c: E2 08 00 E2 44 80 0D 03 02 00 00 00 00 A1 [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 0B 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 0B 00 E2 44 00 18 18 12 8E 39 80 8A 28 90 00 DD [10:09:19]RAPDU: 18 18 12 8E 39 80 8A 28 90 00 [10:09:19]wFMCommunicate OK [10:09:19]SAM_PROTO_SignData done [10:09:19]FM_MakeSignedData done [10:09:19]CreateOFDProtocolMessage [10:09:19]wFMCommunicate request_size=4 [10:09:19]MH_SAM_APDU [10:09:19]CAPDU: 80 11 00 00 [10:09:19]Write to MH i2c: E2 08 00 E3 44 80 11 00 00 00 00 00 00 A1 [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:19]Read from MH i2c: E2 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 17 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: E2 17 00 E3 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F3 [10:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:09:19]wFMCommunicate OK [10:09:19]CreateOFDProtocolMessage done [10:09:19]OFDSenderStorePacket 111288 [10:09:19]StoreOFDPacket docnum=111288 [10:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F AD 07 01 F9 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 25 00 00 00 F4 03 04 00 6B AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B2 01 00 35 04 06 00 28 B2 59 C8 91 A0 18 18 12 8E 39 80 8A 28 [10:09:19]CheckFolder [10:09:19]dirname=/storage/ofd_packets [10:09:19]CheckFolder done [10:09:19]ProducePacketName [10:09:19]name=ofd_packets/00111288 [10:09:19]NVStorageSaveData ofd_packets/00111288 [10:09:19]File name is /storage/ofd_packets/00111288 [10:09:19]Write 301 bytes [10:09:19]NVStorageSaveData done [10:09:19]OFDSenderStorePacket done [10:09:19]KKMCreateOFDPacket done [10:09:19]NVStorageSaveData kkm_last_timestamp [10:09:19]File name is /storage/kkm_last_timestamp [10:09:19]Write 4 bytes [10:09:19]NVStorageSaveData done [10:09:19]ExternCall_PrintAddStr [10:09:19]wPrintStart [10:09:19]Write to MH i2c: 01 00 00 E4 44 28 [10:09:19]Write i2c OK [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: 01 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: 01 07 00 [10:09:19]MH_I2C_Read... [10:09:19]Read from MH i2c: 01 07 00 E4 44 00 00 00 00 00 FF 0F 3D [10:09:19]RasterBufferAndPrint [10:09:19]line Счет N : (1)319856 [10:09:19]line ИНН: 02508201610067 [10:09:19]line Контрольно-Кассовый Чек [10:09:19]line ПРОДАЖА [10:09:19]line ТРК (МРК, ГНК) : 11 [10:09:19]line Товар: 2710124130 [10:09:19]line Аи-92-К-5 [10:09:19]line 6.030 * 66.40 [10:09:19]line = 400.39 [10:09:19]line НДС 12% НСП 1% [10:09:19]line > о реализуемом товаре [10:09:19]line ОКРУГЛЕНИЕ: -0.39 [10:09:19]line ИТОГО: 400.00 [10:09:19]line Внесено: 400.00 [10:09:19]line СДАЧА: 0.00 [10:09:19]line НСП 1% : 3.54 [10:09:19]line НДС 12% : 42.52 [10:09:19]line Наличными: 400.00 [10:09:19]line Безнал.: 0.00 [10:09:19]line Место: АЗС № 65 "Партнер Нефть" [10:09:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:09:19]line СНО: Общий режим [10:09:19]line Чек 37 19.06.2024 10:09 [10:09:19]line Смена: 388 ФФД: 1.0 [10:09:19]line ЗНМ: 0300000198 [10:09:19]line РНМ: 0000000000092771 [10:09:19]line Версия ККМ: 001 [10:09:19]line ФМ: 0000000000875083 [10:09:19]line ФД: 111288 [10:09:19]line ФПД: 44746475606432 [10:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T100947&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111288&fm=44746475606432&tin=02508201610067®Number=0000000000092771&sum=40000 [10:09:20]OFD Sender: Processing packet 111288 [packets to send 38, broken 37] [10:09:20]ProducePacketName [10:09:20]name=ofd_packets/00111288 [10:09:20]OFD Sender: To server: pG, [10:09:20]CommunicateWithHost lk.salyk.kg:30040 [10:09:20]ConnectInit lk.salyk.kg [10:09:20]written 0, free lines is 4095 [10:09:20]Connected sock=10 [10:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F AD 07 01 F9 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 25 00 00 00 F4 03 04 00 6B AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B2 01 00 35 04 06 00 28 B2 59 C8 91 A0 18 18 12 8E 39 80 8A 28 [10:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6C 37 47 00 5A 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 35 30 38 33 10 04 04 00 B8 B2 01 00 F4 03 04 00 D8 45 72 66 B6 04 01 00 00 D8 D4 AB F2 8C 97 B5 1C [10:09:20]CommunicateWithHost err = 0 [10:09:20]CheckOFDResponse [10:09:20]1017 (14) - 77093643461234 [10:09:20]1041 (16) - 0000000000875083 [10:09:20]1040 (4) - 111288 [10:09:20]1012 (4) - 19.06.2024 02:43 [10:09:20]1206 (1) - 0 [10:09:20]OFD Sender: Remove packet 111288 [10:09:20]ProducePacketName [10:09:20]name=ofd_packets/00111288 [10:09:20]NVStorageDeleteData [10:09:20]Write to MH i2c: 01 00 00 0F 45 54 [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: 01 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: 01 07 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: 01 07 00 0F 45 00 00 00 00 00 D0 0C 37 [10:09:20]RasterBufferAndPrint [10:09:20]line [10:09:20]line [10:09:20]line [10:09:20]line [10:09:20]line [10:09:20]written 0, free lines is 3288 [10:09:20]MH_Cut [10:09:20]Write to MH i2c: D1 01 00 16 45 01 2D [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: D1 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: D1 01 00 [10:09:20]MH_I2C_Read... [10:09:20]Read from MH i2c: D1 01 00 16 45 00 2C [10:09:20]Write to MH i2c: 01 00 00 17 45 5C [10:09:20]Write i2c OK [10:09:20]MH_I2C_Read... [10:09:20]OFD Sender: No OFD packet to send [10:09:21]*** Cut start [10:09:21]*** Partial cut [10:09:21]*** CUTSNS_PIN = 1 [10:09:21]*** CUTSNS_PIN = 0 [10:09:21]*** Brake cut motor [10:09:21]Read from MH i2c: 01 [10:09:21]MH_I2C_Read... [10:09:21]*** Stop cut motor [10:09:21]*** Cut end [10:09:21]Read from MH i2c: 01 07 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: 01 07 00 17 45 00 00 00 00 00 FF 0F 71 [10:09:21]process_action close_receipt done [10:09:21]requested_data is exist [10:09:21]produce_requested_data [10:09:21]requested_item fm.sn is exist - process it [10:09:21]wFMCommunicate request_size=4 [10:09:21]MH_SAM_APDU [10:09:21]CAPDU: 80 11 00 00 [10:09:21]Write to MH i2c: E2 08 00 18 45 80 11 00 00 00 00 00 00 D7 [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:21]Read from MH i2c: E2 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 17 00 [10:09:21]MH_I2C_Read... [10:09:21]Read from MH i2c: E2 17 00 18 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [10:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:09:21]wFMCommunicate OK [10:09:21]requested_item fd.num is exist - process it [10:09:21]SAM_PROTO_GetFieldsCounters [10:09:21]wFMCommunicate request_size=4 [10:09:21]MH_SAM_APDU [10:09:21]CAPDU: 80 13 00 00 [10:09:21]Write to MH i2c: E2 08 00 19 45 80 13 00 00 00 00 00 00 DA [10:09:21]Write i2c OK [10:09:21]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 62 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 62 00 19 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [10:09: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:22]wFMCommunicate OK [10:09:22]SAM_PROTO_GetFieldsCounters done [10:09:22]requested_item shift.num is exist - process it [10:09:22]requested_item shift.opened is exist - process it [10:09:22]req_shift_opened [10:09:22]FM_GetShiftState [10:09:22]SAM_PROTO_GetShiftState [10:09:22]wFMCommunicate request_size=4 [10:09:22]MH_SAM_APDU [10:09:22]CAPDU: 80 13 01 00 [10:09:22]Write to MH i2c: E2 08 00 1A 45 80 13 01 00 00 00 00 00 DC [10:09:22]Write i2c OK [10:09:22]MH_I2C_Read... [10:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:22]Read from MH i2c: E2 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 0E 00 [10:09:22]MH_I2C_Read... [10:09:22]Read from MH i2c: E2 0E 00 1A 45 00 09 00 01 31 35 72 66 00 00 00 00 90 00 26 [10:09:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:09:22]wFMCommunicate OK [10:09:22]SAM_PROTO_GetShiftState done [10:09:22]FM_GetShiftState done [10:09:22]req_shift_opened done [10:09:22]requested_item shift.open_date is exist - process it [10:09:22]req_shift_open_date [10:09:22]req_shift_open_date done [10:09:22]produce_requested_data done [10:09:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111288,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:09:22]process_action_free close_receipt [10:09:22]json_value_free [10:09:22]json_value_free done [10:09:22]process_json_proto returns [10:09:22]Send response to host [10:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111288,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:09:22]free response buf [10:09:22]execute_script done [10:09:22]execute_script returns [10:09:22]free content buf [10:09:22]Sock 8.Close socket [10:09:22]Sock 8.Thread stoped [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:01]accept exits with 9 [10:10:01]New connection [10:10:01]New thread 3067227492 created [10:10:01]Thread 3067084132 joined [10:10:01]Waiting for new connection... [10:10:01] Sock 9.Parse request [10:10:01]Sock 9.Check first char [10:10:01]Sock 9.First char is OK [10:10:01]request: POST /json_proto HTTP/1.0 [10:10:01]Method: POST [10:10:01]URL: /json_proto [10:10:01]Method is POST - this is cgi request [10:10:01]url: /json_proto [10:10:01]query_string will be loaded in cgi processing [10:10:01]execute_cgi json_proto POST (null) [10:10:01]execute_cgi path=json_proto method=POST [10:10:01]POST find Content-Length [10:10:01]Host: 172.17.59.68:8080 [10:10:01]Content-Length: 677 [10:10:01]Content-Type: application/json [10:10:01] [10:10:01]POST finish read [10:10:01]Found Content-Length = 677 [10:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:01]execute_script... [10: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)319857", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.790, "sum" : 650.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:01]POST & json_proto [10:10:01]process_json_proto [10:10:01]json parsed OK: [10:10:01]protocol is kg_v1.0 [10:10:01]action value=close_receipt [10:10:01]process_action close_receipt [10:10:01]cmd_close_receipt [10:10:01]MH_GetDate [10:10:01]Write to MH i2c: F0 00 00 1B 45 4F [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: F0 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: F0 09 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: F0 09 00 1B 45 00 97 AE 72 66 BC EC 60 65 E2 [10:10:01]GetLastDocTimeStamp 1718791787 [10:10:01]current date 1718791831 [10:10:01]FM_GetShiftState [10:10:01]SAM_PROTO_GetShiftState [10:10:01]wFMCommunicate request_size=4 [10:10:01]MH_SAM_APDU [10:10:01]CAPDU: 80 13 01 00 [10:10:01]Write to MH i2c: E2 08 00 1C 45 80 13 01 00 00 00 00 00 DE [10:10:01]Write i2c OK [10:10:01]MH_I2C_Read... [10:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:01]Read from MH i2c: E2 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 0E 00 [10:10:01]MH_I2C_Read... [10:10:01]Read from MH i2c: E2 0E 00 1C 45 00 09 00 01 31 35 72 66 00 00 00 00 90 00 28 [10:10:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:10:01]wFMCommunicate OK [10:10:01]SAM_PROTO_GetShiftState done [10:10:01]FM_GetShiftState done [10:10:01]opened in 1718760753 [10:10:01]opened+sec_in_day 1718847153 [10:10:01]quantity*price = 65005 [10:10:01]sum+1 = 65007 [10:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 38 19.06.2024 10:10 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111289 ФПД: 185177656146083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101031&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111289&fm=185177656146083&tin=02508201610067®Number=0000000000092771&sum=65000 [10:10:02]StoreToDocumentArchive [10:10:02]shift 388 fd 111289 [10:10:02]save to /storage/0388/doc_00111289 [10:10:02]save last doc name /storage/0388/doc_00111289 to /storage/kkm_last_doc_name [10:10:02]save OK [10:10:02]Clear old archive folders... [10:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:02]tlvbuf is 0197C070 [10:10:02]SAM_PROTO_ClearQueue [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 09 00 00 [10:10:02]Write to MH i2c: E2 08 00 29 45 80 09 00 00 00 00 00 00 E0 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 29 45 00 90 00 E2 [10:10:02]RAPDU: 90 00 [10:10:02]wFMCommunicate OK [10:10:02]SAM_PROTO_ClearQueue done [10:10:02]KKMCreateOFDPacket [10:10:02]OFDProtocolAddRootSTLVToBuf [10:10:02]FM_MakeSignedData [10:10:02]FM_MakeSignedData [10:10:02]SAM_PROTO_SignData [10:10:02]wFMCommunicate request_size=4 [10:10:02]MH_SAM_APDU [10:10:02]CAPDU: 80 0D 01 02 [10:10:02]Write to MH i2c: E2 08 00 2A 45 80 0D 01 02 00 00 00 00 E8 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:02]Read from MH i2c: E2 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 [10:10:02]MH_I2C_Read... [10:10:02]Read from MH i2c: E2 03 00 2A 45 00 90 00 E3 [10:10:02]RAPDU: 90 00 [10:10:02]wFMCommunicate OK [10:10:02]wFMCommunicate request_size=255 [10:10:02]MH_SAM_APDU [10:10: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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 97 AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B2 01 00 35 04 06 00 A8 [10:10:02]Write to MH i2c: E2 02 01 2B 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 97 AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B2 01 00 35 04 06 00 A8 00 00 42 [10:10:02]Write i2c OK [10:10:02]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 03 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 03 00 2B 45 00 90 00 E4 [10:10:03]RAPDU: 90 00 [10:10:03]wFMCommunicate OK [10:10:03]wFMCommunicate request_size=10 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 0D 02 02 05 6B 08 6A 38 A3 [10:10:03]Write to MH i2c: E2 0D 00 2C 45 80 0D 02 02 05 00 6B 08 6A 38 A3 00 00 AD [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 03 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 03 00 2C 45 00 90 00 E5 [10:10:03]RAPDU: 90 00 [10:10:03]wFMCommunicate OK [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 0D 03 02 [10:10:03]Write to MH i2c: E2 08 00 2D 45 80 0D 03 02 00 00 00 00 ED [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 0B 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 0B 00 2D 45 00 D8 85 0F 73 F7 16 A4 42 90 00 C0 [10:10:03]RAPDU: D8 85 0F 73 F7 16 A4 42 90 00 [10:10:03]wFMCommunicate OK [10:10:03]SAM_PROTO_SignData done [10:10:03]FM_MakeSignedData done [10:10:03]CreateOFDProtocolMessage [10:10:03]wFMCommunicate request_size=4 [10:10:03]MH_SAM_APDU [10:10:03]CAPDU: 80 11 00 00 [10:10:03]Write to MH i2c: E2 08 00 2E 45 80 11 00 00 00 00 00 00 ED [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:03]Read from MH i2c: E2 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 17 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: E2 17 00 2E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [10:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:10:03]wFMCommunicate OK [10:10:03]CreateOFDProtocolMessage done [10:10:03]OFDSenderStorePacket 111289 [10:10:03]StoreOFDPacket docnum=111289 [10:10:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 17 98 07 01 1A 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 97 AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B2 01 00 35 04 06 00 A8 6B 08 6A 38 A3 D8 85 0F 73 F7 16 A4 42 [10:10:03]CheckFolder [10:10:03]dirname=/storage/ofd_packets [10:10:03]CheckFolder done [10:10:03]ProducePacketName [10:10:03]name=ofd_packets/00111289 [10:10:03]NVStorageSaveData ofd_packets/00111289 [10:10:03]File name is /storage/ofd_packets/00111289 [10:10:03]Write 301 bytes [10:10:03]NVStorageSaveData done [10:10:03]OFDSenderStorePacket done [10:10:03]KKMCreateOFDPacket done [10:10:03]NVStorageSaveData kkm_last_timestamp [10:10:03]File name is /storage/kkm_last_timestamp [10:10:03]Write 4 bytes [10:10:03]NVStorageSaveData done [10:10:03]ExternCall_PrintAddStr [10:10:03]wPrintStart [10:10:03]Write to MH i2c: 01 00 00 2F 45 74 [10:10:03]Write i2c OK [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 07 00 [10:10:03]MH_I2C_Read... [10:10:03]Read from MH i2c: 01 07 00 2F 45 00 00 00 00 00 FF 0F 89 [10:10:03]RasterBufferAndPrint [10:10:03]line Счет N : (1)319857 [10:10:03]line ИНН: 02508201610067 [10:10:03]line Контрольно-Кассовый Чек [10:10:03]line ПРОДАЖА [10:10:03]line ТРК (МРК, ГНК) : 11 [10:10:03]line Товар: 2710124130 [10:10:03]line Аи-92-К-5 [10:10:03]line 9.790 * 66.40 [10:10:03]line = 650.06 [10:10:03]line НДС 12% НСП 1% [10:10:03]line > о реализуемом товаре [10:10:03]line ОКРУГЛЕНИЕ: -0.06 [10:10:03]line ИТОГО: 650.00 [10:10:03]line Внесено: 650.00 [10:10:03]line СДАЧА: 0.00 [10:10:03]line НСП 1% : 5.75 [10:10:03]line НДС 12% : 69.03 [10:10:03]line Наличными: 650.00 [10:10:03]line Безнал.: 0.00 [10:10:03]line Место: АЗС № 65 "Партнер Нефть" [10:10:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:10:03]line СНО: Общий режим [10:10:03]line Чек 38 19.06.2024 10:10 [10:10:03]line Смена: 388 ФФД: 1.0 [10:10:03]line ЗНМ: 0300000198 [10:10:03]line РНМ: 0000000000092771 [10:10:03]line Версия ККМ: 001 [10:10:03]line ФМ: 0000000000875083 [10:10:03]line ФД: 111289 [10:10:03]line ФПД: 185177656146083 [10:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101031&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111289&fm=185177656146083&tin=02508201610067®Number=0000000000092771&sum=65000 [10:10:03]OFD Sender: Processing packet 111289 [packets to send 38, broken 37] [10:10:03]ProducePacketName [10:10:03]name=ofd_packets/00111289 [10:10:03]OFD Sender: To server: pG, [10:10:03]CommunicateWithHost lk.salyk.kg:30040 [10:10:03]ConnectInit lk.salyk.kg [10:10:03]written 0, free lines is 4095 [10:10:03]Connected sock=10 [10: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 35 30 38 33 0F 01 00 00 17 98 07 01 1A 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 3E 26 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 EE FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 97 AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B2 01 00 35 04 06 00 A8 6B 08 6A 38 A3 D8 85 0F 73 F7 16 A4 42 [10:10:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 89 84 47 00 FF 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 35 30 38 33 10 04 04 00 B9 B2 01 00 F4 03 04 00 04 46 72 66 B6 04 01 00 00 33 FD C5 E1 BD D8 73 D5 [10:10:04]CommunicateWithHost err = 0 [10:10:04]CheckOFDResponse [10:10:04]1017 (14) - 77093643461234 [10:10:04]1041 (16) - 0000000000875083 [10:10:04]1040 (4) - 111289 [10:10:04]1012 (4) - 19.06.2024 02:44 [10:10:04]1206 (1) - 0 [10:10:04]OFD Sender: Remove packet 111289 [10:10:04]ProducePacketName [10:10:04]name=ofd_packets/00111289 [10:10:04]NVStorageDeleteData [10:10:04]Write to MH i2c: 01 00 00 5A 45 9F [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: 01 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: 01 07 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: 01 07 00 5A 45 00 00 00 00 00 D6 0C 88 [10:10:04]RasterBufferAndPrint [10:10:04]line [10:10:04]line [10:10:04]line [10:10:04]line [10:10:04]line [10:10:04]written 0, free lines is 3293 [10:10:04]MH_Cut [10:10:04]Write to MH i2c: D1 01 00 61 45 01 78 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: D1 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: D1 01 00 [10:10:04]MH_I2C_Read... [10:10:04]Read from MH i2c: D1 01 00 61 45 00 77 [10:10:04]Write to MH i2c: 01 00 00 62 45 A7 [10:10:04]Write i2c OK [10:10:04]MH_I2C_Read... [10:10:04]OFD Sender: No OFD packet to send [10:10:04]*** Cut start [10:10:04]*** Partial cut [10:10:04]*** CUTSNS_PIN = 1 [10:10:05]*** CUTSNS_PIN = 0 [10:10:05]*** Brake cut motor [10:10:05]Read from MH i2c: 01 [10:10:05]MH_I2C_Read... [10:10:05]*** Stop cut motor [10:10:05]*** Cut end [10:10:05]Read from MH i2c: 01 07 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: 01 07 00 62 45 00 00 00 00 00 FF 0F BC [10:10:05]process_action close_receipt done [10:10:05]requested_data is exist [10:10:05]produce_requested_data [10:10:05]requested_item fm.sn is exist - process it [10:10:05]wFMCommunicate request_size=4 [10:10:05]MH_SAM_APDU [10:10:05]CAPDU: 80 11 00 00 [10:10:05]Write to MH i2c: E2 08 00 63 45 80 11 00 00 00 00 00 00 22 [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:05]Read from MH i2c: E2 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 17 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 17 00 63 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [10:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:10:05]wFMCommunicate OK [10:10:05]requested_item fd.num is exist - process it [10:10:05]SAM_PROTO_GetFieldsCounters [10:10:05]wFMCommunicate request_size=4 [10:10:05]MH_SAM_APDU [10:10:05]CAPDU: 80 13 00 00 [10:10:05]Write to MH i2c: E2 08 00 64 45 80 13 00 00 00 00 00 00 25 [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:05]Read from MH i2c: E2 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 62 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 62 00 64 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [10: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:05]wFMCommunicate OK [10:10:05]SAM_PROTO_GetFieldsCounters done [10:10:05]requested_item shift.num is exist - process it [10:10:05]requested_item shift.opened is exist - process it [10:10:05]req_shift_opened [10:10:05]FM_GetShiftState [10:10:05]SAM_PROTO_GetShiftState [10:10:05]wFMCommunicate request_size=4 [10:10:05]MH_SAM_APDU [10:10:05]CAPDU: 80 13 01 00 [10:10:05]Write to MH i2c: E2 08 00 65 45 80 13 01 00 00 00 00 00 27 [10:10:05]Write i2c OK [10:10:05]MH_I2C_Read... [10:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:05]Read from MH i2c: E2 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 0E 00 [10:10:05]MH_I2C_Read... [10:10:05]Read from MH i2c: E2 0E 00 65 45 00 09 00 01 31 35 72 66 00 00 00 00 90 00 71 [10:10:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:10:05]wFMCommunicate OK [10:10:05]SAM_PROTO_GetShiftState done [10:10:05]FM_GetShiftState done [10:10:05]req_shift_opened done [10:10:05]requested_item shift.open_date is exist - process it [10:10:05]req_shift_open_date [10:10:05]req_shift_open_date done [10:10:05]produce_requested_data done [10:10:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111289,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:10:05]process_action_free close_receipt [10:10:05]json_value_free [10:10:05]json_value_free done [10:10:05]process_json_proto returns [10:10:05]Send response to host [10:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111289,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:10:05]free response buf [10:10:05]execute_script done [10:10:05]execute_script returns [10:10:05]free content buf [10:10:05]Sock 9.Close socket [10:10:05]Sock 9.Thread stoped [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:45]accept exits with 8 [10:11:45]New connection [10:11:45]New thread 3067084132 created [10:11:45]Thread 3067227492 joined [10:11:45]Waiting for new connection... [10:11:45] Sock 8.Parse request [10:11:45]Sock 8.Check first char [10:11:45]Sock 8.First char is OK [10:11:45]request: POST /json_proto HTTP/1.0 [10:11:45]Method: POST [10:11:45]URL: /json_proto [10:11:45]Method is POST - this is cgi request [10:11:45]url: /json_proto [10:11:45]query_string will be loaded in cgi processing [10:11:45]execute_cgi json_proto POST (null) [10:11:45]execute_cgi path=json_proto method=POST [10:11:45]POST find Content-Length [10:11:45]Host: 172.17.59.68:8080 [10:11:45]Content-Length: 677 [10:11:45]Content-Type: application/json [10:11:45] [10:11:45]POST finish read [10:11:45]Found Content-Length = 677 [10:11:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:45]execute_script... [10:11: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)319858", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:45]POST & json_proto [10:11:45]process_json_proto [10:11:45]json parsed OK: [10:11:45]protocol is kg_v1.0 [10:11:45]action value=close_receipt [10:11:45]process_action close_receipt [10:11:45]cmd_close_receipt [10:11:45]MH_GetDate [10:11:45]Write to MH i2c: F0 00 00 66 45 9A [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: F0 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: F0 09 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: F0 09 00 66 45 00 FE AE 72 66 BC EC 60 65 94 [10:11:45]GetLastDocTimeStamp 1718791831 [10:11:45]current date 1718791934 [10:11:45]FM_GetShiftState [10:11:45]SAM_PROTO_GetShiftState [10:11:45]wFMCommunicate request_size=4 [10:11:45]MH_SAM_APDU [10:11:45]CAPDU: 80 13 01 00 [10:11:45]Write to MH i2c: E2 08 00 67 45 80 13 01 00 00 00 00 00 29 [10:11:45]Write i2c OK [10:11:45]MH_I2C_Read... [10:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:45]Read from MH i2c: E2 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: E2 0E 00 [10:11:45]MH_I2C_Read... [10:11:45]Read from MH i2c: E2 0E 00 67 45 00 09 00 01 31 35 72 66 00 00 00 00 90 00 73 [10:11:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:11:45]wFMCommunicate OK [10:11:45]SAM_PROTO_GetShiftState done [10:11:45]FM_GetShiftState done [10:11:45]opened in 1718760753 [10:11:45]opened+sec_in_day 1718847153 [10:11:45]quantity*price = 50065 [10:11:45]sum+1 = 50067 [10:11:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 39 19.06.2024 10:12 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111290 ФПД: 114048325163423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101214&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111290&fm=114048325163423&tin=02508201610067®Number=0000000000092771&sum=50000 [10:11:46]StoreToDocumentArchive [10:11:46]shift 388 fd 111290 [10:11:46]save to /storage/0388/doc_00111290 [10:11:46]save last doc name /storage/0388/doc_00111290 to /storage/kkm_last_doc_name [10:11:46]save OK [10:11:46]Clear old archive folders... [10:11:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:46]tlvbuf is B6F1DD20 [10:11:46]SAM_PROTO_ClearQueue [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 09 00 00 [10:11:46]Write to MH i2c: E2 08 00 74 45 80 09 00 00 00 00 00 00 2B [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 03 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 03 00 74 45 00 90 00 2D [10:11:46]RAPDU: 90 00 [10:11:46]wFMCommunicate OK [10:11:46]SAM_PROTO_ClearQueue done [10:11:46]KKMCreateOFDPacket [10:11:46]OFDProtocolAddRootSTLVToBuf [10:11:46]FM_MakeSignedData [10:11:46]FM_MakeSignedData [10:11:46]SAM_PROTO_SignData [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 0D 01 02 [10:11:46]Write to MH i2c: E2 08 00 75 45 80 0D 01 02 00 00 00 00 33 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 03 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 03 00 75 45 00 90 00 2E [10:11:46]RAPDU: 90 00 [10:11:46]wFMCommunicate OK [10:11:46]wFMCommunicate request_size=255 [10:11:46]MH_SAM_APDU [10:11: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FE AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B2 01 00 35 04 06 00 67 [10:11:46]Write to MH i2c: E2 02 01 76 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FE AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B2 01 00 35 04 06 00 67 00 00 EB [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 03 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 03 00 76 45 00 90 00 2F [10:11:46]RAPDU: 90 00 [10:11:46]wFMCommunicate OK [10:11:46]wFMCommunicate request_size=10 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 0D 02 02 05 B9 F1 E8 99 9F [10:11:46]Write to MH i2c: E2 0D 00 77 45 80 0D 02 02 05 00 B9 F1 E8 99 9F 00 00 0A [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 03 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 03 00 77 45 00 90 00 30 [10:11:46]RAPDU: 90 00 [10:11:46]wFMCommunicate OK [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 0D 03 02 [10:11:46]Write to MH i2c: E2 08 00 78 45 80 0D 03 02 00 00 00 00 38 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 0B 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 0B 00 78 45 00 28 40 FD 0B 8C 8F E6 45 90 00 EF [10:11:46]RAPDU: 28 40 FD 0B 8C 8F E6 45 90 00 [10:11:46]wFMCommunicate OK [10:11:46]SAM_PROTO_SignData done [10:11:46]FM_MakeSignedData done [10:11:46]CreateOFDProtocolMessage [10:11:46]wFMCommunicate request_size=4 [10:11:46]MH_SAM_APDU [10:11:46]CAPDU: 80 11 00 00 [10:11:46]Write to MH i2c: E2 08 00 79 45 80 11 00 00 00 00 00 00 38 [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:46]Read from MH i2c: E2 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 17 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: E2 17 00 79 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [10:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:11:46]wFMCommunicate OK [10:11:46]CreateOFDProtocolMessage done [10:11:46]OFDSenderStorePacket 111290 [10:11:46]StoreOFDPacket docnum=111290 [10:11:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 CD 07 01 6D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FE AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B2 01 00 35 04 06 00 67 B9 F1 E8 99 9F 28 40 FD 0B 8C 8F E6 45 [10:11:46]CheckFolder [10:11:46]dirname=/storage/ofd_packets [10:11:46]CheckFolder done [10:11:46]ProducePacketName [10:11:46]name=ofd_packets/00111290 [10:11:46]NVStorageSaveData ofd_packets/00111290 [10:11:46]File name is /storage/ofd_packets/00111290 [10:11:46]Write 301 bytes [10:11:46]NVStorageSaveData done [10:11:46]OFDSenderStorePacket done [10:11:46]KKMCreateOFDPacket done [10:11:46]NVStorageSaveData kkm_last_timestamp [10:11:46]File name is /storage/kkm_last_timestamp [10:11:46]Write 4 bytes [10:11:46]NVStorageSaveData done [10:11:46]ExternCall_PrintAddStr [10:11:46]wPrintStart [10:11:46]Write to MH i2c: 01 00 00 7A 45 BF [10:11:46]Write i2c OK [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: 01 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: 01 07 00 [10:11:46]MH_I2C_Read... [10:11:46]Read from MH i2c: 01 07 00 7A 45 00 00 00 00 00 FF 0F D4 [10:11:46]RasterBufferAndPrint [10:11:46]line Счет N : (1)319858 [10:11:46]line ИНН: 02508201610067 [10:11:46]line Контрольно-Кассовый Чек [10:11:46]line ПРОДАЖА [10:11:46]line ТРК (МРК, ГНК) : 11 [10:11:46]line Товар: 2710124130 [10:11:46]line Аи-92-К-5 [10:11:46]line 7.540 * 66.40 [10:11:46]line = 500.66 [10:11:46]line НДС 12% НСП 1% [10:11:46]line > о реализуемом товаре [10:11:46]line ОКРУГЛЕНИЕ: -0.66 [10:11:46]line ИТОГО: 500.00 [10:11:46]line Внесено: 500.00 [10:11:46]line СДАЧА: 0.00 [10:11:46]line НСП 1% : 4.43 [10:11:46]line НДС 12% : 53.17 [10:11:46]line Наличными: 500.00 [10:11:46]line Безнал.: 0.00 [10:11:46]line Место: АЗС № 65 "Партнер Нефть" [10:11:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:11:46]line СНО: Общий режим [10:11:46]line Чек 39 19.06.2024 10:12 [10:11:46]line Смена: 388 ФФД: 1.0 [10:11:46]line ЗНМ: 0300000198 [10:11:46]line РНМ: 0000000000092771 [10:11:46]line Версия ККМ: 001 [10:11:46]line ФМ: 0000000000875083 [10:11:46]line ФД: 111290 [10:11:46]line ФПД: 114048325163423 [10:11:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T101214&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111290&fm=114048325163423&tin=02508201610067®Number=0000000000092771&sum=50000 [10:11:47]OFD Sender: Processing packet 111290 [packets to send 38, broken 37] [10:11:47]ProducePacketName [10:11:47]name=ofd_packets/00111290 [10:11:47]OFD Sender: To server: pG, [10:11:47]CommunicateWithHost lk.salyk.kg:30040 [10:11:47]ConnectInit lk.salyk.kg [10:11:47]written 0, free lines is 4095 [10:11:47]Connected sock=10 [10:11:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 CD 07 01 6D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 FE AE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B2 01 00 35 04 06 00 67 B9 F1 E8 99 9F 28 40 FD 0B 8C 8F E6 45 [10:11:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F9 31 47 00 E5 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 35 30 38 33 10 04 04 00 BA B2 01 00 F4 03 04 00 6B 46 72 66 B6 04 01 00 00 A3 7E 61 D2 6E 1C 74 64 [10:11:47]CommunicateWithHost err = 0 [10:11:47]CheckOFDResponse [10:11:47]1017 (14) - 77093643461234 [10:11:47]1041 (16) - 0000000000875083 [10:11:47]1040 (4) - 111290 [10:11:47]1012 (4) - 19.06.2024 02:46 [10:11:47]1206 (1) - 0 [10:11:47]OFD Sender: Remove packet 111290 [10:11:47]ProducePacketName [10:11:47]name=ofd_packets/00111290 [10:11:47]NVStorageDeleteData [10:11:47]Write to MH i2c: 01 00 00 A5 45 EA [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: 01 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: 01 07 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: 01 07 00 A5 45 00 00 00 00 00 C9 0C C6 [10:11:47]RasterBufferAndPrint [10:11:47]line [10:11:47]line [10:11:47]line [10:11:47]line [10:11:47]line [10:11:47]written 0, free lines is 3280 [10:11:47]MH_Cut [10:11:47]Write to MH i2c: D1 01 00 AC 45 01 C3 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: D1 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: D1 01 00 [10:11:47]MH_I2C_Read... [10:11:47]Read from MH i2c: D1 01 00 AC 45 00 C2 [10:11:47]Write to MH i2c: 01 00 00 AD 45 F2 [10:11:47]Write i2c OK [10:11:47]MH_I2C_Read... [10:11:48]OFD Sender: No OFD packet to send [10:11:48]*** Cut start [10:11:48]*** Partial cut [10:11:48]*** CUTSNS_PIN = 1 [10:11:48]*** CUTSNS_PIN = 0 [10:11:48]*** Brake cut motor [10:11:49]Read from MH i2c: 01 [10:11:49]MH_I2C_Read... [10:11:49]*** Stop cut motor [10:11:49]*** Cut end [10:11:49]Read from MH i2c: 01 07 00 [10:11:49]MH_I2C_Read... [10:11:49]Read from MH i2c: 01 07 00 AD 45 00 00 00 00 00 FF 0F 07 [10:11:49]process_action close_receipt done [10:11:49]requested_data is exist [10:11:49]produce_requested_data [10:11:49]requested_item fm.sn is exist - process it [10:11:49]wFMCommunicate request_size=4 [10:11:49]MH_SAM_APDU [10:11:49]CAPDU: 80 11 00 00 [10:11:49]Write to MH i2c: E2 08 00 AE 45 80 11 00 00 00 00 00 00 6D [10:11:49]Write i2c OK [10:11:49]MH_I2C_Read... [10:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:49]Read from MH i2c: E2 [10:11:49]MH_I2C_Read... [10:11:49]Read from MH i2c: E2 17 00 [10:11:49]MH_I2C_Read... [10:11:49]Read from MH i2c: E2 17 00 AE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [10:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:11:49]wFMCommunicate OK [10:11:49]requested_item fd.num is exist - process it [10:11:49]SAM_PROTO_GetFieldsCounters [10:11:49]wFMCommunicate request_size=4 [10:11:49]MH_SAM_APDU [10:11:49]CAPDU: 80 13 00 00 [10:11:49]Write to MH i2c: E2 08 00 AF 45 80 13 00 00 00 00 00 00 70 [10:11:49]Write i2c OK [10:11:49]MH_I2C_Read... [10:11:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:49]Read from MH i2c: E2 [10:11:49]MH_I2C_Read... [10:11:49]Read from MH i2c: E2 62 00 [10:11:49]MH_I2C_Read... [10:11:49]Read from MH i2c: E2 62 00 AF 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [10:11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:49]wFMCommunicate OK [10:11:49]SAM_PROTO_GetFieldsCounters done [10:11:49]requested_item shift.num is exist - process it [10:11:49]requested_item shift.opened is exist - process it [10:11:49]req_shift_opened [10:11:49]FM_GetShiftState [10:11:49]SAM_PROTO_GetShiftState [10:11:49]wFMCommunicate request_size=4 [10:11:49]MH_SAM_APDU [10:11:49]CAPDU: 80 13 01 00 [10:11:49]Write to MH i2c: E2 08 00 B0 45 80 13 01 00 00 00 00 00 72 [10:11:49]Write i2c OK [10:11:49]MH_I2C_Read... [10:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:49]Read from MH i2c: E2 [10:11:49]MH_I2C_Read... [10:11:49]Read from MH i2c: E2 0E 00 [10:11:49]MH_I2C_Read... [10:11:49]Read from MH i2c: E2 0E 00 B0 45 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BC [10:11:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:11:49]wFMCommunicate OK [10:11:49]SAM_PROTO_GetShiftState done [10:11:49]FM_GetShiftState done [10:11:49]req_shift_opened done [10:11:49]requested_item shift.open_date is exist - process it [10:11:49]req_shift_open_date [10:11:49]req_shift_open_date done [10:11:49]produce_requested_data done [10:11:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111290,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:11:49]process_action_free close_receipt [10:11:49]json_value_free [10:11:49]json_value_free done [10:11:49]process_json_proto returns [10:11:49]Send response to host [10:11:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111290,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:11:49]free response buf [10:11:49]execute_script done [10:11:49]execute_script returns [10:11:49]free content buf [10:11:49]Sock 8.Close socket [10:11:49]Sock 8.Thread stoped [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16: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:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:31]accept exits with 9 [10:25:31]New connection [10:25:31]New thread 3067227492 created [10:25:31]Thread 3067084132 joined [10:25:31]Waiting for new connection... [10:25:31] Sock 9.Parse request [10:25:31]Sock 9.Check first char [10:25:31]Sock 9.First char is OK [10:25:31]request: POST /json_proto HTTP/1.0 [10:25:31]Method: POST [10:25:31]URL: /json_proto [10:25:31]Method is POST - this is cgi request [10:25:31]url: /json_proto [10:25:31]query_string will be loaded in cgi processing [10:25:31]execute_cgi json_proto POST (null) [10:25:31]execute_cgi path=json_proto method=POST [10:25:31]POST find Content-Length [10:25:31]Host: 172.17.59.68:8080 [10:25:31]Content-Length: 682 [10:25:31]Content-Type: application/json [10:25:31] [10:25:31]POST finish read [10:25:31]Found Content-Length = 682 [10:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:31]execute_script... [10:25: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)319859", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:31]POST & json_proto [10:25:31]process_json_proto [10:25:31]json parsed OK: [10:25:31]protocol is kg_v1.0 [10:25:31]action value=close_receipt [10:25:31]process_action close_receipt [10:25:31]cmd_close_receipt [10:25:31]MH_GetDate [10:25:31]Write to MH i2c: F0 00 00 B1 45 E5 [10:25:31]Write i2c OK [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: F0 [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: F0 09 00 [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: F0 09 00 B1 45 00 38 B2 72 66 BC EC 60 65 1D [10:25:31]GetLastDocTimeStamp 1718791934 [10:25:31]current date 1718792760 [10:25:31]FM_GetShiftState [10:25:31]SAM_PROTO_GetShiftState [10:25:31]wFMCommunicate request_size=4 [10:25:31]MH_SAM_APDU [10:25:31]CAPDU: 80 13 01 00 [10:25:31]Write to MH i2c: E2 08 00 B2 45 80 13 01 00 00 00 00 00 74 [10:25:31]Write i2c OK [10:25:31]MH_I2C_Read... [10:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:31]Read from MH i2c: E2 [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: E2 0E 00 [10:25:31]MH_I2C_Read... [10:25:31]Read from MH i2c: E2 0E 00 B2 45 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BE [10:25:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:25:31]wFMCommunicate OK [10:25:31]SAM_PROTO_GetShiftState done [10:25:31]FM_GetShiftState done [10:25:31]opened in 1718760753 [10:25:31]opened+sec_in_day 1718847153 [10:25:31]quantity*price = 100064 [10:25:31]sum+1 = 100066 [10:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 40 19.06.2024 10:26 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111291 ФПД: 76316065745598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102600&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111291&fm=76316065745598&tin=02508201610067®Number=0000000000092771&sum=100000 [10:25:32]StoreToDocumentArchive [10:25:32]shift 388 fd 111291 [10:25:32]save to /storage/0388/doc_00111291 [10:25:32]save last doc name /storage/0388/doc_00111291 to /storage/kkm_last_doc_name [10:25:32]save OK [10:25:32]Clear old archive folders... [10:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:32]tlvbuf is 01A15F60 [10:25:32]SAM_PROTO_ClearQueue [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 09 00 00 [10:25:32]Write to MH i2c: E2 08 00 BF 45 80 09 00 00 00 00 00 00 76 [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 03 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 03 00 BF 45 00 90 00 78 [10:25:32]RAPDU: 90 00 [10:25:32]wFMCommunicate OK [10:25:32]SAM_PROTO_ClearQueue done [10:25:32]KKMCreateOFDPacket [10:25:32]OFDProtocolAddRootSTLVToBuf [10:25:32]FM_MakeSignedData [10:25:32]FM_MakeSignedData [10:25:32]SAM_PROTO_SignData [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 0D 01 02 [10:25:32]Write to MH i2c: E2 08 00 C0 45 80 0D 01 02 00 00 00 00 7E [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 03 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 03 00 C0 45 00 90 00 79 [10:25:32]RAPDU: 90 00 [10:25:32]wFMCommunicate OK [10:25:32]wFMCommunicate request_size=255 [10:25:32]MH_SAM_APDU [10:25: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 38 B2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B2 01 00 35 04 06 00 45 [10:25:32]Write to MH i2c: E2 02 01 C1 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 38 B2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B2 01 00 35 04 06 00 45 00 00 A4 [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 03 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 03 00 C1 45 00 90 00 7A [10:25:32]RAPDU: 90 00 [10:25:32]wFMCommunicate OK [10:25:32]wFMCommunicate request_size=10 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 0D 02 02 05 68 B7 FD 4A BE [10:25:32]Write to MH i2c: E2 0D 00 C2 45 80 0D 02 02 05 00 68 B7 FD 4A BE 00 00 AF [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 03 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 03 00 C2 45 00 90 00 7B [10:25:32]RAPDU: 90 00 [10:25:32]wFMCommunicate OK [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 0D 03 02 [10:25:32]Write to MH i2c: E2 08 00 C3 45 80 0D 03 02 00 00 00 00 83 [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 0B 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 0B 00 C3 45 00 A3 43 B7 D3 BD 66 6D 8E 90 00 12 [10:25:32]RAPDU: A3 43 B7 D3 BD 66 6D 8E 90 00 [10:25:32]wFMCommunicate OK [10:25:32]SAM_PROTO_SignData done [10:25:32]FM_MakeSignedData done [10:25:32]CreateOFDProtocolMessage [10:25:32]wFMCommunicate request_size=4 [10:25:32]MH_SAM_APDU [10:25:32]CAPDU: 80 11 00 00 [10:25:32]Write to MH i2c: E2 08 00 C4 45 80 11 00 00 00 00 00 00 83 [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:32]Read from MH i2c: E2 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 17 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: E2 17 00 C4 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [10:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:25:32]wFMCommunicate OK [10:25:32]CreateOFDProtocolMessage done [10:25:32]OFDSenderStorePacket 111291 [10:25:32]StoreOFDPacket docnum=111291 [10:25:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 66 04 07 01 E7 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 38 B2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B2 01 00 35 04 06 00 45 68 B7 FD 4A BE A3 43 B7 D3 BD 66 6D 8E [10:25:32]CheckFolder [10:25:32]dirname=/storage/ofd_packets [10:25:32]CheckFolder done [10:25:32]ProducePacketName [10:25:32]name=ofd_packets/00111291 [10:25:32]NVStorageSaveData ofd_packets/00111291 [10:25:32]File name is /storage/ofd_packets/00111291 [10:25:32]Write 301 bytes [10:25:32]NVStorageSaveData done [10:25:32]OFDSenderStorePacket done [10:25:32]KKMCreateOFDPacket done [10:25:32]NVStorageSaveData kkm_last_timestamp [10:25:32]File name is /storage/kkm_last_timestamp [10:25:32]Write 4 bytes [10:25:32]NVStorageSaveData done [10:25:32]ExternCall_PrintAddStr [10:25:32]wPrintStart [10:25:32]Write to MH i2c: 01 00 00 C5 45 0A [10:25:32]OFD Sender: Processing packet 111291 [packets to send 38, broken 37] [10:25:32]ProducePacketName [10:25:32]name=ofd_packets/00111291 [10:25:32]OFD Sender: To server: pG, [10:25:32]CommunicateWithHost lk.salyk.kg:30040 [10:25:32]ConnectInit lk.salyk.kg [10:25:32]Write i2c OK [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: 01 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: 01 07 00 [10:25:32]MH_I2C_Read... [10:25:32]Read from MH i2c: 01 07 00 C5 45 00 00 00 00 00 FF 0F 1F [10:25:32]RasterBufferAndPrint [10:25:32]line Счет N : (1)319859 [10:25:32]line ИНН: 02508201610067 [10:25:32]line Контрольно-Кассовый Чек [10:25:32]line ПРОДАЖА [10:25:32]line ТРК (МРК, ГНК) : 11 [10:25:32]line Товар: 2710124130 [10:25:32]line Аи-92-К-5 [10:25:32]line 15.070 * 66.40 [10:25:32]line = 1000.65 [10:25:32]line НДС 12% НСП 1% [10:25:32]line > о реализуемом товаре [10:25:32]line ОКРУГЛЕНИЕ: -0.65 [10:25:32]line ИТОГО: 1000.00 [10:25:32]line Внесено: 1000.00 [10:25:32]line СДАЧА: 0.00 [10:25:32]line НСП 1% : 8.85 [10:25:32]line НДС 12% : 106.26 [10:25:32]line Наличными: 1000.00 [10:25:32]line Безнал.: 0.00 [10:25:32]line Место: АЗС № 65 "Партнер Нефть" [10:25:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:25:32]line СНО: Общий режим [10:25:32]line Чек 40 19.06.2024 10:26 [10:25:32]line Смена: 388 ФФД: 1.0 [10:25:32]line ЗНМ: 0300000198 [10:25:32]line РНМ: 0000000000092771 [10:25:32]line Версия ККМ: 001 [10:25:32]line ФМ: 0000000000875083 [10:25:32]line ФД: 111291 [10:25:32]line ФПД: 76316065745598 [10:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102600&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111291&fm=76316065745598&tin=02508201610067®Number=0000000000092771&sum=100000 [10:25:33]Connected sock=10 [10:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 66 04 07 01 E7 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 38 B2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B2 01 00 35 04 06 00 45 68 B7 FD 4A BE A3 43 B7 D3 BD 66 6D 8E [10:25:33]written 0, free lines is 4095 [10:25:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A1 EE 47 00 40 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B2 01 00 F4 03 04 00 A5 49 72 66 B6 04 01 00 00 57 31 1D 0C 6F 7D 0C 71 [10:25:33]CommunicateWithHost err = 0 [10:25:33]CheckOFDResponse [10:25:33]1017 (14) - 77093643461234 [10:25:33]1041 (16) - 0000000000875083 [10:25:33]1040 (4) - 111291 [10:25:33]1012 (4) - 19.06.2024 02:59 [10:25:33]1206 (1) - 0 [10:25:33]OFD Sender: Remove packet 111291 [10:25:33]ProducePacketName [10:25:33]name=ofd_packets/00111291 [10:25:33]NVStorageDeleteData [10:25:33]Write to MH i2c: 01 00 00 F0 45 35 [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: 01 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: 01 07 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: 01 07 00 F0 45 00 00 00 00 00 D4 0C 1C [10:25:33]RasterBufferAndPrint [10:25:33]line [10:25:33]line [10:25:33]line [10:25:33]line [10:25:33]line [10:25:33]written 0, free lines is 3292 [10:25:33]MH_Cut [10:25:33]Write to MH i2c: D1 01 00 F7 45 01 0E [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: D1 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: D1 01 00 [10:25:33]MH_I2C_Read... [10:25:33]Read from MH i2c: D1 01 00 F7 45 00 0D [10:25:33]Write to MH i2c: 01 00 00 F8 45 3D [10:25:33]Write i2c OK [10:25:33]MH_I2C_Read... [10:25:33]OFD Sender: No OFD packet to send [10:25:34]*** Cut start [10:25:34]*** Partial cut [10:25:34]*** CUTSNS_PIN = 1 [10:25:34]*** CUTSNS_PIN = 0 [10:25:34]*** Brake cut motor [10:25:34]Read from MH i2c: 01 [10:25:34]MH_I2C_Read... [10:25:34]*** Stop cut motor [10:25:34]*** Cut end [10:25:34]Read from MH i2c: 01 07 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: 01 07 00 F8 45 00 00 00 00 00 FF 0F 52 [10:25:34]process_action close_receipt done [10:25:34]requested_data is exist [10:25:34]produce_requested_data [10:25:34]requested_item fm.sn is exist - process it [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 11 00 00 [10:25:34]Write to MH i2c: E2 08 00 F9 45 80 11 00 00 00 00 00 00 B8 [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:34]Read from MH i2c: E2 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 17 00 [10:25:34]MH_I2C_Read... [10:25:34]Read from MH i2c: E2 17 00 F9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [10:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:25:34]wFMCommunicate OK [10:25:34]requested_item fd.num is exist - process it [10:25:34]SAM_PROTO_GetFieldsCounters [10:25:34]wFMCommunicate request_size=4 [10:25:34]MH_SAM_APDU [10:25:34]CAPDU: 80 13 00 00 [10:25:34]Write to MH i2c: E2 08 00 FA 45 80 13 00 00 00 00 00 00 BB [10:25:34]Write i2c OK [10:25:34]MH_I2C_Read... [10:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:35]Read from MH i2c: E2 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 62 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 62 00 FA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [10:25: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:35]wFMCommunicate OK [10:25:35]SAM_PROTO_GetFieldsCounters done [10:25:35]requested_item shift.num is exist - process it [10:25:35]requested_item shift.opened is exist - process it [10:25:35]req_shift_opened [10:25:35]FM_GetShiftState [10:25:35]SAM_PROTO_GetShiftState [10:25:35]wFMCommunicate request_size=4 [10:25:35]MH_SAM_APDU [10:25:35]CAPDU: 80 13 01 00 [10:25:35]Write to MH i2c: E2 08 00 FB 45 80 13 01 00 00 00 00 00 BD [10:25:35]Write i2c OK [10:25:35]MH_I2C_Read... [10:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:35]Read from MH i2c: E2 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 0E 00 [10:25:35]MH_I2C_Read... [10:25:35]Read from MH i2c: E2 0E 00 FB 45 00 09 00 01 31 35 72 66 00 00 00 00 90 00 07 [10:25:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:25:35]wFMCommunicate OK [10:25:35]SAM_PROTO_GetShiftState done [10:25:35]FM_GetShiftState done [10:25:35]req_shift_opened done [10:25:35]requested_item shift.open_date is exist - process it [10:25:35]req_shift_open_date [10:25:35]req_shift_open_date done [10:25:35]produce_requested_data done [10:25:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111291,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:25:35]process_action_free close_receipt [10:25:35]json_value_free [10:25:35]json_value_free done [10:25:35]process_json_proto returns [10:25:35]Send response to host [10:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111291,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:25:35]free response buf [10:25:35]execute_script done [10:25:35]execute_script returns [10:25:35]free content buf [10:25:35]Sock 9.Close socket [10:25:35]Sock 9.Thread stoped [10:25:38]accept exits with 8 [10:25:38]New connection [10:25:38]New thread 3067084132 created [10:25:38]Thread 3067227492 joined [10:25:38]Waiting for new connection... [10:25:38] Sock 8.Parse request [10:25:38]Sock 8.Check first char [10:25:38]Sock 8.First char is OK [10:25:38]request: POST /json_proto HTTP/1.0 [10:25:38]Method: POST [10:25:38]URL: /json_proto [10:25:38]Method is POST - this is cgi request [10:25:38]url: /json_proto [10:25:38]query_string will be loaded in cgi processing [10:25:38]execute_cgi json_proto POST (null) [10:25:38]execute_cgi path=json_proto method=POST [10:25:38]POST find Content-Length [10:25:38]Host: 172.17.59.68:8080 [10:25:38]Content-Length: 674 [10:25:38]Content-Type: application/json [10:25:38] [10:25:38]POST finish read [10:25:38]Found Content-Length = 674 [10:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:38]execute_script... [10:25:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319860", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:38]POST & json_proto [10:25:38]process_json_proto [10:25:38]json parsed OK: [10:25:38]protocol is kg_v1.0 [10:25:38]action value=close_receipt [10:25:38]process_action close_receipt [10:25:38]cmd_close_receipt [10:25:38]MH_GetDate [10:25:38]Write to MH i2c: F0 00 00 FC 45 30 [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: F0 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: F0 09 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: F0 09 00 FC 45 00 40 B2 72 66 BC EC 60 65 70 [10:25:38]GetLastDocTimeStamp 1718792760 [10:25:38]current date 1718792768 [10:25:38]FM_GetShiftState [10:25:38]SAM_PROTO_GetShiftState [10:25:38]wFMCommunicate request_size=4 [10:25:38]MH_SAM_APDU [10:25:38]CAPDU: 80 13 01 00 [10:25:38]Write to MH i2c: E2 08 00 FD 45 80 13 01 00 00 00 00 00 BF [10:25:38]Write i2c OK [10:25:38]MH_I2C_Read... [10:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:38]Read from MH i2c: E2 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 0E 00 [10:25:38]MH_I2C_Read... [10:25:38]Read from MH i2c: E2 0E 00 FD 45 00 09 00 01 31 35 72 66 00 00 00 00 90 00 09 [10:25:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:25:38]wFMCommunicate OK [10:25:38]SAM_PROTO_GetShiftState done [10:25:38]FM_GetShiftState done [10:25:38]opened in 1718760753 [10:25:38]opened+sec_in_day 1718847153 [10:25:38]quantity*price = 50009 [10:25:38]sum+1 = 50010 [10:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 41 19.06.2024 10:26 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111292 ФПД: 153160014670501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102608&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111292&fm=153160014670501&tin=02508201610067®Number=0000000000092771&sum=50000 [10:25:39]StoreToDocumentArchive [10:25:39]shift 388 fd 111292 [10:25:39]save to /storage/0388/doc_00111292 [10:25:39]save last doc name /storage/0388/doc_00111292 to /storage/kkm_last_doc_name [10:25:39]save OK [10:25:39]Clear old archive folders... [10:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:25:39]tlvbuf is 01A34C00 [10:25:39]SAM_PROTO_ClearQueue [10:25:39]wFMCommunicate request_size=4 [10:25:39]MH_SAM_APDU [10:25:39]CAPDU: 80 09 00 00 [10:25:39]Write to MH i2c: E2 08 00 0A 46 80 09 00 00 00 00 00 00 C2 [10:25:39]Write i2c OK [10:25:39]MH_I2C_Read... [10:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:39]Read from MH i2c: E2 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: E2 03 00 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: E2 03 00 0A 46 00 90 00 C4 [10:25:39]RAPDU: 90 00 [10:25:39]wFMCommunicate OK [10:25:39]SAM_PROTO_ClearQueue done [10:25:39]KKMCreateOFDPacket [10:25:39]OFDProtocolAddRootSTLVToBuf [10:25:39]FM_MakeSignedData [10:25:39]FM_MakeSignedData [10:25:39]SAM_PROTO_SignData [10:25:39]wFMCommunicate request_size=4 [10:25:39]MH_SAM_APDU [10:25:39]CAPDU: 80 0D 01 02 [10:25:39]Write to MH i2c: E2 08 00 0B 46 80 0D 01 02 00 00 00 00 CA [10:25:39]Write i2c OK [10:25:39]MH_I2C_Read... [10:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:39]Read from MH i2c: E2 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: E2 03 00 [10:25:39]MH_I2C_Read... [10:25:39]Read from MH i2c: E2 03 00 0B 46 00 90 00 C5 [10:25:39]RAPDU: 90 00 [10:25:39]wFMCommunicate OK [10:25:39]wFMCommunicate request_size=255 [10:25:39]MH_SAM_APDU [10:25:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 40 B2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B2 01 00 35 04 06 00 8B 4C 58 44 [10:25:39]Write to MH i2c: E2 02 01 0C 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 40 B2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B2 01 00 35 04 06 00 8B 4C 58 44 00 00 CE [10:25:39]Write i2c OK [10:25:39]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 0C 46 00 90 00 C6 [10:25:40]RAPDU: 90 00 [10:25:40]wFMCommunicate OK [10:25:40]wFMCommunicate request_size=7 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 0D 02 02 02 AA A5 [10:25:40]Write to MH i2c: E2 0A 00 0D 46 80 0D 02 02 02 00 AA A5 00 00 20 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 03 00 0D 46 00 90 00 C7 [10:25:40]RAPDU: 90 00 [10:25:40]wFMCommunicate OK [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 0D 03 02 [10:25:40]Write to MH i2c: E2 08 00 0E 46 80 0D 03 02 00 00 00 00 CF [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0B 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 0B 00 0E 46 00 51 AC DC 90 6D 4D 04 9C 90 00 93 [10:25:40]RAPDU: 51 AC DC 90 6D 4D 04 9C 90 00 [10:25:40]wFMCommunicate OK [10:25:40]SAM_PROTO_SignData done [10:25:40]FM_MakeSignedData done [10:25:40]CreateOFDProtocolMessage [10:25:40]wFMCommunicate request_size=4 [10:25:40]MH_SAM_APDU [10:25:40]CAPDU: 80 11 00 00 [10:25:40]Write to MH i2c: E2 08 00 0F 46 80 11 00 00 00 00 00 00 CF [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:40]Read from MH i2c: E2 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 17 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: E2 17 00 0F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [10:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:25:40]wFMCommunicate OK [10:25:40]CreateOFDProtocolMessage done [10:25:40]OFDSenderStorePacket 111292 [10:25:40]StoreOFDPacket docnum=111292 [10:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 49 A0 04 01 DA A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 40 B2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B2 01 00 35 04 06 00 8B 4C 58 44 AA A5 51 AC DC 90 6D 4D 04 9C [10:25:40]CheckFolder [10:25:40]dirname=/storage/ofd_packets [10:25:40]CheckFolder done [10:25:40]ProducePacketName [10:25:40]name=ofd_packets/00111292 [10:25:40]NVStorageSaveData ofd_packets/00111292 [10:25:40]File name is /storage/ofd_packets/00111292 [10:25:40]Write 298 bytes [10:25:40]NVStorageSaveData done [10:25:40]OFDSenderStorePacket done [10:25:40]KKMCreateOFDPacket done [10:25:40]NVStorageSaveData kkm_last_timestamp [10:25:40]File name is /storage/kkm_last_timestamp [10:25:40]Write 4 bytes [10:25:40]NVStorageSaveData done [10:25:40]ExternCall_PrintAddStr [10:25:40]wPrintStart [10:25:40]Write to MH i2c: 01 00 00 10 46 56 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: 01 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: 01 07 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: 01 07 00 10 46 00 00 00 00 00 FF 0F 6B [10:25:40]RasterBufferAndPrint [10:25:40]line Счет N : (1)319860 [10:25:40]line ИНН: 02508201610067 [10:25:40]line Контрольно-Кассовый Чек [10:25:40]line ПРОДАЖА [10:25:40]line ТРК (МРК, ГНК) : 22 [10:25:40]line Товар: 2710194210 [10:25:40]line ДТ-К-5 [10:25:40]line 6.860 * 72.90 [10:25:40]line = 500.09 [10:25:40]line НДС 12% НСП 1% [10:25:40]line > о реализуемом товаре [10:25:40]line ОКРУГЛЕНИЕ: -0.09 [10:25:40]line ИТОГО: 500.00 [10:25:40]line Внесено: 500.00 [10:25:40]line СДАЧА: 0.00 [10:25:40]line НСП 1% : 4.43 [10:25:40]line НДС 12% : 53.11 [10:25:40]line Наличными: 500.00 [10:25:40]line Безнал.: 0.00 [10:25:40]line Место: АЗС № 65 "Партнер Нефть" [10:25:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:25:40]line СНО: Общий режим [10:25:40]line Чек 41 19.06.2024 10:26 [10:25:40]line Смена: 388 ФФД: 1.0 [10:25:40]line ЗНМ: 0300000198 [10:25:40]line РНМ: 0000000000092771 [10:25:40]line Версия ККМ: 001 [10:25:40]line ФМ: 0000000000875083 [10:25:40]line ФД: 111292 [10:25:40]line ФПД: 153160014670501 [10:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T102608&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111292&fm=153160014670501&tin=02508201610067®Number=0000000000092771&sum=50000 [10:25:40]written 0, free lines is 4095 [10:25:40]OFD Sender: Processing packet 111292 [packets to send 38, broken 37] [10:25:40]ProducePacketName [10:25:40]name=ofd_packets/00111292 [10:25:40]OFD Sender: To server: pG, [10:25:40]CommunicateWithHost lk.salyk.kg:30040 [10:25:40]ConnectInit lk.salyk.kg [10:25:40]Connected sock=10 [10:25:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 49 A0 04 01 DA A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 40 B2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B2 01 00 35 04 06 00 8B 4C 58 44 AA A5 51 AC DC 90 6D 4D 04 9C [10:25:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 03 E5 47 00 C2 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 35 30 38 33 10 04 04 00 BC B2 01 00 F4 03 04 00 AC 49 72 66 B6 04 01 00 00 6F 2C 57 42 6C BC 8D 7B [10:25:40]CommunicateWithHost err = 0 [10:25:40]CheckOFDResponse [10:25:40]1017 (14) - 77093643461234 [10:25:40]1041 (16) - 0000000000875083 [10:25:40]1040 (4) - 111292 [10:25:40]1012 (4) - 19.06.2024 02:59 [10:25:40]1206 (1) - 0 [10:25:40]OFD Sender: Remove packet 111292 [10:25:40]ProducePacketName [10:25:40]name=ofd_packets/00111292 [10:25:40]NVStorageDeleteData [10:25:40]Write to MH i2c: 01 00 00 3B 46 81 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: 01 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: 01 07 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: 01 07 00 3B 46 00 00 00 00 00 D8 0C 6C [10:25:40]RasterBufferAndPrint [10:25:40]line [10:25:40]line [10:25:40]line [10:25:40]line [10:25:40]line [10:25:40]written 0, free lines is 3299 [10:25:40]MH_Cut [10:25:40]Write to MH i2c: D1 01 00 42 46 01 5A [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: D1 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: D1 01 00 [10:25:40]MH_I2C_Read... [10:25:40]Read from MH i2c: D1 01 00 42 46 00 59 [10:25:40]Write to MH i2c: 01 00 00 43 46 89 [10:25:40]Write i2c OK [10:25:40]MH_I2C_Read... [10:25:41]OFD Sender: No OFD packet to send [10:25:41]*** Cut start [10:25:41]*** Partial cut [10:25:41]*** CUTSNS_PIN = 1 [10:25:41]*** CUTSNS_PIN = 0 [10:25:41]*** Brake cut motor [10:25:42]Read from MH i2c: 01 [10:25:42]MH_I2C_Read... [10:25:42]*** Stop cut motor [10:25:42]*** Cut end [10:25:42]Read from MH i2c: 01 07 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: 01 07 00 43 46 00 00 00 00 00 FF 0F 9E [10:25:42]process_action close_receipt done [10:25:42]requested_data is exist [10:25:42]produce_requested_data [10:25:42]requested_item fm.sn is exist - process it [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 11 00 00 [10:25:42]Write to MH i2c: E2 08 00 44 46 80 11 00 00 00 00 00 00 04 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 17 00 44 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [10:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:25:42]wFMCommunicate OK [10:25:42]requested_item fd.num is exist - process it [10:25:42]SAM_PROTO_GetFieldsCounters [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 13 00 00 [10:25:42]Write to MH i2c: E2 08 00 45 46 80 13 00 00 00 00 00 00 07 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 62 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 62 00 45 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [10:25: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_GetFieldsCounters done [10:25:42]requested_item shift.num is exist - process it [10:25:42]requested_item shift.opened is exist - process it [10:25:42]req_shift_opened [10:25:42]FM_GetShiftState [10:25:42]SAM_PROTO_GetShiftState [10:25:42]wFMCommunicate request_size=4 [10:25:42]MH_SAM_APDU [10:25:42]CAPDU: 80 13 01 00 [10:25:42]Write to MH i2c: E2 08 00 46 46 80 13 01 00 00 00 00 00 09 [10:25:42]Write i2c OK [10:25:42]MH_I2C_Read... [10:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:42]Read from MH i2c: E2 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0E 00 [10:25:42]MH_I2C_Read... [10:25:42]Read from MH i2c: E2 0E 00 46 46 00 09 00 01 31 35 72 66 00 00 00 00 90 00 53 [10:25:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:25:42]wFMCommunicate OK [10:25:42]SAM_PROTO_GetShiftState done [10:25:42]FM_GetShiftState done [10:25:42]req_shift_opened done [10:25:42]requested_item shift.open_date is exist - process it [10:25:42]req_shift_open_date [10:25:42]req_shift_open_date done [10:25:42]produce_requested_data done [10:25:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111292,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:25:42]process_action_free close_receipt [10:25:42]json_value_free [10:25:42]json_value_free done [10:25:42]process_json_proto returns [10:25:42]Send response to host [10:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111292,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:25:42]free response buf [10:25:42]execute_script done [10:25:42]execute_script returns [10:25:42]free content buf [10:25:42]Sock 8.Close socket [10:25:42]Sock 8.Thread stoped [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:26]OFD Sender: No OFD packet to send [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]accept exits with 9 [10:31:26]New connection [10:31:26]New thread 3067227492 created [10:31:26]Thread 3067084132 joined [10:31:26]Waiting for new connection... [10:31:26] Sock 9.Parse request [10:31:26]Sock 9.Check first char [10:31:26]Sock 9.First char is OK [10:31:26]request: POST /json_proto HTTP/1.0 [10:31:26]Method: POST [10:31:26]URL: /json_proto [10:31:26]Method is POST - this is cgi request [10:31:26]url: /json_proto [10:31:26]query_string will be loaded in cgi processing [10:31:26]execute_cgi json_proto POST (null) [10:31:26]execute_cgi path=json_proto method=POST [10:31:26]POST find Content-Length [10:31:26]Host: 172.17.59.68:8080 [10:31:26]Content-Length: 677 [10:31:26]Content-Type: application/json [10:31:26] [10:31:26]POST finish read [10:31:26]Found Content-Length = 677 [10:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:26]execute_script... [10:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319861", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:26]POST & json_proto [10:31:26]process_json_proto [10:31:26]json parsed OK: [10:31:26]protocol is kg_v1.0 [10:31:26]action value=close_receipt [10:31:26]process_action close_receipt [10:31:26]cmd_close_receipt [10:31:26]MH_GetDate [10:31:26]Write to MH i2c: F0 00 00 47 46 7C [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 09 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: F0 09 00 47 46 00 9C B3 72 66 BC EC 60 65 19 [10:31:26]GetLastDocTimeStamp 1718792768 [10:31:26]current date 1718793116 [10:31:26]FM_GetShiftState [10:31:26]SAM_PROTO_GetShiftState [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 01 00 [10:31:26]Write to MH i2c: E2 08 00 48 46 80 13 01 00 00 00 00 00 0B [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 48 46 00 09 00 01 31 35 72 66 00 00 00 00 90 00 55 [10:31:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetShiftState done [10:31:26]FM_GetShiftState done [10:31:26]opened in 1718760753 [10:31:26]opened+sec_in_day 1718847153 [10:31:26]quantity*price = 30012 [10:31:26]sum+1 = 30014 [10:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 42 19.06.2024 10:31 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111293 ФПД: 146288605341347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103156&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111293&fm=146288605341347&tin=02508201610067®Number=0000000000092771&sum=30000 [10:31:27]StoreToDocumentArchive [10:31:27]shift 388 fd 111293 [10:31:27]save to /storage/0388/doc_00111293 [10:31:27]save last doc name /storage/0388/doc_00111293 to /storage/kkm_last_doc_name [10:31:27]save OK [10:31:27]Clear old archive folders... [10:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:27]tlvbuf is 0197BFB0 [10:31:27]SAM_PROTO_ClearQueue [10:31:27]wFMCommunicate request_size=4 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 09 00 00 [10:31:27]Write to MH i2c: E2 08 00 55 46 80 09 00 00 00 00 00 00 0D [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 03 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 03 00 55 46 00 90 00 0F [10:31:27]RAPDU: 90 00 [10:31:27]wFMCommunicate OK [10:31:27]SAM_PROTO_ClearQueue done [10:31:27]KKMCreateOFDPacket [10:31:27]OFDProtocolAddRootSTLVToBuf [10:31:27]FM_MakeSignedData [10:31:27]FM_MakeSignedData [10:31:27]SAM_PROTO_SignData [10:31:27]wFMCommunicate request_size=4 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 0D 01 02 [10:31:27]Write to MH i2c: E2 08 00 56 46 80 0D 01 02 00 00 00 00 15 [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 03 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 03 00 56 46 00 90 00 10 [10:31:27]RAPDU: 90 00 [10:31:27]wFMCommunicate OK [10:31:27]wFMCommunicate request_size=255 [10:31:27]MH_SAM_APDU [10:31: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 2A 00 00 00 F4 03 04 00 9C B3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B2 01 00 35 04 06 00 85 [10:31:27]Write to MH i2c: E2 02 01 57 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 2A 00 00 00 F4 03 04 00 9C B3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B2 01 00 35 04 06 00 85 00 00 32 [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 03 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 03 00 57 46 00 90 00 11 [10:31:27]RAPDU: 90 00 [10:31:27]wFMCommunicate OK [10:31:27]wFMCommunicate request_size=10 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 0D 02 02 05 0C 78 5B 26 A3 [10:31:27]Write to MH i2c: E2 0D 00 58 46 80 0D 02 02 05 00 0C 78 5B 26 A3 00 00 CA [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 03 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 03 00 58 46 00 90 00 12 [10:31:27]RAPDU: 90 00 [10:31:27]wFMCommunicate OK [10:31:27]wFMCommunicate request_size=4 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 0D 03 02 [10:31:27]Write to MH i2c: E2 08 00 59 46 80 0D 03 02 00 00 00 00 1A [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 0B 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 0B 00 59 46 00 57 31 CF 1E F7 79 09 72 90 00 7B [10:31:27]RAPDU: 57 31 CF 1E F7 79 09 72 90 00 [10:31:27]wFMCommunicate OK [10:31:27]SAM_PROTO_SignData done [10:31:27]FM_MakeSignedData done [10:31:27]CreateOFDProtocolMessage [10:31:27]wFMCommunicate request_size=4 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 11 00 00 [10:31:27]Write to MH i2c: E2 08 00 5A 46 80 11 00 00 00 00 00 00 1A [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:28]Read from MH i2c: E2 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 17 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: E2 17 00 5A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [10:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:31:28]wFMCommunicate OK [10:31:28]CreateOFDProtocolMessage done [10:31:28]OFDSenderStorePacket 111293 [10:31:28]StoreOFDPacket docnum=111293 [10:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 2B 07 01 CB 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 2A 00 00 00 F4 03 04 00 9C B3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B2 01 00 35 04 06 00 85 0C 78 5B 26 A3 57 31 CF 1E F7 79 09 72 [10:31:28]CheckFolder [10:31:28]dirname=/storage/ofd_packets [10:31:28]CheckFolder done [10:31:28]ProducePacketName [10:31:28]name=ofd_packets/00111293 [10:31:28]NVStorageSaveData ofd_packets/00111293 [10:31:28]File name is /storage/ofd_packets/00111293 [10:31:28]Write 301 bytes [10:31:28]NVStorageSaveData done [10:31:28]OFDSenderStorePacket done [10:31:28]KKMCreateOFDPacket done [10:31:28]NVStorageSaveData kkm_last_timestamp [10:31:28]File name is /storage/kkm_last_timestamp [10:31:28]Write 4 bytes [10:31:28]NVStorageSaveData done [10:31:28]ExternCall_PrintAddStr [10:31:28]wPrintStart [10:31:28]Write to MH i2c: 01 00 00 5B 46 A1 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 5B 46 00 00 00 00 00 FF 0F B6 [10:31:28]RasterBufferAndPrint [10:31:28]line Счет N : (1)319861 [10:31:28]line ИНН: 02508201610067 [10:31:28]line Контрольно-Кассовый Чек [10:31:28]line ПРОДАЖА [10:31:28]line ТРК (МРК, ГНК) : 11 [10:31:28]line Товар: 2710124130 [10:31:28]line Аи-92-К-5 [10:31:28]line 4.520 * 66.40 [10:31:28]line = 300.13 [10:31:28]line НДС 12% НСП 1% [10:31:28]line > о реализуемом товаре [10:31:28]line ОКРУГЛЕНИЕ: -0.13 [10:31:28]line ИТОГО: 300.00 [10:31:28]line Внесено: 300.00 [10:31:28]line СДАЧА: 0.00 [10:31:28]line НСП 1% : 2.66 [10:31:28]line НДС 12% : 31.87 [10:31:28]line Наличными: 300.00 [10:31:28]line Безнал.: 0.00 [10:31:28]line Место: АЗС № 65 "Партнер Нефть" [10:31:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:31:28]line СНО: Общий режим [10:31:28]line Чек 42 19.06.2024 10:31 [10:31:28]line Смена: 388 ФФД: 1.0 [10:31:28]line ЗНМ: 0300000198 [10:31:28]line РНМ: 0000000000092771 [10:31:28]line Версия ККМ: 001 [10:31:28]line ФМ: 0000000000875083 [10:31:28]line ФД: 111293 [10:31:28]line ФПД: 146288605341347 [10:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103156&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111293&fm=146288605341347&tin=02508201610067®Number=0000000000092771&sum=30000 [10:31:28]OFD Sender: Processing packet 111293 [packets to send 38, broken 37] [10:31:28]ProducePacketName [10:31:28]name=ofd_packets/00111293 [10:31:28]OFD Sender: To server: pG, [10:31:28]CommunicateWithHost lk.salyk.kg:30040 [10:31:28]ConnectInit lk.salyk.kg [10:31:28]written 0, free lines is 4095 [10:31:28]Connected sock=10 [10:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 2B 07 01 CB 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 2A 00 00 00 F4 03 04 00 9C B3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B2 01 00 35 04 06 00 85 0C 78 5B 26 A3 57 31 CF 1E F7 79 09 72 [10:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F0 7A 47 00 8B 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 35 30 38 33 10 04 04 00 BD B2 01 00 F4 03 04 00 08 4B 72 66 B6 04 01 00 00 1D 3A 1D B6 CA 79 0D A6 [10:31:28]CommunicateWithHost err = 0 [10:31:28]CheckOFDResponse [10:31:28]1017 (14) - 77093643461234 [10:31:28]1041 (16) - 0000000000875083 [10:31:28]1040 (4) - 111293 [10:31:28]1012 (4) - 19.06.2024 03:05 [10:31:28]1206 (1) - 0 [10:31:28]OFD Sender: Remove packet 111293 [10:31:28]ProducePacketName [10:31:28]name=ofd_packets/00111293 [10:31:28]NVStorageDeleteData [10:31:28]Write to MH i2c: 01 00 00 86 46 CC [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: 01 07 00 86 46 00 00 00 00 00 D7 0C B6 [10:31:28]RasterBufferAndPrint [10:31:28]line [10:31:28]line [10:31:28]line [10:31:28]line [10:31:28]line [10:31:28]written 0, free lines is 3294 [10:31:28]MH_Cut [10:31:28]Write to MH i2c: D1 01 00 8D 46 01 A5 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: D1 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: D1 01 00 [10:31:28]MH_I2C_Read... [10:31:28]Read from MH i2c: D1 01 00 8D 46 00 A4 [10:31:28]Write to MH i2c: 01 00 00 8E 46 D4 [10:31:28]Write i2c OK [10:31:28]MH_I2C_Read... [10:31:29]OFD Sender: No OFD packet to send [10:31:29]*** Cut start [10:31:29]*** Partial cut [10:31:29]*** CUTSNS_PIN = 1 [10:31:29]*** CUTSNS_PIN = 0 [10:31:29]*** Brake cut motor [10:31:30]Read from MH i2c: 01 [10:31:30]MH_I2C_Read... [10:31:30]*** Stop cut motor [10:31:30]*** Cut end [10:31:30]Read from MH i2c: 01 07 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: 01 07 00 8E 46 00 00 00 00 00 FF 0F E9 [10:31:30]process_action close_receipt done [10:31:30]requested_data is exist [10:31:30]produce_requested_data [10:31:30]requested_item fm.sn is exist - process it [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 11 00 00 [10:31:30]Write to MH i2c: E2 08 00 8F 46 80 11 00 00 00 00 00 00 4F [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 17 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 17 00 8F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [10:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:31:30]wFMCommunicate OK [10:31:30]requested_item fd.num is exist - process it [10:31:30]SAM_PROTO_GetFieldsCounters [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 13 00 00 [10:31:30]Write to MH i2c: E2 08 00 90 46 80 13 00 00 00 00 00 00 52 [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 62 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 62 00 90 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [10:31: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:30]wFMCommunicate OK [10:31:30]SAM_PROTO_GetFieldsCounters done [10:31:30]requested_item shift.num is exist - process it [10:31:30]requested_item shift.opened is exist - process it [10:31:30]req_shift_opened [10:31:30]FM_GetShiftState [10:31:30]SAM_PROTO_GetShiftState [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 13 01 00 [10:31:30]Write to MH i2c: E2 08 00 91 46 80 13 01 00 00 00 00 00 54 [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 0E 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 0E 00 91 46 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9E [10:31:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:31:30]wFMCommunicate OK [10:31:30]SAM_PROTO_GetShiftState done [10:31:30]FM_GetShiftState done [10:31:30]req_shift_opened done [10:31:30]requested_item shift.open_date is exist - process it [10:31:30]req_shift_open_date [10:31:30]req_shift_open_date done [10:31:30]produce_requested_data done [10:31:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111293,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:31:30]process_action_free close_receipt [10:31:30]json_value_free [10:31:30]json_value_free done [10:31:30]process_json_proto returns [10:31:30]Send response to host [10:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111293,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:31:30]free response buf [10:31:30]execute_script done [10:31:30]execute_script returns [10:31:30]free content buf [10:31:30]Sock 9.Close socket [10:31:30]Sock 9.Thread stoped [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:13]accept exits with 8 [10:32:13]New connection [10:32:13]New thread 3067084132 created [10:32:13]Thread 3067227492 joined [10:32:13]Waiting for new connection... [10:32:13] Sock 8.Parse request [10:32:13]Sock 8.Check first char [10:32:13]Sock 8.First char is OK [10:32:13]request: POST /json_proto HTTP/1.0 [10:32:13]Method: POST [10:32:13]URL: /json_proto [10:32:13]Method is POST - this is cgi request [10:32:13]url: /json_proto [10:32:13]query_string will be loaded in cgi processing [10:32:13]execute_cgi json_proto POST (null) [10:32:13]execute_cgi path=json_proto method=POST [10:32:13]POST find Content-Length [10:32:13]Host: 172.17.59.68:8080 [10:32:13]Content-Length: 682 [10:32:13]Content-Type: application/json [10:32:13] [10:32:13]POST finish read [10:32:13]Found Content-Length = 682 [10:32:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13]execute_script... [10:32: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)319862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13]POST & json_proto [10:32:13]process_json_proto [10:32:13]json parsed OK: [10:32:13]protocol is kg_v1.0 [10:32:13]action value=close_receipt [10:32:13]process_action close_receipt [10:32:13]cmd_close_receipt [10:32:13]MH_GetDate [10:32:13]Write to MH i2c: F0 00 00 92 46 C7 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: F0 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: F0 09 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: F0 09 00 92 46 00 CB B3 72 66 BC EC 60 65 93 [10:32:13]GetLastDocTimeStamp 1718793116 [10:32:13]current date 1718793163 [10:32:13]FM_GetShiftState [10:32:13]SAM_PROTO_GetShiftState [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 13 01 00 [10:32:13]Write to MH i2c: E2 08 00 93 46 80 13 01 00 00 00 00 00 56 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0E 00 93 46 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A0 [10:32:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_GetShiftState done [10:32:13]FM_GetShiftState done [10:32:13]opened in 1718760753 [10:32:13]opened+sec_in_day 1718847153 [10:32:13]quantity*price = 100064 [10:32:13]sum+1 = 100066 [10:32:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 43 19.06.2024 10:32 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111294 ФПД: 183460707735171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103243&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111294&fm=183460707735171&tin=02508201610067®Number=0000000000092771&sum=100000 [10:32:14]StoreToDocumentArchive [10:32:14]shift 388 fd 111294 [10:32:14]save to /storage/0388/doc_00111294 [10:32:14]save last doc name /storage/0388/doc_00111294 to /storage/kkm_last_doc_name [10:32:14]save OK [10:32:14]Clear old archive folders... [10:32:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:14]tlvbuf is 01A160E0 [10:32:14]SAM_PROTO_ClearQueue [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 09 00 00 [10:32:14]Write to MH i2c: E2 08 00 A0 46 80 09 00 00 00 00 00 00 58 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:14]Read from MH i2c: E2 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 03 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 03 00 A0 46 00 90 00 5A [10:32:14]RAPDU: 90 00 [10:32:14]wFMCommunicate OK [10:32:14]SAM_PROTO_ClearQueue done [10:32:14]KKMCreateOFDPacket [10:32:14]OFDProtocolAddRootSTLVToBuf [10:32:14]FM_MakeSignedData [10:32:14]FM_MakeSignedData [10:32:14]SAM_PROTO_SignData [10:32:14]wFMCommunicate request_size=4 [10:32:14]MH_SAM_APDU [10:32:14]CAPDU: 80 0D 01 02 [10:32:14]Write to MH i2c: E2 08 00 A1 46 80 0D 01 02 00 00 00 00 60 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:14]Read from MH i2c: E2 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 03 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: E2 03 00 A1 46 00 90 00 5B [10:32:14]RAPDU: 90 00 [10:32:14]wFMCommunicate OK [10:32:14]wFMCommunicate request_size=255 [10:32:14]MH_SAM_APDU [10:32: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CB B3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B2 01 00 35 04 06 00 A6 [10:32:14]Write to MH i2c: E2 02 01 A2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CB B3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B2 01 00 35 04 06 00 A6 00 00 81 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 03 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 03 00 A2 46 00 90 00 5C [10:32:15]RAPDU: 90 00 [10:32:15]wFMCommunicate OK [10:32:15]wFMCommunicate request_size=10 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 0D 02 02 05 DB 46 50 96 83 [10:32:15]Write to MH i2c: E2 0D 00 A3 46 80 0D 02 02 05 00 DB 46 50 96 83 00 00 F7 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 03 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 03 00 A3 46 00 90 00 5D [10:32:15]RAPDU: 90 00 [10:32:15]wFMCommunicate OK [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 0D 03 02 [10:32:15]Write to MH i2c: E2 08 00 A4 46 80 0D 03 02 00 00 00 00 65 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0B 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 0B 00 A4 46 00 87 21 91 A8 02 FB 2A 6E 90 00 DC [10:32:15]RAPDU: 87 21 91 A8 02 FB 2A 6E 90 00 [10:32:15]wFMCommunicate OK [10:32:15]SAM_PROTO_SignData done [10:32:15]FM_MakeSignedData done [10:32:15]CreateOFDProtocolMessage [10:32:15]wFMCommunicate request_size=4 [10:32:15]MH_SAM_APDU [10:32:15]CAPDU: 80 11 00 00 [10:32:15]Write to MH i2c: E2 08 00 A5 46 80 11 00 00 00 00 00 00 65 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:15]Read from MH i2c: E2 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 17 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: E2 17 00 A5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B7 [10:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:32:15]wFMCommunicate OK [10:32:15]CreateOFDProtocolMessage done [10:32:15]OFDSenderStorePacket 111294 [10:32:15]StoreOFDPacket docnum=111294 [10:32:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 2D 07 01 F0 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CB B3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B2 01 00 35 04 06 00 A6 DB 46 50 96 83 87 21 91 A8 02 FB 2A 6E [10:32:15]CheckFolder [10:32:15]dirname=/storage/ofd_packets [10:32:15]CheckFolder done [10:32:15]ProducePacketName [10:32:15]name=ofd_packets/00111294 [10:32:15]NVStorageSaveData ofd_packets/00111294 [10:32:15]File name is /storage/ofd_packets/00111294 [10:32:15]Write 301 bytes [10:32:15]NVStorageSaveData done [10:32:15]OFDSenderStorePacket done [10:32:15]KKMCreateOFDPacket done [10:32:15]NVStorageSaveData kkm_last_timestamp [10:32:15]File name is /storage/kkm_last_timestamp [10:32:15]Write 4 bytes [10:32:15]NVStorageSaveData done [10:32:15]ExternCall_PrintAddStr [10:32:15]wPrintStart [10:32:15]Write to MH i2c: 01 00 00 A6 46 EC [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 A6 46 00 00 00 00 00 FF 0F 01 [10:32:15]RasterBufferAndPrint [10:32:15]line Счет N : (1)319862 [10:32:15]line ИНН: 02508201610067 [10:32:15]line Контрольно-Кассовый Чек [10:32:15]line ПРОДАЖА [10:32:15]line ТРК (МРК, ГНК) : 11 [10:32:15]line Товар: 2710124130 [10:32:15]line Аи-92-К-5 [10:32:15]line 15.070 * 66.40 [10:32:15]line = 1000.65 [10:32:15]line НДС 12% НСП 1% [10:32:15]line > о реализуемом товаре [10:32:15]line ОКРУГЛЕНИЕ: -0.65 [10:32:15]line ИТОГО: 1000.00 [10:32:15]line Внесено: 1000.00 [10:32:15]line СДАЧА: 0.00 [10:32:15]line НСП 1% : 8.85 [10:32:15]line НДС 12% : 106.26 [10:32:15]line Наличными: 1000.00 [10:32:15]line Безнал.: 0.00 [10:32:15]line Место: АЗС № 65 "Партнер Нефть" [10:32:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:32:15]line СНО: Общий режим [10:32:15]line Чек 43 19.06.2024 10:32 [10:32:15]line Смена: 388 ФФД: 1.0 [10:32:15]line ЗНМ: 0300000198 [10:32:15]line РНМ: 0000000000092771 [10:32:15]line Версия ККМ: 001 [10:32:15]line ФМ: 0000000000875083 [10:32:15]line ФД: 111294 [10:32:15]line ФПД: 183460707735171 [10:32:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T103243&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111294&fm=183460707735171&tin=02508201610067®Number=0000000000092771&sum=100000 [10:32:15]OFD Sender: Processing packet 111294 [packets to send 38, broken 37] [10:32:15]ProducePacketName [10:32:15]name=ofd_packets/00111294 [10:32:15]OFD Sender: To server: pG, [10:32:15]CommunicateWithHost lk.salyk.kg:30040 [10:32:15]ConnectInit lk.salyk.kg [10:32:15]written 0, free lines is 4095 [10:32:15]Connected sock=10 [10:32:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 2D 07 01 F0 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 CB B3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B2 01 00 35 04 06 00 A6 DB 46 50 96 83 87 21 91 A8 02 FB 2A 6E [10:32:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D2 58 47 00 0A 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 35 30 38 33 10 04 04 00 BE B2 01 00 F4 03 04 00 37 4B 72 66 B6 04 01 00 00 F0 E3 DB A1 AB C6 A4 64 [10:32:15]CommunicateWithHost err = 0 [10:32:15]CheckOFDResponse [10:32:15]1017 (14) - 77093643461234 [10:32:15]1041 (16) - 0000000000875083 [10:32:15]1040 (4) - 111294 [10:32:15]1012 (4) - 19.06.2024 03:06 [10:32:15]1206 (1) - 0 [10:32:15]OFD Sender: Remove packet 111294 [10:32:15]ProducePacketName [10:32:15]name=ofd_packets/00111294 [10:32:15]NVStorageDeleteData [10:32:16]Write to MH i2c: 01 00 00 D1 46 17 [10:32:16]Write i2c OK [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: 01 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: 01 07 00 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: 01 07 00 D1 46 00 00 00 00 00 CD 0C F7 [10:32:16]RasterBufferAndPrint [10:32:16]line [10:32:16]line [10:32:16]line [10:32:16]line [10:32:16]line [10:32:16]written 0, free lines is 3283 [10:32:16]MH_Cut [10:32:16]Write to MH i2c: D1 01 00 D8 46 01 F0 [10:32:16]Write i2c OK [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: D1 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: D1 01 00 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: D1 01 00 D8 46 00 EF [10:32:16]Write to MH i2c: 01 00 00 D9 46 1F [10:32:16]Write i2c OK [10:32:16]MH_I2C_Read... [10:32:16]OFD Sender: No OFD packet to send [10:32:16]*** Cut start [10:32:16]*** Partial cut [10:32:16]*** CUTSNS_PIN = 1 [10:32:16]*** CUTSNS_PIN = 0 [10:32:17]*** Brake cut motor [10:32:17]Read from MH i2c: 01 [10:32:17]MH_I2C_Read... [10:32:17]*** Stop cut motor [10:32:17]*** Cut end [10:32:17]Read from MH i2c: 01 07 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: 01 07 00 D9 46 00 00 00 00 00 FF 0F 34 [10:32:17]process_action close_receipt done [10:32:17]requested_data is exist [10:32:17]produce_requested_data [10:32:17]requested_item fm.sn is exist - process it [10:32:17]wFMCommunicate request_size=4 [10:32:17]MH_SAM_APDU [10:32:17]CAPDU: 80 11 00 00 [10:32:17]Write to MH i2c: E2 08 00 DA 46 80 11 00 00 00 00 00 00 9A [10:32:17]Write i2c OK [10:32:17]MH_I2C_Read... [10:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:17]Read from MH i2c: E2 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 17 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 17 00 DA 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [10:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:32:17]wFMCommunicate OK [10:32:17]requested_item fd.num is exist - process it [10:32:17]SAM_PROTO_GetFieldsCounters [10:32:17]wFMCommunicate request_size=4 [10:32:17]MH_SAM_APDU [10:32:17]CAPDU: 80 13 00 00 [10:32:17]Write to MH i2c: E2 08 00 DB 46 80 13 00 00 00 00 00 00 9D [10:32:17]Write i2c OK [10:32:17]MH_I2C_Read... [10:32:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:17]Read from MH i2c: E2 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 62 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 62 00 DB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [10:32: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:17]wFMCommunicate OK [10:32:17]SAM_PROTO_GetFieldsCounters done [10:32:17]requested_item shift.num is exist - process it [10:32:17]requested_item shift.opened is exist - process it [10:32:17]req_shift_opened [10:32:17]FM_GetShiftState [10:32:17]SAM_PROTO_GetShiftState [10:32:17]wFMCommunicate request_size=4 [10:32:17]MH_SAM_APDU [10:32:17]CAPDU: 80 13 01 00 [10:32:17]Write to MH i2c: E2 08 00 DC 46 80 13 01 00 00 00 00 00 9F [10:32:17]Write i2c OK [10:32:17]MH_I2C_Read... [10:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:17]Read from MH i2c: E2 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 0E 00 [10:32:17]MH_I2C_Read... [10:32:17]Read from MH i2c: E2 0E 00 DC 46 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E9 [10:32:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:32:17]wFMCommunicate OK [10:32:17]SAM_PROTO_GetShiftState done [10:32:17]FM_GetShiftState done [10:32:17]req_shift_opened done [10:32:17]requested_item shift.open_date is exist - process it [10:32:17]req_shift_open_date [10:32:17]req_shift_open_date done [10:32:17]produce_requested_data done [10:32:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111294,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:32:17]process_action_free close_receipt [10:32:17]json_value_free [10:32:17]json_value_free done [10:32:17]process_json_proto returns [10:32:17]Send response to host [10:32:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111294,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:32:17]free response buf [10:32:17]execute_script done [10:32:17]execute_script returns [10:32:17]free content buf [10:32:17]Sock 8.Close socket [10:32:17]Sock 8.Thread stoped [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:49]accept exits with 9 [10:39:49]New connection [10:39:49]New thread 3067227492 created [10:39:49]Thread 3067084132 joined [10:39:49]Waiting for new connection... [10:39:49] Sock 9.Parse request [10:39:49]Sock 9.Check first char [10:39:49]Sock 9.First char is OK [10:39:49]request: POST /json_proto HTTP/1.0 [10:39:49]Method: POST [10:39:49]URL: /json_proto [10:39:49]Method is POST - this is cgi request [10:39:49]url: /json_proto [10:39:49]query_string will be loaded in cgi processing [10:39:49]execute_cgi json_proto POST (null) [10:39:49]execute_cgi path=json_proto method=POST [10:39:49]POST find Content-Length [10:39:49]Host: 172.17.59.68:8080 [10:39:49]Content-Length: 1202 [10:39:49]Content-Type: application/json [10:39:49] [10:39:49]POST finish read [10:39:49]Found Content-Length = 1202 [10:39:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319863\u000A19.06.2024 09:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 130.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 8632.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03086\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:49]execute_script... [10:39:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319863\u000A19.06.2024 09:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 130.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 8632.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03086\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:49]POST & json_proto [10:39:49]process_json_proto [10:39:49]json parsed OK: [10:39:49]protocol is kg_v1.0 [10:39:49]action value=print_text [10:39:49]process_action print_text [10:39:49]cmd_print_text [10:39:49]ExternCall_PrintAddStr [10:39:49]wPrintStart [10:39:49]Write to MH i2c: 01 00 00 DD 46 23 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 DD 46 00 00 00 00 00 FF 0F 38 [10:39:49]RasterBufferAndPrint [10:39:49]line *****ТОВАРНЫЙ ЧЕК***** [10:39:49]line АЗС 65 [10:39:49]line Партнер нефть [10:39:49]line 02508201610067 [10:39:49]line Кассир : Амантуров Р. [10:39:49]line Счет N : (1)319863 [10:39:49]line 19.06.2024 09:08 [10:39:49]line ПРОДАЖА [10:39:49]line ТРК (МРК, ГНК): 11 [10:39:49]line Вид ГСМ : 2710124130 [10:39:49]line Аи-92-К-5 [10:39:49]line 130.000 x 66.40 [10:39:49]line ИТОГ: 8632.00 [10:39:49]line Тип оплаты: Талоны: Топливная Карта [10:39:49]line 03086 [10:39:49]line ______________________ [10:39:49]line (подпись) [10:39:49]written 0, free lines is 4095 [10:39:49]Write to MH i2c: 01 00 00 F1 46 37 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: 01 07 00 F1 46 00 00 00 00 00 11 0E 5D [10:39:49]RasterBufferAndPrint [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]line [10:39:49]written 0, free lines is 3603 [10:39:49]MH_Cut [10:39:49]Write to MH i2c: D1 01 00 F8 46 01 10 [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: D1 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: D1 01 00 [10:39:49]MH_I2C_Read... [10:39:49]Read from MH i2c: D1 01 00 F8 46 00 0F [10:39:49]Write to MH i2c: 01 00 00 F9 46 3F [10:39:49]Write i2c OK [10:39:49]MH_I2C_Read... [10:39:49]*** Cut start [10:39:49]*** Partial cut [10:39:49]*** CUTSNS_PIN = 1 [10:39:49]*** CUTSNS_PIN = 0 [10:39:50]*** Brake cut motor [10:39:50]Read from MH i2c: 01 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: 01 07 00 [10:39:50]MH_I2C_Read... [10:39:50]*** Stop cut motor [10:39:50]*** Cut end [10:39:50]Read from MH i2c: 01 07 00 F9 46 00 00 00 00 00 FF 0F 54 [10:39:50]process_action print_text done [10:39:50]requested_data is exist [10:39:50]produce_requested_data [10:39:50]requested_item fm.sn is exist - process it [10:39:50]wFMCommunicate request_size=4 [10:39:50]MH_SAM_APDU [10:39:50]CAPDU: 80 11 00 00 [10:39:50]Write to MH i2c: E2 08 00 FA 46 80 11 00 00 00 00 00 00 BA [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:50]Read from MH i2c: E2 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: E2 17 00 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: E2 17 00 FA 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [10:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:39:50]wFMCommunicate OK [10:39:50]requested_item fd.num is exist - process it [10:39:50]SAM_PROTO_GetFieldsCounters [10:39:50]wFMCommunicate request_size=4 [10:39:50]MH_SAM_APDU [10:39:50]CAPDU: 80 13 00 00 [10:39:50]Write to MH i2c: E2 08 00 FB 46 80 13 00 00 00 00 00 00 BD [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: E2 [10:39:50]MH_I2C_Read... [10:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:50]Read from MH i2c: E2 62 00 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: E2 62 00 FB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:50]wFMCommunicate OK [10:39:50]SAM_PROTO_GetFieldsCounters done [10:39:50]requested_item shift.num is exist - process it [10:39:50]requested_item shift.opened is exist - process it [10:39:50]req_shift_opened [10:39:50]FM_GetShiftState [10:39:50]SAM_PROTO_GetShiftState [10:39:50]wFMCommunicate request_size=4 [10:39:50]MH_SAM_APDU [10:39:50]CAPDU: 80 13 01 00 [10:39:50]Write to MH i2c: E2 08 00 FC 46 80 13 01 00 00 00 00 00 BF [10:39:50]Write i2c OK [10:39:50]MH_I2C_Read... [10:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:50]Read from MH i2c: E2 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: E2 0E 00 [10:39:50]MH_I2C_Read... [10:39:50]Read from MH i2c: E2 0E 00 FC 46 00 09 00 01 31 35 72 66 00 00 00 00 90 00 09 [10:39:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:39:50]wFMCommunicate OK [10:39:50]SAM_PROTO_GetShiftState done [10:39:50]FM_GetShiftState done [10:39:50]req_shift_opened done [10:39:50]requested_item shift.open_date is exist - process it [10:39:50]req_shift_open_date [10:39:50]req_shift_open_date done [10:39:50]produce_requested_data done [10:39:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111294,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:39:50]process_action_free print_text [10:39:50]json_value_free [10:39:50]json_value_free done [10:39:50]process_json_proto returns [10:39:50]Send response to host [10:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111294,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:39:50]free response buf [10:39:50]execute_script done [10:39:50]execute_script returns [10:39:50]free content buf [10:39:50]Sock 9.Close socket [10:39:50]Sock 9.Thread stoped [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:37]accept exits with 8 [10:40:37]New connection [10:40:37]New thread 3067084132 created [10:40:37]Thread 3067227492 joined [10:40:37]Waiting for new connection... [10:40:37] Sock 8.Parse request [10:40:37]Sock 8.Check first char [10:40:37]Sock 8.First char is OK [10:40:37]request: POST /json_proto HTTP/1.0 [10:40:37]Method: POST [10:40:37]URL: /json_proto [10:40:37]Method is POST - this is cgi request [10:40:37]url: /json_proto [10:40:37]query_string will be loaded in cgi processing [10:40:37]execute_cgi json_proto POST (null) [10:40:37]execute_cgi path=json_proto method=POST [10:40:37]POST find Content-Length [10:40:37]Host: 172.17.59.68:8080 [10:40:37]Content-Length: 677 [10:40:37]Content-Type: application/json [10:40:37] [10:40:37]POST finish read [10:40:37]Found Content-Length = 677 [10:40:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "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:40:37]execute_script... [10:40: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)319864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "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:40:37]POST & json_proto [10:40:37]process_json_proto [10:40:37]json parsed OK: [10:40:37]protocol is kg_v1.0 [10:40:37]action value=close_receipt [10:40:37]process_action close_receipt [10:40:37]cmd_close_receipt [10:40:37]MH_GetDate [10:40:37]Write to MH i2c: F0 00 00 FD 46 32 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: F0 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: F0 09 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: F0 09 00 FD 46 00 C3 B5 72 66 BC EC 60 65 F8 [10:40:37]GetLastDocTimeStamp 1718793163 [10:40:37]current date 1718793667 [10:40:37]FM_GetShiftState [10:40:37]SAM_PROTO_GetShiftState [10:40:37]wFMCommunicate request_size=4 [10:40:37]MH_SAM_APDU [10:40:37]CAPDU: 80 13 01 00 [10:40:37]Write to MH i2c: E2 08 00 FE 46 80 13 01 00 00 00 00 00 C1 [10:40:37]Write i2c OK [10:40:37]MH_I2C_Read... [10:40:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:37]Read from MH i2c: E2 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 0E 00 [10:40:37]MH_I2C_Read... [10:40:37]Read from MH i2c: E2 0E 00 FE 46 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0B [10:40:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:40:37]wFMCommunicate OK [10:40:37]SAM_PROTO_GetShiftState done [10:40:37]FM_GetShiftState done [10:40:37]opened in 1718760753 [10:40:37]opened+sec_in_day 1718847153 [10:40:37]quantity*price = 34063 [10:40:37]sum+1 = 34064 [10:40:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 44 19.06.2024 10:41 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111295 ФПД: 64519663371986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104107&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111295&fm=64519663371986&tin=02508201610067®Number=0000000000092771&sum=34000 [10:40:38]StoreToDocumentArchive [10:40:38]shift 388 fd 111295 [10:40:38]save to /storage/0388/doc_00111295 [10:40:38]save last doc name /storage/0388/doc_00111295 to /storage/kkm_last_doc_name [10:40:38]save OK [10:40:38]Clear old archive folders... [10:40:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:38]tlvbuf is 01AEDE60 [10:40:38]SAM_PROTO_ClearQueue [10:40:38]wFMCommunicate request_size=4 [10:40:38]MH_SAM_APDU [10:40:38]CAPDU: 80 09 00 00 [10:40:38]Write to MH i2c: E2 08 00 0B 47 80 09 00 00 00 00 00 00 C4 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:38]Read from MH i2c: E2 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 03 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 03 00 0B 47 00 90 00 C6 [10:40:38]RAPDU: 90 00 [10:40:38]wFMCommunicate OK [10:40:38]SAM_PROTO_ClearQueue done [10:40:38]KKMCreateOFDPacket [10:40:38]OFDProtocolAddRootSTLVToBuf [10:40:38]FM_MakeSignedData [10:40:38]FM_MakeSignedData [10:40:38]SAM_PROTO_SignData [10:40:38]wFMCommunicate request_size=4 [10:40:38]MH_SAM_APDU [10:40:38]CAPDU: 80 0D 01 02 [10:40:38]Write to MH i2c: E2 08 00 0C 47 80 0D 01 02 00 00 00 00 CC [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:38]Read from MH i2c: E2 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 03 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 03 00 0C 47 00 90 00 C7 [10:40:38]RAPDU: 90 00 [10:40:38]wFMCommunicate OK [10:40:38]wFMCommunicate request_size=255 [10:40:38]MH_SAM_APDU [10:40: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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 2C 00 00 00 F4 03 04 00 C3 B5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B2 01 00 35 04 06 00 3A [10:40:38]Write to MH i2c: E2 02 01 0D 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 2C 00 00 00 F4 03 04 00 C3 B5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B2 01 00 35 04 06 00 3A 00 00 43 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:38]Read from MH i2c: E2 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 03 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 03 00 0D 47 00 90 00 C8 [10:40:38]RAPDU: 90 00 [10:40:38]wFMCommunicate OK [10:40:38]wFMCommunicate request_size=10 [10:40:38]MH_SAM_APDU [10:40:38]CAPDU: 80 0D 02 02 05 AE 27 9D C6 D2 [10:40:38]Write to MH i2c: E2 0D 00 0E 47 80 0D 02 02 05 00 AE 27 9D C6 D2 00 00 E3 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:38]Read from MH i2c: E2 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 03 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 03 00 0E 47 00 90 00 C9 [10:40:38]RAPDU: 90 00 [10:40:38]wFMCommunicate OK [10:40:38]wFMCommunicate request_size=4 [10:40:38]MH_SAM_APDU [10:40:38]CAPDU: 80 0D 03 02 [10:40:38]Write to MH i2c: E2 08 00 0F 47 80 0D 03 02 00 00 00 00 D1 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:38]Read from MH i2c: E2 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 0B 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 0B 00 0F 47 00 71 A2 FC 70 32 F7 FE FD 90 00 75 [10:40:38]RAPDU: 71 A2 FC 70 32 F7 FE FD 90 00 [10:40:38]wFMCommunicate OK [10:40:38]SAM_PROTO_SignData done [10:40:38]FM_MakeSignedData done [10:40:38]CreateOFDProtocolMessage [10:40:38]wFMCommunicate request_size=4 [10:40:38]MH_SAM_APDU [10:40:38]CAPDU: 80 11 00 00 [10:40:38]Write to MH i2c: E2 08 00 10 47 80 11 00 00 00 00 00 00 D1 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:38]Read from MH i2c: E2 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 17 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: E2 17 00 10 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [10:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:40:38]wFMCommunicate OK [10:40:38]CreateOFDProtocolMessage done [10:40:38]OFDSenderStorePacket 111295 [10:40:38]StoreOFDPacket docnum=111295 [10:40:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F0 B0 07 01 24 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 2C 00 00 00 F4 03 04 00 C3 B5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B2 01 00 35 04 06 00 3A AE 27 9D C6 D2 71 A2 FC 70 32 F7 FE FD [10:40:38]CheckFolder [10:40:38]dirname=/storage/ofd_packets [10:40:38]CheckFolder done [10:40:38]ProducePacketName [10:40:38]name=ofd_packets/00111295 [10:40:38]NVStorageSaveData ofd_packets/00111295 [10:40:38]File name is /storage/ofd_packets/00111295 [10:40:38]Write 301 bytes [10:40:38]NVStorageSaveData done [10:40:38]OFDSenderStorePacket done [10:40:38]KKMCreateOFDPacket done [10:40:38]NVStorageSaveData kkm_last_timestamp [10:40:38]File name is /storage/kkm_last_timestamp [10:40:38]Write 4 bytes [10:40:38]NVStorageSaveData done [10:40:38]ExternCall_PrintAddStr [10:40:38]wPrintStart [10:40:38]Write to MH i2c: 01 00 00 11 47 58 [10:40:38]Write i2c OK [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: 01 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: 01 07 00 [10:40:38]MH_I2C_Read... [10:40:38]Read from MH i2c: 01 07 00 11 47 00 00 00 00 00 FF 0F 6D [10:40:38]RasterBufferAndPrint [10:40:38]line Счет N : (1)319864 [10:40:38]line ИНН: 02508201610067 [10:40:38]line Контрольно-Кассовый Чек [10:40:38]line ПРОДАЖА [10:40:38]line ТРК (МРК, ГНК) : 11 [10:40:38]line Товар: 2710124130 [10:40:38]line Аи-92-К-5 [10:40:38]line 5.130 * 66.40 [10:40:38]line = 340.63 [10:40:38]line НДС 12% НСП 1% [10:40:38]line > о реализуемом товаре [10:40:38]line ОКРУГЛЕНИЕ: -0.63 [10:40:38]line ИТОГО: 340.00 [10:40:38]line Внесено: 340.00 [10:40:38]line СДАЧА: 0.00 [10:40:38]line НСП 1% : 3.01 [10:40:38]line НДС 12% : 36.17 [10:40:38]line Наличными: 340.00 [10:40:38]line Безнал.: 0.00 [10:40:38]line Место: АЗС № 65 "Партнер Нефть" [10:40:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:40:38]line СНО: Общий режим [10:40:38]line Чек 44 19.06.2024 10:41 [10:40:38]line Смена: 388 ФФД: 1.0 [10:40:38]line ЗНМ: 0300000198 [10:40:38]line РНМ: 0000000000092771 [10:40:38]line Версия ККМ: 001 [10:40:38]line ФМ: 0000000000875083 [10:40:38]line ФД: 111295 [10:40:38]line ФПД: 64519663371986 [10:40:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104107&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111295&fm=64519663371986&tin=02508201610067®Number=0000000000092771&sum=34000 [10:40:39]OFD Sender: Processing packet 111295 [packets to send 38, broken 37] [10:40:39]ProducePacketName [10:40:39]name=ofd_packets/00111295 [10:40:39]OFD Sender: To server: pG, [10:40:39]CommunicateWithHost lk.salyk.kg:30040 [10:40:39]ConnectInit lk.salyk.kg [10:40:39]written 0, free lines is 4095 [10:40:39]Connected sock=10 [10:40:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F0 B0 07 01 24 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 2C 00 00 00 F4 03 04 00 C3 B5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B2 01 00 35 04 06 00 3A AE 27 9D C6 D2 71 A2 FC 70 32 F7 FE FD [10:40:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 51 C3 47 00 23 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 35 30 38 33 10 04 04 00 BF B2 01 00 F4 03 04 00 2F 4D 72 66 B6 04 01 00 00 1A 14 78 F7 ED A9 F1 24 [10:40:39]CommunicateWithHost err = 0 [10:40:39]CheckOFDResponse [10:40:39]1017 (14) - 77093643461234 [10:40:39]1041 (16) - 0000000000875083 [10:40:39]1040 (4) - 111295 [10:40:39]1012 (4) - 19.06.2024 03:14 [10:40:39]1206 (1) - 0 [10:40:39]OFD Sender: Remove packet 111295 [10:40:39]ProducePacketName [10:40:39]name=ofd_packets/00111295 [10:40:39]NVStorageDeleteData [10:40:39]Write to MH i2c: 01 00 00 3C 47 83 [10:40:39]Write i2c OK [10:40:39]MH_I2C_Read... [10:40:39]Read from MH i2c: 01 [10:40:39]MH_I2C_Read... [10:40:39]Read from MH i2c: 01 07 00 [10:40:39]MH_I2C_Read... [10:40:39]Read from MH i2c: 01 07 00 3C 47 00 00 00 00 00 CE 0C 64 [10:40:39]RasterBufferAndPrint [10:40:39]line [10:40:39]line [10:40:39]line [10:40:39]line [10:40:39]line [10:40:39]written 0, free lines is 3285 [10:40:39]MH_Cut [10:40:39]Write to MH i2c: D1 01 00 43 47 01 5C [10:40:39]Write i2c OK [10:40:39]MH_I2C_Read... [10:40:39]Read from MH i2c: D1 [10:40:39]MH_I2C_Read... [10:40:39]Read from MH i2c: D1 01 00 [10:40:39]MH_I2C_Read... [10:40:39]Read from MH i2c: D1 01 00 43 47 00 5B [10:40:39]Write to MH i2c: 01 00 00 44 47 8B [10:40:39]Write i2c OK [10:40:39]MH_I2C_Read... [10:40:40]OFD Sender: No OFD packet to send [10:40:40]*** Cut start [10:40:40]*** Partial cut [10:40:40]*** CUTSNS_PIN = 1 [10:40:40]*** CUTSNS_PIN = 0 [10:40:40]*** Brake cut motor [10:40:41]Read from MH i2c: 01 [10:40:41]MH_I2C_Read... [10:40:41]*** Stop cut motor [10:40:41]*** Cut end [10:40:41]Read from MH i2c: 01 07 00 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: 01 07 00 44 47 00 00 00 00 00 FF 0F A0 [10:40:41]process_action close_receipt done [10:40:41]requested_data is exist [10:40:41]produce_requested_data [10:40:41]requested_item fm.sn is exist - process it [10:40:41]wFMCommunicate request_size=4 [10:40:41]MH_SAM_APDU [10:40:41]CAPDU: 80 11 00 00 [10:40:41]Write to MH i2c: E2 08 00 45 47 80 11 00 00 00 00 00 00 06 [10:40:41]Write i2c OK [10:40:41]MH_I2C_Read... [10:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:41]Read from MH i2c: E2 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 17 00 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 17 00 45 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [10:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:40:41]wFMCommunicate OK [10:40:41]requested_item fd.num is exist - process it [10:40:41]SAM_PROTO_GetFieldsCounters [10:40:41]wFMCommunicate request_size=4 [10:40:41]MH_SAM_APDU [10:40:41]CAPDU: 80 13 00 00 [10:40:41]Write to MH i2c: E2 08 00 46 47 80 13 00 00 00 00 00 00 09 [10:40:41]Write i2c OK [10:40:41]MH_I2C_Read... [10:40:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:41]Read from MH i2c: E2 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 62 00 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 62 00 46 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:40: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:41]wFMCommunicate OK [10:40:41]SAM_PROTO_GetFieldsCounters done [10:40:41]requested_item shift.num is exist - process it [10:40:41]requested_item shift.opened is exist - process it [10:40:41]req_shift_opened [10:40:41]FM_GetShiftState [10:40:41]SAM_PROTO_GetShiftState [10:40:41]wFMCommunicate request_size=4 [10:40:41]MH_SAM_APDU [10:40:41]CAPDU: 80 13 01 00 [10:40:41]Write to MH i2c: E2 08 00 47 47 80 13 01 00 00 00 00 00 0B [10:40:41]Write i2c OK [10:40:41]MH_I2C_Read... [10:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:41]Read from MH i2c: E2 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 0E 00 [10:40:41]MH_I2C_Read... [10:40:41]Read from MH i2c: E2 0E 00 47 47 00 09 00 01 31 35 72 66 00 00 00 00 90 00 55 [10:40:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:40:41]wFMCommunicate OK [10:40:41]SAM_PROTO_GetShiftState done [10:40:41]FM_GetShiftState done [10:40:41]req_shift_opened done [10:40:41]requested_item shift.open_date is exist - process it [10:40:41]req_shift_open_date [10:40:41]req_shift_open_date done [10:40:41]produce_requested_data done [10:40:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111295,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:40:41]process_action_free close_receipt [10:40:41]json_value_free [10:40:41]json_value_free done [10:40:41]process_json_proto returns [10:40:41]Send response to host [10:40:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111295,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:40:41]free response buf [10:40:41]execute_script done [10:40:41]execute_script returns [10:40:41]free content buf [10:40:41]Sock 8.Close socket [10:40:41]Sock 8.Thread stoped [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:41]accept exits with 9 [10:42:41]New connection [10:42:41]New thread 3067227492 created [10:42:41]Thread 3067084132 joined [10:42:41]Waiting for new connection... [10:42:41] Sock 9.Parse request [10:42:41]Sock 9.Check first char [10:42:41]Sock 9.First char is OK [10:42:41]request: POST /json_proto HTTP/1.0 [10:42:41]Method: POST [10:42:41]URL: /json_proto [10:42:41]Method is POST - this is cgi request [10:42:41]url: /json_proto [10:42:41]query_string will be loaded in cgi processing [10:42:41]execute_cgi json_proto POST (null) [10:42:41]execute_cgi path=json_proto method=POST [10:42:41]POST find Content-Length [10:42:41]Host: 172.17.59.68:8080 [10:42:41]Content-Length: 674 [10:42:41]Content-Type: application/json [10:42:41] [10:42:41]POST finish read [10:42:41]Found Content-Length = 674 [10:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:41]execute_script... [10:42: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)319865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:41]POST & json_proto [10:42:41]process_json_proto [10:42:41]json parsed OK: [10:42:41]protocol is kg_v1.0 [10:42:41]action value=close_receipt [10:42:41]process_action close_receipt [10:42:41]cmd_close_receipt [10:42:41]MH_GetDate [10:42:41]Write to MH i2c: F0 00 00 48 47 7E [10:42:41]Write i2c OK [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: F0 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: F0 09 00 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: F0 09 00 48 47 00 3F B6 72 66 BC EC 60 65 C1 [10:42:41]GetLastDocTimeStamp 1718793667 [10:42:41]current date 1718793791 [10:42:41]FM_GetShiftState [10:42:41]SAM_PROTO_GetShiftState [10:42:41]wFMCommunicate request_size=4 [10:42:41]MH_SAM_APDU [10:42:41]CAPDU: 80 13 01 00 [10:42:41]Write to MH i2c: E2 08 00 49 47 80 13 01 00 00 00 00 00 0D [10:42:41]Write i2c OK [10:42:41]MH_I2C_Read... [10:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:41]Read from MH i2c: E2 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 0E 00 [10:42:41]MH_I2C_Read... [10:42:41]Read from MH i2c: E2 0E 00 49 47 00 09 00 01 31 35 72 66 00 00 00 00 90 00 57 [10:42:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:42:41]wFMCommunicate OK [10:42:41]SAM_PROTO_GetShiftState done [10:42:41]FM_GetShiftState done [10:42:41]opened in 1718760753 [10:42:41]opened+sec_in_day 1718847153 [10:42:41]quantity*price = 50009 [10:42:41]sum+1 = 50010 [10:42:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 45 19.06.2024 10:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111296 ФПД: 105621285766326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104311&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111296&fm=105621285766326&tin=02508201610067®Number=0000000000092771&sum=50000 [10:42:42]StoreToDocumentArchive [10:42:42]shift 388 fd 111296 [10:42:42]save to /storage/0388/doc_00111296 [10:42:42]save last doc name /storage/0388/doc_00111296 to /storage/kkm_last_doc_name [10:42:42]save OK [10:42:42]Clear old archive folders... [10:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:42:42]tlvbuf is 01A40820 [10:42:42]SAM_PROTO_ClearQueue [10:42:42]wFMCommunicate request_size=4 [10:42:42]MH_SAM_APDU [10:42:42]CAPDU: 80 09 00 00 [10:42:42]Write to MH i2c: E2 08 00 56 47 80 09 00 00 00 00 00 00 0F [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:42]Read from MH i2c: E2 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 03 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 03 00 56 47 00 90 00 11 [10:42:42]RAPDU: 90 00 [10:42:42]wFMCommunicate OK [10:42:42]SAM_PROTO_ClearQueue done [10:42:42]KKMCreateOFDPacket [10:42:42]OFDProtocolAddRootSTLVToBuf [10:42:42]FM_MakeSignedData [10:42:42]FM_MakeSignedData [10:42:42]SAM_PROTO_SignData [10:42:42]wFMCommunicate request_size=4 [10:42:42]MH_SAM_APDU [10:42:42]CAPDU: 80 0D 01 02 [10:42:42]Write to MH i2c: E2 08 00 57 47 80 0D 01 02 00 00 00 00 17 [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:42]Read from MH i2c: E2 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 03 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 03 00 57 47 00 90 00 12 [10:42:42]RAPDU: 90 00 [10:42:42]wFMCommunicate OK [10:42:42]wFMCommunicate request_size=255 [10:42:42]MH_SAM_APDU [10:42: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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3F B6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B2 01 00 35 04 06 00 60 0F DF 38 [10:42:42]Write to MH i2c: E2 02 01 58 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3F B6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B2 01 00 35 04 06 00 60 0F DF 38 00 00 39 [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:42]Read from MH i2c: E2 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 03 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 03 00 58 47 00 90 00 13 [10:42:42]RAPDU: 90 00 [10:42:42]wFMCommunicate OK [10:42:42]wFMCommunicate request_size=7 [10:42:42]MH_SAM_APDU [10:42:42]CAPDU: 80 0D 02 02 02 04 B6 [10:42:42]Write to MH i2c: E2 0A 00 59 47 80 0D 02 02 02 00 04 B6 00 00 D8 [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:42]Read from MH i2c: E2 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 03 00 [10:42:42]MH_I2C_Read... [10:42:42]Read from MH i2c: E2 03 00 59 47 00 90 00 14 [10:42:42]RAPDU: 90 00 [10:42:42]wFMCommunicate OK [10:42:42]wFMCommunicate request_size=4 [10:42:42]MH_SAM_APDU [10:42:42]CAPDU: 80 0D 03 02 [10:42:42]Write to MH i2c: E2 08 00 5A 47 80 0D 03 02 00 00 00 00 1C [10:42:42]Write i2c OK [10:42:42]MH_I2C_Read... [10:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:43]Read from MH i2c: E2 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: E2 0B 00 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: E2 0B 00 5A 47 00 6C 07 2E CD 1E 8C 6E 58 90 00 FB [10:42:43]RAPDU: 6C 07 2E CD 1E 8C 6E 58 90 00 [10:42:43]wFMCommunicate OK [10:42:43]SAM_PROTO_SignData done [10:42:43]FM_MakeSignedData done [10:42:43]CreateOFDProtocolMessage [10:42:43]wFMCommunicate request_size=4 [10:42:43]MH_SAM_APDU [10:42:43]CAPDU: 80 11 00 00 [10:42:43]Write to MH i2c: E2 08 00 5B 47 80 11 00 00 00 00 00 00 1C [10:42:43]Write i2c OK [10:42:43]MH_I2C_Read... [10:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:43]Read from MH i2c: E2 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: E2 17 00 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: E2 17 00 5B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [10:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:42:43]wFMCommunicate OK [10:42:43]CreateOFDProtocolMessage done [10:42:43]OFDSenderStorePacket 111296 [10:42:43]StoreOFDPacket docnum=111296 [10:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 AC F7 04 01 6E 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3F B6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B2 01 00 35 04 06 00 60 0F DF 38 04 B6 6C 07 2E CD 1E 8C 6E 58 [10:42:43]CheckFolder [10:42:43]dirname=/storage/ofd_packets [10:42:43]CheckFolder done [10:42:43]ProducePacketName [10:42:43]name=ofd_packets/00111296 [10:42:43]NVStorageSaveData ofd_packets/00111296 [10:42:43]File name is /storage/ofd_packets/00111296 [10:42:43]Write 298 bytes [10:42:43]NVStorageSaveData done [10:42:43]OFDSenderStorePacket done [10:42:43]KKMCreateOFDPacket done [10:42:43]NVStorageSaveData kkm_last_timestamp [10:42:43]File name is /storage/kkm_last_timestamp [10:42:43]Write 4 bytes [10:42:43]NVStorageSaveData done [10:42:43]ExternCall_PrintAddStr [10:42:43]wPrintStart [10:42:43]Write to MH i2c: 01 00 00 5C 47 A3 [10:42:43]Write i2c OK [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 07 00 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 07 00 5C 47 00 00 00 00 00 FF 0F B8 [10:42:43]RasterBufferAndPrint [10:42:43]line Счет N : (1)319865 [10:42:43]line ИНН: 02508201610067 [10:42:43]line Контрольно-Кассовый Чек [10:42:43]line ПРОДАЖА [10:42:43]line ТРК (МРК, ГНК) : 22 [10:42:43]line Товар: 2710194210 [10:42:43]line ДТ-К-5 [10:42:43]line 6.860 * 72.90 [10:42:43]line = 500.09 [10:42:43]line НДС 12% НСП 1% [10:42:43]line > о реализуемом товаре [10:42:43]line ОКРУГЛЕНИЕ: -0.09 [10:42:43]line ИТОГО: 500.00 [10:42:43]line Внесено: 500.00 [10:42:43]line СДАЧА: 0.00 [10:42:43]line НСП 1% : 4.43 [10:42:43]line НДС 12% : 53.11 [10:42:43]line Наличными: 500.00 [10:42:43]line Безнал.: 0.00 [10:42:43]line Место: АЗС № 65 "Партнер Нефть" [10:42:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:42:43]line СНО: Общий режим [10:42:43]line Чек 45 19.06.2024 10:43 [10:42:43]line Смена: 388 ФФД: 1.0 [10:42:43]line ЗНМ: 0300000198 [10:42:43]line РНМ: 0000000000092771 [10:42:43]line Версия ККМ: 001 [10:42:43]line ФМ: 0000000000875083 [10:42:43]line ФД: 111296 [10:42:43]line ФПД: 105621285766326 [10:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104311&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111296&fm=105621285766326&tin=02508201610067®Number=0000000000092771&sum=50000 [10:42:43]OFD Sender: Processing packet 111296 [packets to send 38, broken 37] [10:42:43]ProducePacketName [10:42:43]name=ofd_packets/00111296 [10:42:43]OFD Sender: To server: pG, [10:42:43]CommunicateWithHost lk.salyk.kg:30040 [10:42:43]ConnectInit lk.salyk.kg [10:42:43]written 0, free lines is 4095 [10:42:43]Connected sock=11 [10:42:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 AC F7 04 01 6E 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 3F B6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B2 01 00 35 04 06 00 60 0F DF 38 04 B6 6C 07 2E CD 1E 8C 6E 58 [10:42:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 B9 47 00 7A ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B2 01 00 F4 03 04 00 AB 4D 72 66 B6 04 01 00 00 E3 07 50 33 9C 01 F2 C6 [10:42:43]CommunicateWithHost err = 0 [10:42:43]CheckOFDResponse [10:42:43]1017 (14) - 77093643461234 [10:42:43]1041 (16) - 0000000000875083 [10:42:43]1040 (4) - 111296 [10:42:43]1012 (4) - 19.06.2024 03:16 [10:42:43]1206 (1) - 0 [10:42:43]OFD Sender: Remove packet 111296 [10:42:43]ProducePacketName [10:42:43]name=ofd_packets/00111296 [10:42:43]NVStorageDeleteData [10:42:43]Write to MH i2c: 01 00 00 87 47 CE [10:42:43]Write i2c OK [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 07 00 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: 01 07 00 87 47 00 00 00 00 00 C7 0C A8 [10:42:43]RasterBufferAndPrint [10:42:43]line [10:42:43]line [10:42:43]line [10:42:43]line [10:42:43]line [10:42:43]written 0, free lines is 3277 [10:42:43]MH_Cut [10:42:43]Write to MH i2c: D1 01 00 8E 47 01 A7 [10:42:43]Write i2c OK [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: D1 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: D1 01 00 [10:42:43]MH_I2C_Read... [10:42:43]Read from MH i2c: D1 01 00 8E 47 00 A6 [10:42:43]Write to MH i2c: 01 00 00 8F 47 D6 [10:42:43]Write i2c OK [10:42:43]MH_I2C_Read... [10:42:44]OFD Sender: No OFD packet to send [10:42:44]*** Cut start [10:42:44]*** Partial cut [10:42:44]*** CUTSNS_PIN = 1 [10:42:44]*** CUTSNS_PIN = 0 [10:42:44]*** Brake cut motor [10:42:45]Read from MH i2c: 01 [10:42:45]MH_I2C_Read... [10:42:45]*** Stop cut motor [10:42:45]*** Cut end [10:42:45]Read from MH i2c: 01 07 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: 01 07 00 8F 47 00 00 00 00 00 FF 0F EB [10:42:45]process_action close_receipt done [10:42:45]requested_data is exist [10:42:45]produce_requested_data [10:42:45]requested_item fm.sn is exist - process it [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 11 00 00 [10:42:45]Write to MH i2c: E2 08 00 90 47 80 11 00 00 00 00 00 00 51 [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 17 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 17 00 90 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A3 [10:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:42:45]wFMCommunicate OK [10:42:45]requested_item fd.num is exist - process it [10:42:45]SAM_PROTO_GetFieldsCounters [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 13 00 00 [10:42:45]Write to MH i2c: E2 08 00 91 47 80 13 00 00 00 00 00 00 54 [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 62 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 62 00 91 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:45]wFMCommunicate OK [10:42:45]SAM_PROTO_GetFieldsCounters done [10:42:45]requested_item shift.num is exist - process it [10:42:45]requested_item shift.opened is exist - process it [10:42:45]req_shift_opened [10:42:45]FM_GetShiftState [10:42:45]SAM_PROTO_GetShiftState [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 13 01 00 [10:42:45]Write to MH i2c: E2 08 00 92 47 80 13 01 00 00 00 00 00 56 [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 0E 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 0E 00 92 47 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A0 [10:42:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:42:45]wFMCommunicate OK [10:42:45]SAM_PROTO_GetShiftState done [10:42:45]FM_GetShiftState done [10:42:45]req_shift_opened done [10:42:45]requested_item shift.open_date is exist - process it [10:42:45]req_shift_open_date [10:42:45]req_shift_open_date done [10:42:45]produce_requested_data done [10:42:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111296,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:42:45]process_action_free close_receipt [10:42:45]json_value_free [10:42:45]json_value_free done [10:42:45]process_json_proto returns [10:42:45]Send response to host [10:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111296,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:42:45]free response buf [10:42:45]execute_script done [10:42:45]execute_script returns [10:42:45]free content buf [10:42:45]Sock 9.Close socket [10:42:45]Sock 9.Thread stoped [10:42:45]accept exits with 8 [10:42:45]New connection [10:42:45]New thread 3067084132 created [10:42:45]Thread 3067227492 joined [10:42:45]Waiting for new connection... [10:42:45] Sock 8.Parse request [10:42:45]Sock 8.Check first char [10:42:45]Sock 8.First char is OK [10:42:45]request: POST /json_proto HTTP/1.0 [10:42:45]Method: POST [10:42:45]URL: /json_proto [10:42:45]Method is POST - this is cgi request [10:42:45]url: /json_proto [10:42:45]query_string will be loaded in cgi processing [10:42:45]execute_cgi json_proto POST (null) [10:42:45]execute_cgi path=json_proto method=POST [10:42:45]POST find Content-Length [10:42:45]Host: 172.17.59.68:8080 [10:42:45]Content-Length: 677 [10:42:45]Content-Type: application/json [10:42:45] [10:42:45]POST finish read [10:42:45]Found Content-Length = 677 [10:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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" ] } } [10:42:45]execute_script... [10:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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" ] } } [10:42:45]POST & json_proto [10:42:45]process_json_proto [10:42:45]json parsed OK: [10:42:45]protocol is kg_v1.0 [10:42:45]action value=close_receipt [10:42:45]process_action close_receipt [10:42:45]cmd_close_receipt [10:42:45]MH_GetDate [10:42:45]Write to MH i2c: F0 00 00 93 47 C9 [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: F0 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: F0 09 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: F0 09 00 93 47 00 44 B6 72 66 BC EC 60 65 11 [10:42:45]GetLastDocTimeStamp 1718793791 [10:42:45]current date 1718793796 [10:42:45]FM_GetShiftState [10:42:45]SAM_PROTO_GetShiftState [10:42:45]wFMCommunicate request_size=4 [10:42:45]MH_SAM_APDU [10:42:45]CAPDU: 80 13 01 00 [10:42:45]Write to MH i2c: E2 08 00 94 47 80 13 01 00 00 00 00 00 58 [10:42:45]Write i2c OK [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 [10:42:45]MH_I2C_Read... [10:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:45]Read from MH i2c: E2 0E 00 [10:42:45]MH_I2C_Read... [10:42:45]Read from MH i2c: E2 0E 00 94 47 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A2 [10:42:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:42:45]wFMCommunicate OK [10:42:45]SAM_PROTO_GetShiftState done [10:42:45]FM_GetShiftState done [10:42:45]opened in 1718760753 [10:42:45]opened+sec_in_day 1718847153 [10:42:45]quantity*price = 20052 [10:42:45]sum+1 = 20054 [10:42:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 46 19.06.2024 10:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111297 ФПД: 112489996725809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104316&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111297&fm=112489996725809&tin=02508201610067®Number=0000000000092771&sum=20000 [10:42:47]StoreToDocumentArchive [10:42:47]shift 388 fd 111297 [10:42:47]save to /storage/0388/doc_00111297 [10:42:47]save last doc name /storage/0388/doc_00111297 to /storage/kkm_last_doc_name [10:42:47]save OK [10:42:47]Clear old archive folders... [10:42:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:47]tlvbuf is 01A217A0 [10:42:47]SAM_PROTO_ClearQueue [10:42:47]wFMCommunicate request_size=4 [10:42:47]MH_SAM_APDU [10:42:47]CAPDU: 80 09 00 00 [10:42:47]Write to MH i2c: E2 08 00 A1 47 80 09 00 00 00 00 00 00 5A [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:47]Read from MH i2c: E2 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 03 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 03 00 A1 47 00 90 00 5C [10:42:47]RAPDU: 90 00 [10:42:47]wFMCommunicate OK [10:42:47]SAM_PROTO_ClearQueue done [10:42:47]KKMCreateOFDPacket [10:42:47]OFDProtocolAddRootSTLVToBuf [10:42:47]FM_MakeSignedData [10:42:47]FM_MakeSignedData [10:42:47]SAM_PROTO_SignData [10:42:47]wFMCommunicate request_size=4 [10:42:47]MH_SAM_APDU [10:42:47]CAPDU: 80 0D 01 02 [10:42:47]Write to MH i2c: E2 08 00 A2 47 80 0D 01 02 00 00 00 00 62 [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:47]Read from MH i2c: E2 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 03 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 03 00 A2 47 00 90 00 5D [10:42:47]RAPDU: 90 00 [10:42:47]wFMCommunicate OK [10:42:47]wFMCommunicate request_size=255 [10:42:47]MH_SAM_APDU [10:42: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 B6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B2 01 00 35 04 06 00 66 [10:42:47]Write to MH i2c: E2 02 01 A3 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 B6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B2 01 00 35 04 06 00 66 00 00 34 [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:47]Read from MH i2c: E2 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 03 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 03 00 A3 47 00 90 00 5E [10:42:47]RAPDU: 90 00 [10:42:47]wFMCommunicate OK [10:42:47]wFMCommunicate request_size=10 [10:42:47]MH_SAM_APDU [10:42:47]CAPDU: 80 0D 02 02 05 4F 1E 4B AE 31 [10:42:47]Write to MH i2c: E2 0D 00 A4 47 80 0D 02 02 05 00 4F 1E 4B AE 31 00 00 06 [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:47]Read from MH i2c: E2 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 03 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 03 00 A4 47 00 90 00 5F [10:42:47]RAPDU: 90 00 [10:42:47]wFMCommunicate OK [10:42:47]wFMCommunicate request_size=4 [10:42:47]MH_SAM_APDU [10:42:47]CAPDU: 80 0D 03 02 [10:42:47]Write to MH i2c: E2 08 00 A5 47 80 0D 03 02 00 00 00 00 67 [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:47]Read from MH i2c: E2 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 0B 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 0B 00 A5 47 00 93 C2 2D AD F5 C9 2A C4 90 00 43 [10:42:47]RAPDU: 93 C2 2D AD F5 C9 2A C4 90 00 [10:42:47]wFMCommunicate OK [10:42:47]SAM_PROTO_SignData done [10:42:47]FM_MakeSignedData done [10:42:47]CreateOFDProtocolMessage [10:42:47]wFMCommunicate request_size=4 [10:42:47]MH_SAM_APDU [10:42:47]CAPDU: 80 11 00 00 [10:42:47]Write to MH i2c: E2 08 00 A6 47 80 11 00 00 00 00 00 00 67 [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:47]Read from MH i2c: E2 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 17 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: E2 17 00 A6 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [10:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:42:47]wFMCommunicate OK [10:42:47]CreateOFDProtocolMessage done [10:42:47]OFDSenderStorePacket 111297 [10:42:47]StoreOFDPacket docnum=111297 [10:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 A7 07 01 C1 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 B6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B2 01 00 35 04 06 00 66 4F 1E 4B AE 31 93 C2 2D AD F5 C9 2A C4 [10:42:47]CheckFolder [10:42:47]dirname=/storage/ofd_packets [10:42:47]CheckFolder done [10:42:47]ProducePacketName [10:42:47]name=ofd_packets/00111297 [10:42:47]NVStorageSaveData ofd_packets/00111297 [10:42:47]File name is /storage/ofd_packets/00111297 [10:42:47]Write 301 bytes [10:42:47]NVStorageSaveData done [10:42:47]OFDSenderStorePacket done [10:42:47]KKMCreateOFDPacket done [10:42:47]NVStorageSaveData kkm_last_timestamp [10:42:47]File name is /storage/kkm_last_timestamp [10:42:47]Write 4 bytes [10:42:47]NVStorageSaveData done [10:42:47]ExternCall_PrintAddStr [10:42:47]wPrintStart [10:42:47]Write to MH i2c: 01 00 00 A7 47 EE [10:42:47]Write i2c OK [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: 01 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: 01 07 00 [10:42:47]MH_I2C_Read... [10:42:47]Read from MH i2c: 01 07 00 A7 47 00 00 00 00 00 FF 0F 03 [10:42:47]RasterBufferAndPrint [10:42:47]line Счет N : (1)319866 [10:42:47]line ИНН: 02508201610067 [10:42:47]line Контрольно-Кассовый Чек [10:42:47]line ПРОДАЖА [10:42:47]line ТРК (МРК, ГНК) : 11 [10:42:47]line Товар: 2710124130 [10:42:47]line Аи-92-К-5 [10:42:47]line 3.020 * 66.40 [10:42:47]line = 200.53 [10:42:47]line НДС 12% НСП 1% [10:42:47]line > о реализуемом товаре [10:42:47]line ОКРУГЛЕНИЕ: -0.53 [10:42:47]line ИТОГО: 200.00 [10:42:47]line Внесено: 200.00 [10:42:47]line СДАЧА: 0.00 [10:42:47]line НСП 1% : 1.77 [10:42:47]line НДС 12% : 21.29 [10:42:47]line Наличными: 200.00 [10:42:47]line Безнал.: 0.00 [10:42:47]line Место: АЗС № 65 "Партнер Нефть" [10:42:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:42:47]line СНО: Общий режим [10:42:47]line Чек 46 19.06.2024 10:43 [10:42:47]line Смена: 388 ФФД: 1.0 [10:42:47]line ЗНМ: 0300000198 [10:42:47]line РНМ: 0000000000092771 [10:42:47]line Версия ККМ: 001 [10:42:47]line ФМ: 0000000000875083 [10:42:47]line ФД: 111297 [10:42:47]line ФПД: 112489996725809 [10:42:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104316&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111297&fm=112489996725809&tin=02508201610067®Number=0000000000092771&sum=20000 [10:42:48]OFD Sender: Processing packet 111297 [packets to send 38, broken 37] [10:42:48]ProducePacketName [10:42:48]name=ofd_packets/00111297 [10:42:48]OFD Sender: To server: pG, [10:42:48]CommunicateWithHost lk.salyk.kg:30040 [10:42:48]ConnectInit lk.salyk.kg [10:42:48]written 0, free lines is 4095 [10:42:48]Connected sock=10 [10: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 35 30 38 33 0F 01 00 00 53 A7 07 01 C1 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 44 B6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B2 01 00 35 04 06 00 66 4F 1E 4B AE 31 93 C2 2D AD F5 C9 2A C4 [10:42:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E 4B 47 00 C7 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B2 01 00 F4 03 04 00 B0 4D 72 66 B6 04 01 00 00 B7 7F 4C 25 1F 48 60 91 [10:42:48]CommunicateWithHost err = 0 [10:42:48]CheckOFDResponse [10:42:48]1017 (14) - 77093643461234 [10:42:48]1041 (16) - 0000000000875083 [10:42:48]1040 (4) - 111297 [10:42:48]1012 (4) - 19.06.2024 03:17 [10:42:48]1206 (1) - 0 [10:42:48]OFD Sender: Remove packet 111297 [10:42:48]ProducePacketName [10:42:48]name=ofd_packets/00111297 [10:42:48]NVStorageDeleteData [10:42:48]Write to MH i2c: 01 00 00 D2 47 19 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: 01 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: 01 07 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: 01 07 00 D2 47 00 00 00 00 00 FE 0C 2A [10:42:48]RasterBufferAndPrint [10:42:48]line [10:42:48]line [10:42:48]line [10:42:48]line [10:42:48]line [10:42:48]written 0, free lines is 3336 [10:42:48]MH_Cut [10:42:48]Write to MH i2c: D1 01 00 D9 47 01 F2 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: D1 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: D1 01 00 [10:42:48]MH_I2C_Read... [10:42:48]Read from MH i2c: D1 01 00 D9 47 00 F1 [10:42:48]Write to MH i2c: 01 00 00 DA 47 21 [10:42:48]Write i2c OK [10:42:48]MH_I2C_Read... [10:42:49]OFD Sender: No OFD packet to send [10:42:49]*** Cut start [10:42:49]*** Partial cut [10:42:49]*** CUTSNS_PIN = 1 [10:42:49]*** CUTSNS_PIN = 0 [10:42:49]*** Brake cut motor [10:42:50]Read from MH i2c: 01 [10:42:50]MH_I2C_Read... [10:42:50]*** Stop cut motor [10:42:50]*** Cut end [10:42:50]Read from MH i2c: 01 07 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 07 00 DA 47 00 00 00 00 00 FF 0F 36 [10:42:50]process_action close_receipt done [10:42:50]requested_data is exist [10:42:50]produce_requested_data [10:42:50]requested_item fm.sn is exist - process it [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 11 00 00 [10:42:50]Write to MH i2c: E2 08 00 DB 47 80 11 00 00 00 00 00 00 9C [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 17 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 17 00 DB 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [10:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:42:50]wFMCommunicate OK [10:42:50]requested_item fd.num is exist - process it [10:42:50]SAM_PROTO_GetFieldsCounters [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 13 00 00 [10:42:50]Write to MH i2c: E2 08 00 DC 47 80 13 00 00 00 00 00 00 9F [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 62 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 62 00 DC 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:50]wFMCommunicate OK [10:42:50]SAM_PROTO_GetFieldsCounters done [10:42:50]requested_item shift.num is exist - process it [10:42:50]requested_item shift.opened is exist - process it [10:42:50]req_shift_opened [10:42:50]FM_GetShiftState [10:42:50]SAM_PROTO_GetShiftState [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 13 01 00 [10:42:50]Write to MH i2c: E2 08 00 DD 47 80 13 01 00 00 00 00 00 A1 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 0E 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 0E 00 DD 47 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EB [10:42:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:42:50]wFMCommunicate OK [10:42:50]SAM_PROTO_GetShiftState done [10:42:50]FM_GetShiftState done [10:42:50]req_shift_opened done [10:42:50]requested_item shift.open_date is exist - process it [10:42:50]req_shift_open_date [10:42:50]req_shift_open_date done [10:42:50]produce_requested_data done [10:42:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111297,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:42:50]process_action_free close_receipt [10:42:50]json_value_free [10:42:50]json_value_free done [10:42:50]process_json_proto returns [10:42:50]Send response to host [10:42:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111297,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:42:50]free response buf [10:42:50]execute_script done [10:42:50]execute_script returns [10:42:50]free content buf [10:42:50]Sock 8.Close socket [10:42:50]Sock 8.Thread stoped [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:30]accept exits with 9 [10:46:30]New connection [10:46:30]New thread 3067227492 created [10:46:30]Thread 3067084132 joined [10:46:30]Waiting for new connection... [10:46:30] Sock 9.Parse request [10:46:30]Sock 9.Check first char [10:46:30]Sock 9.First char is OK [10:46:30]request: POST /json_proto HTTP/1.0 [10:46:30]Method: POST [10:46:30]URL: /json_proto [10:46:30]Method is POST - this is cgi request [10:46:30]url: /json_proto [10:46:30]query_string will be loaded in cgi processing [10:46:30]execute_cgi json_proto POST (null) [10:46:30]execute_cgi path=json_proto method=POST [10:46:30]POST find Content-Length [10:46:30]Host: 172.17.59.68:8080 [10:46:30]Content-Length: 677 [10:46:30]Content-Type: application/json [10:46:30] [10:46:30]POST finish read [10:46:30]Found Content-Length = 677 [10:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:46:30]execute_script... [10:46: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)319867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:46:30]POST & json_proto [10:46:30]process_json_proto [10:46:30]json parsed OK: [10:46:30]protocol is kg_v1.0 [10:46:30]action value=close_receipt [10:46:30]process_action close_receipt [10:46:30]cmd_close_receipt [10:46:30]MH_GetDate [10:46:30]Write to MH i2c: F0 00 00 DE 47 14 [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: F0 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: F0 09 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: F0 09 00 DE 47 00 24 B7 72 66 BC EC 60 65 3D [10:46:30]GetLastDocTimeStamp 1718793796 [10:46:30]current date 1718794020 [10:46:30]FM_GetShiftState [10:46:30]SAM_PROTO_GetShiftState [10:46:30]wFMCommunicate request_size=4 [10:46:30]MH_SAM_APDU [10:46:30]CAPDU: 80 13 01 00 [10:46:30]Write to MH i2c: E2 08 00 DF 47 80 13 01 00 00 00 00 00 A3 [10:46:30]Write i2c OK [10:46:30]MH_I2C_Read... [10:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:30]Read from MH i2c: E2 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: E2 0E 00 [10:46:30]MH_I2C_Read... [10:46:30]Read from MH i2c: E2 0E 00 DF 47 00 09 00 01 31 35 72 66 00 00 00 00 90 00 ED [10:46:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:46:30]wFMCommunicate OK [10:46:30]SAM_PROTO_GetShiftState done [10:46:30]FM_GetShiftState done [10:46:30]opened in 1718760753 [10:46:30]opened+sec_in_day 1718847153 [10:46:30]quantity*price = 40039 [10:46:30]sum+1 = 40040 [10:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 47 19.06.2024 10:47 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111298 ФПД: 205944895271525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111298&fm=205944895271525&tin=02508201610067®Number=0000000000092771&sum=40000 [10:46:31]StoreToDocumentArchive [10:46:31]shift 388 fd 111298 [10:46:31]save to /storage/0388/doc_00111298 [10:46:31]save last doc name /storage/0388/doc_00111298 to /storage/kkm_last_doc_name [10:46:31]save OK [10:46:31]Clear old archive folders... [10:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:31]tlvbuf is 01989250 [10:46:31]SAM_PROTO_ClearQueue [10:46:31]wFMCommunicate request_size=4 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 09 00 00 [10:46:31]Write to MH i2c: E2 08 00 EC 47 80 09 00 00 00 00 00 00 A5 [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 03 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 03 00 EC 47 00 90 00 A7 [10:46:31]RAPDU: 90 00 [10:46:31]wFMCommunicate OK [10:46:31]SAM_PROTO_ClearQueue done [10:46:31]KKMCreateOFDPacket [10:46:31]OFDProtocolAddRootSTLVToBuf [10:46:31]FM_MakeSignedData [10:46:31]FM_MakeSignedData [10:46:31]SAM_PROTO_SignData [10:46:31]wFMCommunicate request_size=4 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 0D 01 02 [10:46:31]Write to MH i2c: E2 08 00 ED 47 80 0D 01 02 00 00 00 00 AD [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 03 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 03 00 ED 47 00 90 00 A8 [10:46:31]RAPDU: 90 00 [10:46:31]wFMCommunicate OK [10:46:31]wFMCommunicate request_size=255 [10:46:31]MH_SAM_APDU [10:46: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 2F 00 00 00 F4 03 04 00 24 B7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B2 01 00 35 04 06 00 BB [10:46:31]Write to MH i2c: E2 02 01 EE 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 2F 00 00 00 F4 03 04 00 24 B7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B2 01 00 35 04 06 00 BB 00 00 C6 [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 03 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 03 00 EE 47 00 90 00 A9 [10:46:31]RAPDU: 90 00 [10:46:31]wFMCommunicate OK [10:46:31]wFMCommunicate request_size=10 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 0D 02 02 05 4E 48 53 72 65 [10:46:31]Write to MH i2c: E2 0D 00 EF 47 80 0D 02 02 05 00 4E 48 53 72 65 00 00 7A [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 03 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 03 00 EF 47 00 90 00 AA [10:46:31]RAPDU: 90 00 [10:46:31]wFMCommunicate OK [10:46:31]wFMCommunicate request_size=4 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 0D 03 02 [10:46:31]Write to MH i2c: E2 08 00 F0 47 80 0D 03 02 00 00 00 00 B2 [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 0B 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 0B 00 F0 47 00 63 C9 91 16 EF ED 61 45 90 00 08 [10:46:31]RAPDU: 63 C9 91 16 EF ED 61 45 90 00 [10:46:31]wFMCommunicate OK [10:46:31]SAM_PROTO_SignData done [10:46:31]FM_MakeSignedData done [10:46:31]CreateOFDProtocolMessage [10:46:31]wFMCommunicate request_size=4 [10:46:31]MH_SAM_APDU [10:46:31]CAPDU: 80 11 00 00 [10:46:31]Write to MH i2c: E2 08 00 F1 47 80 11 00 00 00 00 00 00 B2 [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:31]Read from MH i2c: E2 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 17 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: E2 17 00 F1 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [10:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:46:31]wFMCommunicate OK [10:46:31]CreateOFDProtocolMessage done [10:46:31]OFDSenderStorePacket 111298 [10:46:31]StoreOFDPacket docnum=111298 [10:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2B 51 07 01 E6 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 2F 00 00 00 F4 03 04 00 24 B7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B2 01 00 35 04 06 00 BB 4E 48 53 72 65 63 C9 91 16 EF ED 61 45 [10:46:31]CheckFolder [10:46:31]dirname=/storage/ofd_packets [10:46:31]CheckFolder done [10:46:31]ProducePacketName [10:46:31]name=ofd_packets/00111298 [10:46:31]NVStorageSaveData ofd_packets/00111298 [10:46:31]File name is /storage/ofd_packets/00111298 [10:46:31]Write 301 bytes [10:46:31]NVStorageSaveData done [10:46:31]OFDSenderStorePacket done [10:46:31]KKMCreateOFDPacket done [10:46:31]NVStorageSaveData kkm_last_timestamp [10:46:31]File name is /storage/kkm_last_timestamp [10:46:31]Write 4 bytes [10:46:31]NVStorageSaveData done [10:46:31]ExternCall_PrintAddStr [10:46:31]wPrintStart [10:46:31]Write to MH i2c: 01 00 00 F2 47 39 [10:46:31]Write i2c OK [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: 01 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: 01 07 00 [10:46:31]MH_I2C_Read... [10:46:31]Read from MH i2c: 01 07 00 F2 47 00 00 00 00 00 FF 0F 4E [10:46:31]RasterBufferAndPrint [10:46:31]line Счет N : (1)319867 [10:46:31]line ИНН: 02508201610067 [10:46:31]line Контрольно-Кассовый Чек [10:46:31]line ПРОДАЖА [10:46:31]line ТРК (МРК, ГНК) : 11 [10:46:31]line Товар: 2710124130 [10:46:31]line Аи-92-К-5 [10:46:31]line 6.030 * 66.40 [10:46:31]line = 400.39 [10:46:31]line НДС 12% НСП 1% [10:46:31]line > о реализуемом товаре [10:46:31]line ОКРУГЛЕНИЕ: -0.39 [10:46:31]line ИТОГО: 400.00 [10:46:31]line Внесено: 400.00 [10:46:31]line СДАЧА: 0.00 [10:46:31]line НСП 1% : 3.54 [10:46:31]line НДС 12% : 42.52 [10:46:31]line Наличными: 400.00 [10:46:31]line Безнал.: 0.00 [10:46:31]line Место: АЗС № 65 "Партнер Нефть" [10:46:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:46:31]line СНО: Общий режим [10:46:31]line Чек 47 19.06.2024 10:47 [10:46:31]line Смена: 388 ФФД: 1.0 [10:46:31]line ЗНМ: 0300000198 [10:46:31]line РНМ: 0000000000092771 [10:46:31]line Версия ККМ: 001 [10:46:31]line ФМ: 0000000000875083 [10:46:31]line ФД: 111298 [10:46:31]line ФПД: 205944895271525 [10:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104700&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111298&fm=205944895271525&tin=02508201610067®Number=0000000000092771&sum=40000 [10:46:32]OFD Sender: Processing packet 111298 [packets to send 38, broken 37] [10:46:32]ProducePacketName [10:46:32]name=ofd_packets/00111298 [10:46:32]OFD Sender: To server: pG, [10:46:32]CommunicateWithHost lk.salyk.kg:30040 [10:46:32]ConnectInit lk.salyk.kg [10:46:32]written 0, free lines is 4095 [10:46:32]Connected sock=10 [10:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2B 51 07 01 E6 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 2F 00 00 00 F4 03 04 00 24 B7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B2 01 00 35 04 06 00 BB 4E 48 53 72 65 63 C9 91 16 EF ED 61 45 [10:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9A 86 47 00 4D 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 35 30 38 33 10 04 04 00 C2 B2 01 00 F4 03 04 00 90 4E 72 66 B6 04 01 00 00 DD 02 34 52 BD 19 5F C5 [10:46:32]CommunicateWithHost err = 0 [10:46:32]CheckOFDResponse [10:46:32]1017 (14) - 77093643461234 [10:46:32]1041 (16) - 0000000000875083 [10:46:32]1040 (4) - 111298 [10:46:32]1012 (4) - 19.06.2024 03:20 [10:46:32]1206 (1) - 0 [10:46:32]OFD Sender: Remove packet 111298 [10:46:32]ProducePacketName [10:46:32]name=ofd_packets/00111298 [10:46:32]NVStorageDeleteData [10:46:32]Write to MH i2c: 01 00 00 1D 48 65 [10:46:32]Write i2c OK [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: 01 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: 01 07 00 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: 01 07 00 1D 48 00 00 00 00 00 D4 0C 4C [10:46:32]RasterBufferAndPrint [10:46:32]line [10:46:32]line [10:46:32]line [10:46:32]line [10:46:32]line [10:46:32]written 0, free lines is 3292 [10:46:32]MH_Cut [10:46:32]Write to MH i2c: D1 01 00 24 48 01 3E [10:46:32]Write i2c OK [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: D1 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: D1 01 00 [10:46:32]MH_I2C_Read... [10:46:32]Read from MH i2c: D1 01 00 24 48 00 3D [10:46:32]Write to MH i2c: 01 00 00 25 48 6D [10:46:32]Write i2c OK [10:46:32]MH_I2C_Read... [10:46:33]OFD Sender: No OFD packet to send [10:46:33]*** Cut start [10:46:33]*** Partial cut [10:46:33]*** CUTSNS_PIN = 1 [10:46:33]*** CUTSNS_PIN = 0 [10:46:33]*** Brake cut motor [10:46:34]Read from MH i2c: 01 [10:46:34]MH_I2C_Read... [10:46:34]*** Stop cut motor [10:46:34]*** Cut end [10:46:34]Read from MH i2c: 01 07 00 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: 01 07 00 25 48 00 00 00 00 00 FF 0F 82 [10:46:34]process_action close_receipt done [10:46:34]requested_data is exist [10:46:34]produce_requested_data [10:46:34]requested_item fm.sn is exist - process it [10:46:34]wFMCommunicate request_size=4 [10:46:34]MH_SAM_APDU [10:46:34]CAPDU: 80 11 00 00 [10:46:34]Write to MH i2c: E2 08 00 26 48 80 11 00 00 00 00 00 00 E8 [10:46:34]Write i2c OK [10:46:34]MH_I2C_Read... [10:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:34]Read from MH i2c: E2 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: E2 17 00 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: E2 17 00 26 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3A [10:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:46:34]wFMCommunicate OK [10:46:34]requested_item fd.num is exist - process it [10:46:34]SAM_PROTO_GetFieldsCounters [10:46:34]wFMCommunicate request_size=4 [10:46:34]MH_SAM_APDU [10:46:34]CAPDU: 80 13 00 00 [10:46:34]Write to MH i2c: E2 08 00 27 48 80 13 00 00 00 00 00 00 EB [10:46:34]Write i2c OK [10:46:34]MH_I2C_Read... [10:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:34]Read from MH i2c: E2 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: E2 62 00 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: E2 62 00 27 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [10:46: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:34]wFMCommunicate OK [10:46:34]SAM_PROTO_GetFieldsCounters done [10:46:34]requested_item shift.num is exist - process it [10:46:34]requested_item shift.opened is exist - process it [10:46:34]req_shift_opened [10:46:34]FM_GetShiftState [10:46:34]SAM_PROTO_GetShiftState [10:46:34]wFMCommunicate request_size=4 [10:46:34]MH_SAM_APDU [10:46:34]CAPDU: 80 13 01 00 [10:46:34]Write to MH i2c: E2 08 00 28 48 80 13 01 00 00 00 00 00 ED [10:46:34]Write i2c OK [10:46:34]MH_I2C_Read... [10:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:34]Read from MH i2c: E2 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: E2 0E 00 [10:46:34]MH_I2C_Read... [10:46:34]Read from MH i2c: E2 0E 00 28 48 00 09 00 01 31 35 72 66 00 00 00 00 90 00 37 [10:46:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:46:34]wFMCommunicate OK [10:46:34]SAM_PROTO_GetShiftState done [10:46:34]FM_GetShiftState done [10:46:34]req_shift_opened done [10:46:34]requested_item shift.open_date is exist - process it [10:46:34]req_shift_open_date [10:46:34]req_shift_open_date done [10:46:34]produce_requested_data done [10:46:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111298,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:46:34]process_action_free close_receipt [10:46:34]json_value_free [10:46:34]json_value_free done [10:46:34]process_json_proto returns [10:46:34]Send response to host [10:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111298,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:46:34]free response buf [10:46:34]execute_script done [10:46:34]execute_script returns [10:46:34]free content buf [10:46:34]Sock 9.Close socket [10:46:34]Sock 9.Thread stoped [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:19]accept exits with 8 [10:48:19]New connection [10:48:19]New thread 3067084132 created [10:48:19]Thread 3067227492 joined [10:48:19]Waiting for new connection... [10:48:19] Sock 8.Parse request [10:48:19]Sock 8.Check first char [10:48:19]Sock 8.First char is OK [10:48:19]request: POST /json_proto HTTP/1.0 [10:48:19]Method: POST [10:48:19]URL: /json_proto [10:48:19]Method is POST - this is cgi request [10:48:19]url: /json_proto [10:48:19]query_string will be loaded in cgi processing [10:48:19]execute_cgi json_proto POST (null) [10:48:19]execute_cgi path=json_proto method=POST [10:48:19]POST find Content-Length [10:48:19]Host: 172.17.59.68:8080 [10:48:19]Content-Length: 682 [10:48:19]Content-Type: application/json [10:48:19] [10:48:19]POST finish read [10:48:19]Found Content-Length = 682 [10:48:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:19]execute_script... [10:48: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)319868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:19]POST & json_proto [10:48:19]process_json_proto [10:48:19]json parsed OK: [10:48:19]protocol is kg_v1.0 [10:48:19]action value=close_receipt [10:48:19]process_action close_receipt [10:48:19]cmd_close_receipt [10:48:19]MH_GetDate [10:48:19]Write to MH i2c: F0 00 00 29 48 60 [10:48:19]Write i2c OK [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: F0 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: F0 09 00 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: F0 09 00 29 48 00 92 B7 72 66 BC EC 60 65 F7 [10:48:19]GetLastDocTimeStamp 1718794020 [10:48:19]current date 1718794130 [10:48:19]FM_GetShiftState [10:48:19]SAM_PROTO_GetShiftState [10:48:19]wFMCommunicate request_size=4 [10:48:19]MH_SAM_APDU [10:48:19]CAPDU: 80 13 01 00 [10:48:19]Write to MH i2c: E2 08 00 2A 48 80 13 01 00 00 00 00 00 EF [10:48:19]Write i2c OK [10:48:19]MH_I2C_Read... [10:48:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:19]Read from MH i2c: E2 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: E2 0E 00 [10:48:19]MH_I2C_Read... [10:48:19]Read from MH i2c: E2 0E 00 2A 48 00 09 00 01 31 35 72 66 00 00 00 00 90 00 39 [10:48:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:48:19]wFMCommunicate OK [10:48:19]SAM_PROTO_GetShiftState done [10:48:19]FM_GetShiftState done [10:48:19]opened in 1718760753 [10:48:19]opened+sec_in_day 1718847153 [10:48:19]quantity*price = 100064 [10:48:19]sum+1 = 100066 [10:48:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 48 19.06.2024 10:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111299 ФПД: 80876664832365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104850&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111299&fm=80876664832365&tin=02508201610067®Number=0000000000092771&sum=100000 [10:48:20]StoreToDocumentArchive [10:48:20]shift 388 fd 111299 [10:48:20]save to /storage/0388/doc_00111299 [10:48:20]save last doc name /storage/0388/doc_00111299 to /storage/kkm_last_doc_name [10:48:20]save OK [10:48:20]Clear old archive folders... [10:48:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:20]tlvbuf is 0198EB60 [10:48:20]SAM_PROTO_ClearQueue [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 09 00 00 [10:48:20]Write to MH i2c: E2 08 00 37 48 80 09 00 00 00 00 00 00 F1 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 37 48 00 90 00 F3 [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]SAM_PROTO_ClearQueue done [10:48:20]KKMCreateOFDPacket [10:48:20]OFDProtocolAddRootSTLVToBuf [10:48:20]FM_MakeSignedData [10:48:20]FM_MakeSignedData [10:48:20]SAM_PROTO_SignData [10:48:20]wFMCommunicate request_size=4 [10:48:20]MH_SAM_APDU [10:48:20]CAPDU: 80 0D 01 02 [10:48:20]Write to MH i2c: E2 08 00 38 48 80 0D 01 02 00 00 00 00 F9 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:20]Read from MH i2c: E2 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 [10:48:20]MH_I2C_Read... [10:48:20]Read from MH i2c: E2 03 00 38 48 00 90 00 F4 [10:48:20]RAPDU: 90 00 [10:48:20]wFMCommunicate OK [10:48:20]wFMCommunicate request_size=255 [10:48:20]MH_SAM_APDU [10:48: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 92 B7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B2 01 00 35 04 06 00 49 [10:48:20]Write to MH i2c: E2 02 01 39 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 92 B7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B2 01 00 35 04 06 00 49 00 00 92 [10:48:20]Write i2c OK [10:48:20]MH_I2C_Read... [10:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:21]Read from MH i2c: E2 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 03 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 03 00 39 48 00 90 00 F5 [10:48:21]RAPDU: 90 00 [10:48:21]wFMCommunicate OK [10:48:21]wFMCommunicate request_size=10 [10:48:21]MH_SAM_APDU [10:48:21]CAPDU: 80 0D 02 02 05 8E 90 E0 C1 6D [10:48:21]Write to MH i2c: E2 0D 00 3A 48 80 0D 02 02 05 00 8E 90 E0 C1 6D 00 00 32 [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:21]Read from MH i2c: E2 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 03 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 03 00 3A 48 00 90 00 F6 [10:48:21]RAPDU: 90 00 [10:48:21]wFMCommunicate OK [10:48:21]wFMCommunicate request_size=4 [10:48:21]MH_SAM_APDU [10:48:21]CAPDU: 80 0D 03 02 [10:48:21]Write to MH i2c: E2 08 00 3B 48 80 0D 03 02 00 00 00 00 FE [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:21]Read from MH i2c: E2 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 0B 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 0B 00 3B 48 00 65 D6 ED AF EB 87 B0 6B 90 00 63 [10:48:21]RAPDU: 65 D6 ED AF EB 87 B0 6B 90 00 [10:48:21]wFMCommunicate OK [10:48:21]SAM_PROTO_SignData done [10:48:21]FM_MakeSignedData done [10:48:21]CreateOFDProtocolMessage [10:48:21]wFMCommunicate request_size=4 [10:48:21]MH_SAM_APDU [10:48:21]CAPDU: 80 11 00 00 [10:48:21]Write to MH i2c: E2 08 00 3C 48 80 11 00 00 00 00 00 00 FE [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:21]Read from MH i2c: E2 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 17 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: E2 17 00 3C 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [10:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:48:21]wFMCommunicate OK [10:48:21]CreateOFDProtocolMessage done [10:48:21]OFDSenderStorePacket 111299 [10:48:21]StoreOFDPacket docnum=111299 [10:48:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 E3 07 01 63 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 92 B7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B2 01 00 35 04 06 00 49 8E 90 E0 C1 6D 65 D6 ED AF EB 87 B0 6B [10:48:21]CheckFolder [10:48:21]dirname=/storage/ofd_packets [10:48:21]CheckFolder done [10:48:21]ProducePacketName [10:48:21]name=ofd_packets/00111299 [10:48:21]NVStorageSaveData ofd_packets/00111299 [10:48:21]File name is /storage/ofd_packets/00111299 [10:48:21]Write 301 bytes [10:48:21]NVStorageSaveData done [10:48:21]OFDSenderStorePacket done [10:48:21]KKMCreateOFDPacket done [10:48:21]NVStorageSaveData kkm_last_timestamp [10:48:21]File name is /storage/kkm_last_timestamp [10:48:21]Write 4 bytes [10:48:21]NVStorageSaveData done [10:48:21]ExternCall_PrintAddStr [10:48:21]wPrintStart [10:48:21]Write to MH i2c: 01 00 00 3D 48 85 [10:48:21]Write i2c OK [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 07 00 [10:48:21]MH_I2C_Read... [10:48:21]Read from MH i2c: 01 07 00 3D 48 00 00 00 00 00 FF 0F 9A [10:48:21]RasterBufferAndPrint [10:48:21]line Счет N : (1)319868 [10:48:21]line ИНН: 02508201610067 [10:48:21]line Контрольно-Кассовый Чек [10:48:21]line ПРОДАЖА [10:48:21]line ТРК (МРК, ГНК) : 11 [10:48:21]line Товар: 2710124130 [10:48:21]line Аи-92-К-5 [10:48:21]line 15.070 * 66.40 [10:48:21]line = 1000.65 [10:48:21]line НДС 12% НСП 1% [10:48:21]line > о реализуемом товаре [10:48:21]line ОКРУГЛЕНИЕ: -0.65 [10:48:21]line ИТОГО: 1000.00 [10:48:21]line Внесено: 1000.00 [10:48:21]line СДАЧА: 0.00 [10:48:21]line НСП 1% : 8.85 [10:48:21]line НДС 12% : 106.26 [10:48:21]line Наличными: 1000.00 [10:48:21]line Безнал.: 0.00 [10:48:21]line Место: АЗС № 65 "Партнер Нефть" [10:48:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:48:21]line СНО: Общий режим [10:48:21]line Чек 48 19.06.2024 10:48 [10:48:21]line Смена: 388 ФФД: 1.0 [10:48:21]line ЗНМ: 0300000198 [10:48:21]line РНМ: 0000000000092771 [10:48:21]line Версия ККМ: 001 [10:48:21]line ФМ: 0000000000875083 [10:48:21]line ФД: 111299 [10:48:21]line ФПД: 80876664832365 [10:48:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T104850&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111299&fm=80876664832365&tin=02508201610067®Number=0000000000092771&sum=100000 [10:48:21]OFD Sender: Processing packet 111299 [packets to send 38, broken 37] [10:48:21]ProducePacketName [10:48:21]name=ofd_packets/00111299 [10:48:21]OFD Sender: To server: pG, [10:48:21]CommunicateWithHost lk.salyk.kg:30040 [10:48:21]ConnectInit lk.salyk.kg [10:48:21]written 0, free lines is 4095 [10:48:21]Connected sock=10 [10:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B4 E3 07 01 63 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 92 B7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B2 01 00 35 04 06 00 49 8E 90 E0 C1 6D 65 D6 ED AF EB 87 B0 6B [10:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 07 48 47 00 6D 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 35 30 38 33 10 04 04 00 C3 B2 01 00 F4 03 04 00 FE 4E 72 66 B6 04 01 00 00 B7 58 22 C6 D3 77 39 1C [10:48:21]CommunicateWithHost err = 0 [10:48:21]CheckOFDResponse [10:48:21]1017 (14) - 77093643461234 [10:48:21]1041 (16) - 0000000000875083 [10:48:21]1040 (4) - 111299 [10:48:21]1012 (4) - 19.06.2024 03:22 [10:48:21]1206 (1) - 0 [10:48:21]OFD Sender: Remove packet 111299 [10:48:21]ProducePacketName [10:48:21]name=ofd_packets/00111299 [10:48:21]NVStorageDeleteData [10:48:22]Write to MH i2c: 01 00 00 68 48 B0 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: 01 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: 01 07 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: 01 07 00 68 48 00 00 00 00 00 CE 0C 91 [10:48:22]RasterBufferAndPrint [10:48:22]line [10:48:22]line [10:48:22]line [10:48:22]line [10:48:22]line [10:48:22]written 0, free lines is 3285 [10:48:22]MH_Cut [10:48:22]Write to MH i2c: D1 01 00 6F 48 01 89 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: D1 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: D1 01 00 [10:48:22]MH_I2C_Read... [10:48:22]Read from MH i2c: D1 01 00 6F 48 00 88 [10:48:22]Write to MH i2c: 01 00 00 70 48 B8 [10:48:22]Write i2c OK [10:48:22]MH_I2C_Read... [10:48:22]OFD Sender: No OFD packet to send [10:48:22]*** Cut start [10:48:22]*** Partial cut [10:48:22]*** CUTSNS_PIN = 1 [10:48:22]*** CUTSNS_PIN = 0 [10:48:23]*** Brake cut motor [10:48:23]Read from MH i2c: 01 [10:48:23]MH_I2C_Read... [10:48:23]*** Stop cut motor [10:48:23]*** Cut end [10:48:23]Read from MH i2c: 01 07 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: 01 07 00 70 48 00 00 00 00 00 FF 0F CD [10:48:23]process_action close_receipt done [10:48:23]requested_data is exist [10:48:23]produce_requested_data [10:48:23]requested_item fm.sn is exist - process it [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 11 00 00 [10:48:23]Write to MH i2c: E2 08 00 71 48 80 11 00 00 00 00 00 00 33 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 17 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 17 00 71 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 85 [10:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:48:23]wFMCommunicate OK [10:48:23]requested_item fd.num is exist - process it [10:48:23]SAM_PROTO_GetFieldsCounters [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 13 00 00 [10:48:23]Write to MH i2c: E2 08 00 72 48 80 13 00 00 00 00 00 00 36 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 62 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 62 00 72 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [10:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_GetFieldsCounters done [10:48:23]requested_item shift.num is exist - process it [10:48:23]requested_item shift.opened is exist - process it [10:48:23]req_shift_opened [10:48:23]FM_GetShiftState [10:48:23]SAM_PROTO_GetShiftState [10:48:23]wFMCommunicate request_size=4 [10:48:23]MH_SAM_APDU [10:48:23]CAPDU: 80 13 01 00 [10:48:23]Write to MH i2c: E2 08 00 73 48 80 13 01 00 00 00 00 00 38 [10:48:23]Write i2c OK [10:48:23]MH_I2C_Read... [10:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:23]Read from MH i2c: E2 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0E 00 [10:48:23]MH_I2C_Read... [10:48:23]Read from MH i2c: E2 0E 00 73 48 00 09 00 01 31 35 72 66 00 00 00 00 90 00 82 [10:48:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:48:23]wFMCommunicate OK [10:48:23]SAM_PROTO_GetShiftState done [10:48:23]FM_GetShiftState done [10:48:23]req_shift_opened done [10:48:23]requested_item shift.open_date is exist - process it [10:48:23]req_shift_open_date [10:48:23]req_shift_open_date done [10:48:23]produce_requested_data done [10:48:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111299,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:48:23]process_action_free close_receipt [10:48:23]json_value_free [10:48:23]json_value_free done [10:48:23]process_json_proto returns [10:48:23]Send response to host [10:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111299,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:48:23]free response buf [10:48:23]execute_script done [10:48:23]execute_script returns [10:48:23]free content buf [10:48:23]Sock 8.Close socket [10:48:23]Sock 8.Thread stoped [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:01]accept exits with 9 [10:53:01]New connection [10:53:01]New thread 3067227492 created [10:53:01]Thread 3067084132 joined [10:53:01]Waiting for new connection... [10:53:01] Sock 9.Parse request [10:53:01]Sock 9.Check first char [10:53:01]Sock 9.First char is OK [10:53:01]request: POST /json_proto HTTP/1.0 [10:53:01]Method: POST [10:53:01]URL: /json_proto [10:53:01]Method is POST - this is cgi request [10:53:01]url: /json_proto [10:53:01]query_string will be loaded in cgi processing [10:53:01]execute_cgi json_proto POST (null) [10:53:01]execute_cgi path=json_proto method=POST [10:53:01]POST find Content-Length [10:53:01]Host: 172.17.59.68:8080 [10:53:01]Content-Length: 677 [10:53:01]Content-Type: application/json [10:53:01] [10:53:01]POST finish read [10:53:01]Found Content-Length = 677 [10:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.410, "sum" : 160.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:01]execute_script... [10:53:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.410, "sum" : 160.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 160.00, "total" : 160.00, "payments": [ { "type": 0, "sum" : 160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:01]POST & json_proto [10:53:01]process_json_proto [10:53:01]json parsed OK: [10:53:01]protocol is kg_v1.0 [10:53:01]action value=close_receipt [10:53:01]process_action close_receipt [10:53:01]cmd_close_receipt [10:53:01]MH_GetDate [10:53:01]Write to MH i2c: F0 00 00 74 48 AB [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: F0 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: F0 09 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: F0 09 00 74 48 00 AC B8 72 66 BC EC 60 65 5D [10:53:01]GetLastDocTimeStamp 1718794130 [10:53:01]current date 1718794412 [10:53:01]FM_GetShiftState [10:53:01]SAM_PROTO_GetShiftState [10:53:01]wFMCommunicate request_size=4 [10:53:01]MH_SAM_APDU [10:53:01]CAPDU: 80 13 01 00 [10:53:01]Write to MH i2c: E2 08 00 75 48 80 13 01 00 00 00 00 00 3A [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:01]Read from MH i2c: E2 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 0E 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: E2 0E 00 75 48 00 09 00 01 31 35 72 66 00 00 00 00 90 00 84 [10:53:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:53:01]wFMCommunicate OK [10:53:01]SAM_PROTO_GetShiftState done [10:53:01]FM_GetShiftState done [10:53:01]opened in 1718760753 [10:53:01]opened+sec_in_day 1718847153 [10:53:01]quantity*price = 16002 [10:53:01]sum+1 = 16003 [10:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 160.00 Внесено: 160.00 СДАЧА: 0.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 49 19.06.2024 10:53 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111300 ФПД: 149669685561224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105332&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111300&fm=149669685561224&tin=02508201610067®Number=0000000000092771&sum=16000 [10:53:03]StoreToDocumentArchive [10:53:03]shift 388 fd 111300 [10:53:03]save to /storage/0388/doc_00111300 [10:53:03]save last doc name /storage/0388/doc_00111300 to /storage/kkm_last_doc_name [10:53:03]save OK [10:53:03]Clear old archive folders... [10:53:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:03]tlvbuf is B6F9BA90 [10:53:03]SAM_PROTO_ClearQueue [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 09 00 00 [10:53:03]Write to MH i2c: E2 08 00 82 48 80 09 00 00 00 00 00 00 3C [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 82 48 00 90 00 3E [10:53:03]RAPDU: 90 00 [10:53:03]wFMCommunicate OK [10:53:03]SAM_PROTO_ClearQueue done [10:53:03]KKMCreateOFDPacket [10:53:03]OFDProtocolAddRootSTLVToBuf [10:53:03]FM_MakeSignedData [10:53:03]FM_MakeSignedData [10:53:03]SAM_PROTO_SignData [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 0D 01 02 [10:53:03]Write to MH i2c: E2 08 00 83 48 80 0D 01 02 00 00 00 00 44 [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 83 48 00 90 00 3F [10:53:03]RAPDU: 90 00 [10:53:03]wFMCommunicate OK [10:53:03]wFMCommunicate request_size=255 [10:53:03]MH_SAM_APDU [10:53: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 6A 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 82 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AC B8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B2 01 00 35 04 06 00 88 [10:53:03]Write to MH i2c: E2 02 01 84 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 6A 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 82 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AC B8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B2 01 00 35 04 06 00 88 00 00 2E [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 84 48 00 90 00 40 [10:53:03]RAPDU: 90 00 [10:53:03]wFMCommunicate OK [10:53:03]wFMCommunicate request_size=10 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 0D 02 02 05 1F B0 71 07 88 [10:53:03]Write to MH i2c: E2 0D 00 85 48 80 0D 02 02 05 00 1F B0 71 07 88 00 00 20 [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 03 00 85 48 00 90 00 41 [10:53:03]RAPDU: 90 00 [10:53:03]wFMCommunicate OK [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 0D 03 02 [10:53:03]Write to MH i2c: E2 08 00 86 48 80 0D 03 02 00 00 00 00 49 [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 0B 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 0B 00 86 48 00 6F 9A DD F3 7C 60 54 3D 90 00 90 [10:53:03]RAPDU: 6F 9A DD F3 7C 60 54 3D 90 00 [10:53:03]wFMCommunicate OK [10:53:03]SAM_PROTO_SignData done [10:53:03]FM_MakeSignedData done [10:53:03]CreateOFDProtocolMessage [10:53:03]wFMCommunicate request_size=4 [10:53:03]MH_SAM_APDU [10:53:03]CAPDU: 80 11 00 00 [10:53:03]Write to MH i2c: E2 08 00 87 48 80 11 00 00 00 00 00 00 49 [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:03]Read from MH i2c: E2 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 17 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: E2 17 00 87 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [10:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:53:03]wFMCommunicate OK [10:53:03]CreateOFDProtocolMessage done [10:53:03]OFDSenderStorePacket 111300 [10:53:03]StoreOFDPacket docnum=111300 [10:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 BA 07 01 4B A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 82 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AC B8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B2 01 00 35 04 06 00 88 1F B0 71 07 88 6F 9A DD F3 7C 60 54 3D [10:53:03]CheckFolder [10:53:03]dirname=/storage/ofd_packets [10:53:03]CheckFolder done [10:53:03]ProducePacketName [10:53:03]name=ofd_packets/00111300 [10:53:03]NVStorageSaveData ofd_packets/00111300 [10:53:03]File name is /storage/ofd_packets/00111300 [10:53:03]Write 301 bytes [10:53:03]NVStorageSaveData done [10:53:03]OFDSenderStorePacket done [10:53:03]KKMCreateOFDPacket done [10:53:03]NVStorageSaveData kkm_last_timestamp [10:53:03]File name is /storage/kkm_last_timestamp [10:53:03]Write 4 bytes [10:53:03]NVStorageSaveData done [10:53:03]ExternCall_PrintAddStr [10:53:03]wPrintStart [10:53:03]Write to MH i2c: 01 00 00 88 48 D0 [10:53:03]Write i2c OK [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: 01 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: 01 07 00 [10:53:03]MH_I2C_Read... [10:53:03]Read from MH i2c: 01 07 00 88 48 00 00 00 00 00 FF 0F E5 [10:53:03]RasterBufferAndPrint [10:53:03]line Счет N : (1)319869 [10:53:03]line ИНН: 02508201610067 [10:53:03]line Контрольно-Кассовый Чек [10:53:03]line ПРОДАЖА [10:53:03]line ТРК (МРК, ГНК) : 11 [10:53:03]line Товар: 2710124130 [10:53:03]line Аи-92-К-5 [10:53:03]line 2.410 * 66.40 [10:53:03]line = 160.02 [10:53:03]line НДС 12% НСП 1% [10:53:03]line > о реализуемом товаре [10:53:03]line ОКРУГЛЕНИЕ: -0.02 [10:53:03]line ИТОГО: 160.00 [10:53:03]line Внесено: 160.00 [10:53:03]line СДАЧА: 0.00 [10:53:03]line НСП 1% : 1.42 [10:53:03]line НДС 12% : 16.99 [10:53:03]line Наличными: 160.00 [10:53:03]line Безнал.: 0.00 [10:53:03]line Место: АЗС № 65 "Партнер Нефть" [10:53:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:53:03]line СНО: Общий режим [10:53:03]line Чек 49 19.06.2024 10:53 [10:53:03]line Смена: 388 ФФД: 1.0 [10:53:03]line ЗНМ: 0300000198 [10:53:03]line РНМ: 0000000000092771 [10:53:03]line Версия ККМ: 001 [10:53:03]line ФМ: 0000000000875083 [10:53:03]line ФД: 111300 [10:53:03]line ФПД: 149669685561224 [10:53:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105332&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111300&fm=149669685561224&tin=02508201610067®Number=0000000000092771&sum=16000 [10:53:03]OFD Sender: Processing packet 111300 [packets to send 38, broken 37] [10:53:03]ProducePacketName [10:53:03]name=ofd_packets/00111300 [10:53:03]OFD Sender: To server: pG, [10:53:03]CommunicateWithHost lk.salyk.kg:30040 [10:53:03]ConnectInit lk.salyk.kg [10:53:03]written 0, free lines is 4095 [10:53:03]Connected sock=10 [10:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 BA 07 01 4B A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 09 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 82 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AC B8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B2 01 00 35 04 06 00 88 1F B0 71 07 88 6F 9A DD F3 7C 60 54 3D [10:53:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 33 83 47 00 EA 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 35 30 38 33 10 04 04 00 C4 B2 01 00 F4 03 04 00 18 50 72 66 B6 04 01 00 00 AB D1 98 01 09 4D 0F 28 [10:53:04]CommunicateWithHost err = 0 [10:53:04]CheckOFDResponse [10:53:04]1017 (14) - 77093643461234 [10:53:04]1041 (16) - 0000000000875083 [10:53:04]1040 (4) - 111300 [10:53:04]1012 (4) - 19.06.2024 03:27 [10:53:04]1206 (1) - 0 [10:53:04]OFD Sender: Remove packet 111300 [10:53:04]ProducePacketName [10:53:04]name=ofd_packets/00111300 [10:53:04]NVStorageDeleteData [10:53:04]Write to MH i2c: 01 00 00 B3 48 FB [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: 01 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: 01 07 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: 01 07 00 B3 48 00 00 00 00 00 CF 0C DD [10:53:04]RasterBufferAndPrint [10:53:04]line [10:53:04]line [10:53:04]line [10:53:04]line [10:53:04]line [10:53:04]written 0, free lines is 3287 [10:53:04]MH_Cut [10:53:04]Write to MH i2c: D1 01 00 BA 48 01 D4 [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: D1 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: D1 01 00 [10:53:04]MH_I2C_Read... [10:53:04]Read from MH i2c: D1 01 00 BA 48 00 D3 [10:53:04]Write to MH i2c: 01 00 00 BB 48 03 [10:53:04]Write i2c OK [10:53:04]MH_I2C_Read... [10:53:04]OFD Sender: No OFD packet to send [10:53:05]*** Cut start [10:53:05]*** Partial cut [10:53:05]*** CUTSNS_PIN = 1 [10:53:05]*** CUTSNS_PIN = 0 [10:53:05]*** Brake cut motor [10:53:05]Read from MH i2c: 01 [10:53:05]MH_I2C_Read... [10:53:05]*** Stop cut motor [10:53:05]*** Cut end [10:53:05]Read from MH i2c: 01 07 00 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: 01 07 00 BB 48 00 00 00 00 00 FF 0F 18 [10:53:05]process_action close_receipt done [10:53:05]requested_data is exist [10:53:05]produce_requested_data [10:53:05]requested_item fm.sn is exist - process it [10:53:05]wFMCommunicate request_size=4 [10:53:05]MH_SAM_APDU [10:53:05]CAPDU: 80 11 00 00 [10:53:05]Write to MH i2c: E2 08 00 BC 48 80 11 00 00 00 00 00 00 7E [10:53:05]Write i2c OK [10:53:05]MH_I2C_Read... [10:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:05]Read from MH i2c: E2 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 17 00 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 17 00 BC 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [10:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:53:05]wFMCommunicate OK [10:53:05]requested_item fd.num is exist - process it [10:53:05]SAM_PROTO_GetFieldsCounters [10:53:05]wFMCommunicate request_size=4 [10:53:05]MH_SAM_APDU [10:53:05]CAPDU: 80 13 00 00 [10:53:05]Write to MH i2c: E2 08 00 BD 48 80 13 00 00 00 00 00 00 81 [10:53:05]Write i2c OK [10:53:05]MH_I2C_Read... [10:53:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:05]Read from MH i2c: E2 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 62 00 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 62 00 BD 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [10:53:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:05]wFMCommunicate OK [10:53:05]SAM_PROTO_GetFieldsCounters done [10:53:05]requested_item shift.num is exist - process it [10:53:05]requested_item shift.opened is exist - process it [10:53:05]req_shift_opened [10:53:05]FM_GetShiftState [10:53:05]SAM_PROTO_GetShiftState [10:53:05]wFMCommunicate request_size=4 [10:53:05]MH_SAM_APDU [10:53:05]CAPDU: 80 13 01 00 [10:53:05]Write to MH i2c: E2 08 00 BE 48 80 13 01 00 00 00 00 00 83 [10:53:05]Write i2c OK [10:53:05]MH_I2C_Read... [10:53:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:05]Read from MH i2c: E2 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 0E 00 [10:53:05]MH_I2C_Read... [10:53:05]Read from MH i2c: E2 0E 00 BE 48 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CD [10:53:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:53:05]wFMCommunicate OK [10:53:05]SAM_PROTO_GetShiftState done [10:53:05]FM_GetShiftState done [10:53:05]req_shift_opened done [10:53:05]requested_item shift.open_date is exist - process it [10:53:05]req_shift_open_date [10:53:05]req_shift_open_date done [10:53:05]produce_requested_data done [10:53:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111300,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:53:05]process_action_free close_receipt [10:53:05]json_value_free [10:53:05]json_value_free done [10:53:05]process_json_proto returns [10:53:05]Send response to host [10:53:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111300,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:53:05]free response buf [10:53:05]execute_script done [10:53:05]execute_script returns [10:53:05]free content buf [10:53:05]Sock 9.Close socket [10:53:05]Sock 9.Thread stoped [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:22]accept exits with 8 [10:55:22]New connection [10:55:22]New thread 3067084132 created [10:55:22]Thread 3067227492 joined [10:55:22]Waiting for new connection... [10:55:22] Sock 8.Parse request [10:55:22]Sock 8.Check first char [10:55:22]Sock 8.First char is OK [10:55:22]request: POST /json_proto HTTP/1.0 [10:55:22]Method: POST [10:55:22]URL: /json_proto [10:55:22]Method is POST - this is cgi request [10:55:22]url: /json_proto [10:55:22]query_string will be loaded in cgi processing [10:55:22]execute_cgi json_proto POST (null) [10:55:22]execute_cgi path=json_proto method=POST [10:55:22]POST find Content-Length [10:55:22]Host: 172.17.59.68:8080 [10:55:22]Content-Length: 639 [10:55:22]Content-Type: application/json [10:55:22] [10:55:22]POST finish read [10:55:22]Found Content-Length = 639 [10:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.000, "sum" : 2187.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:22]execute_script... [10:55:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 30.000, "sum" : 2187.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2187.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:22]POST & json_proto [10:55:22]process_json_proto [10:55:22]json parsed OK: [10:55:22]protocol is kg_v1.0 [10:55:22]action value=close_receipt [10:55:22]process_action close_receipt [10:55:22]cmd_close_receipt [10:55:22]MH_GetDate [10:55:22]Write to MH i2c: F0 00 00 BF 48 F6 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: F0 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: F0 09 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: F0 09 00 BF 48 00 39 B9 72 66 BC EC 60 65 36 [10:55:22]GetLastDocTimeStamp 1718794412 [10:55:22]current date 1718794553 [10:55:22]FM_GetShiftState [10:55:22]SAM_PROTO_GetShiftState [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 13 01 00 [10:55:22]Write to MH i2c: E2 08 00 C0 48 80 13 01 00 00 00 00 00 85 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 0E 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 0E 00 C0 48 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CF [10:55:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:55:22]wFMCommunicate OK [10:55:22]SAM_PROTO_GetShiftState done [10:55:22]FM_GetShiftState done [10:55:22]opened in 1718760753 [10:55:22]opened+sec_in_day 1718847153 [10:55:22]quantity*price = 218700 [10:55:22]sum+1 = 218701 [10:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2187.00 НСП 1% : 19.35 НДС 12% : 232.25 Наличными: 2187.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 50 19.06.2024 10:55 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111301 ФПД: 202074180004015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105553&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111301&fm=202074180004015&tin=02508201610067®Number=0000000000092771&sum=218700 [10:55:24]StoreToDocumentArchive [10:55:24]shift 388 fd 111301 [10:55:24]save to /storage/0388/doc_00111301 [10:55:24]save last doc name /storage/0388/doc_00111301 to /storage/kkm_last_doc_name [10:55:24]save OK [10:55:24]Clear old archive folders... [10:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:55:24]tlvbuf is 019F6E20 [10:55:24]SAM_PROTO_ClearQueue [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 09 00 00 [10:55:24]Write to MH i2c: E2 08 00 CD 48 80 09 00 00 00 00 00 00 87 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 CD 48 00 90 00 89 [10:55:24]RAPDU: 90 00 [10:55:24]wFMCommunicate OK [10:55:24]SAM_PROTO_ClearQueue done [10:55:24]KKMCreateOFDPacket [10:55:24]OFDProtocolAddRootSTLVToBuf [10:55:24]FM_MakeSignedData [10:55:24]FM_MakeSignedData [10:55:24]SAM_PROTO_SignData [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 0D 01 02 [10:55:24]Write to MH i2c: E2 08 00 CE 48 80 0D 01 02 00 00 00 00 8F [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 CE 48 00 90 00 8A [10:55:24]RAPDU: 90 00 [10:55:24]wFMCommunicate OK [10:55:24]wFMCommunicate request_size=255 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 4C 56 03 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 39 B9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B2 01 00 35 04 06 00 B7 C9 0F B7 [10:55:24]Write to MH i2c: E2 02 01 CF 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 4C 56 03 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 39 B9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B2 01 00 35 04 06 00 B7 C9 0F B7 00 00 FE [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 CF 48 00 90 00 8B [10:55:24]RAPDU: 90 00 [10:55:24]wFMCommunicate OK [10:55:24]wFMCommunicate request_size=7 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 0D 02 02 02 A8 AF [10:55:24]Write to MH i2c: E2 0A 00 D0 48 80 0D 02 02 02 00 A8 AF 00 00 ED [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 03 00 D0 48 00 90 00 8C [10:55:24]RAPDU: 90 00 [10:55:24]wFMCommunicate OK [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 0D 03 02 [10:55:24]Write to MH i2c: E2 08 00 D1 48 80 0D 03 02 00 00 00 00 94 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 0B 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 0B 00 D1 48 00 2F 56 45 30 3E 10 DB E3 90 00 9B [10:55:24]RAPDU: 2F 56 45 30 3E 10 DB E3 90 00 [10:55:24]wFMCommunicate OK [10:55:24]SAM_PROTO_SignData done [10:55:24]FM_MakeSignedData done [10:55:24]CreateOFDProtocolMessage [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 11 00 00 [10:55:24]Write to MH i2c: E2 08 00 D2 48 80 11 00 00 00 00 00 00 94 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 17 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 17 00 D2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [10:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:55:24]wFMCommunicate OK [10:55:24]CreateOFDProtocolMessage done [10:55:24]OFDSenderStorePacket 111301 [10:55:24]StoreOFDPacket docnum=111301 [10:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 5F B5 04 01 EB 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 4C 56 03 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 39 B9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B2 01 00 35 04 06 00 B7 C9 0F B7 A8 AF 2F 56 45 30 3E 10 DB E3 [10:55:24]CheckFolder [10:55:24]dirname=/storage/ofd_packets [10:55:24]CheckFolder done [10:55:24]ProducePacketName [10:55:24]name=ofd_packets/00111301 [10:55:24]NVStorageSaveData ofd_packets/00111301 [10:55:24]File name is /storage/ofd_packets/00111301 [10:55:24]Write 298 bytes [10:55:24]NVStorageSaveData done [10:55:24]OFDSenderStorePacket done [10:55:24]KKMCreateOFDPacket done [10:55:24]NVStorageSaveData kkm_last_timestamp [10:55:24]File name is /storage/kkm_last_timestamp [10:55:24]Write 4 bytes [10:55:24]NVStorageSaveData done [10:55:24]ExternCall_PrintAddStr [10:55:24]wPrintStart [10:55:24]Write to MH i2c: 01 00 00 D3 48 1B [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 07 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 07 00 D3 48 00 00 00 00 00 FF 0F 30 [10:55:24]RasterBufferAndPrint [10:55:24]line Счет N : (1)319870 [10:55:24]line ИНН: 02508201610067 [10:55:24]line Контрольно-Кассовый Чек [10:55:24]line ПРОДАЖА [10:55:24]line ТРК (МРК, ГНК) : 22 [10:55:24]line Товар: 2710194210 [10:55:24]line ДТ-К-5 [10:55:24]line 30.000 * 72.90 [10:55:24]line = 2187.00 [10:55:24]line НДС 12% НСП 1% [10:55:24]line > о реализуемом товаре [10:55:24]line ИТОГО: 2187.00 [10:55:24]line НСП 1% : 19.35 [10:55:24]line НДС 12% : 232.25 [10:55:24]line Наличными: 2187.00 [10:55:24]line Безнал.: 0.00 [10:55:24]line Место: АЗС № 65 "Партнер Нефть" [10:55:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:55:24]line СНО: Общий режим [10:55:24]line Чек 50 19.06.2024 10:55 [10:55:24]line Смена: 388 ФФД: 1.0 [10:55:24]line ЗНМ: 0300000198 [10:55:24]line РНМ: 0000000000092771 [10:55:24]line Версия ККМ: 001 [10:55:24]line ФМ: 0000000000875083 [10:55:24]line ФД: 111301 [10:55:24]line ФПД: 202074180004015 [10:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105553&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111301&fm=202074180004015&tin=02508201610067®Number=0000000000092771&sum=218700 [10:55:24]OFD Sender: Processing packet 111301 [packets to send 38, broken 37] [10:55:24]ProducePacketName [10:55:24]name=ofd_packets/00111301 [10:55:24]OFD Sender: To server: pG, [10:55:24]CommunicateWithHost lk.salyk.kg:30040 [10:55:24]ConnectInit lk.salyk.kg [10:55:24]written 0, free lines is 4095 [10:55:25]Connected sock=10 [10:55:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 5F B5 04 01 EB 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 4C 56 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 56 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 5A 00 00 00 00 07 04 06 00 4C 56 03 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 39 B9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C5 B2 01 00 35 04 06 00 B7 C9 0F B7 A8 AF 2F 56 45 30 3E 10 DB E3 [10:55:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 10 A0 47 00 3E 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 35 30 38 33 10 04 04 00 C5 B2 01 00 F4 03 04 00 A5 50 72 66 B6 04 01 00 00 D9 3E 6A D9 5E 09 6E 80 [10:55:25]CommunicateWithHost err = 0 [10:55:25]CheckOFDResponse [10:55:25]1017 (14) - 77093643461234 [10:55:25]1041 (16) - 0000000000875083 [10:55:25]1040 (4) - 111301 [10:55:25]1012 (4) - 19.06.2024 03:29 [10:55:25]1206 (1) - 0 [10:55:25]OFD Sender: Remove packet 111301 [10:55:25]ProducePacketName [10:55:25]name=ofd_packets/00111301 [10:55:25]NVStorageDeleteData [10:55:25]Write to MH i2c: 01 00 00 FB 48 43 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: 01 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: 01 07 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: 01 07 00 FB 48 00 00 00 00 00 FA 0C 50 [10:55:25]RasterBufferAndPrint [10:55:25]line [10:55:25]line [10:55:25]line [10:55:25]line [10:55:25]line [10:55:25]written 0, free lines is 3328 [10:55:25]MH_Cut [10:55:25]Write to MH i2c: D1 01 00 02 49 01 1D [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: D1 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: D1 01 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: D1 01 00 02 49 00 1C [10:55:25]Write to MH i2c: 01 00 00 03 49 4C [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]OFD Sender: No OFD packet to send [10:55:26]*** Cut start [10:55:26]*** Partial cut [10:55:26]*** CUTSNS_PIN = 1 [10:55:26]*** CUTSNS_PIN = 0 [10:55:26]*** Brake cut motor [10:55:26]Read from MH i2c: 01 [10:55:26]MH_I2C_Read... [10:55:26]*** Stop cut motor [10:55:26]*** Cut end [10:55:26]Read from MH i2c: 01 07 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: 01 07 00 03 49 00 00 00 00 00 FF 0F 61 [10:55:26]process_action close_receipt done [10:55:26]requested_data is exist [10:55:26]produce_requested_data [10:55:26]requested_item fm.sn is exist - process it [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 11 00 00 [10:55:26]Write to MH i2c: E2 08 00 04 49 80 11 00 00 00 00 00 00 C7 [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 17 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 17 00 04 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 19 [10:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:55:26]wFMCommunicate OK [10:55:26]requested_item fd.num is exist - process it [10:55:26]SAM_PROTO_GetFieldsCounters [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 13 00 00 [10:55:26]Write to MH i2c: E2 08 00 05 49 80 13 00 00 00 00 00 00 CA [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 62 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 62 00 05 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [10:55:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:26]wFMCommunicate OK [10:55:26]SAM_PROTO_GetFieldsCounters done [10:55:26]requested_item shift.num is exist - process it [10:55:26]requested_item shift.opened is exist - process it [10:55:26]req_shift_opened [10:55:26]FM_GetShiftState [10:55:26]SAM_PROTO_GetShiftState [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 13 01 00 [10:55:26]Write to MH i2c: E2 08 00 06 49 80 13 01 00 00 00 00 00 CC [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:27]Read from MH i2c: E2 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 0E 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: E2 0E 00 06 49 00 09 00 01 31 35 72 66 00 00 00 00 90 00 16 [10:55:27]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:55:27]wFMCommunicate OK [10:55:27]SAM_PROTO_GetShiftState done [10:55:27]FM_GetShiftState done [10:55:27]req_shift_opened done [10:55:27]requested_item shift.open_date is exist - process it [10:55:27]req_shift_open_date [10:55:27]req_shift_open_date done [10:55:27]produce_requested_data done [10:55:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111301,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:55:27]process_action_free close_receipt [10:55:27]json_value_free [10:55:27]json_value_free done [10:55:27]process_json_proto returns [10:55:27]Send response to host [10:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111301,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:55:27]free response buf [10:55:27]execute_script done [10:55:27]execute_script returns [10:55:27]free content buf [10:55:27]Sock 8.Close socket [10:55:27]Sock 8.Thread stoped [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:06]accept exits with 9 [10:57:06]New connection [10:57:06]New thread 3067227492 created [10:57:06]Thread 3067084132 joined [10:57:06]Waiting for new connection... [10:57:06] Sock 9.Parse request [10:57:06]Sock 9.Check first char [10:57:06]Sock 9.First char is OK [10:57:06]request: POST /json_proto HTTP/1.0 [10:57:06]Method: POST [10:57:06]URL: /json_proto [10:57:06]Method is POST - this is cgi request [10:57:06]url: /json_proto [10:57:06]query_string will be loaded in cgi processing [10:57:06]execute_cgi json_proto POST (null) [10:57:06]execute_cgi path=json_proto method=POST [10:57:06]POST find Content-Length [10:57:06]Host: 172.17.59.68:8080 [10:57:06]Content-Length: 675 [10:57:06]Content-Type: application/json [10:57:06] [10:57:06]POST finish read [10:57:06]Found Content-Length = 675 [10:57:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:06]execute_script... [10:57: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)319871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:06]POST & json_proto [10:57:06]process_json_proto [10:57:06]json parsed OK: [10:57:06]protocol is kg_v1.0 [10:57:06]action value=close_receipt [10:57:06]process_action close_receipt [10:57:06]cmd_close_receipt [10:57:06]MH_GetDate [10:57:06]Write to MH i2c: F0 00 00 07 49 3F [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: F0 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: F0 09 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: F0 09 00 07 49 00 A1 B9 72 66 BC EC 60 65 E7 [10:57:06]GetLastDocTimeStamp 1718794553 [10:57:06]current date 1718794657 [10:57:06]FM_GetShiftState [10:57:06]SAM_PROTO_GetShiftState [10:57:06]wFMCommunicate request_size=4 [10:57:06]MH_SAM_APDU [10:57:06]CAPDU: 80 13 01 00 [10:57:06]Write to MH i2c: E2 08 00 08 49 80 13 01 00 00 00 00 00 CE [10:57:06]Write i2c OK [10:57:06]MH_I2C_Read... [10:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:06]Read from MH i2c: E2 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 0E 00 [10:57:06]MH_I2C_Read... [10:57:06]Read from MH i2c: E2 0E 00 08 49 00 09 00 01 31 35 72 66 00 00 00 00 90 00 18 [10:57:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:57:06]wFMCommunicate OK [10:57:06]SAM_PROTO_GetShiftState done [10:57:06]FM_GetShiftState done [10:57:06]opened in 1718760753 [10:57:06]opened+sec_in_day 1718847153 [10:57:06]quantity*price = 75014 [10:57:06]sum+1 = 75015 [10:57:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 51 19.06.2024 10:57 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111302 ФПД: 173320298310937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105737&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111302&fm=173320298310937&tin=02508201610067®Number=0000000000092771&sum=75000 [10:57:07]StoreToDocumentArchive [10:57:07]shift 388 fd 111302 [10:57:07]save to /storage/0388/doc_00111302 [10:57:07]save last doc name /storage/0388/doc_00111302 to /storage/kkm_last_doc_name [10:57:07]save OK [10:57:07]Clear old archive folders... [10:57:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:07]tlvbuf is 01A40840 [10:57:07]SAM_PROTO_ClearQueue [10:57:07]wFMCommunicate request_size=4 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 09 00 00 [10:57:07]Write to MH i2c: E2 08 00 15 49 80 09 00 00 00 00 00 00 D0 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 15 49 00 90 00 D2 [10:57:07]RAPDU: 90 00 [10:57:07]wFMCommunicate OK [10:57:07]SAM_PROTO_ClearQueue done [10:57:07]KKMCreateOFDPacket [10:57:07]OFDProtocolAddRootSTLVToBuf [10:57:07]FM_MakeSignedData [10:57:07]FM_MakeSignedData [10:57:07]SAM_PROTO_SignData [10:57:07]wFMCommunicate request_size=4 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 0D 01 02 [10:57:07]Write to MH i2c: E2 08 00 16 49 80 0D 01 02 00 00 00 00 D8 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 16 49 00 90 00 D3 [10:57:07]RAPDU: 90 00 [10:57:07]wFMCommunicate OK [10:57:07]wFMCommunicate request_size=255 [10:57:07]MH_SAM_APDU [10:57: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 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A1 B9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B2 01 00 35 04 06 00 9D A2 46 D0 [10:57:07]Write to MH i2c: E2 02 01 17 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 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A1 B9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B2 01 00 35 04 06 00 9D A2 46 D0 00 00 1A [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:07]Read from MH i2c: E2 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 [10:57:07]MH_I2C_Read... [10:57:07]Read from MH i2c: E2 03 00 17 49 00 90 00 D4 [10:57:07]RAPDU: 90 00 [10:57:07]wFMCommunicate OK [10:57:07]wFMCommunicate request_size=7 [10:57:07]MH_SAM_APDU [10:57:07]CAPDU: 80 0D 02 02 02 2D 19 [10:57:07]Write to MH i2c: E2 0A 00 18 49 80 0D 02 02 02 00 2D 19 00 00 25 [10:57:07]Write i2c OK [10:57:07]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 03 00 18 49 00 90 00 D5 [10:57:08]RAPDU: 90 00 [10:57:08]wFMCommunicate OK [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 0D 03 02 [10:57:08]Write to MH i2c: E2 08 00 19 49 80 0D 03 02 00 00 00 00 DD [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0B 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0B 00 19 49 00 C2 6D D3 9E 4D 68 01 B4 90 00 E8 [10:57:08]RAPDU: C2 6D D3 9E 4D 68 01 B4 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_SignData done [10:57:08]FM_MakeSignedData done [10:57:08]CreateOFDProtocolMessage [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 11 00 00 [10:57:08]Write to MH i2c: E2 08 00 1A 49 80 11 00 00 00 00 00 00 DD [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 17 00 1A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [10:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:57:08]wFMCommunicate OK [10:57:08]CreateOFDProtocolMessage done [10:57:08]OFDSenderStorePacket 111302 [10:57:08]StoreOFDPacket docnum=111302 [10:57:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 86 AF 04 01 35 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A1 B9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B2 01 00 35 04 06 00 9D A2 46 D0 2D 19 C2 6D D3 9E 4D 68 01 B4 [10:57:08]CheckFolder [10:57:08]dirname=/storage/ofd_packets [10:57:08]CheckFolder done [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00111302 [10:57:08]NVStorageSaveData ofd_packets/00111302 [10:57:08]File name is /storage/ofd_packets/00111302 [10:57:08]Write 298 bytes [10:57:08]NVStorageSaveData done [10:57:08]OFDSenderStorePacket done [10:57:08]KKMCreateOFDPacket done [10:57:08]NVStorageSaveData kkm_last_timestamp [10:57:08]File name is /storage/kkm_last_timestamp [10:57:08]Write 4 bytes [10:57:08]NVStorageSaveData done [10:57:08]ExternCall_PrintAddStr [10:57:08]wPrintStart [10:57:08]Write to MH i2c: 01 00 00 1B 49 64 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 1B 49 00 00 00 00 00 FF 0F 79 [10:57:08]RasterBufferAndPrint [10:57:08]line Счет N : (1)319871 [10:57:08]line ИНН: 02508201610067 [10:57:08]line Контрольно-Кассовый Чек [10:57:08]line ПРОДАЖА [10:57:08]line ТРК (МРК, ГНК) : 22 [10:57:08]line Товар: 2710194210 [10:57:08]line ДТ-К-5 [10:57:08]line 10.290 * 72.90 [10:57:08]line = 750.14 [10:57:08]line НДС 12% НСП 1% [10:57:08]line > о реализуемом товаре [10:57:08]line ОКРУГЛЕНИЕ: -0.14 [10:57:08]line ИТОГО: 750.00 [10:57:08]line Внесено: 750.00 [10:57:08]line СДАЧА: 0.00 [10:57:08]line НСП 1% : 6.64 [10:57:08]line НДС 12% : 79.66 [10:57:08]line Наличными: 750.00 [10:57:08]line Безнал.: 0.00 [10:57:08]line Место: АЗС № 65 "Партнер Нефть" [10:57:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [10:57:08]line СНО: Общий режим [10:57:08]line Чек 51 19.06.2024 10:57 [10:57:08]line Смена: 388 ФФД: 1.0 [10:57:08]line ЗНМ: 0300000198 [10:57:08]line РНМ: 0000000000092771 [10:57:08]line Версия ККМ: 001 [10:57:08]line ФМ: 0000000000875083 [10:57:08]line ФД: 111302 [10:57:08]line ФПД: 173320298310937 [10:57:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T105737&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111302&fm=173320298310937&tin=02508201610067®Number=0000000000092771&sum=75000 [10:57:08]OFD Sender: Processing packet 111302 [packets to send 38, broken 37] [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00111302 [10:57:08]OFD Sender: To server: pG, [10:57:08]CommunicateWithHost lk.salyk.kg:30040 [10:57:08]ConnectInit lk.salyk.kg [10:57:08]written 0, free lines is 4095 [10:57:08]Connected sock=10 [10:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 86 AF 04 01 35 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A1 B9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C6 B2 01 00 35 04 06 00 9D A2 46 D0 2D 19 C2 6D D3 9E 4D 68 01 B4 [10:57:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EC 4D 47 00 7C 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 35 30 38 33 10 04 04 00 C6 B2 01 00 F4 03 04 00 0C 51 72 66 B6 04 01 00 00 92 AF 27 C8 DE BD 95 75 [10:57:08]CommunicateWithHost err = 0 [10:57:08]CheckOFDResponse [10:57:08]1017 (14) - 77093643461234 [10:57:08]1041 (16) - 0000000000875083 [10:57:08]1040 (4) - 111302 [10:57:08]1012 (4) - 19.06.2024 03:31 [10:57:08]1206 (1) - 0 [10:57:08]OFD Sender: Remove packet 111302 [10:57:08]ProducePacketName [10:57:08]name=ofd_packets/00111302 [10:57:08]NVStorageDeleteData [10:57:08]Write to MH i2c: 01 00 00 46 49 8F [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: 01 07 00 46 49 00 00 00 00 00 DC 0C 7E [10:57:08]RasterBufferAndPrint [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]line [10:57:08]written 0, free lines is 3299 [10:57:08]MH_Cut [10:57:08]Write to MH i2c: D1 01 00 4D 49 01 68 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 01 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: D1 01 00 4D 49 00 67 [10:57:08]Write to MH i2c: 01 00 00 4E 49 97 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:09]OFD Sender: No OFD packet to send [10:57:09]*** Cut start [10:57:09]*** Partial cut [10:57:09]*** CUTSNS_PIN = 1 [10:57:09]*** CUTSNS_PIN = 0 [10:57:09]*** Brake cut motor [10:57:10]Read from MH i2c: 01 [10:57:10]MH_I2C_Read... [10:57:10]*** Stop cut motor [10:57:10]*** Cut end [10:57:10]Read from MH i2c: 01 07 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: 01 07 00 4E 49 00 00 00 00 00 FF 0F AC [10:57:10]process_action close_receipt done [10:57:10]requested_data is exist [10:57:10]produce_requested_data [10:57:10]requested_item fm.sn is exist - process it [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 11 00 00 [10:57:10]Write to MH i2c: E2 08 00 4F 49 80 11 00 00 00 00 00 00 12 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 17 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 17 00 4F 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 64 [10:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [10:57:10]wFMCommunicate OK [10:57:10]requested_item fd.num is exist - process it [10:57:10]SAM_PROTO_GetFieldsCounters [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 13 00 00 [10:57:10]Write to MH i2c: E2 08 00 50 49 80 13 00 00 00 00 00 00 15 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 62 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 62 00 50 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [10:57: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:10]wFMCommunicate OK [10:57:10]SAM_PROTO_GetFieldsCounters done [10:57:10]requested_item shift.num is exist - process it [10:57:10]requested_item shift.opened is exist - process it [10:57:10]req_shift_opened [10:57:10]FM_GetShiftState [10:57:10]SAM_PROTO_GetShiftState [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 13 01 00 [10:57:10]Write to MH i2c: E2 08 00 51 49 80 13 01 00 00 00 00 00 17 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 0E 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 0E 00 51 49 00 09 00 01 31 35 72 66 00 00 00 00 90 00 61 [10:57:10]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [10:57:10]wFMCommunicate OK [10:57:10]SAM_PROTO_GetShiftState done [10:57:10]FM_GetShiftState done [10:57:10]req_shift_opened done [10:57:10]requested_item shift.open_date is exist - process it [10:57:10]req_shift_open_date [10:57:10]req_shift_open_date done [10:57:10]produce_requested_data done [10:57:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111302,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [10:57:10]process_action_free close_receipt [10:57:10]json_value_free [10:57:10]json_value_free done [10:57:10]process_json_proto returns [10:57:10]Send response to host [10:57:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111302,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [10:57:10]free response buf [10:57:10]execute_script done [10:57:10]execute_script returns [10:57:10]free content buf [10:57:10]Sock 9.Close socket [10:57:10]Sock 9.Thread stoped [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: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:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16: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:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:37]accept exits with 8 [11:18:37]New connection [11:18:37]New thread 3067084132 created [11:18:37]Thread 3067227492 joined [11:18:37]Waiting for new connection... [11:18:37] Sock 8.Parse request [11:18:37]Sock 8.Check first char [11:18:37]Sock 8.First char is OK [11:18:37]request: POST /json_proto HTTP/1.0 [11:18:37]Method: POST [11:18:37]URL: /json_proto [11:18:37]Method is POST - this is cgi request [11:18:37]url: /json_proto [11:18:37]query_string will be loaded in cgi processing [11:18:37]execute_cgi json_proto POST (null) [11:18:37]execute_cgi path=json_proto method=POST [11:18:37]POST find Content-Length [11:18:37]Host: 172.17.59.68:8080 [11:18:37]Content-Length: 682 [11:18:37]Content-Type: application/json [11:18:37] [11:18:37]POST finish read [11:18:37]Found Content-Length = 682 [11:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37]execute_script... [11:18:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37]POST & json_proto [11:18:37]process_json_proto [11:18:37]json parsed OK: [11:18:37]protocol is kg_v1.0 [11:18:37]action value=close_receipt [11:18:37]process_action close_receipt [11:18:37]cmd_close_receipt [11:18:37]MH_GetDate [11:18:37]Write to MH i2c: F0 00 00 52 49 8A [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 09 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: F0 09 00 52 49 00 AC BE 72 66 BC EC 60 65 42 [11:18:37]GetLastDocTimeStamp 1718794657 [11:18:37]current date 1718795948 [11:18:37]FM_GetShiftState [11:18:37]SAM_PROTO_GetShiftState [11:18:37]wFMCommunicate request_size=4 [11:18:37]MH_SAM_APDU [11:18:37]CAPDU: 80 13 01 00 [11:18:37]Write to MH i2c: E2 08 00 53 49 80 13 01 00 00 00 00 00 19 [11:18:37]Write i2c OK [11:18:37]MH_I2C_Read... [11:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:37]Read from MH i2c: E2 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0E 00 [11:18:37]MH_I2C_Read... [11:18:37]Read from MH i2c: E2 0E 00 53 49 00 09 00 01 31 35 72 66 00 00 00 00 90 00 63 [11:18:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:18:37]wFMCommunicate OK [11:18:37]SAM_PROTO_GetShiftState done [11:18:37]FM_GetShiftState done [11:18:37]opened in 1718760753 [11:18:37]opened+sec_in_day 1718847153 [11:18:37]quantity*price = 100064 [11:18:37]sum+1 = 100066 [11:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 52 19.06.2024 11:19 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111303 ФПД: 34342288389254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T111908&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111303&fm=34342288389254&tin=02508201610067®Number=0000000000092771&sum=100000 [11:18:38]StoreToDocumentArchive [11:18:38]shift 388 fd 111303 [11:18:38]save to /storage/0388/doc_00111303 [11:18:38]save last doc name /storage/0388/doc_00111303 to /storage/kkm_last_doc_name [11:18:38]save OK [11:18:38]Clear old archive folders... [11:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:38]tlvbuf is 01942510 [11:18:38]SAM_PROTO_ClearQueue [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 09 00 00 [11:18:38]Write to MH i2c: E2 08 00 60 49 80 09 00 00 00 00 00 00 1B [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:38]Read from MH i2c: E2 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 [11:18:38]MH_I2C_Read... [11:18:38]Read from MH i2c: E2 03 00 60 49 00 90 00 1D [11:18:38]RAPDU: 90 00 [11:18:38]wFMCommunicate OK [11:18:38]SAM_PROTO_ClearQueue done [11:18:38]KKMCreateOFDPacket [11:18:38]OFDProtocolAddRootSTLVToBuf [11:18:38]FM_MakeSignedData [11:18:38]FM_MakeSignedData [11:18:38]SAM_PROTO_SignData [11:18:38]wFMCommunicate request_size=4 [11:18:38]MH_SAM_APDU [11:18:38]CAPDU: 80 0D 01 02 [11:18:38]Write to MH i2c: E2 08 00 61 49 80 0D 01 02 00 00 00 00 23 [11:18:38]Write i2c OK [11:18:38]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 61 49 00 90 00 1E [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]wFMCommunicate request_size=255 [11:18:39]MH_SAM_APDU [11:18: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 AC BE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B2 01 00 35 04 06 00 1F [11:18:39]Write to MH i2c: E2 02 01 62 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 AC BE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B2 01 00 35 04 06 00 1F 00 00 BB [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 62 49 00 90 00 1F [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]wFMCommunicate request_size=10 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 0D 02 02 05 3B EF E6 74 86 [11:18:39]Write to MH i2c: E2 0D 00 63 49 80 0D 02 02 05 00 3B EF E6 74 86 00 00 3A [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 03 00 63 49 00 90 00 20 [11:18:39]RAPDU: 90 00 [11:18:39]wFMCommunicate OK [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 0D 03 02 [11:18:39]Write to MH i2c: E2 08 00 64 49 80 0D 03 02 00 00 00 00 28 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0B 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 0B 00 64 49 00 7E B4 31 99 54 29 9F BD 90 00 FE [11:18:39]RAPDU: 7E B4 31 99 54 29 9F BD 90 00 [11:18:39]wFMCommunicate OK [11:18:39]SAM_PROTO_SignData done [11:18:39]FM_MakeSignedData done [11:18:39]CreateOFDProtocolMessage [11:18:39]wFMCommunicate request_size=4 [11:18:39]MH_SAM_APDU [11:18:39]CAPDU: 80 11 00 00 [11:18:39]Write to MH i2c: E2 08 00 65 49 80 11 00 00 00 00 00 00 28 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:39]Read from MH i2c: E2 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: E2 17 00 65 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7A [11:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:18:39]wFMCommunicate OK [11:18:39]CreateOFDProtocolMessage done [11:18:39]OFDSenderStorePacket 111303 [11:18:39]StoreOFDPacket docnum=111303 [11:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F 75 07 01 A2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 AC BE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B2 01 00 35 04 06 00 1F 3B EF E6 74 86 7E B4 31 99 54 29 9F BD [11:18:39]CheckFolder [11:18:39]dirname=/storage/ofd_packets [11:18:39]CheckFolder done [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00111303 [11:18:39]NVStorageSaveData ofd_packets/00111303 [11:18:39]File name is /storage/ofd_packets/00111303 [11:18:39]Write 301 bytes [11:18:39]NVStorageSaveData done [11:18:39]OFDSenderStorePacket done [11:18:39]KKMCreateOFDPacket done [11:18:39]NVStorageSaveData kkm_last_timestamp [11:18:39]File name is /storage/kkm_last_timestamp [11:18:39]Write 4 bytes [11:18:39]NVStorageSaveData done [11:18:39]ExternCall_PrintAddStr [11:18:39]wPrintStart [11:18:39]Write to MH i2c: 01 00 00 66 49 AF [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 66 49 00 00 00 00 00 FF 0F C4 [11:18:39]RasterBufferAndPrint [11:18:39]line Счет N : (1)319872 [11:18:39]line ИНН: 02508201610067 [11:18:39]line Контрольно-Кассовый Чек [11:18:39]line ПРОДАЖА [11:18:39]line ТРК (МРК, ГНК) : 11 [11:18:39]line Товар: 2710124130 [11:18:39]line Аи-92-К-5 [11:18:39]line 15.070 * 66.40 [11:18:39]line = 1000.65 [11:18:39]line НДС 12% НСП 1% [11:18:39]line > о реализуемом товаре [11:18:39]line ОКРУГЛЕНИЕ: -0.65 [11:18:39]line ИТОГО: 1000.00 [11:18:39]line Внесено: 1000.00 [11:18:39]line СДАЧА: 0.00 [11:18:39]line НСП 1% : 8.85 [11:18:39]line НДС 12% : 106.26 [11:18:39]line Наличными: 1000.00 [11:18:39]line Безнал.: 0.00 [11:18:39]line Место: АЗС № 65 "Партнер Нефть" [11:18:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:18:39]line СНО: Общий режим [11:18:39]line Чек 52 19.06.2024 11:19 [11:18:39]line Смена: 388 ФФД: 1.0 [11:18:39]line ЗНМ: 0300000198 [11:18:39]line РНМ: 0000000000092771 [11:18:39]line Версия ККМ: 001 [11:18:39]line ФМ: 0000000000875083 [11:18:39]line ФД: 111303 [11:18:39]line ФПД: 34342288389254 [11:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T111908&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111303&fm=34342288389254&tin=02508201610067®Number=0000000000092771&sum=100000 [11:18:39]written 0, free lines is 4095 [11:18:39]OFD Sender: Processing packet 111303 [packets to send 38, broken 37] [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00111303 [11:18:39]OFD Sender: To server: pG, [11:18:39]CommunicateWithHost lk.salyk.kg:30040 [11:18:39]ConnectInit lk.salyk.kg [11:18:39]Connected sock=10 [11:18:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F 75 07 01 A2 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 AC BE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C7 B2 01 00 35 04 06 00 1F 3B EF E6 74 86 7E B4 31 99 54 29 9F BD [11:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3E 1E 47 00 31 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 35 30 38 33 10 04 04 00 C7 B2 01 00 F4 03 04 00 17 56 72 66 B6 04 01 00 00 07 50 C5 B4 25 87 11 E8 [11:18:39]CommunicateWithHost err = 0 [11:18:39]CheckOFDResponse [11:18:39]1017 (14) - 77093643461234 [11:18:39]1041 (16) - 0000000000875083 [11:18:39]1040 (4) - 111303 [11:18:39]1012 (4) - 19.06.2024 03:52 [11:18:39]1206 (1) - 0 [11:18:39]OFD Sender: Remove packet 111303 [11:18:39]ProducePacketName [11:18:39]name=ofd_packets/00111303 [11:18:39]NVStorageDeleteData [11:18:39]Write to MH i2c: 01 00 00 91 49 DA [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: 01 07 00 91 49 00 00 00 00 00 CD 0C BA [11:18:39]RasterBufferAndPrint [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]line [11:18:39]written 0, free lines is 3283 [11:18:39]MH_Cut [11:18:39]Write to MH i2c: D1 01 00 98 49 01 B3 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 01 00 [11:18:39]MH_I2C_Read... [11:18:39]Read from MH i2c: D1 01 00 98 49 00 B2 [11:18:39]Write to MH i2c: 01 00 00 99 49 E2 [11:18:39]Write i2c OK [11:18:39]MH_I2C_Read... [11:18:40]OFD Sender: No OFD packet to send [11:18:40]*** Cut start [11:18:40]*** Partial cut [11:18:40]*** CUTSNS_PIN = 1 [11:18:40]*** CUTSNS_PIN = 0 [11:18:40]*** Brake cut motor [11:18:41]Read from MH i2c: 01 [11:18:41]MH_I2C_Read... [11:18:41]*** Stop cut motor [11:18:41]*** Cut end [11:18:41]Read from MH i2c: 01 07 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: 01 07 00 99 49 00 00 00 00 00 FF 0F F7 [11:18:41]process_action close_receipt done [11:18:41]requested_data is exist [11:18:41]produce_requested_data [11:18:41]requested_item fm.sn is exist - process it [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 11 00 00 [11:18:41]Write to MH i2c: E2 08 00 9A 49 80 11 00 00 00 00 00 00 5D [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 17 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 17 00 9A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AF [11:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:18:41]wFMCommunicate OK [11:18:41]requested_item fd.num is exist - process it [11:18:41]SAM_PROTO_GetFieldsCounters [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 00 00 [11:18:41]Write to MH i2c: E2 08 00 9B 49 80 13 00 00 00 00 00 00 60 [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 62 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 62 00 9B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [11:18:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetFieldsCounters done [11:18:41]requested_item shift.num is exist - process it [11:18:41]requested_item shift.opened is exist - process it [11:18:41]req_shift_opened [11:18:41]FM_GetShiftState [11:18:41]SAM_PROTO_GetShiftState [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 01 00 [11:18:41]Write to MH i2c: E2 08 00 9C 49 80 13 01 00 00 00 00 00 62 [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 9C 49 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AC [11:18:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetShiftState done [11:18:41]FM_GetShiftState done [11:18:41]req_shift_opened done [11:18:41]requested_item shift.open_date is exist - process it [11:18:41]req_shift_open_date [11:18:41]req_shift_open_date done [11:18:41]produce_requested_data done [11:18:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111303,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:18:41]process_action_free close_receipt [11:18:41]json_value_free [11:18:41]json_value_free done [11:18:41]process_json_proto returns [11:18:41]Send response to host [11:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111303,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:18:41]free response buf [11:18:41]execute_script done [11:18:41]execute_script returns [11:18:41]free content buf [11:18:41]Sock 8.Close socket [11:18:41]Sock 8.Thread stoped [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:34]accept exits with 9 [11:21:34]New connection [11:21:34]New thread 3067227492 created [11:21:34]Thread 3067084132 joined [11:21:34]Waiting for new connection... [11:21:34] Sock 9.Parse request [11:21:34]Sock 9.Check first char [11:21:34]Sock 9.First char is OK [11:21:34]request: POST /json_proto HTTP/1.0 [11:21:34]Method: POST [11:21:34]URL: /json_proto [11:21:34]Method is POST - this is cgi request [11:21:34]url: /json_proto [11:21:34]query_string will be loaded in cgi processing [11:21:34]execute_cgi json_proto POST (null) [11:21:34]execute_cgi path=json_proto method=POST [11:21:34]POST find Content-Length [11:21:34]Host: 172.17.59.68:8080 [11:21:34]Content-Length: 677 [11:21:34]Content-Type: application/json [11:21:34] [11:21:34]POST finish read [11:21:34]Found Content-Length = 677 [11:21:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.930, "sum" : 460.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:34]execute_script... [11:21: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)319873", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.930, "sum" : 460.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:34]POST & json_proto [11:21:34]process_json_proto [11:21:34]json parsed OK: [11:21:34]protocol is kg_v1.0 [11:21:34]action value=close_receipt [11:21:34]process_action close_receipt [11:21:34]cmd_close_receipt [11:21:34]MH_GetDate [11:21:34]Write to MH i2c: F0 00 00 9D 49 D5 [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: F0 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: F0 09 00 [11:21:34]MH_I2C_Read... [11:21:34]Read from MH i2c: F0 09 00 9D 49 00 5E BF 72 66 BC EC 60 65 40 [11:21:34]GetLastDocTimeStamp 1718795948 [11:21:34]current date 1718796126 [11:21:34]FM_GetShiftState [11:21:34]SAM_PROTO_GetShiftState [11:21:34]wFMCommunicate request_size=4 [11:21:34]MH_SAM_APDU [11:21:34]CAPDU: 80 13 01 00 [11:21:34]Write to MH i2c: E2 08 00 9E 49 80 13 01 00 00 00 00 00 64 [11:21:34]Write i2c OK [11:21:34]MH_I2C_Read... [11:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:35]Read from MH i2c: E2 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: E2 0E 00 [11:21:35]MH_I2C_Read... [11:21:35]Read from MH i2c: E2 0E 00 9E 49 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AE [11:21:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:21:35]wFMCommunicate OK [11:21:35]SAM_PROTO_GetShiftState done [11:21:35]FM_GetShiftState done [11:21:35]opened in 1718760753 [11:21:35]opened+sec_in_day 1718847153 [11:21:35]quantity*price = 46015 [11:21:35]sum+1 = 46016 [11:21:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.07 НДС 12% : 48.86 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 53 19.06.2024 11:22 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111304 ФПД: 157186529491803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112206&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111304&fm=157186529491803&tin=02508201610067®Number=0000000000092771&sum=46000 [11:21:36]StoreToDocumentArchive [11:21:36]shift 388 fd 111304 [11:21:36]save to /storage/0388/doc_00111304 [11:21:36]save last doc name /storage/0388/doc_00111304 to /storage/kkm_last_doc_name [11:21:36]save OK [11:21:36]Clear old archive folders... [11:21:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:36]tlvbuf is 01A16BE0 [11:21:36]SAM_PROTO_ClearQueue [11:21:36]wFMCommunicate request_size=4 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 09 00 00 [11:21:36]Write to MH i2c: E2 08 00 AB 49 80 09 00 00 00 00 00 00 66 [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:36]Read from MH i2c: E2 03 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 03 00 AB 49 00 90 00 68 [11:21:36]RAPDU: 90 00 [11:21:36]wFMCommunicate OK [11:21:36]SAM_PROTO_ClearQueue done [11:21:36]KKMCreateOFDPacket [11:21:36]OFDProtocolAddRootSTLVToBuf [11:21:36]FM_MakeSignedData [11:21:36]FM_MakeSignedData [11:21:36]SAM_PROTO_SignData [11:21:36]wFMCommunicate request_size=4 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 0D 01 02 [11:21:36]Write to MH i2c: E2 08 00 AC 49 80 0D 01 02 00 00 00 00 6E [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:36]Read from MH i2c: E2 03 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 03 00 AC 49 00 90 00 69 [11:21:36]RAPDU: 90 00 [11:21:36]wFMCommunicate OK [11:21:36]wFMCommunicate request_size=255 [11:21:36]MH_SAM_APDU [11:21: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 12 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BF B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5E BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B2 01 00 35 04 06 00 8E [11:21:36]Write to MH i2c: E2 02 01 AD 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 12 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BF B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5E BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B2 01 00 35 04 06 00 8E 00 00 5F [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 03 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 03 00 AD 49 00 90 00 6A [11:21:36]RAPDU: 90 00 [11:21:36]wFMCommunicate OK [11:21:36]wFMCommunicate request_size=10 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 0D 02 02 05 F5 D7 40 FB 5B [11:21:36]Write to MH i2c: E2 0D 00 AE 49 80 0D 02 02 05 00 F5 D7 40 FB 5B 00 00 DD [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 03 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 03 00 AE 49 00 90 00 6B [11:21:36]RAPDU: 90 00 [11:21:36]wFMCommunicate OK [11:21:36]wFMCommunicate request_size=4 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 0D 03 02 [11:21:36]Write to MH i2c: E2 08 00 AF 49 80 0D 03 02 00 00 00 00 73 [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 0B 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 0B 00 AF 49 00 F5 A7 DE AA D5 49 3C 12 90 00 04 [11:21:36]RAPDU: F5 A7 DE AA D5 49 3C 12 90 00 [11:21:36]wFMCommunicate OK [11:21:36]SAM_PROTO_SignData done [11:21:36]FM_MakeSignedData done [11:21:36]CreateOFDProtocolMessage [11:21:36]wFMCommunicate request_size=4 [11:21:36]MH_SAM_APDU [11:21:36]CAPDU: 80 11 00 00 [11:21:36]Write to MH i2c: E2 08 00 B0 49 80 11 00 00 00 00 00 00 73 [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:36]Read from MH i2c: E2 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 17 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: E2 17 00 B0 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C5 [11:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:21:36]wFMCommunicate OK [11:21:36]CreateOFDProtocolMessage done [11:21:36]OFDSenderStorePacket 111304 [11:21:36]StoreOFDPacket docnum=111304 [11:21:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 10 8B 07 01 18 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BF B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5E BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B2 01 00 35 04 06 00 8E F5 D7 40 FB 5B F5 A7 DE AA D5 49 3C 12 [11:21:36]CheckFolder [11:21:36]dirname=/storage/ofd_packets [11:21:36]CheckFolder done [11:21:36]ProducePacketName [11:21:36]name=ofd_packets/00111304 [11:21:36]NVStorageSaveData ofd_packets/00111304 [11:21:36]File name is /storage/ofd_packets/00111304 [11:21:36]Write 301 bytes [11:21:36]NVStorageSaveData done [11:21:36]OFDSenderStorePacket done [11:21:36]KKMCreateOFDPacket done [11:21:36]NVStorageSaveData kkm_last_timestamp [11:21:36]File name is /storage/kkm_last_timestamp [11:21:36]Write 4 bytes [11:21:36]NVStorageSaveData done [11:21:36]ExternCall_PrintAddStr [11:21:36]wPrintStart [11:21:36]Write to MH i2c: 01 00 00 B1 49 FA [11:21:36]Write i2c OK [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: 01 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: 01 07 00 [11:21:36]MH_I2C_Read... [11:21:36]Read from MH i2c: 01 07 00 B1 49 00 00 00 00 00 FF 0F 0F [11:21:36]RasterBufferAndPrint [11:21:36]line Счет N : (1)319873 [11:21:36]line ИНН: 02508201610067 [11:21:36]line Контрольно-Кассовый Чек [11:21:36]line ПРОДАЖА [11:21:36]line ТРК (МРК, ГНК) : 11 [11:21:36]line Товар: 2710124130 [11:21:36]line Аи-92-К-5 [11:21:36]line 6.930 * 66.40 [11:21:36]line = 460.15 [11:21:36]line НДС 12% НСП 1% [11:21:36]line > о реализуемом товаре [11:21:36]line ОКРУГЛЕНИЕ: -0.15 [11:21:36]line ИТОГО: 460.00 [11:21:36]line Внесено: 460.00 [11:21:36]line СДАЧА: 0.00 [11:21:36]line НСП 1% : 4.07 [11:21:36]line НДС 12% : 48.86 [11:21:36]line Наличными: 460.00 [11:21:36]line Безнал.: 0.00 [11:21:36]line Место: АЗС № 65 "Партнер Нефть" [11:21:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:21:36]line СНО: Общий режим [11:21:36]line Чек 53 19.06.2024 11:22 [11:21:36]line Смена: 388 ФФД: 1.0 [11:21:36]line ЗНМ: 0300000198 [11:21:36]line РНМ: 0000000000092771 [11:21:36]line Версия ККМ: 001 [11:21:36]line ФМ: 0000000000875083 [11:21:36]line ФД: 111304 [11:21:36]line ФПД: 157186529491803 [11:21:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112206&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111304&fm=157186529491803&tin=02508201610067®Number=0000000000092771&sum=46000 [11:21:37]OFD Sender: Processing packet 111304 [packets to send 38, broken 37] [11:21:37]ProducePacketName [11:21:37]name=ofd_packets/00111304 [11:21:37]OFD Sender: To server: pG, [11:21:37]CommunicateWithHost lk.salyk.kg:30040 [11:21:37]ConnectInit lk.salyk.kg [11:21:37]written 0, free lines is 4095 [11:21:37]Connected sock=10 [11:21:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 10 8B 07 01 18 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 1B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BF B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 5E BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B2 01 00 35 04 06 00 8E F5 D7 40 FB 5B F5 A7 DE AA D5 49 3C 12 [11:21:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 40 59 47 00 06 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C8 B2 01 00 F4 03 04 00 C9 56 72 66 B6 04 01 00 00 1A AF D3 B3 66 25 73 0B [11:21:37]CommunicateWithHost err = 0 [11:21:37]CheckOFDResponse [11:21:37]1017 (14) - 77093643461234 [11:21:37]1041 (16) - 0000000000875083 [11:21:37]1040 (4) - 111304 [11:21:37]1012 (4) - 19.06.2024 03:55 [11:21:37]1206 (1) - 0 [11:21:37]OFD Sender: Remove packet 111304 [11:21:37]ProducePacketName [11:21:37]name=ofd_packets/00111304 [11:21:37]NVStorageDeleteData [11:21:37]Write to MH i2c: 01 00 00 DC 49 25 [11:21:37]Write i2c OK [11:21:37]MH_I2C_Read... [11:21:37]Read from MH i2c: 01 [11:21:37]MH_I2C_Read... [11:21:37]Read from MH i2c: 01 07 00 [11:21:37]MH_I2C_Read... [11:21:37]Read from MH i2c: 01 07 00 DC 49 00 00 00 00 00 D8 0C 10 [11:21:37]RasterBufferAndPrint [11:21:37]line [11:21:37]line [11:21:37]line [11:21:37]line [11:21:37]line [11:21:37]written 0, free lines is 3295 [11:21:37]MH_Cut [11:21:37]Write to MH i2c: D1 01 00 E3 49 01 FE [11:21:37]Write i2c OK [11:21:37]MH_I2C_Read... [11:21:37]Read from MH i2c: D1 [11:21:37]MH_I2C_Read... [11:21:37]Read from MH i2c: D1 01 00 [11:21:37]MH_I2C_Read... [11:21:37]Read from MH i2c: D1 01 00 E3 49 00 FD [11:21:37]Write to MH i2c: 01 00 00 E4 49 2D [11:21:37]Write i2c OK [11:21:37]MH_I2C_Read... [11:21:37]OFD Sender: No OFD packet to send [11:21:38]*** Cut start [11:21:38]*** Partial cut [11:21:38]*** CUTSNS_PIN = 1 [11:21:38]*** CUTSNS_PIN = 0 [11:21:38]*** Brake cut motor [11:21:38]Read from MH i2c: 01 [11:21:38]MH_I2C_Read... [11:21:38]*** Stop cut motor [11:21:38]*** Cut end [11:21:38]Read from MH i2c: 01 07 00 [11:21:38]MH_I2C_Read... [11:21:38]Read from MH i2c: 01 07 00 E4 49 00 00 00 00 00 FF 0F 42 [11:21:38]process_action close_receipt done [11:21:38]requested_data is exist [11:21:38]produce_requested_data [11:21:38]requested_item fm.sn is exist - process it [11:21:38]wFMCommunicate request_size=4 [11:21:38]MH_SAM_APDU [11:21:38]CAPDU: 80 11 00 00 [11:21:38]Write to MH i2c: E2 08 00 E5 49 80 11 00 00 00 00 00 00 A8 [11:21:38]Write i2c OK [11:21:38]MH_I2C_Read... [11:21:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:38]Read from MH i2c: E2 [11:21:38]MH_I2C_Read... [11:21:38]Read from MH i2c: E2 17 00 [11:21:38]MH_I2C_Read... [11:21:38]Read from MH i2c: E2 17 00 E5 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [11:21:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:21:38]wFMCommunicate OK [11:21:38]requested_item fd.num is exist - process it [11:21:38]SAM_PROTO_GetFieldsCounters [11:21:38]wFMCommunicate request_size=4 [11:21:38]MH_SAM_APDU [11:21:38]CAPDU: 80 13 00 00 [11:21:38]Write to MH i2c: E2 08 00 E6 49 80 13 00 00 00 00 00 00 AB [11:21:38]Write i2c OK [11:21:38]MH_I2C_Read... [11:21:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:39]Read from MH i2c: E2 [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: E2 62 00 [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: E2 62 00 E6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [11:21: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:39]wFMCommunicate OK [11:21:39]SAM_PROTO_GetFieldsCounters done [11:21:39]requested_item shift.num is exist - process it [11:21:39]requested_item shift.opened is exist - process it [11:21:39]req_shift_opened [11:21:39]FM_GetShiftState [11:21:39]SAM_PROTO_GetShiftState [11:21:39]wFMCommunicate request_size=4 [11:21:39]MH_SAM_APDU [11:21:39]CAPDU: 80 13 01 00 [11:21:39]Write to MH i2c: E2 08 00 E7 49 80 13 01 00 00 00 00 00 AD [11:21:39]Write i2c OK [11:21:39]MH_I2C_Read... [11:21:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:39]Read from MH i2c: E2 [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: E2 0E 00 [11:21:39]MH_I2C_Read... [11:21:39]Read from MH i2c: E2 0E 00 E7 49 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F7 [11:21:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:21:39]wFMCommunicate OK [11:21:39]SAM_PROTO_GetShiftState done [11:21:39]FM_GetShiftState done [11:21:39]req_shift_opened done [11:21:39]requested_item shift.open_date is exist - process it [11:21:39]req_shift_open_date [11:21:39]req_shift_open_date done [11:21:39]produce_requested_data done [11:21:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111304,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:21:39]process_action_free close_receipt [11:21:39]json_value_free [11:21:39]json_value_free done [11:21:39]process_json_proto returns [11:21:39]Send response to host [11:21:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111304,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:21:39]free response buf [11:21:39]execute_script done [11:21:39]execute_script returns [11:21:39]free content buf [11:21:39]Sock 9.Close socket [11:21:39]Sock 9.Thread stoped [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:24]accept exits with 8 [11:22:24]New connection [11:22:24]New thread 3067084132 created [11:22:24]Thread 3067227492 joined [11:22:24]Waiting for new connection... [11:22:24] Sock 8.Parse request [11:22:24]Sock 8.Check first char [11:22:24]Sock 8.First char is OK [11:22:24]request: POST /json_proto HTTP/1.0 [11:22:24]Method: POST [11:22:24]URL: /json_proto [11:22:24]Method is POST - this is cgi request [11:22:24]url: /json_proto [11:22:24]query_string will be loaded in cgi processing [11:22:24]execute_cgi json_proto POST (null) [11:22:24]execute_cgi path=json_proto method=POST [11:22:24]POST find Content-Length [11:22:24]Host: 172.17.59.68:8080 [11:22:24]Content-Length: 677 [11:22:24]Content-Type: application/json [11:22:24] [11:22:24]POST finish read [11:22:24]Found Content-Length = 677 [11:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:24]execute_script... [11:22: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)319874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:24]POST & json_proto [11:22:24]process_json_proto [11:22:24]json parsed OK: [11:22:24]protocol is kg_v1.0 [11:22:24]action value=close_receipt [11:22:24]process_action close_receipt [11:22:24]cmd_close_receipt [11:22:24]MH_GetDate [11:22:24]Write to MH i2c: F0 00 00 E8 49 20 [11:22:24]Write i2c OK [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: F0 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: F0 09 00 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: F0 09 00 E8 49 00 8F BF 72 66 BC EC 60 65 BC [11:22:24]GetLastDocTimeStamp 1718796126 [11:22:24]current date 1718796175 [11:22:24]FM_GetShiftState [11:22:24]SAM_PROTO_GetShiftState [11:22:24]wFMCommunicate request_size=4 [11:22:24]MH_SAM_APDU [11:22:24]CAPDU: 80 13 01 00 [11:22:24]Write to MH i2c: E2 08 00 E9 49 80 13 01 00 00 00 00 00 AF [11:22:24]Write i2c OK [11:22:24]MH_I2C_Read... [11:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:24]Read from MH i2c: E2 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: E2 0E 00 [11:22:24]MH_I2C_Read... [11:22:24]Read from MH i2c: E2 0E 00 E9 49 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F9 [11:22:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:22:24]wFMCommunicate OK [11:22:24]SAM_PROTO_GetShiftState done [11:22:24]FM_GetShiftState done [11:22:24]opened in 1718760753 [11:22:24]opened+sec_in_day 1718847153 [11:22:24]quantity*price = 50065 [11:22:24]sum+1 = 50067 [11:22:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 54 19.06.2024 11:22 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111305 ФПД: 108364888821885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112256&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111305&fm=108364888821885&tin=02508201610067®Number=0000000000092771&sum=50000 [11:22:25]StoreToDocumentArchive [11:22:25]shift 388 fd 111305 [11:22:25]save to /storage/0388/doc_00111305 [11:22:25]save last doc name /storage/0388/doc_00111305 to /storage/kkm_last_doc_name [11:22:25]save OK [11:22:25]Clear old archive folders... [11:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:25]tlvbuf is B6F1D610 [11:22:25]SAM_PROTO_ClearQueue [11:22:25]wFMCommunicate request_size=4 [11:22:25]MH_SAM_APDU [11:22:25]CAPDU: 80 09 00 00 [11:22:25]Write to MH i2c: E2 08 00 F6 49 80 09 00 00 00 00 00 00 B1 [11:22:25]Write i2c OK [11:22:25]MH_I2C_Read... [11:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:25]Read from MH i2c: E2 [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: E2 03 00 [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: E2 03 00 F6 49 00 90 00 B3 [11:22:25]RAPDU: 90 00 [11:22:25]wFMCommunicate OK [11:22:25]SAM_PROTO_ClearQueue done [11:22:25]KKMCreateOFDPacket [11:22:25]OFDProtocolAddRootSTLVToBuf [11:22:25]FM_MakeSignedData [11:22:25]FM_MakeSignedData [11:22:25]SAM_PROTO_SignData [11:22:25]wFMCommunicate request_size=4 [11:22:25]MH_SAM_APDU [11:22:25]CAPDU: 80 0D 01 02 [11:22:25]Write to MH i2c: E2 08 00 F7 49 80 0D 01 02 00 00 00 00 B9 [11:22:25]Write i2c OK [11:22:25]MH_I2C_Read... [11:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:25]Read from MH i2c: E2 [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: E2 03 00 [11:22:25]MH_I2C_Read... [11:22:25]Read from MH i2c: E2 03 00 F7 49 00 90 00 B4 [11:22:25]RAPDU: 90 00 [11:22:25]wFMCommunicate OK [11:22:25]wFMCommunicate request_size=255 [11:22:25]MH_SAM_APDU [11:22: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B2 01 00 35 04 06 00 62 [11:22:26]Write to MH i2c: E2 02 01 F8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B2 01 00 35 04 06 00 62 00 00 2D [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:26]Read from MH i2c: E2 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 03 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 03 00 F8 49 00 90 00 B5 [11:22:26]RAPDU: 90 00 [11:22:26]wFMCommunicate OK [11:22:26]wFMCommunicate request_size=10 [11:22:26]MH_SAM_APDU [11:22:26]CAPDU: 80 0D 02 02 05 8E AA B4 50 7D [11:22:26]Write to MH i2c: E2 0D 00 F9 49 80 0D 02 02 05 00 8E AA B4 50 7D 00 00 7F [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:26]Read from MH i2c: E2 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 03 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 03 00 F9 49 00 90 00 B6 [11:22:26]RAPDU: 90 00 [11:22:26]wFMCommunicate OK [11:22:26]wFMCommunicate request_size=4 [11:22:26]MH_SAM_APDU [11:22:26]CAPDU: 80 0D 03 02 [11:22:26]Write to MH i2c: E2 08 00 FA 49 80 0D 03 02 00 00 00 00 BE [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:26]Read from MH i2c: E2 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 0B 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 0B 00 FA 49 00 9F 63 37 D0 4A 5E 30 D2 90 00 72 [11:22:26]RAPDU: 9F 63 37 D0 4A 5E 30 D2 90 00 [11:22:26]wFMCommunicate OK [11:22:26]SAM_PROTO_SignData done [11:22:26]FM_MakeSignedData done [11:22:26]CreateOFDProtocolMessage [11:22:26]wFMCommunicate request_size=4 [11:22:26]MH_SAM_APDU [11:22:26]CAPDU: 80 11 00 00 [11:22:26]Write to MH i2c: E2 08 00 FB 49 80 11 00 00 00 00 00 00 BE [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:26]Read from MH i2c: E2 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 17 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: E2 17 00 FB 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [11:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:22:26]wFMCommunicate OK [11:22:26]CreateOFDProtocolMessage done [11:22:26]OFDSenderStorePacket 111305 [11:22:26]StoreOFDPacket docnum=111305 [11:22:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 61 07 01 B5 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B2 01 00 35 04 06 00 62 8E AA B4 50 7D 9F 63 37 D0 4A 5E 30 D2 [11:22:26]CheckFolder [11:22:26]dirname=/storage/ofd_packets [11:22:26]CheckFolder done [11:22:26]ProducePacketName [11:22:26]name=ofd_packets/00111305 [11:22:26]NVStorageSaveData ofd_packets/00111305 [11:22:26]File name is /storage/ofd_packets/00111305 [11:22:26]Write 301 bytes [11:22:26]NVStorageSaveData done [11:22:26]OFDSenderStorePacket done [11:22:26]KKMCreateOFDPacket done [11:22:26]NVStorageSaveData kkm_last_timestamp [11:22:26]File name is /storage/kkm_last_timestamp [11:22:26]Write 4 bytes [11:22:26]NVStorageSaveData done [11:22:26]ExternCall_PrintAddStr [11:22:26]wPrintStart [11:22:26]Write to MH i2c: 01 00 00 FC 49 45 [11:22:26]Write i2c OK [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: 01 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: 01 07 00 [11:22:26]MH_I2C_Read... [11:22:26]Read from MH i2c: 01 07 00 FC 49 00 00 00 00 00 FF 0F 5A [11:22:26]RasterBufferAndPrint [11:22:26]line Счет N : (1)319874 [11:22:26]line ИНН: 02508201610067 [11:22:26]line Контрольно-Кассовый Чек [11:22:26]line ПРОДАЖА [11:22:26]line ТРК (МРК, ГНК) : 11 [11:22:26]line Товар: 2710124130 [11:22:26]line Аи-92-К-5 [11:22:26]line 7.540 * 66.40 [11:22:26]line = 500.66 [11:22:26]line НДС 12% НСП 1% [11:22:26]line > о реализуемом товаре [11:22:26]line ОКРУГЛЕНИЕ: -0.66 [11:22:26]line ИТОГО: 500.00 [11:22:26]line Внесено: 500.00 [11:22:26]line СДАЧА: 0.00 [11:22:26]line НСП 1% : 4.43 [11:22:26]line НДС 12% : 53.17 [11:22:26]line Наличными: 500.00 [11:22:26]line Безнал.: 0.00 [11:22:26]line Место: АЗС № 65 "Партнер Нефть" [11:22:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:22:26]line СНО: Общий режим [11:22:26]line Чек 54 19.06.2024 11:22 [11:22:26]line Смена: 388 ФФД: 1.0 [11:22:26]line ЗНМ: 0300000198 [11:22:26]line РНМ: 0000000000092771 [11:22:26]line Версия ККМ: 001 [11:22:26]line ФМ: 0000000000875083 [11:22:26]line ФД: 111305 [11:22:26]line ФПД: 108364888821885 [11:22:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112256&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111305&fm=108364888821885&tin=02508201610067®Number=0000000000092771&sum=50000 [11:22:26]OFD Sender: Processing packet 111305 [packets to send 38, broken 37] [11:22:26]ProducePacketName [11:22:26]name=ofd_packets/00111305 [11:22:26]OFD Sender: To server: pG, [11:22:26]CommunicateWithHost lk.salyk.kg:30040 [11:22:26]ConnectInit lk.salyk.kg [11:22:26]written 0, free lines is 4095 [11:22:26]Connected sock=10 [11:22:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F9 61 07 01 B5 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 90 BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B2 01 00 35 04 06 00 62 8E AA B4 50 7D 9F 63 37 D0 4A 5E 30 D2 [11:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C3 04 47 00 31 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C9 B2 01 00 F4 03 04 00 FB 56 72 66 B6 04 01 00 00 2B E7 D9 66 06 22 AB 5F [11:22:27]CommunicateWithHost err = 0 [11:22:27]CheckOFDResponse [11:22:27]1017 (14) - 77093643461234 [11:22:27]1041 (16) - 0000000000875083 [11:22:27]1040 (4) - 111305 [11:22:27]1012 (4) - 19.06.2024 03:56 [11:22:27]1206 (1) - 0 [11:22:27]OFD Sender: Remove packet 111305 [11:22:27]ProducePacketName [11:22:27]name=ofd_packets/00111305 [11:22:27]NVStorageDeleteData [11:22:27]Write to MH i2c: 01 00 00 27 4A 71 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 07 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: 01 07 00 27 4A 00 00 00 00 00 CC 0C 50 [11:22:27]RasterBufferAndPrint [11:22:27]line [11:22:27]line [11:22:27]line [11:22:27]line [11:22:27]line [11:22:27]written 0, free lines is 3281 [11:22:27]MH_Cut [11:22:27]Write to MH i2c: D1 01 00 2E 4A 01 4A [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: D1 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: D1 01 00 [11:22:27]MH_I2C_Read... [11:22:27]Read from MH i2c: D1 01 00 2E 4A 00 49 [11:22:27]Write to MH i2c: 01 00 00 2F 4A 79 [11:22:27]Write i2c OK [11:22:27]MH_I2C_Read... [11:22:27]OFD Sender: No OFD packet to send [11:22:27]*** Cut start [11:22:27]*** Partial cut [11:22:27]*** CUTSNS_PIN = 1 [11:22:28]*** CUTSNS_PIN = 0 [11:22:28]*** Brake cut motor [11:22:28]Read from MH i2c: 01 [11:22:28]MH_I2C_Read... [11:22:28]*** Stop cut motor [11:22:28]*** Cut end [11:22:28]Read from MH i2c: 01 07 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: 01 07 00 2F 4A 00 00 00 00 00 FF 0F 8E [11:22:28]process_action close_receipt done [11:22:28]requested_data is exist [11:22:28]produce_requested_data [11:22:28]requested_item fm.sn is exist - process it [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 11 00 00 [11:22:28]Write to MH i2c: E2 08 00 30 4A 80 11 00 00 00 00 00 00 F4 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 17 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 17 00 30 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [11:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:22:28]wFMCommunicate OK [11:22:28]requested_item fd.num is exist - process it [11:22:28]SAM_PROTO_GetFieldsCounters [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 13 00 00 [11:22:28]Write to MH i2c: E2 08 00 31 4A 80 13 00 00 00 00 00 00 F7 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 62 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 62 00 31 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:22: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:28]wFMCommunicate OK [11:22:28]SAM_PROTO_GetFieldsCounters done [11:22:28]requested_item shift.num is exist - process it [11:22:28]requested_item shift.opened is exist - process it [11:22:28]req_shift_opened [11:22:28]FM_GetShiftState [11:22:28]SAM_PROTO_GetShiftState [11:22:28]wFMCommunicate request_size=4 [11:22:28]MH_SAM_APDU [11:22:28]CAPDU: 80 13 01 00 [11:22:28]Write to MH i2c: E2 08 00 32 4A 80 13 01 00 00 00 00 00 F9 [11:22:28]Write i2c OK [11:22:28]MH_I2C_Read... [11:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:28]Read from MH i2c: E2 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 0E 00 [11:22:28]MH_I2C_Read... [11:22:28]Read from MH i2c: E2 0E 00 32 4A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 43 [11:22:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:22:28]wFMCommunicate OK [11:22:28]SAM_PROTO_GetShiftState done [11:22:28]FM_GetShiftState done [11:22:28]req_shift_opened done [11:22:28]requested_item shift.open_date is exist - process it [11:22:28]req_shift_open_date [11:22:28]req_shift_open_date done [11:22:28]produce_requested_data done [11:22:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111305,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:22:28]process_action_free close_receipt [11:22:28]json_value_free [11:22:28]json_value_free done [11:22:28]process_json_proto returns [11:22:28]Send response to host [11:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111305,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:22:28]free response buf [11:22:28]execute_script done [11:22:28]execute_script returns [11:22:28]free content buf [11:22:28]Sock 8.Close socket [11:22:28]Sock 8.Thread stoped [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:05]accept exits with 9 [11:23:05]New connection [11:23:05]New thread 3067227492 created [11:23:05]Thread 3067084132 joined [11:23:05]Waiting for new connection... [11:23:05] Sock 9.Parse request [11:23:05]Sock 9.Check first char [11:23:05]Sock 9.First char is OK [11:23:05]request: POST /json_proto HTTP/1.0 [11:23:05]Method: POST [11:23:05]URL: /json_proto [11:23:05]Method is POST - this is cgi request [11:23:05]url: /json_proto [11:23:05]query_string will be loaded in cgi processing [11:23:05]execute_cgi json_proto POST (null) [11:23:05]execute_cgi path=json_proto method=POST [11:23:05]POST find Content-Length [11:23:05]Host: 172.17.59.68:8080 [11:23:05]Content-Length: 677 [11:23:05]Content-Type: application/json [11:23:05] [11:23:05]POST finish read [11:23:05]Found Content-Length = 677 [11:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:05]execute_script... [11:23:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:05]POST & json_proto [11:23:05]process_json_proto [11:23:05]json parsed OK: [11:23:05]protocol is kg_v1.0 [11:23:05]action value=close_receipt [11:23:05]process_action close_receipt [11:23:05]cmd_close_receipt [11:23:05]MH_GetDate [11:23:05]Write to MH i2c: F0 00 00 33 4A 6C [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 09 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: F0 09 00 33 4A 00 B8 BF 72 66 BC EC 60 65 31 [11:23:05]GetLastDocTimeStamp 1718796176 [11:23:05]current date 1718796216 [11:23:05]FM_GetShiftState [11:23:05]SAM_PROTO_GetShiftState [11:23:05]wFMCommunicate request_size=4 [11:23:05]MH_SAM_APDU [11:23:05]CAPDU: 80 13 01 00 [11:23:05]Write to MH i2c: E2 08 00 34 4A 80 13 01 00 00 00 00 00 FB [11:23:05]Write i2c OK [11:23:05]MH_I2C_Read... [11:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:05]Read from MH i2c: E2 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 [11:23:05]MH_I2C_Read... [11:23:05]Read from MH i2c: E2 0E 00 34 4A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 45 [11:23:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:23:05]wFMCommunicate OK [11:23:05]SAM_PROTO_GetShiftState done [11:23:05]FM_GetShiftState done [11:23:05]opened in 1718760753 [11:23:05]opened+sec_in_day 1718847153 [11:23:05]quantity*price = 50065 [11:23:05]sum+1 = 50067 [11:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 55 19.06.2024 11:23 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111306 ФПД: 163027435026340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112336&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111306&fm=163027435026340&tin=02508201610067®Number=0000000000092771&sum=50000 [11:23:06]StoreToDocumentArchive [11:23:06]shift 388 fd 111306 [11:23:06]save to /storage/0388/doc_00111306 [11:23:06]save last doc name /storage/0388/doc_00111306 to /storage/kkm_last_doc_name [11:23:06]save OK [11:23:06]Clear old archive folders... [11:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:06]tlvbuf is 019D7310 [11:23:06]SAM_PROTO_ClearQueue [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 09 00 00 [11:23:06]Write to MH i2c: E2 08 00 41 4A 80 09 00 00 00 00 00 00 FD [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 41 4A 00 90 00 FF [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_ClearQueue done [11:23:06]KKMCreateOFDPacket [11:23:06]OFDProtocolAddRootSTLVToBuf [11:23:06]FM_MakeSignedData [11:23:06]FM_MakeSignedData [11:23:06]SAM_PROTO_SignData [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 01 02 [11:23:06]Write to MH i2c: E2 08 00 42 4A 80 0D 01 02 00 00 00 00 05 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 42 4A 00 90 00 00 [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]wFMCommunicate request_size=255 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 B8 BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B2 01 00 35 04 06 00 94 [11:23:06]Write to MH i2c: E2 02 01 43 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 B8 BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B2 01 00 35 04 06 00 94 00 00 D5 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 43 4A 00 90 00 01 [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]wFMCommunicate request_size=10 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 02 02 05 45 C8 5A 77 A4 [11:23:06]Write to MH i2c: E2 0D 00 44 4A 80 0D 02 02 05 00 45 C8 5A 77 A4 00 00 94 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 03 00 44 4A 00 90 00 02 [11:23:06]RAPDU: 90 00 [11:23:06]wFMCommunicate OK [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 0D 03 02 [11:23:06]Write to MH i2c: E2 08 00 45 4A 80 0D 03 02 00 00 00 00 0A [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0B 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 0B 00 45 4A 00 95 1C AB 77 BB 94 0E D7 90 00 12 [11:23:06]RAPDU: 95 1C AB 77 BB 94 0E D7 90 00 [11:23:06]wFMCommunicate OK [11:23:06]SAM_PROTO_SignData done [11:23:06]FM_MakeSignedData done [11:23:06]CreateOFDProtocolMessage [11:23:06]wFMCommunicate request_size=4 [11:23:06]MH_SAM_APDU [11:23:06]CAPDU: 80 11 00 00 [11:23:06]Write to MH i2c: E2 08 00 46 4A 80 11 00 00 00 00 00 00 0A [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:06]Read from MH i2c: E2 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 17 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: E2 17 00 46 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [11:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:23:06]wFMCommunicate OK [11:23:06]CreateOFDProtocolMessage done [11:23:06]OFDSenderStorePacket 111306 [11:23:06]StoreOFDPacket docnum=111306 [11:23:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 40 96 07 01 7D 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 B8 BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B2 01 00 35 04 06 00 94 45 C8 5A 77 A4 95 1C AB 77 BB 94 0E D7 [11:23:06]CheckFolder [11:23:06]dirname=/storage/ofd_packets [11:23:06]CheckFolder done [11:23:06]ProducePacketName [11:23:06]name=ofd_packets/00111306 [11:23:06]NVStorageSaveData ofd_packets/00111306 [11:23:06]File name is /storage/ofd_packets/00111306 [11:23:06]Write 301 bytes [11:23:06]NVStorageSaveData done [11:23:06]OFDSenderStorePacket done [11:23:06]KKMCreateOFDPacket done [11:23:06]NVStorageSaveData kkm_last_timestamp [11:23:06]File name is /storage/kkm_last_timestamp [11:23:06]Write 4 bytes [11:23:06]NVStorageSaveData done [11:23:06]ExternCall_PrintAddStr [11:23:06]wPrintStart [11:23:06]Write to MH i2c: 01 00 00 47 4A 91 [11:23:06]Write i2c OK [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 07 00 [11:23:06]MH_I2C_Read... [11:23:06]Read from MH i2c: 01 07 00 47 4A 00 00 00 00 00 FF 0F A6 [11:23:06]RasterBufferAndPrint [11:23:06]line Счет N : (1)319875 [11:23:06]line ИНН: 02508201610067 [11:23:06]line Контрольно-Кассовый Чек [11:23:06]line ПРОДАЖА [11:23:06]line ТРК (МРК, ГНК) : 11 [11:23:06]line Товар: 2710124130 [11:23:06]line Аи-92-К-5 [11:23:06]line 7.540 * 66.40 [11:23:06]line = 500.66 [11:23:06]line НДС 12% НСП 1% [11:23:06]line > о реализуемом товаре [11:23:06]line ОКРУГЛЕНИЕ: -0.66 [11:23:06]line ИТОГО: 500.00 [11:23:06]line Внесено: 500.00 [11:23:06]line СДАЧА: 0.00 [11:23:06]line НСП 1% : 4.43 [11:23:06]line НДС 12% : 53.17 [11:23:06]line Наличными: 500.00 [11:23:06]line Безнал.: 0.00 [11:23:06]line Место: АЗС № 65 "Партнер Нефть" [11:23:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:23:06]line СНО: Общий режим [11:23:06]line Чек 55 19.06.2024 11:23 [11:23:06]line Смена: 388 ФФД: 1.0 [11:23:06]line ЗНМ: 0300000198 [11:23:06]line РНМ: 0000000000092771 [11:23:06]line Версия ККМ: 001 [11:23:06]line ФМ: 0000000000875083 [11:23:06]line ФД: 111306 [11:23:06]line ФПД: 163027435026340 [11:23:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112336&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111306&fm=163027435026340&tin=02508201610067®Number=0000000000092771&sum=50000 [11:23:07]OFD Sender: Processing packet 111306 [packets to send 38, broken 37] [11:23:07]ProducePacketName [11:23:07]name=ofd_packets/00111306 [11:23:07]OFD Sender: To server: pG, [11:23:07]CommunicateWithHost lk.salyk.kg:30040 [11:23:07]ConnectInit lk.salyk.kg [11:23:07]written 0, free lines is 4095 [11:23:07]Write to MH i2c: 01 00 00 72 4A BC [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: 01 07 00 72 4A 00 00 00 00 00 CC 0C 9B [11:23:07]RasterBufferAndPrint [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]line [11:23:07]written 0, free lines is 3280 [11:23:07]MH_Cut [11:23:07]Write to MH i2c: D1 01 00 79 4A 01 95 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 01 00 [11:23:07]MH_I2C_Read... [11:23:07]Read from MH i2c: D1 01 00 79 4A 00 94 [11:23:07]Write to MH i2c: 01 00 00 7A 4A C4 [11:23:07]Write i2c OK [11:23:07]MH_I2C_Read... [11:23:08]*** Cut start [11:23:08]*** Partial cut [11:23:08]*** CUTSNS_PIN = 1 [11:23:08]*** CUTSNS_PIN = 0 [11:23:08]*** Brake cut motor [11:23:09]Read from MH i2c: 01 [11:23:09]MH_I2C_Read... [11:23:09]*** Stop cut motor [11:23:09]*** Cut end [11:23:09]Read from MH i2c: 01 07 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: 01 07 00 7A 4A 00 00 00 00 00 FF 0F D9 [11:23:09]process_action close_receipt done [11:23:09]requested_data is exist [11:23:09]produce_requested_data [11:23:09]requested_item fm.sn is exist - process it [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 11 00 00 [11:23:09]Write to MH i2c: E2 08 00 7B 4A 80 11 00 00 00 00 00 00 3F [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 17 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 17 00 7B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [11:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:23:09]wFMCommunicate OK [11:23:09]requested_item fd.num is exist - process it [11:23:09]SAM_PROTO_GetFieldsCounters [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 13 00 00 [11:23:09]Write to MH i2c: E2 08 00 7C 4A 80 13 00 00 00 00 00 00 42 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 62 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 62 00 7C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [11:23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:09]wFMCommunicate OK [11:23:09]SAM_PROTO_GetFieldsCounters done [11:23:09]requested_item shift.num is exist - process it [11:23:09]requested_item shift.opened is exist - process it [11:23:09]req_shift_opened [11:23:09]FM_GetShiftState [11:23:09]SAM_PROTO_GetShiftState [11:23:09]wFMCommunicate request_size=4 [11:23:09]MH_SAM_APDU [11:23:09]CAPDU: 80 13 01 00 [11:23:09]Write to MH i2c: E2 08 00 7D 4A 80 13 01 00 00 00 00 00 44 [11:23:09]Write i2c OK [11:23:09]MH_I2C_Read... [11:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:09]Read from MH i2c: E2 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 0E 00 [11:23:09]MH_I2C_Read... [11:23:09]Read from MH i2c: E2 0E 00 7D 4A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8E [11:23:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:23:09]wFMCommunicate OK [11:23:09]SAM_PROTO_GetShiftState done [11:23:09]FM_GetShiftState done [11:23:09]req_shift_opened done [11:23:09]requested_item shift.open_date is exist - process it [11:23:09]req_shift_open_date [11:23:09]req_shift_open_date done [11:23:09]produce_requested_data done [11:23:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111306,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:23:09]process_action_free close_receipt [11:23:09]json_value_free [11:23:09]json_value_free done [11:23:09]process_json_proto returns [11:23:09]Send response to host [11:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111306,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:23:09]free response buf [11:23:09]execute_script done [11:23:09]execute_script returns [11:23:09]free content buf [11:23:09]Sock 9.Close socket [11:23:09]Sock 9.Thread stoped [11:24:35]accept exits with 8 [11:24:35]New connection [11:24:35]New thread 3067084132 created [11:24:35]Thread 3067227492 joined [11:24:35]Waiting for new connection... [11:24:35] Sock 8.Parse request [11:24:35]Sock 8.Check first char [11:24:35]Sock 8.First char is OK [11:24:35]request: POST /json_proto HTTP/1.0 [11:24:35]Method: POST [11:24:35]URL: /json_proto [11:24:35]Method is POST - this is cgi request [11:24:35]url: /json_proto [11:24:35]query_string will be loaded in cgi processing [11:24:35]execute_cgi json_proto POST (null) [11:24:35]execute_cgi path=json_proto method=POST [11:24:35]POST find Content-Length [11:24:35]Host: 172.17.59.68:8080 [11:24:35]Content-Length: 678 [11:24:35]Content-Type: application/json [11:24:35] [11:24:35]POST finish read [11:24:35]Found Content-Length = 678 [11:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:35]execute_script... [11:24:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:35]POST & json_proto [11:24:35]process_json_proto [11:24:35]json parsed OK: [11:24:35]protocol is kg_v1.0 [11:24:35]action value=close_receipt [11:24:35]process_action close_receipt [11:24:35]cmd_close_receipt [11:24:35]MH_GetDate [11:24:35]Write to MH i2c: F0 00 00 7E 4A B7 [11:24:35]Write i2c OK [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 09 00 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 09 00 7E 4A 00 12 C0 72 66 BC EC 60 65 D7 [11:24:35]GetLastDocTimeStamp 1718796216 [11:24:35]current date 1718796306 [11:24:35]FM_GetShiftState [11:24:35]SAM_PROTO_GetShiftState [11:24:35]wFMCommunicate request_size=4 [11:24:35]MH_SAM_APDU [11:24:35]CAPDU: 80 13 01 00 [11:24:35]Write to MH i2c: E2 08 00 7F 4A 80 13 01 00 00 00 00 00 46 [11:24:35]Write i2c OK [11:24:35]MH_I2C_Read... [11:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:35]Read from MH i2c: E2 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: E2 0E 00 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: E2 0E 00 7F 4A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 90 [11:24:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:24:35]wFMCommunicate OK [11:24:35]SAM_PROTO_GetShiftState done [11:24:35]FM_GetShiftState done [11:24:35]opened in 1718760753 [11:24:35]opened+sec_in_day 1718847153 [11:24:35]quantity*price = 70052 [11:24:35]sum+1 = 70053 [11:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 56 19.06.2024 11:25 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111307 ФПД: 68101788493474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112506&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111307&fm=68101788493474&tin=02508201610067®Number=0000000000092771&sum=70000 [11:24:36]StoreToDocumentArchive [11:24:36]shift 388 fd 111307 [11:24:36]save to /storage/0388/doc_00111307 [11:24:36]save last doc name /storage/0388/doc_00111307 to /storage/kkm_last_doc_name [11:24:36]save OK [11:24:36]Clear old archive folders... [11:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:36]tlvbuf is 01A2FBE0 [11:24:36]SAM_PROTO_ClearQueue [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 09 00 00 [11:24:36]Write to MH i2c: E2 08 00 8C 4A 80 09 00 00 00 00 00 00 48 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 8C 4A 00 90 00 4A [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]SAM_PROTO_ClearQueue done [11:24:36]KKMCreateOFDPacket [11:24:36]OFDProtocolAddRootSTLVToBuf [11:24:36]FM_MakeSignedData [11:24:36]FM_MakeSignedData [11:24:36]SAM_PROTO_SignData [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 01 02 [11:24:36]Write to MH i2c: E2 08 00 8D 4A 80 0D 01 02 00 00 00 00 50 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 8D 4A 00 90 00 4B [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]wFMCommunicate request_size=255 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 12 C0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B2 01 00 35 04 06 00 3D [11:24:36]Write to MH i2c: E2 02 01 8E 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 12 C0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B2 01 00 35 04 06 00 3D 00 00 38 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 8E 4A 00 90 00 4C [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]wFMCommunicate request_size=10 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 02 02 05 F0 2E E9 66 A2 [11:24:36]Write to MH i2c: E2 0D 00 8F 4A 80 0D 02 02 05 00 F0 2E E9 66 A2 00 00 6C [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 8F 4A 00 90 00 4D [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 03 02 [11:24:36]Write to MH i2c: E2 08 00 90 4A 80 0D 03 02 00 00 00 00 55 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 0B 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 0B 00 90 4A 00 A9 9E 07 55 57 19 9B AB 90 00 AF [11:24:36]RAPDU: A9 9E 07 55 57 19 9B AB 90 00 [11:24:36]wFMCommunicate OK [11:24:36]SAM_PROTO_SignData done [11:24:36]FM_MakeSignedData done [11:24:36]CreateOFDProtocolMessage [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 11 00 00 [11:24:36]Write to MH i2c: E2 08 00 91 4A 80 11 00 00 00 00 00 00 55 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 17 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 17 00 91 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [11:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:24:36]wFMCommunicate OK [11:24:36]CreateOFDProtocolMessage done [11:24:36]OFDSenderStorePacket 111307 [11:24:36]StoreOFDPacket docnum=111307 [11:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 E8 07 01 70 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 12 C0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B2 01 00 35 04 06 00 3D F0 2E E9 66 A2 A9 9E 07 55 57 19 9B AB [11:24:36]CheckFolder [11:24:36]dirname=/storage/ofd_packets [11:24:36]CheckFolder done [11:24:36]ProducePacketName [11:24:36]name=ofd_packets/00111307 [11:24:36]NVStorageSaveData ofd_packets/00111307 [11:24:36]File name is /storage/ofd_packets/00111307 [11:24:36]Write 301 bytes [11:24:36]NVStorageSaveData done [11:24:36]OFDSenderStorePacket done [11:24:36]KKMCreateOFDPacket done [11:24:36]NVStorageSaveData kkm_last_timestamp [11:24:36]File name is /storage/kkm_last_timestamp [11:24:36]Write 4 bytes [11:24:36]NVStorageSaveData done [11:24:36]ExternCall_PrintAddStr [11:24:36]wPrintStart [11:24:36]Write to MH i2c: 01 00 00 92 4A DC [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: 01 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: 01 07 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: 01 07 00 92 4A 00 00 00 00 00 FF 0F F1 [11:24:36]RasterBufferAndPrint [11:24:36]line Счет N : (1)319876 [11:24:36]line ИНН: 02508201610067 [11:24:36]line Контрольно-Кассовый Чек [11:24:36]line ПРОДАЖА [11:24:36]line ТРК (МРК, ГНК) : 11 [11:24:36]line Товар: 2710124130 [11:24:36]line Аи-92-К-5 [11:24:36]line 10.550 * 66.40 [11:24:36]line = 700.52 [11:24:36]line НДС 12% НСП 1% [11:24:36]line > о реализуемом товаре [11:24:36]line ОКРУГЛЕНИЕ: -0.52 [11:24:36]line ИТОГО: 700.00 [11:24:36]line Внесено: 700.00 [11:24:36]line СДАЧА: 0.00 [11:24:36]line НСП 1% : 6.20 [11:24:36]line НДС 12% : 74.39 [11:24:36]line Наличными: 700.00 [11:24:36]line Безнал.: 0.00 [11:24:36]line Место: АЗС № 65 "Партнер Нефть" [11:24:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:24:36]line СНО: Общий режим [11:24:36]line Чек 56 19.06.2024 11:25 [11:24:36]line Смена: 388 ФФД: 1.0 [11:24:36]line ЗНМ: 0300000198 [11:24:36]line РНМ: 0000000000092771 [11:24:36]line Версия ККМ: 001 [11:24:36]line ФМ: 0000000000875083 [11:24:36]line ФД: 111307 [11:24:36]line ФПД: 68101788493474 [11:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T112506&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111307&fm=68101788493474&tin=02508201610067®Number=0000000000092771&sum=70000 [11:24:37]written 0, free lines is 4095 [11:24:37]Write to MH i2c: 01 00 00 BD 4A 07 [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 07 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 07 00 BD 4A 00 00 00 00 00 C8 0C E2 [11:24:37]RasterBufferAndPrint [11:24:37]line [11:24:37]line [11:24:37]line [11:24:37]line [11:24:37]line [11:24:37]written 0, free lines is 3278 [11:24:37]MH_Cut [11:24:37]Write to MH i2c: D1 01 00 C4 4A 01 E0 [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: D1 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: D1 01 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: D1 01 00 C4 4A 00 DF [11:24:37]Write to MH i2c: 01 00 00 C5 4A 0F [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:38]*** Cut start [11:24:38]*** Partial cut [11:24:38]*** CUTSNS_PIN = 1 [11:24:38]*** CUTSNS_PIN = 0 [11:24:38]*** Brake cut motor [11:24:38]Read from MH i2c: 01 [11:24:38]MH_I2C_Read... [11:24:38]*** Stop cut motor [11:24:38]*** Cut end [11:24:38]Read from MH i2c: 01 07 00 [11:24:38]MH_I2C_Read... [11:24:38]Read from MH i2c: 01 07 00 C5 4A 00 00 00 00 00 FF 0F 24 [11:24:38]process_action close_receipt done [11:24:38]requested_data is exist [11:24:38]produce_requested_data [11:24:38]requested_item fm.sn is exist - process it [11:24:38]wFMCommunicate request_size=4 [11:24:38]MH_SAM_APDU [11:24:38]CAPDU: 80 11 00 00 [11:24:38]Write to MH i2c: E2 08 00 C6 4A 80 11 00 00 00 00 00 00 8A [11:24:38]Write i2c OK [11:24:38]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 17 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 17 00 C6 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [11:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:24:39]wFMCommunicate OK [11:24:39]requested_item fd.num is exist - process it [11:24:39]SAM_PROTO_GetFieldsCounters [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 13 00 00 [11:24:39]Write to MH i2c: E2 08 00 C7 4A 80 13 00 00 00 00 00 00 8D [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 62 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 62 00 C7 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [11:24:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_GetFieldsCounters done [11:24:39]requested_item shift.num is exist - process it [11:24:39]requested_item shift.opened is exist - process it [11:24:39]req_shift_opened [11:24:39]FM_GetShiftState [11:24:39]SAM_PROTO_GetShiftState [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 13 01 00 [11:24:39]Write to MH i2c: E2 08 00 C8 4A 80 13 01 00 00 00 00 00 8F [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 0E 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 0E 00 C8 4A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D9 [11:24:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_GetShiftState done [11:24:39]FM_GetShiftState done [11:24:39]req_shift_opened done [11:24:39]requested_item shift.open_date is exist - process it [11:24:39]req_shift_open_date [11:24:39]req_shift_open_date done [11:24:39]produce_requested_data done [11:24:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111307,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:24:39]process_action_free close_receipt [11:24:39]json_value_free [11:24:39]json_value_free done [11:24:39]process_json_proto returns [11:24:39]Send response to host [11:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111307,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:24:39]free response buf [11:24:39]execute_script done [11:24:39]execute_script returns [11:24:39]free content buf [11:24:39]Sock 8.Close socket [11:24:39]Sock 8.Thread stoped [11:25:16]ConnectInit Can't connect to host [11:25:16]CommunicateWithHost connect error [11:25:16]CommunicateWithHost err = -1 [11:25:16]OFD Sender: Server communicate error [11:25:16]OFD Sender: Processing packet 111306 [packets to send 39, broken 37] [11:25:16]ProducePacketName [11:25:16]name=ofd_packets/00111306 [11:25:16]OFD Sender: To server: pG, [11:25:16]CommunicateWithHost lk.salyk.kg:30040 [11:25:16]ConnectInit lk.salyk.kg [11:25:17]Connected sock=8 [11:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 40 96 07 01 7D 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 B8 BF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CA B2 01 00 35 04 06 00 94 45 C8 5A 77 A4 95 1C AB 77 BB 94 0E D7 [11:25:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 00 7F 47 00 91 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 35 30 38 33 10 04 04 00 CA B2 01 00 F4 03 04 00 A5 57 72 66 B6 04 01 00 00 72 98 A3 5D 84 32 6B DB [11:25:17]CommunicateWithHost err = 0 [11:25:17]CheckOFDResponse [11:25:17]1017 (14) - 77093643461234 [11:25:17]1041 (16) - 0000000000875083 [11:25:17]1040 (4) - 111306 [11:25:17]1012 (4) - 19.06.2024 03:59 [11:25:17]1206 (1) - 0 [11:25:17]OFD Sender: Remove packet 111306 [11:25:17]ProducePacketName [11:25:17]name=ofd_packets/00111306 [11:25:17]NVStorageDeleteData [11:25:17]OFD Sender: Processing packet 111307 [packets to send 38, broken 37] [11:25:17]ProducePacketName [11:25:17]name=ofd_packets/00111307 [11:25:17]OFD Sender: To server: pG, [11:25:17]CommunicateWithHost lk.salyk.kg:30040 [11:25:17]ConnectInit lk.salyk.kg [11:25:17]Connected sock=8 [11:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 85 E8 07 01 70 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 12 C0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B2 01 00 35 04 06 00 3D F0 2E E9 66 A2 A9 9E 07 55 57 19 9B AB [11:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EF BB 47 00 EC 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CB B2 01 00 F4 03 04 00 A6 57 72 66 B6 04 01 00 00 AF 18 C2 CD 28 63 2D 03 [11:25:18]CommunicateWithHost err = 0 [11:25:18]CheckOFDResponse [11:25:18]1017 (14) - 77093643461234 [11:25:18]1041 (16) - 0000000000875083 [11:25:18]1040 (4) - 111307 [11:25:18]1012 (4) - 19.06.2024 03:59 [11:25:18]1206 (1) - 0 [11:25:18]OFD Sender: Remove packet 111307 [11:25:18]ProducePacketName [11:25:18]name=ofd_packets/00111307 [11:25:18]NVStorageDeleteData [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [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:16]accept exits with 9 [11:30:16]New connection [11:30:16]New thread 3067227492 created [11:30:16]Thread 3067084132 joined [11:30:16]Waiting for new connection... [11:30:16] Sock 9.Parse request [11:30:16]Sock 9.Check first char [11:30:16]Sock 9.First char is OK [11:30:16]request: POST /json_proto HTTP/1.0 [11:30:16]Method: POST [11:30:16]URL: /json_proto [11:30:16]Method is POST - this is cgi request [11:30:16]url: /json_proto [11:30:16]query_string will be loaded in cgi processing [11:30:16]execute_cgi json_proto POST (null) [11:30:16]execute_cgi path=json_proto method=POST [11:30:16]POST find Content-Length [11:30:16]Host: 172.17.59.68:8080 [11:30:16]Content-Length: 1200 [11:30:16]Content-Type: application/json [11:30:16] [11:30:16]POST finish read [11:30:16]Found Content-Length = 1200 [11:30:16]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319877\u000A19.06.2024 09:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:16]execute_script... [11:30:16]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319877\u000A19.06.2024 09:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:16]POST & json_proto [11:30:16]process_json_proto [11:30:16]json parsed OK: [11:30:16]protocol is kg_v1.0 [11:30:16]action value=print_text [11:30:16]process_action print_text [11:30:16]cmd_print_text [11:30:16]ExternCall_PrintAddStr [11:30:16]wPrintStart [11:30:16]Write to MH i2c: 01 00 00 C9 4A 13 [11:30:16]Write i2c OK [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: 01 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: 01 07 00 [11:30:16]MH_I2C_Read... [11:30:16]Read from MH i2c: 01 07 00 C9 4A 00 00 00 00 00 FF 0F 28 [11:30:16]RasterBufferAndPrint [11:30:16]line *****ТОВАРНЫЙ ЧЕК***** [11:30:16]line АЗС 65 [11:30:16]line Партнер нефть [11:30:16]line 02508201610067 [11:30:16]line Кассир : Амантуров Р. [11:30:16]line Счет N : (1)319877 [11:30:16]line 19.06.2024 09:59 [11:30:16]line ПРОДАЖА [11:30:16]line ТРК (МРК, ГНК): 11 [11:30:16]line Вид ГСМ : 2710124130 [11:30:16]line Аи-92-К-5 [11:30:16]line 10.000 x 66.40 [11:30:16]line ИТОГ: 664.00 [11:30:16]line Тип оплаты: Талоны: Топливная Карта [11:30:16]line 54662 [11:30:16]line ______________________ [11:30:16]line (подпись) [11:30:16]written 0, free lines is 4095 [11:30:17]Write to MH i2c: 01 00 00 DD 4A 27 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 07 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 07 00 DD 4A 00 00 00 00 00 10 0E 4C [11:30:17]RasterBufferAndPrint [11:30:17]line [11:30:17]line [11:30:17]line [11:30:17]line [11:30:17]line [11:30:17]written 0, free lines is 3601 [11:30:17]MH_Cut [11:30:17]Write to MH i2c: D1 01 00 E4 4A 01 00 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: D1 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: D1 01 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: D1 01 00 E4 4A 00 FF [11:30:17]Write to MH i2c: 01 00 00 E5 4A 2F [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** Cut start [11:30:17]*** Partial cut [11:30:17]*** CUTSNS_PIN = 1 [11:30:17]*** CUTSNS_PIN = 0 [11:30:17]*** Brake cut motor [11:30:18]Read from MH i2c: 01 [11:30:18]MH_I2C_Read... [11:30:18]*** Stop cut motor [11:30:18]*** Cut end [11:30:18]Read from MH i2c: 01 07 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: 01 07 00 E5 4A 00 00 00 00 00 FF 0F 44 [11:30:18]process_action print_text done [11:30:18]requested_data is exist [11:30:18]produce_requested_data [11:30:18]requested_item fm.sn is exist - process it [11:30:18]wFMCommunicate request_size=4 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 11 00 00 [11:30:18]Write to MH i2c: E2 08 00 E6 4A 80 11 00 00 00 00 00 00 AA [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 17 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 17 00 E6 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [11:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:30:18]wFMCommunicate OK [11:30:18]requested_item fd.num is exist - process it [11:30:18]SAM_PROTO_GetFieldsCounters [11:30:18]wFMCommunicate request_size=4 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 13 00 00 [11:30:18]Write to MH i2c: E2 08 00 E7 4A 80 13 00 00 00 00 00 00 AD [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 62 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 62 00 E7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [11:30: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:18]wFMCommunicate OK [11:30:18]SAM_PROTO_GetFieldsCounters done [11:30:18]requested_item shift.num is exist - process it [11:30:18]requested_item shift.opened is exist - process it [11:30:18]req_shift_opened [11:30:18]FM_GetShiftState [11:30:18]SAM_PROTO_GetShiftState [11:30:18]wFMCommunicate request_size=4 [11:30:18]MH_SAM_APDU [11:30:18]CAPDU: 80 13 01 00 [11:30:18]Write to MH i2c: E2 08 00 E8 4A 80 13 01 00 00 00 00 00 AF [11:30:18]Write i2c OK [11:30:18]MH_I2C_Read... [11:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:18]Read from MH i2c: E2 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 0E 00 [11:30:18]MH_I2C_Read... [11:30:18]Read from MH i2c: E2 0E 00 E8 4A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F9 [11:30:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:30:18]wFMCommunicate OK [11:30:18]SAM_PROTO_GetShiftState done [11:30:18]FM_GetShiftState done [11:30:18]req_shift_opened done [11:30:18]requested_item shift.open_date is exist - process it [11:30:18]req_shift_open_date [11:30:18]req_shift_open_date done [11:30:18]produce_requested_data done [11:30:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111307,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:30:18]process_action_free print_text [11:30:18]json_value_free [11:30:18]json_value_free done [11:30:18]process_json_proto returns [11:30:18]Send response to host [11:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111307,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:30:18]free response buf [11:30:18]execute_script done [11:30:18]execute_script returns [11:30:18]free content buf [11:30:18]Sock 9.Close socket [11:30:18]Sock 9.Thread stoped [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]accept exits with 8 [11:31:28]New connection [11:31:28]New thread 3067084132 created [11:31:28]Thread 3067227492 joined [11:31:28]Waiting for new connection... [11:31:28] Sock 8.Parse request [11:31:28]Sock 8.Check first char [11:31:28]Sock 8.First char is OK [11:31:28]request: POST /json_proto HTTP/1.0 [11:31:28]Method: POST [11:31:28]URL: /json_proto [11:31:28]Method is POST - this is cgi request [11:31:28]url: /json_proto [11:31:28]query_string will be loaded in cgi processing [11:31:28]execute_cgi json_proto POST (null) [11:31:28]execute_cgi path=json_proto method=POST [11:31:28]POST find Content-Length [11:31:28]Host: 172.17.59.68:8080 [11:31:28]Content-Length: 677 [11:31:28]Content-Type: application/json [11:31:28] [11:31:28]POST finish read [11:31:28]Found Content-Length = 677 [11:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:28]execute_script... [11:31: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)319878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:31:28]POST & json_proto [11:31:28]process_json_proto [11:31:28]json parsed OK: [11:31:28]protocol is kg_v1.0 [11:31:28]action value=close_receipt [11:31:28]process_action close_receipt [11:31:28]cmd_close_receipt [11:31:28]MH_GetDate [11:31:28]Write to MH i2c: F0 00 00 E9 4A 22 [11:31:28]Write i2c OK [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: F0 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: F0 09 00 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: F0 09 00 E9 4A 00 B0 C1 72 66 BC EC 60 65 E1 [11:31:28]GetLastDocTimeStamp 1718796306 [11:31:28]current date 1718796720 [11:31:28]FM_GetShiftState [11:31:28]SAM_PROTO_GetShiftState [11:31:28]wFMCommunicate request_size=4 [11:31:28]MH_SAM_APDU [11:31:28]CAPDU: 80 13 01 00 [11:31:28]Write to MH i2c: E2 08 00 EA 4A 80 13 01 00 00 00 00 00 B1 [11:31:28]Write i2c OK [11:31:28]MH_I2C_Read... [11:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:28]Read from MH i2c: E2 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: E2 0E 00 [11:31:28]MH_I2C_Read... [11:31:28]Read from MH i2c: E2 0E 00 EA 4A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FB [11:31:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:31:28]wFMCommunicate OK [11:31:28]SAM_PROTO_GetShiftState done [11:31:28]FM_GetShiftState done [11:31:28]opened in 1718760753 [11:31:28]opened+sec_in_day 1718847153 [11:31:28]quantity*price = 50065 [11:31:28]sum+1 = 50067 [11:31:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 57 19.06.2024 11:32 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111308 ФПД: 266105846379079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111308&fm=266105846379079&tin=02508201610067®Number=0000000000092771&sum=50000 [11:31:29]StoreToDocumentArchive [11:31:29]shift 388 fd 111308 [11:31:29]save to /storage/0388/doc_00111308 [11:31:29]save last doc name /storage/0388/doc_00111308 to /storage/kkm_last_doc_name [11:31:29]save OK [11:31:29]Clear old archive folders... [11:31:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:29]tlvbuf is 01A16C00 [11:31:29]SAM_PROTO_ClearQueue [11:31:29]wFMCommunicate request_size=4 [11:31:29]MH_SAM_APDU [11:31:29]CAPDU: 80 09 00 00 [11:31:29]Write to MH i2c: E2 08 00 F7 4A 80 09 00 00 00 00 00 00 B3 [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:29]Read from MH i2c: E2 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 F7 4A 00 90 00 B5 [11:31:29]RAPDU: 90 00 [11:31:29]wFMCommunicate OK [11:31:29]SAM_PROTO_ClearQueue done [11:31:29]KKMCreateOFDPacket [11:31:29]OFDProtocolAddRootSTLVToBuf [11:31:29]FM_MakeSignedData [11:31:29]FM_MakeSignedData [11:31:29]SAM_PROTO_SignData [11:31:29]wFMCommunicate request_size=4 [11:31:29]MH_SAM_APDU [11:31:29]CAPDU: 80 0D 01 02 [11:31:29]Write to MH i2c: E2 08 00 F8 4A 80 0D 01 02 00 00 00 00 BB [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:29]Read from MH i2c: E2 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 [11:31:29]MH_I2C_Read... [11:31:29]Read from MH i2c: E2 03 00 F8 4A 00 90 00 B6 [11:31:29]RAPDU: 90 00 [11:31:29]wFMCommunicate OK [11:31:29]wFMCommunicate request_size=255 [11:31:29]MH_SAM_APDU [11:31: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B0 C1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B2 01 00 35 04 06 00 F2 [11:31:29]Write to MH i2c: E2 02 01 F9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B0 C1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B2 01 00 35 04 06 00 F2 00 00 E7 [11:31:29]Write i2c OK [11:31:29]MH_I2C_Read... [11:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:30]Read from MH i2c: E2 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 03 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 03 00 F9 4A 00 90 00 B7 [11:31:30]RAPDU: 90 00 [11:31:30]wFMCommunicate OK [11:31:30]wFMCommunicate request_size=10 [11:31:30]MH_SAM_APDU [11:31:30]CAPDU: 80 0D 02 02 05 05 98 72 32 47 [11:31:30]Write to MH i2c: E2 0D 00 FA 4A 80 0D 02 02 05 00 05 98 72 32 47 00 00 50 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:30]Read from MH i2c: E2 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 03 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 03 00 FA 4A 00 90 00 B8 [11:31:30]RAPDU: 90 00 [11:31:30]wFMCommunicate OK [11:31:30]wFMCommunicate request_size=4 [11:31:30]MH_SAM_APDU [11:31:30]CAPDU: 80 0D 03 02 [11:31:30]Write to MH i2c: E2 08 00 FB 4A 80 0D 03 02 00 00 00 00 C0 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:30]Read from MH i2c: E2 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 0B 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 0B 00 FB 4A 00 21 40 ED 8A 4A 68 E8 B8 90 00 EB [11:31:30]RAPDU: 21 40 ED 8A 4A 68 E8 B8 90 00 [11:31:30]wFMCommunicate OK [11:31:30]SAM_PROTO_SignData done [11:31:30]FM_MakeSignedData done [11:31:30]CreateOFDProtocolMessage [11:31:30]wFMCommunicate request_size=4 [11:31:30]MH_SAM_APDU [11:31:30]CAPDU: 80 11 00 00 [11:31:30]Write to MH i2c: E2 08 00 FC 4A 80 11 00 00 00 00 00 00 C0 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:30]Read from MH i2c: E2 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 17 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: E2 17 00 FC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [11:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:31:30]wFMCommunicate OK [11:31:30]CreateOFDProtocolMessage done [11:31:30]OFDSenderStorePacket 111308 [11:31:30]StoreOFDPacket docnum=111308 [11:31:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 44 7A 07 01 0E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B0 C1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B2 01 00 35 04 06 00 F2 05 98 72 32 47 21 40 ED 8A 4A 68 E8 B8 [11:31:30]CheckFolder [11:31:30]dirname=/storage/ofd_packets [11:31:30]CheckFolder done [11:31:30]ProducePacketName [11:31:30]name=ofd_packets/00111308 [11:31:30]NVStorageSaveData ofd_packets/00111308 [11:31:30]File name is /storage/ofd_packets/00111308 [11:31:30]Write 301 bytes [11:31:30]NVStorageSaveData done [11:31:30]OFDSenderStorePacket done [11:31:30]KKMCreateOFDPacket done [11:31:30]NVStorageSaveData kkm_last_timestamp [11:31:30]File name is /storage/kkm_last_timestamp [11:31:30]Write 4 bytes [11:31:30]NVStorageSaveData done [11:31:30]ExternCall_PrintAddStr [11:31:30]wPrintStart [11:31:30]Write to MH i2c: 01 00 00 FD 4A 47 [11:31:30]Write i2c OK [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: 01 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: 01 07 00 [11:31:30]MH_I2C_Read... [11:31:30]Read from MH i2c: 01 07 00 FD 4A 00 00 00 00 00 FF 0F 5C [11:31:30]RasterBufferAndPrint [11:31:30]line Счет N : (1)319878 [11:31:30]line ИНН: 02508201610067 [11:31:30]line Контрольно-Кассовый Чек [11:31:30]line ПРОДАЖА [11:31:30]line ТРК (МРК, ГНК) : 11 [11:31:30]line Товар: 2710124130 [11:31:30]line Аи-92-К-5 [11:31:30]line 7.540 * 66.40 [11:31:30]line = 500.66 [11:31:30]line НДС 12% НСП 1% [11:31:30]line > о реализуемом товаре [11:31:30]line ОКРУГЛЕНИЕ: -0.66 [11:31:30]line ИТОГО: 500.00 [11:31:30]line Внесено: 500.00 [11:31:30]line СДАЧА: 0.00 [11:31:30]line НСП 1% : 4.43 [11:31:30]line НДС 12% : 53.17 [11:31:30]line Наличными: 500.00 [11:31:30]line Безнал.: 0.00 [11:31:30]line Место: АЗС № 65 "Партнер Нефть" [11:31:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:31:30]line СНО: Общий режим [11:31:30]line Чек 57 19.06.2024 11:32 [11:31:30]line Смена: 388 ФФД: 1.0 [11:31:30]line ЗНМ: 0300000198 [11:31:30]line РНМ: 0000000000092771 [11:31:30]line Версия ККМ: 001 [11:31:30]line ФМ: 0000000000875083 [11:31:30]line ФД: 111308 [11:31:30]line ФПД: 266105846379079 [11:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113200&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111308&fm=266105846379079&tin=02508201610067®Number=0000000000092771&sum=50000 [11:31:30]OFD Sender: Processing packet 111308 [packets to send 38, broken 37] [11:31:30]ProducePacketName [11:31:30]name=ofd_packets/00111308 [11:31:30]OFD Sender: To server: pG, [11:31:30]CommunicateWithHost lk.salyk.kg:30040 [11:31:30]ConnectInit lk.salyk.kg [11:31:30]written 0, free lines is 4095 [11:31:30]Connected sock=10 [11:31:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 44 7A 07 01 0E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B0 C1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CC B2 01 00 35 04 06 00 F2 05 98 72 32 47 21 40 ED 8A 4A 68 E8 B8 [11:31:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 88 13 47 00 65 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 35 30 38 33 10 04 04 00 CC B2 01 00 F4 03 04 00 1B 59 72 66 B6 04 01 00 00 BF 98 3A 8E 12 1F 36 47 [11:31:30]CommunicateWithHost err = 0 [11:31:30]CheckOFDResponse [11:31:30]1017 (14) - 77093643461234 [11:31:30]1041 (16) - 0000000000875083 [11:31:30]1040 (4) - 111308 [11:31:30]1012 (4) - 19.06.2024 04:05 [11:31:30]1206 (1) - 0 [11:31:30]OFD Sender: Remove packet 111308 [11:31:30]ProducePacketName [11:31:30]name=ofd_packets/00111308 [11:31:30]NVStorageDeleteData [11:31:31]Write to MH i2c: 01 00 00 28 4B 73 [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: 01 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: 01 07 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: 01 07 00 28 4B 00 00 00 00 00 C8 0C 4E [11:31:31]RasterBufferAndPrint [11:31:31]line [11:31:31]line [11:31:31]line [11:31:31]line [11:31:31]line [11:31:31]written 0, free lines is 3279 [11:31:31]MH_Cut [11:31:31]Write to MH i2c: D1 01 00 2F 4B 01 4C [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: D1 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: D1 01 00 [11:31:31]MH_I2C_Read... [11:31:31]Read from MH i2c: D1 01 00 2F 4B 00 4B [11:31:31]Write to MH i2c: 01 00 00 30 4B 7B [11:31:31]Write i2c OK [11:31:31]MH_I2C_Read... [11:31:31]OFD Sender: No OFD packet to send [11:31:31]*** Cut start [11:31:31]*** Partial cut [11:31:31]*** CUTSNS_PIN = 1 [11:31:31]*** CUTSNS_PIN = 0 [11:31:32]*** Brake cut motor [11:31:32]Read from MH i2c: 01 [11:31:32]MH_I2C_Read... [11:31:32]*** Stop cut motor [11:31:32]*** Cut end [11:31:32]Read from MH i2c: 01 07 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: 01 07 00 30 4B 00 00 00 00 00 FF 0F 90 [11:31:32]process_action close_receipt done [11:31:32]requested_data is exist [11:31:32]produce_requested_data [11:31:32]requested_item fm.sn is exist - process it [11:31:32]wFMCommunicate request_size=4 [11:31:32]MH_SAM_APDU [11:31:32]CAPDU: 80 11 00 00 [11:31:32]Write to MH i2c: E2 08 00 31 4B 80 11 00 00 00 00 00 00 F6 [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:32]Read from MH i2c: E2 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 17 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 17 00 31 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 48 [11:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:31:32]wFMCommunicate OK [11:31:32]requested_item fd.num is exist - process it [11:31:32]SAM_PROTO_GetFieldsCounters [11:31:32]wFMCommunicate request_size=4 [11:31:32]MH_SAM_APDU [11:31:32]CAPDU: 80 13 00 00 [11:31:32]Write to MH i2c: E2 08 00 32 4B 80 13 00 00 00 00 00 00 F9 [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:32]Read from MH i2c: E2 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 62 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 62 00 32 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [11:31: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:32]wFMCommunicate OK [11:31:32]SAM_PROTO_GetFieldsCounters done [11:31:32]requested_item shift.num is exist - process it [11:31:32]requested_item shift.opened is exist - process it [11:31:32]req_shift_opened [11:31:32]FM_GetShiftState [11:31:32]SAM_PROTO_GetShiftState [11:31:32]wFMCommunicate request_size=4 [11:31:32]MH_SAM_APDU [11:31:32]CAPDU: 80 13 01 00 [11:31:32]Write to MH i2c: E2 08 00 33 4B 80 13 01 00 00 00 00 00 FB [11:31:32]Write i2c OK [11:31:32]MH_I2C_Read... [11:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:32]Read from MH i2c: E2 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 0E 00 [11:31:32]MH_I2C_Read... [11:31:32]Read from MH i2c: E2 0E 00 33 4B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 45 [11:31:32]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:31:32]wFMCommunicate OK [11:31:32]SAM_PROTO_GetShiftState done [11:31:32]FM_GetShiftState done [11:31:32]req_shift_opened done [11:31:32]requested_item shift.open_date is exist - process it [11:31:32]req_shift_open_date [11:31:32]req_shift_open_date done [11:31:32]produce_requested_data done [11:31:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111308,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:31:32]process_action_free close_receipt [11:31:32]json_value_free [11:31:32]json_value_free done [11:31:32]process_json_proto returns [11:31:32]Send response to host [11:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111308,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:31:32]free response buf [11:31:32]execute_script done [11:31:32]execute_script returns [11:31:32]free content buf [11:31:32]Sock 8.Close socket [11:31:32]Sock 8.Thread stoped [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:25]accept exits with 9 [11:33:25]New connection [11:33:25] Sock 9.Parse request [11:33:25]Sock 9.Check first char [11:33:25]Sock 9.First char is OK [11:33:25]New thread 3067227492 created [11:33:25]request: POST /json_proto HTTP/1.0 [11:33:25]Thread 3067084132 joined [11:33:25]Method: POST [11:33:25]Waiting for new connection... [11:33:25]URL: /json_proto [11:33:25]Method is POST - this is cgi request [11:33:25]url: /json_proto [11:33:25]query_string will be loaded in cgi processing [11:33:25]execute_cgi json_proto POST (null) [11:33:25]execute_cgi path=json_proto method=POST [11:33:25]POST find Content-Length [11:33:25]Host: 172.17.59.68:8080 [11:33:25]Content-Length: 679 [11:33:25]Content-Type: application/json [11:33:25] [11:33:25]POST finish read [11:33:25]Found Content-Length = 679 [11:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:25]execute_script... [11:33: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)319879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:25]POST & json_proto [11:33:25]process_json_proto [11:33:25]json parsed OK: [11:33:25]protocol is kg_v1.0 [11:33:25]action value=close_receipt [11:33:25]process_action close_receipt [11:33:25]cmd_close_receipt [11:33:25]MH_GetDate [11:33:25]Write to MH i2c: F0 00 00 34 4B 6E [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 09 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 09 00 34 4B 00 25 C2 72 66 BC EC 60 65 A3 [11:33:25]GetLastDocTimeStamp 1718796720 [11:33:25]current date 1718796837 [11:33:25]FM_GetShiftState [11:33:25]SAM_PROTO_GetShiftState [11:33:25]wFMCommunicate request_size=4 [11:33:25]MH_SAM_APDU [11:33:25]CAPDU: 80 13 01 00 [11:33:25]Write to MH i2c: E2 08 00 35 4B 80 13 01 00 00 00 00 00 FD [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:25]Read from MH i2c: E2 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: E2 0E 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: E2 0E 00 35 4B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 47 [11:33:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:33:25]wFMCommunicate OK [11:33:25]SAM_PROTO_GetShiftState done [11:33:25]FM_GetShiftState done [11:33:25]opened in 1718760753 [11:33:25]opened+sec_in_day 1718847153 [11:33:25]quantity*price = 100018 [11:33:25]sum+1 = 100020 [11:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 58 19.06.2024 11:33 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111309 ФПД: 253318370596710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113357&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111309&fm=253318370596710&tin=02508201610067®Number=0000000000092771&sum=100000 [11:33:27]StoreToDocumentArchive [11:33:27]shift 388 fd 111309 [11:33:27]save to /storage/0388/doc_00111309 [11:33:27]save last doc name /storage/0388/doc_00111309 to /storage/kkm_last_doc_name [11:33:27]save OK [11:33:27]Clear old archive folders... [11:33:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:33:27]tlvbuf is 01A1F760 [11:33:27]SAM_PROTO_ClearQueue [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 09 00 00 [11:33:27]Write to MH i2c: E2 08 00 42 4B 80 09 00 00 00 00 00 00 FF [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 42 4B 00 90 00 01 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]SAM_PROTO_ClearQueue done [11:33:27]KKMCreateOFDPacket [11:33:27]OFDProtocolAddRootSTLVToBuf [11:33:27]FM_MakeSignedData [11:33:27]FM_MakeSignedData [11:33:27]SAM_PROTO_SignData [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 01 02 [11:33:27]Write to MH i2c: E2 08 00 43 4B 80 0D 01 02 00 00 00 00 07 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 43 4B 00 90 00 02 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]wFMCommunicate request_size=255 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 25 C2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B2 01 00 35 04 06 00 E6 64 47 7E [11:33:27]Write to MH i2c: E2 02 01 44 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 25 C2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B2 01 00 35 04 06 00 E6 64 47 7E 00 00 7A [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 44 4B 00 90 00 03 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]wFMCommunicate request_size=7 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 02 02 02 97 66 [11:33:27]Write to MH i2c: E2 0A 00 45 4B 80 0D 02 02 02 00 97 66 00 00 0B [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 03 00 45 4B 00 90 00 04 [11:33:27]RAPDU: 90 00 [11:33:27]wFMCommunicate OK [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 0D 03 02 [11:33:27]Write to MH i2c: E2 08 00 46 4B 80 0D 03 02 00 00 00 00 0C [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 0B 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 0B 00 46 4B 00 ED 16 0E 28 E9 36 83 9F 90 00 87 [11:33:27]RAPDU: ED 16 0E 28 E9 36 83 9F 90 00 [11:33:27]wFMCommunicate OK [11:33:27]SAM_PROTO_SignData done [11:33:27]FM_MakeSignedData done [11:33:27]CreateOFDProtocolMessage [11:33:27]wFMCommunicate request_size=4 [11:33:27]MH_SAM_APDU [11:33:27]CAPDU: 80 11 00 00 [11:33:27]Write to MH i2c: E2 08 00 47 4B 80 11 00 00 00 00 00 00 0C [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:27]Read from MH i2c: E2 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 17 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: E2 17 00 47 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [11:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:33:27]wFMCommunicate OK [11:33:27]CreateOFDProtocolMessage done [11:33:27]OFDSenderStorePacket 111309 [11:33:27]StoreOFDPacket docnum=111309 [11:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7B 25 04 01 25 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 25 C2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B2 01 00 35 04 06 00 E6 64 47 7E 97 66 ED 16 0E 28 E9 36 83 9F [11:33:27]CheckFolder [11:33:27]dirname=/storage/ofd_packets [11:33:27]CheckFolder done [11:33:27]ProducePacketName [11:33:27]name=ofd_packets/00111309 [11:33:27]NVStorageSaveData ofd_packets/00111309 [11:33:27]File name is /storage/ofd_packets/00111309 [11:33:27]Write 298 bytes [11:33:27]NVStorageSaveData done [11:33:27]OFDSenderStorePacket done [11:33:27]KKMCreateOFDPacket done [11:33:27]NVStorageSaveData kkm_last_timestamp [11:33:27]File name is /storage/kkm_last_timestamp [11:33:27]Write 4 bytes [11:33:27]NVStorageSaveData done [11:33:27]ExternCall_PrintAddStr [11:33:27]wPrintStart [11:33:27]Write to MH i2c: 01 00 00 48 4B 93 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 48 4B 00 00 00 00 00 FF 0F A8 [11:33:27]RasterBufferAndPrint [11:33:27]line Счет N : (1)319879 [11:33:27]line ИНН: 02508201610067 [11:33:27]line Контрольно-Кассовый Чек [11:33:27]line ПРОДАЖА [11:33:27]line ТРК (МРК, ГНК) : 22 [11:33:27]line Товар: 2710194210 [11:33:27]line ДТ-К-5 [11:33:27]line 13.720 * 72.90 [11:33:27]line = 1000.19 [11:33:27]line НДС 12% НСП 1% [11:33:27]line > о реализуемом товаре [11:33:27]line ОКРУГЛЕНИЕ: -0.19 [11:33:27]line ИТОГО: 1000.00 [11:33:27]line Внесено: 1000.00 [11:33:27]line СДАЧА: 0.00 [11:33:27]line НСП 1% : 8.85 [11:33:27]line НДС 12% : 106.21 [11:33:27]line Наличными: 1000.00 [11:33:27]line Безнал.: 0.00 [11:33:27]line Место: АЗС № 65 "Партнер Нефть" [11:33:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:33:27]line СНО: Общий режим [11:33:27]line Чек 58 19.06.2024 11:33 [11:33:27]line Смена: 388 ФФД: 1.0 [11:33:27]line ЗНМ: 0300000198 [11:33:27]line РНМ: 0000000000092771 [11:33:27]line Версия ККМ: 001 [11:33:27]line ФМ: 0000000000875083 [11:33:27]line ФД: 111309 [11:33:27]line ФПД: 253318370596710 [11:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113357&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111309&fm=253318370596710&tin=02508201610067®Number=0000000000092771&sum=100000 [11:33:27]OFD Sender: Processing packet 111309 [packets to send 38, broken 37] [11:33:27]ProducePacketName [11:33:27]name=ofd_packets/00111309 [11:33:27]OFD Sender: To server: pG, [11:33:27]CommunicateWithHost lk.salyk.kg:30040 [11:33:27]ConnectInit lk.salyk.kg [11:33:27]written 0, free lines is 4095 [11:33:28]Connected sock=10 [11:33:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7B 25 04 01 25 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 25 C2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CD B2 01 00 35 04 06 00 E6 64 47 7E 97 66 ED 16 0E 28 E9 36 83 9F [11:33:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D8 07 47 00 CE 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 35 30 38 33 10 04 04 00 CD B2 01 00 F4 03 04 00 90 59 72 66 B6 04 01 00 00 3D DD C0 F8 FF A3 15 15 [11:33:28]CommunicateWithHost err = 0 [11:33:28]CheckOFDResponse [11:33:28]1017 (14) - 77093643461234 [11:33:28]1041 (16) - 0000000000875083 [11:33:28]1040 (4) - 111309 [11:33:28]1012 (4) - 19.06.2024 04:07 [11:33:28]1206 (1) - 0 [11:33:28]OFD Sender: Remove packet 111309 [11:33:28]ProducePacketName [11:33:28]name=ofd_packets/00111309 [11:33:28]NVStorageDeleteData [11:33:28]Write to MH i2c: 01 00 00 73 4B BE [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 07 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 07 00 73 4B 00 00 00 00 00 CC 0C 9D [11:33:28]RasterBufferAndPrint [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]line [11:33:28]written 0, free lines is 3283 [11:33:28]MH_Cut [11:33:28]Write to MH i2c: D1 01 00 7A 4B 01 97 [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 01 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: D1 01 00 7A 4B 00 96 [11:33:28]Write to MH i2c: 01 00 00 7B 4B C6 [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]OFD Sender: No OFD packet to send [11:33:29]*** Cut start [11:33:29]*** Partial cut [11:33:29]*** CUTSNS_PIN = 1 [11:33:29]*** CUTSNS_PIN = 0 [11:33:29]*** Brake cut motor [11:33:29]Read from MH i2c: 01 [11:33:29]MH_I2C_Read... [11:33:29]*** Stop cut motor [11:33:29]*** Cut end [11:33:29]Read from MH i2c: 01 07 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: 01 07 00 7B 4B 00 00 00 00 00 FF 0F DB [11:33:29]process_action close_receipt done [11:33:29]requested_data is exist [11:33:29]produce_requested_data [11:33:29]requested_item fm.sn is exist - process it [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 11 00 00 [11:33:29]Write to MH i2c: E2 08 00 7C 4B 80 11 00 00 00 00 00 00 41 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 17 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 17 00 7C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 93 [11:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:33:29]wFMCommunicate OK [11:33:29]requested_item fd.num is exist - process it [11:33:29]SAM_PROTO_GetFieldsCounters [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 00 00 [11:33:29]Write to MH i2c: E2 08 00 7D 4B 80 13 00 00 00 00 00 00 44 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 62 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 62 00 7D 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [11:33: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:29]wFMCommunicate OK [11:33:29]SAM_PROTO_GetFieldsCounters done [11:33:29]requested_item shift.num is exist - process it [11:33:29]requested_item shift.opened is exist - process it [11:33:29]req_shift_opened [11:33:29]FM_GetShiftState [11:33:29]SAM_PROTO_GetShiftState [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 01 00 [11:33:29]Write to MH i2c: E2 08 00 7E 4B 80 13 01 00 00 00 00 00 46 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:30]Read from MH i2c: E2 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 0E 00 [11:33:30]MH_I2C_Read... [11:33:30]Read from MH i2c: E2 0E 00 7E 4B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 90 [11:33:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:33:30]wFMCommunicate OK [11:33:30]SAM_PROTO_GetShiftState done [11:33:30]FM_GetShiftState done [11:33:30]req_shift_opened done [11:33:30]requested_item shift.open_date is exist - process it [11:33:30]req_shift_open_date [11:33:30]req_shift_open_date done [11:33:30]produce_requested_data done [11:33:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111309,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:33:30]process_action_free close_receipt [11:33:30]json_value_free [11:33:30]json_value_free done [11:33:30]process_json_proto returns [11:33:30]Send response to host [11:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111309,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:33:30]free response buf [11:33:30]execute_script done [11:33:30]execute_script returns [11:33:30]free content buf [11:33:30]Sock 9.Close socket [11:33:30]Sock 9.Thread stoped [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]accept exits with 8 [11:35:13]New connection [11:35:13]New thread 3067084132 created [11:35:13]Thread 3067227492 joined [11:35:13]Waiting for new connection... [11:35:13] Sock 8.Parse request [11:35:13]Sock 8.Check first char [11:35:13]Sock 8.First char is OK [11:35:13]request: POST /json_proto HTTP/1.0 [11:35:13]Method: POST [11:35:13]URL: /json_proto [11:35:13]Method is POST - this is cgi request [11:35:13]url: /json_proto [11:35:13]query_string will be loaded in cgi processing [11:35:13]execute_cgi json_proto POST (null) [11:35:13]execute_cgi path=json_proto method=POST [11:35:13]POST find Content-Length [11:35:13]Host: 172.17.59.68:8080 [11:35:13]Content-Length: 674 [11:35:13]Content-Type: application/json [11:35:13] [11:35:13]POST finish read [11:35:13]Found Content-Length = 674 [11:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "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:35:13]execute_script... [11:35: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)319880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "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:35:13]POST & json_proto [11:35:13]process_json_proto [11:35:13]json parsed OK: [11:35:13]protocol is kg_v1.0 [11:35:13]action value=close_receipt [11:35:13]process_action close_receipt [11:35:13]cmd_close_receipt [11:35:13]MH_GetDate [11:35:13]Write to MH i2c: F0 00 00 7F 4B B9 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 09 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: F0 09 00 7F 4B 00 91 C2 72 66 BC EC 60 65 5A [11:35:13]GetLastDocTimeStamp 1718796837 [11:35:13]current date 1718796945 [11:35:13]FM_GetShiftState [11:35:13]SAM_PROTO_GetShiftState [11:35:13]wFMCommunicate request_size=4 [11:35:13]MH_SAM_APDU [11:35:13]CAPDU: 80 13 01 00 [11:35:13]Write to MH i2c: E2 08 00 80 4B 80 13 01 00 00 00 00 00 48 [11:35:13]Write i2c OK [11:35:13]MH_I2C_Read... [11:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:13]Read from MH i2c: E2 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0E 00 [11:35:13]MH_I2C_Read... [11:35:13]Read from MH i2c: E2 0E 00 80 4B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 92 [11:35:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:35:13]wFMCommunicate OK [11:35:13]SAM_PROTO_GetShiftState done [11:35:13]FM_GetShiftState done [11:35:13]opened in 1718760753 [11:35:13]opened+sec_in_day 1718847153 [11:35:13]quantity*price = 30034 [11:35:13]sum+1 = 30036 [11:35:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 59 19.06.2024 11:35 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111310 ФПД: 24054874779496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113545&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111310&fm=24054874779496&tin=02508201610067®Number=0000000000092771&sum=30000 [11:35:14]StoreToDocumentArchive [11:35:14]shift 388 fd 111310 [11:35:14]save to /storage/0388/doc_00111310 [11:35:14]save last doc name /storage/0388/doc_00111310 to /storage/kkm_last_doc_name [11:35:14]save OK [11:35:14]Clear old archive folders... [11:35:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:35:14]tlvbuf is 019CD2E0 [11:35:14]SAM_PROTO_ClearQueue [11:35:14]wFMCommunicate request_size=4 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 09 00 00 [11:35:14]Write to MH i2c: E2 08 00 8D 4B 80 09 00 00 00 00 00 00 4A [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 8D 4B 00 90 00 4C [11:35:14]RAPDU: 90 00 [11:35:14]wFMCommunicate OK [11:35:14]SAM_PROTO_ClearQueue done [11:35:14]KKMCreateOFDPacket [11:35:14]OFDProtocolAddRootSTLVToBuf [11:35:14]FM_MakeSignedData [11:35:14]FM_MakeSignedData [11:35:14]SAM_PROTO_SignData [11:35:14]wFMCommunicate request_size=4 [11:35:14]MH_SAM_APDU [11:35:14]CAPDU: 80 0D 01 02 [11:35:14]Write to MH i2c: E2 08 00 8E 4B 80 0D 01 02 00 00 00 00 52 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:14]Read from MH i2c: E2 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 [11:35:14]MH_I2C_Read... [11:35:14]Read from MH i2c: E2 03 00 8E 4B 00 90 00 4D [11:35:14]RAPDU: 90 00 [11:35:14]wFMCommunicate OK [11:35:14]wFMCommunicate request_size=255 [11:35:14]MH_SAM_APDU [11:35: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 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 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 3B 00 00 00 F4 03 04 00 91 C2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B2 01 00 35 04 06 00 15 E0 B6 44 [11:35:14]Write to MH i2c: E2 02 01 8F 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 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 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 3B 00 00 00 F4 03 04 00 91 C2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B2 01 00 35 04 06 00 15 E0 B6 44 00 00 67 [11:35:14]Write i2c OK [11:35:14]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 8F 4B 00 90 00 4E [11:35:15]RAPDU: 90 00 [11:35:15]wFMCommunicate OK [11:35:15]wFMCommunicate request_size=7 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 0D 02 02 02 2F 68 [11:35:15]Write to MH i2c: E2 0A 00 90 4B 80 0D 02 02 02 00 2F 68 00 00 F0 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 03 00 90 4B 00 90 00 4F [11:35:15]RAPDU: 90 00 [11:35:15]wFMCommunicate OK [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 0D 03 02 [11:35:15]Write to MH i2c: E2 08 00 91 4B 80 0D 03 02 00 00 00 00 57 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 0B 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 0B 00 91 4B 00 96 A4 AB E8 1A D5 6A 8B 90 00 09 [11:35:15]RAPDU: 96 A4 AB E8 1A D5 6A 8B 90 00 [11:35:15]wFMCommunicate OK [11:35:15]SAM_PROTO_SignData done [11:35:15]FM_MakeSignedData done [11:35:15]CreateOFDProtocolMessage [11:35:15]wFMCommunicate request_size=4 [11:35:15]MH_SAM_APDU [11:35:15]CAPDU: 80 11 00 00 [11:35:15]Write to MH i2c: E2 08 00 92 4B 80 11 00 00 00 00 00 00 57 [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:15]Read from MH i2c: E2 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: E2 17 00 92 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A9 [11:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:35:15]wFMCommunicate OK [11:35:15]CreateOFDProtocolMessage done [11:35:15]OFDSenderStorePacket 111310 [11:35:15]StoreOFDPacket docnum=111310 [11:35:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D8 20 04 01 DA 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 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 3B 00 00 00 F4 03 04 00 91 C2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B2 01 00 35 04 06 00 15 E0 B6 44 2F 68 96 A4 AB E8 1A D5 6A 8B [11:35:15]CheckFolder [11:35:15]dirname=/storage/ofd_packets [11:35:15]CheckFolder done [11:35:15]ProducePacketName [11:35:15]name=ofd_packets/00111310 [11:35:15]NVStorageSaveData ofd_packets/00111310 [11:35:15]File name is /storage/ofd_packets/00111310 [11:35:15]Write 298 bytes [11:35:15]NVStorageSaveData done [11:35:15]OFDSenderStorePacket done [11:35:15]KKMCreateOFDPacket done [11:35:15]NVStorageSaveData kkm_last_timestamp [11:35:15]File name is /storage/kkm_last_timestamp [11:35:15]Write 4 bytes [11:35:15]NVStorageSaveData done [11:35:15]ExternCall_PrintAddStr [11:35:15]wPrintStart [11:35:15]Write to MH i2c: 01 00 00 93 4B DE [11:35:15]Write i2c OK [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 [11:35:15]MH_I2C_Read... [11:35:15]Read from MH i2c: 01 07 00 93 4B 00 00 00 00 00 FF 0F F3 [11:35:15]RasterBufferAndPrint [11:35:15]line Счет N : (1)319880 [11:35:15]line ИНН: 02508201610067 [11:35:15]line Контрольно-Кассовый Чек [11:35:15]line ПРОДАЖА [11:35:15]line ТРК (МРК, ГНК) : 22 [11:35:15]line Товар: 2710194210 [11:35:15]line ДТ-К-5 [11:35:15]line 4.120 * 72.90 [11:35:15]line = 300.35 [11:35:15]line НДС 12% НСП 1% [11:35:15]line > о реализуемом товаре [11:35:15]line ОКРУГЛЕНИЕ: -0.35 [11:35:15]line ИТОГО: 300.00 [11:35:15]line Внесено: 300.00 [11:35:15]line СДАЧА: 0.00 [11:35:15]line НСП 1% : 2.66 [11:35:15]line НДС 12% : 31.90 [11:35:15]line Наличными: 300.00 [11:35:15]line Безнал.: 0.00 [11:35:15]line Место: АЗС № 65 "Партнер Нефть" [11:35:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:35:15]line СНО: Общий режим [11:35:15]line Чек 59 19.06.2024 11:35 [11:35:15]line Смена: 388 ФФД: 1.0 [11:35:15]line ЗНМ: 0300000198 [11:35:15]line РНМ: 0000000000092771 [11:35:15]line Версия ККМ: 001 [11:35:15]line ФМ: 0000000000875083 [11:35:15]line ФД: 111310 [11:35:15]line ФПД: 24054874779496 [11:35:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113545&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111310&fm=24054874779496&tin=02508201610067®Number=0000000000092771&sum=30000 [11:35:15]OFD Sender: Processing packet 111310 [packets to send 38, broken 37] [11:35:15]ProducePacketName [11:35:15]name=ofd_packets/00111310 [11:35:15]OFD Sender: To server: pG, [11:35:15]CommunicateWithHost lk.salyk.kg:30040 [11:35:15]ConnectInit lk.salyk.kg [11:35:15]written 0, free lines is 4095 [11:35:15]Connected sock=10 [11:35:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D8 20 04 01 DA 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 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 3B 00 00 00 F4 03 04 00 91 C2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CE B2 01 00 35 04 06 00 15 E0 B6 44 2F 68 96 A4 AB E8 1A D5 6A 8B [11:35:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F7 F3 47 00 E2 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 35 30 38 33 10 04 04 00 CE B2 01 00 F4 03 04 00 FC 59 72 66 B6 04 01 00 00 03 42 13 49 9F 97 2A 1A [11:35:15]CommunicateWithHost err = 0 [11:35:15]CheckOFDResponse [11:35:15]1017 (14) - 77093643461234 [11:35:15]1041 (16) - 0000000000875083 [11:35:15]1040 (4) - 111310 [11:35:15]1012 (4) - 19.06.2024 04:09 [11:35:15]1206 (1) - 0 [11:35:15]OFD Sender: Remove packet 111310 [11:35:15]ProducePacketName [11:35:15]name=ofd_packets/00111310 [11:35:15]NVStorageDeleteData [11:35:16]Write to MH i2c: 01 00 00 BE 4B 09 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: 01 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: 01 07 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: 01 07 00 BE 4B 00 00 00 00 00 C8 0C E4 [11:35:16]RasterBufferAndPrint [11:35:16]line [11:35:16]line [11:35:16]line [11:35:16]line [11:35:16]line [11:35:16]written 0, free lines is 3278 [11:35:16]MH_Cut [11:35:16]Write to MH i2c: D1 01 00 C5 4B 01 E2 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: D1 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: D1 01 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: D1 01 00 C5 4B 00 E1 [11:35:16]Write to MH i2c: 01 00 00 C6 4B 11 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]OFD Sender: No OFD packet to send [11:35:16]*** Cut start [11:35:16]*** Partial cut [11:35:16]*** CUTSNS_PIN = 1 [11:35:16]*** CUTSNS_PIN = 0 [11:35:17]*** Brake cut motor [11:35:17]Read from MH i2c: 01 [11:35:17]MH_I2C_Read... [11:35:17]*** Stop cut motor [11:35:17]*** Cut end [11:35:17]Read from MH i2c: 01 07 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: 01 07 00 C6 4B 00 00 00 00 00 FF 0F 26 [11:35:17]process_action close_receipt done [11:35:17]requested_data is exist [11:35:17]produce_requested_data [11:35:17]requested_item fm.sn is exist - process it [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 11 00 00 [11:35:17]Write to MH i2c: E2 08 00 C7 4B 80 11 00 00 00 00 00 00 8C [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 17 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 17 00 C7 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [11:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:35:17]wFMCommunicate OK [11:35:17]requested_item fd.num is exist - process it [11:35:17]SAM_PROTO_GetFieldsCounters [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 13 00 00 [11:35:17]Write to MH i2c: E2 08 00 C8 4B 80 13 00 00 00 00 00 00 8F [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 62 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 62 00 C8 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [11:35: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:17]wFMCommunicate OK [11:35:17]SAM_PROTO_GetFieldsCounters done [11:35:17]requested_item shift.num is exist - process it [11:35:17]requested_item shift.opened is exist - process it [11:35:17]req_shift_opened [11:35:17]FM_GetShiftState [11:35:17]SAM_PROTO_GetShiftState [11:35:17]wFMCommunicate request_size=4 [11:35:17]MH_SAM_APDU [11:35:17]CAPDU: 80 13 01 00 [11:35:17]Write to MH i2c: E2 08 00 C9 4B 80 13 01 00 00 00 00 00 91 [11:35:17]Write i2c OK [11:35:17]MH_I2C_Read... [11:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:17]Read from MH i2c: E2 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 0E 00 [11:35:17]MH_I2C_Read... [11:35:17]Read from MH i2c: E2 0E 00 C9 4B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DB [11:35:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:35:17]wFMCommunicate OK [11:35:17]SAM_PROTO_GetShiftState done [11:35:17]FM_GetShiftState done [11:35:17]req_shift_opened done [11:35:17]requested_item shift.open_date is exist - process it [11:35:17]req_shift_open_date [11:35:17]req_shift_open_date done [11:35:17]produce_requested_data done [11:35:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111310,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:35:17]process_action_free close_receipt [11:35:17]json_value_free [11:35:17]json_value_free done [11:35:17]process_json_proto returns [11:35:17]Send response to host [11:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111310,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:35:17]free response buf [11:35:17]execute_script done [11:35:17]execute_script returns [11:35:17]free content buf [11:35:17]Sock 8.Close socket [11:35:17]Sock 8.Thread stoped [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:06]accept exits with 9 [11:38:06]New connection [11:38:06]New thread 3067227492 created [11:38:06]Thread 3067084132 joined [11:38:06]Waiting for new connection... [11:38:06] Sock 9.Parse request [11:38:06]Sock 9.Check first char [11:38:06]Sock 9.First char is OK [11:38:06]request: POST /json_proto HTTP/1.0 [11:38:06]Method: POST [11:38:06]URL: /json_proto [11:38:06]Method is POST - this is cgi request [11:38:06]url: /json_proto [11:38:06]query_string will be loaded in cgi processing [11:38:06]execute_cgi json_proto POST (null) [11:38:06]execute_cgi path=json_proto method=POST [11:38:06]POST find Content-Length [11:38:06]Host: 172.17.59.68:8080 [11:38:06]Content-Length: 677 [11:38:06]Content-Type: application/json [11:38:06] [11:38:06]POST finish read [11:38:06]Found Content-Length = 677 [11:38:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:06]execute_script... [11:38: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)319881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:06]POST & json_proto [11:38:06]process_json_proto [11:38:06]json parsed OK: [11:38:06]protocol is kg_v1.0 [11:38:06]action value=close_receipt [11:38:06]process_action close_receipt [11:38:06]cmd_close_receipt [11:38:06]MH_GetDate [11:38:06]Write to MH i2c: F0 00 00 CA 4B 04 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: F0 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: F0 09 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: F0 09 00 CA 4B 00 3E C3 72 66 BC EC 60 65 53 [11:38:06]GetLastDocTimeStamp 1718796945 [11:38:06]current date 1718797118 [11:38:06]FM_GetShiftState [11:38:06]SAM_PROTO_GetShiftState [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 13 01 00 [11:38:06]Write to MH i2c: E2 08 00 CB 4B 80 13 01 00 00 00 00 00 93 [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 0E 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 0E 00 CB 4B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DD [11:38:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:38:06]wFMCommunicate OK [11:38:06]SAM_PROTO_GetShiftState done [11:38:06]FM_GetShiftState done [11:38:06]opened in 1718760753 [11:38:06]opened+sec_in_day 1718847153 [11:38:06]quantity*price = 50065 [11:38:06]sum+1 = 50067 [11:38:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 60 19.06.2024 11:38 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111311 ФПД: 173859377835589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113838&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111311&fm=173859377835589&tin=02508201610067®Number=0000000000092771&sum=50000 [11:38:08]StoreToDocumentArchive [11:38:08]shift 388 fd 111311 [11:38:08]save to /storage/0388/doc_00111311 [11:38:08]save last doc name /storage/0388/doc_00111311 to /storage/kkm_last_doc_name [11:38:08]save OK [11:38:08]Clear old archive folders... [11:38:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:08]tlvbuf is 019E00E0 [11:38:08]SAM_PROTO_ClearQueue [11:38:08]wFMCommunicate request_size=4 [11:38:08]MH_SAM_APDU [11:38:08]CAPDU: 80 09 00 00 [11:38:08]Write to MH i2c: E2 08 00 D8 4B 80 09 00 00 00 00 00 00 95 [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 03 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 03 00 D8 4B 00 90 00 97 [11:38:08]RAPDU: 90 00 [11:38:08]wFMCommunicate OK [11:38:08]SAM_PROTO_ClearQueue done [11:38:08]KKMCreateOFDPacket [11:38:08]OFDProtocolAddRootSTLVToBuf [11:38:08]FM_MakeSignedData [11:38:08]FM_MakeSignedData [11:38:08]SAM_PROTO_SignData [11:38:08]wFMCommunicate request_size=4 [11:38:08]MH_SAM_APDU [11:38:08]CAPDU: 80 0D 01 02 [11:38:08]Write to MH i2c: E2 08 00 D9 4B 80 0D 01 02 00 00 00 00 9D [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 03 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 03 00 D9 4B 00 90 00 98 [11:38:08]RAPDU: 90 00 [11:38:08]wFMCommunicate OK [11:38:08]wFMCommunicate request_size=255 [11:38:08]MH_SAM_APDU [11:38: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 3E C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B2 01 00 35 04 06 00 9E [11:38:08]Write to MH i2c: E2 02 01 DA 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 3E C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B2 01 00 35 04 06 00 9E 00 00 0B [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 03 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 03 00 DA 4B 00 90 00 99 [11:38:08]RAPDU: 90 00 [11:38:08]wFMCommunicate OK [11:38:08]wFMCommunicate request_size=10 [11:38:08]MH_SAM_APDU [11:38:08]CAPDU: 80 0D 02 02 05 1F CA 74 EE 45 [11:38:08]Write to MH i2c: E2 0D 00 DB 4B 80 0D 02 02 05 00 1F CA 74 EE 45 00 00 3A [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 03 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 03 00 DB 4B 00 90 00 9A [11:38:08]RAPDU: 90 00 [11:38:08]wFMCommunicate OK [11:38:08]wFMCommunicate request_size=4 [11:38:08]MH_SAM_APDU [11:38:08]CAPDU: 80 0D 03 02 [11:38:08]Write to MH i2c: E2 08 00 DC 4B 80 0D 03 02 00 00 00 00 A2 [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 0B 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 0B 00 DC 4B 00 F1 B4 AB CA C9 D1 26 E9 90 00 66 [11:38:08]RAPDU: F1 B4 AB CA C9 D1 26 E9 90 00 [11:38:08]wFMCommunicate OK [11:38:08]SAM_PROTO_SignData done [11:38:08]FM_MakeSignedData done [11:38:08]CreateOFDProtocolMessage [11:38:08]wFMCommunicate request_size=4 [11:38:08]MH_SAM_APDU [11:38:08]CAPDU: 80 11 00 00 [11:38:08]Write to MH i2c: E2 08 00 DD 4B 80 11 00 00 00 00 00 00 A2 [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:08]Read from MH i2c: E2 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 17 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: E2 17 00 DD 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [11:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:08]wFMCommunicate OK [11:38:08]CreateOFDProtocolMessage done [11:38:08]OFDSenderStorePacket 111311 [11:38:08]StoreOFDPacket docnum=111311 [11:38:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 56 5E 07 01 F3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 3E C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B2 01 00 35 04 06 00 9E 1F CA 74 EE 45 F1 B4 AB CA C9 D1 26 E9 [11:38:08]CheckFolder [11:38:08]dirname=/storage/ofd_packets [11:38:08]CheckFolder done [11:38:08]ProducePacketName [11:38:08]name=ofd_packets/00111311 [11:38:08]NVStorageSaveData ofd_packets/00111311 [11:38:08]File name is /storage/ofd_packets/00111311 [11:38:08]Write 301 bytes [11:38:08]NVStorageSaveData done [11:38:08]OFDSenderStorePacket done [11:38:08]KKMCreateOFDPacket done [11:38:08]NVStorageSaveData kkm_last_timestamp [11:38:08]File name is /storage/kkm_last_timestamp [11:38:08]Write 4 bytes [11:38:08]NVStorageSaveData done [11:38:08]ExternCall_PrintAddStr [11:38:08]wPrintStart [11:38:08]Write to MH i2c: 01 00 00 DE 4B 29 [11:38:08]Write i2c OK [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 07 00 [11:38:08]MH_I2C_Read... [11:38:08]Read from MH i2c: 01 07 00 DE 4B 00 00 00 00 00 FF 0F 3E [11:38:08]RasterBufferAndPrint [11:38:08]line Счет N : (1)319881 [11:38:08]line ИНН: 02508201610067 [11:38:08]line Контрольно-Кассовый Чек [11:38:08]line ПРОДАЖА [11:38:08]line ТРК (МРК, ГНК) : 11 [11:38:08]line Товар: 2710124130 [11:38:08]line Аи-92-К-5 [11:38:08]line 7.540 * 66.40 [11:38:08]line = 500.66 [11:38:08]line НДС 12% НСП 1% [11:38:08]line > о реализуемом товаре [11:38:08]line ОКРУГЛЕНИЕ: -0.66 [11:38:08]line ИТОГО: 500.00 [11:38:08]line Внесено: 500.00 [11:38:08]line СДАЧА: 0.00 [11:38:08]line НСП 1% : 4.43 [11:38:08]line НДС 12% : 53.17 [11:38:08]line Наличными: 500.00 [11:38:08]line Безнал.: 0.00 [11:38:08]line Место: АЗС № 65 "Партнер Нефть" [11:38:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:38:08]line СНО: Общий режим [11:38:08]line Чек 60 19.06.2024 11:38 [11:38:08]line Смена: 388 ФФД: 1.0 [11:38:08]line ЗНМ: 0300000198 [11:38:08]line РНМ: 0000000000092771 [11:38:08]line Версия ККМ: 001 [11:38:08]line ФМ: 0000000000875083 [11:38:08]line ФД: 111311 [11:38:08]line ФПД: 173859377835589 [11:38:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113838&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111311&fm=173859377835589&tin=02508201610067®Number=0000000000092771&sum=50000 [11:38:08]OFD Sender: Processing packet 111311 [packets to send 38, broken 37] [11:38:08]ProducePacketName [11:38:08]name=ofd_packets/00111311 [11:38:08]OFD Sender: To server: pG, [11:38:08]CommunicateWithHost lk.salyk.kg:30040 [11:38:08]ConnectInit lk.salyk.kg [11:38:08]written 0, free lines is 4095 [11:38:08]Connected sock=10 [11:38:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 56 5E 07 01 F3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 3E C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B2 01 00 35 04 06 00 9E 1F CA 74 EE 45 F1 B4 AB CA C9 D1 26 E9 [11:38:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C8 65 47 00 46 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 CF B2 01 00 F4 03 04 00 A9 5A 72 66 B6 04 01 00 00 C1 26 EB C4 FC 06 7A 4A [11:38:09]CommunicateWithHost err = 0 [11:38:09]CheckOFDResponse [11:38:09]1017 (14) - 77093643461234 [11:38:09]1041 (16) - 0000000000875083 [11:38:09]1040 (4) - 111311 [11:38:09]1012 (4) - 19.06.2024 04:12 [11:38:09]1206 (1) - 0 [11:38:09]OFD Sender: Remove packet 111311 [11:38:09]ProducePacketName [11:38:09]name=ofd_packets/00111311 [11:38:09]NVStorageDeleteData [11:38:09]Write to MH i2c: 01 00 00 09 4C 55 [11:38:09]Write i2c OK [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: 01 [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: 01 07 00 [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: 01 07 00 09 4C 00 00 00 00 00 CC 0C 34 [11:38:09]RasterBufferAndPrint [11:38:09]line [11:38:09]line [11:38:09]line [11:38:09]line [11:38:09]line [11:38:09]written 0, free lines is 3279 [11:38:09]MH_Cut [11:38:09]Write to MH i2c: D1 01 00 10 4C 01 2E [11:38:09]Write i2c OK [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: D1 [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: D1 01 00 [11:38:09]MH_I2C_Read... [11:38:09]Read from MH i2c: D1 01 00 10 4C 00 2D [11:38:09]Write to MH i2c: 01 00 00 11 4C 5D [11:38:09]Write i2c OK [11:38:09]MH_I2C_Read... [11:38:09]OFD Sender: No OFD packet to send [11:38:10]*** Cut start [11:38:10]*** Partial cut [11:38:10]*** CUTSNS_PIN = 1 [11:38:10]*** CUTSNS_PIN = 0 [11:38:10]*** Brake cut motor [11:38:10]Read from MH i2c: 01 [11:38:10]MH_I2C_Read... [11:38:10]*** Stop cut motor [11:38:10]*** Cut end [11:38:10]Read from MH i2c: 01 07 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: 01 07 00 11 4C 00 00 00 00 00 FF 0F 72 [11:38:10]process_action close_receipt done [11:38:10]requested_data is exist [11:38:10]produce_requested_data [11:38:10]requested_item fm.sn is exist - process it [11:38:10]wFMCommunicate request_size=4 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 11 00 00 [11:38:10]Write to MH i2c: E2 08 00 12 4C 80 11 00 00 00 00 00 00 D8 [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 17 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 17 00 12 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2A [11:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:10]wFMCommunicate OK [11:38:10]requested_item fd.num is exist - process it [11:38:10]SAM_PROTO_GetFieldsCounters [11:38:10]wFMCommunicate request_size=4 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 13 00 00 [11:38:10]Write to MH i2c: E2 08 00 13 4C 80 13 00 00 00 00 00 00 DB [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 62 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 62 00 13 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [11:38: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 CF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:10]wFMCommunicate OK [11:38:10]SAM_PROTO_GetFieldsCounters done [11:38:10]requested_item shift.num is exist - process it [11:38:10]requested_item shift.opened is exist - process it [11:38:10]req_shift_opened [11:38:10]FM_GetShiftState [11:38:10]SAM_PROTO_GetShiftState [11:38:10]wFMCommunicate request_size=4 [11:38:10]MH_SAM_APDU [11:38:10]CAPDU: 80 13 01 00 [11:38:10]Write to MH i2c: E2 08 00 14 4C 80 13 01 00 00 00 00 00 DD [11:38:10]Write i2c OK [11:38:10]MH_I2C_Read... [11:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:10]Read from MH i2c: E2 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 0E 00 [11:38:10]MH_I2C_Read... [11:38:10]Read from MH i2c: E2 0E 00 14 4C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 27 [11:38:10]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:38:10]wFMCommunicate OK [11:38:10]SAM_PROTO_GetShiftState done [11:38:10]FM_GetShiftState done [11:38:10]req_shift_opened done [11:38:10]requested_item shift.open_date is exist - process it [11:38:10]req_shift_open_date [11:38:10]req_shift_open_date done [11:38:10]produce_requested_data done [11:38:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111311,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:38:10]process_action_free close_receipt [11:38:10]json_value_free [11:38:10]json_value_free done [11:38:10]process_json_proto returns [11:38:10]Send response to host [11:38:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111311,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:38:10]free response buf [11:38:10]execute_script done [11:38:10]execute_script returns [11:38:10]free content buf [11:38:10]Sock 9.Close socket [11:38:10]Sock 9.Thread stoped [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:45]accept exits with 8 [11:38:45]New connection [11:38:45]New thread 3067084132 created [11:38:45]Thread 3067227492 joined [11:38:45]Waiting for new connection... [11:38:45] Sock 8.Parse request [11:38:45]Sock 8.Check first char [11:38:45]Sock 8.First char is OK [11:38:45]request: POST /json_proto HTTP/1.0 [11:38:45]Method: POST [11:38:45]URL: /json_proto [11:38:45]Method is POST - this is cgi request [11:38:45]url: /json_proto [11:38:45]query_string will be loaded in cgi processing [11:38:45]execute_cgi json_proto POST (null) [11:38:45]execute_cgi path=json_proto method=POST [11:38:45]POST find Content-Length [11:38:45]Host: 172.17.59.68:8080 [11:38:45]Content-Length: 677 [11:38:45]Content-Type: application/json [11:38:45] [11:38:45]POST finish read [11:38:45]Found Content-Length = 677 [11:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:38:45]execute_script... [11:38: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)319882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:38:45]POST & json_proto [11:38:45]process_json_proto [11:38:45]json parsed OK: [11:38:45]protocol is kg_v1.0 [11:38:45]action value=close_receipt [11:38:45]process_action close_receipt [11:38:45]cmd_close_receipt [11:38:45]MH_GetDate [11:38:45]Write to MH i2c: F0 00 00 15 4C 50 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: F0 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: F0 09 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: F0 09 00 15 4C 00 65 C3 72 66 BC EC 60 65 C6 [11:38:45]GetLastDocTimeStamp 1718797118 [11:38:45]current date 1718797157 [11:38:45]FM_GetShiftState [11:38:45]SAM_PROTO_GetShiftState [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 13 01 00 [11:38:45]Write to MH i2c: E2 08 00 16 4C 80 13 01 00 00 00 00 00 DF [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0E 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0E 00 16 4C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 29 [11:38:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_GetShiftState done [11:38:45]FM_GetShiftState done [11:38:45]opened in 1718760753 [11:38:45]opened+sec_in_day 1718847153 [11:38:45]quantity*price = 60025 [11:38:45]sum+1 = 60027 [11:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 61 19.06.2024 11:39 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111312 ФПД: 264221784564903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113917&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111312&fm=264221784564903&tin=02508201610067®Number=0000000000092771&sum=60000 [11:38:46]StoreToDocumentArchive [11:38:46]shift 388 fd 111312 [11:38:46]save to /storage/0388/doc_00111312 [11:38:46]save last doc name /storage/0388/doc_00111312 to /storage/kkm_last_doc_name [11:38:46]save OK [11:38:46]Clear old archive folders... [11:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:46]tlvbuf is 01AA7E70 [11:38:46]SAM_PROTO_ClearQueue [11:38:46]wFMCommunicate request_size=4 [11:38:46]MH_SAM_APDU [11:38:46]CAPDU: 80 09 00 00 [11:38:46]Write to MH i2c: E2 08 00 23 4C 80 09 00 00 00 00 00 00 E1 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:46]Read from MH i2c: E2 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: E2 03 00 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: E2 03 00 23 4C 00 90 00 E3 [11:38:46]RAPDU: 90 00 [11:38:46]wFMCommunicate OK [11:38:46]SAM_PROTO_ClearQueue done [11:38:46]KKMCreateOFDPacket [11:38:46]OFDProtocolAddRootSTLVToBuf [11:38:46]FM_MakeSignedData [11:38:46]FM_MakeSignedData [11:38:46]SAM_PROTO_SignData [11:38:46]wFMCommunicate request_size=4 [11:38:46]MH_SAM_APDU [11:38:46]CAPDU: 80 0D 01 02 [11:38:46]Write to MH i2c: E2 08 00 24 4C 80 0D 01 02 00 00 00 00 E9 [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:46]Read from MH i2c: E2 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: E2 03 00 [11:38:46]MH_I2C_Read... [11:38:46]Read from MH i2c: E2 03 00 24 4C 00 90 00 E4 [11:38:46]RAPDU: 90 00 [11:38:46]wFMCommunicate OK [11:38:46]wFMCommunicate request_size=255 [11:38:46]MH_SAM_APDU [11:38: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 65 C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B2 01 00 35 04 06 00 F0 [11:38:46]Write to MH i2c: E2 02 01 25 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 65 C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B2 01 00 35 04 06 00 F0 00 00 AF [11:38:46]Write i2c OK [11:38:46]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 03 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 03 00 25 4C 00 90 00 E5 [11:38:47]RAPDU: 90 00 [11:38:47]wFMCommunicate OK [11:38:47]wFMCommunicate request_size=10 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 0D 02 02 05 4E ED 9C 64 A7 [11:38:47]Write to MH i2c: E2 0D 00 26 4C 80 0D 02 02 05 00 4E ED 9C 64 A7 00 00 D8 [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 03 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 03 00 26 4C 00 90 00 E6 [11:38:47]RAPDU: 90 00 [11:38:47]wFMCommunicate OK [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 0D 03 02 [11:38:47]Write to MH i2c: E2 08 00 27 4C 80 0D 03 02 00 00 00 00 EE [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 0B 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 0B 00 27 4C 00 1F D3 EB 2B 56 58 8F FD 90 00 31 [11:38:47]RAPDU: 1F D3 EB 2B 56 58 8F FD 90 00 [11:38:47]wFMCommunicate OK [11:38:47]SAM_PROTO_SignData done [11:38:47]FM_MakeSignedData done [11:38:47]CreateOFDProtocolMessage [11:38:47]wFMCommunicate request_size=4 [11:38:47]MH_SAM_APDU [11:38:47]CAPDU: 80 11 00 00 [11:38:47]Write to MH i2c: E2 08 00 28 4C 80 11 00 00 00 00 00 00 EE [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:47]Read from MH i2c: E2 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 17 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: E2 17 00 28 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [11:38:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:47]wFMCommunicate OK [11:38:47]CreateOFDProtocolMessage done [11:38:47]OFDSenderStorePacket 111312 [11:38:47]StoreOFDPacket docnum=111312 [11:38:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 E6 07 01 6A 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 65 C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B2 01 00 35 04 06 00 F0 4E ED 9C 64 A7 1F D3 EB 2B 56 58 8F FD [11:38:47]CheckFolder [11:38:47]dirname=/storage/ofd_packets [11:38:47]CheckFolder done [11:38:47]ProducePacketName [11:38:47]name=ofd_packets/00111312 [11:38:47]NVStorageSaveData ofd_packets/00111312 [11:38:47]File name is /storage/ofd_packets/00111312 [11:38:47]Write 301 bytes [11:38:47]NVStorageSaveData done [11:38:47]OFDSenderStorePacket done [11:38:47]KKMCreateOFDPacket done [11:38:47]NVStorageSaveData kkm_last_timestamp [11:38:47]File name is /storage/kkm_last_timestamp [11:38:47]Write 4 bytes [11:38:47]NVStorageSaveData done [11:38:47]ExternCall_PrintAddStr [11:38:47]wPrintStart [11:38:47]Write to MH i2c: 01 00 00 29 4C 75 [11:38:47]Write i2c OK [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: 01 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: 01 07 00 [11:38:47]MH_I2C_Read... [11:38:47]Read from MH i2c: 01 07 00 29 4C 00 00 00 00 00 FF 0F 8A [11:38:47]RasterBufferAndPrint [11:38:47]line Счет N : (1)319882 [11:38:47]line ИНН: 02508201610067 [11:38:47]line Контрольно-Кассовый Чек [11:38:47]line ПРОДАЖА [11:38:47]line ТРК (МРК, ГНК) : 11 [11:38:47]line Товар: 2710124130 [11:38:47]line Аи-92-К-5 [11:38:47]line 9.040 * 66.40 [11:38:47]line = 600.26 [11:38:47]line НДС 12% НСП 1% [11:38:47]line > о реализуемом товаре [11:38:47]line ОКРУГЛЕНИЕ: -0.26 [11:38:47]line ИТОГО: 600.00 [11:38:47]line Внесено: 600.00 [11:38:47]line СДАЧА: 0.00 [11:38:47]line НСП 1% : 5.31 [11:38:47]line НДС 12% : 63.74 [11:38:47]line Наличными: 600.00 [11:38:47]line Безнал.: 0.00 [11:38:47]line Место: АЗС № 65 "Партнер Нефть" [11:38:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:38:47]line СНО: Общий режим [11:38:47]line Чек 61 19.06.2024 11:39 [11:38:47]line Смена: 388 ФФД: 1.0 [11:38:47]line ЗНМ: 0300000198 [11:38:47]line РНМ: 0000000000092771 [11:38:47]line Версия ККМ: 001 [11:38:47]line ФМ: 0000000000875083 [11:38:47]line ФД: 111312 [11:38:47]line ФПД: 264221784564903 [11:38:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T113917&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111312&fm=264221784564903&tin=02508201610067®Number=0000000000092771&sum=60000 [11:38:47]OFD Sender: Processing packet 111312 [packets to send 38, broken 37] [11:38:47]ProducePacketName [11:38:47]name=ofd_packets/00111312 [11:38:47]OFD Sender: To server: pG, [11:38:47]CommunicateWithHost lk.salyk.kg:30040 [11:38:47]ConnectInit lk.salyk.kg [11:38:47]written 0, free lines is 4095 [11:38:47]Connected sock=10 [11:38:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 78 E6 07 01 6A 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 65 C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D0 B2 01 00 35 04 06 00 F0 4E ED 9C 64 A7 1F D3 EB 2B 56 58 8F FD [11:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 87 47 00 BF 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 35 30 38 33 10 04 04 00 D0 B2 01 00 F4 03 04 00 D0 5A 72 66 B6 04 01 00 00 EB 30 CA BA B9 A7 CB 84 [11:38:48]CommunicateWithHost err = 0 [11:38:48]CheckOFDResponse [11:38:48]1017 (14) - 77093643461234 [11:38:48]1041 (16) - 0000000000875083 [11:38:48]1040 (4) - 111312 [11:38:48]1012 (4) - 19.06.2024 04:13 [11:38:48]1206 (1) - 0 [11:38:48]OFD Sender: Remove packet 111312 [11:38:48]ProducePacketName [11:38:48]name=ofd_packets/00111312 [11:38:48]NVStorageDeleteData [11:38:48]Write to MH i2c: 01 00 00 54 4C A0 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: 01 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: 01 07 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: 01 07 00 54 4C 00 00 00 00 00 E8 0C 9B [11:38:48]RasterBufferAndPrint [11:38:48]line [11:38:48]line [11:38:48]line [11:38:48]line [11:38:48]line [11:38:48]written 0, free lines is 3310 [11:38:48]MH_Cut [11:38:48]Write to MH i2c: D1 01 00 5B 4C 01 79 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: D1 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: D1 01 00 [11:38:48]MH_I2C_Read... [11:38:48]Read from MH i2c: D1 01 00 5B 4C 00 78 [11:38:48]Write to MH i2c: 01 00 00 5C 4C A8 [11:38:48]Write i2c OK [11:38:48]MH_I2C_Read... [11:38:48]OFD Sender: No OFD packet to send [11:38:48]*** Cut start [11:38:48]*** Partial cut [11:38:48]*** CUTSNS_PIN = 1 [11:38:49]*** CUTSNS_PIN = 0 [11:38:49]*** Brake cut motor [11:38:49]Read from MH i2c: 01 [11:38:49]MH_I2C_Read... [11:38:49]*** Stop cut motor [11:38:49]*** Cut end [11:38:49]Read from MH i2c: 01 07 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: 01 07 00 5C 4C 00 00 00 00 00 FF 0F BD [11:38:49]process_action close_receipt done [11:38:49]requested_data is exist [11:38:49]produce_requested_data [11:38:49]requested_item fm.sn is exist - process it [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 11 00 00 [11:38:49]Write to MH i2c: E2 08 00 5D 4C 80 11 00 00 00 00 00 00 23 [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 17 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 17 00 5D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 75 [11:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:38:49]wFMCommunicate OK [11:38:49]requested_item fd.num is exist - process it [11:38:49]SAM_PROTO_GetFieldsCounters [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 13 00 00 [11:38:49]Write to MH i2c: E2 08 00 5E 4C 80 13 00 00 00 00 00 00 26 [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 62 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 62 00 5E 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [11:38: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:49]wFMCommunicate OK [11:38:49]SAM_PROTO_GetFieldsCounters done [11:38:49]requested_item shift.num is exist - process it [11:38:49]requested_item shift.opened is exist - process it [11:38:49]req_shift_opened [11:38:49]FM_GetShiftState [11:38:49]SAM_PROTO_GetShiftState [11:38:49]wFMCommunicate request_size=4 [11:38:49]MH_SAM_APDU [11:38:49]CAPDU: 80 13 01 00 [11:38:49]Write to MH i2c: E2 08 00 5F 4C 80 13 01 00 00 00 00 00 28 [11:38:49]Write i2c OK [11:38:49]MH_I2C_Read... [11:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:49]Read from MH i2c: E2 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 0E 00 [11:38:49]MH_I2C_Read... [11:38:49]Read from MH i2c: E2 0E 00 5F 4C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 72 [11:38:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:38:49]wFMCommunicate OK [11:38:49]SAM_PROTO_GetShiftState done [11:38:49]FM_GetShiftState done [11:38:49]req_shift_opened done [11:38:49]requested_item shift.open_date is exist - process it [11:38:49]req_shift_open_date [11:38:49]req_shift_open_date done [11:38:49]produce_requested_data done [11:38:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111312,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:38:49]process_action_free close_receipt [11:38:49]json_value_free [11:38:49]json_value_free done [11:38:49]process_json_proto returns [11:38:49]Send response to host [11:38:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111312,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:38:49]free response buf [11:38:49]execute_script done [11:38:49]execute_script returns [11:38:49]free content buf [11:38:49]Sock 8.Close socket [11:38:49]Sock 8.Thread stoped [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:02]accept exits with 9 [11:40:02]New connection [11:40:02]New thread 3067227492 created [11:40:02]Thread 3067084132 joined [11:40:02]Waiting for new connection... [11:40:02] Sock 9.Parse request [11:40:02]Sock 9.Check first char [11:40:02]Sock 9.First char is OK [11:40:02]request: POST /json_proto HTTP/1.0 [11:40:02]Method: POST [11:40:02]URL: /json_proto [11:40:02]Method is POST - this is cgi request [11:40:02]url: /json_proto [11:40:02]query_string will be loaded in cgi processing [11:40:02]execute_cgi json_proto POST (null) [11:40:02]execute_cgi path=json_proto method=POST [11:40:02]POST find Content-Length [11:40:02]Host: 172.17.59.68:8080 [11:40:02]Content-Length: 682 [11:40:02]Content-Type: application/json [11:40:02] [11:40:02]POST finish read [11:40:02]Found Content-Length = 682 [11:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:02]execute_script... [11:40: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)319884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:02]POST & json_proto [11:40:02]process_json_proto [11:40:02]json parsed OK: [11:40:02]protocol is kg_v1.0 [11:40:02]action value=close_receipt [11:40:02]process_action close_receipt [11:40:02]cmd_close_receipt [11:40:02]MH_GetDate [11:40:02]Write to MH i2c: F0 00 00 60 4C 9B [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: F0 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: F0 09 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: F0 09 00 60 4C 00 B2 C3 72 66 BC EC 60 65 5E [11:40:02]GetLastDocTimeStamp 1718797157 [11:40:02]current date 1718797234 [11:40:02]FM_GetShiftState [11:40:02]SAM_PROTO_GetShiftState [11:40:02]wFMCommunicate request_size=4 [11:40:02]MH_SAM_APDU [11:40:02]CAPDU: 80 13 01 00 [11:40:02]Write to MH i2c: E2 08 00 61 4C 80 13 01 00 00 00 00 00 2A [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:02]Read from MH i2c: E2 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 0E 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 0E 00 61 4C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 74 [11:40:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:40:02]wFMCommunicate OK [11:40:02]SAM_PROTO_GetShiftState done [11:40:02]FM_GetShiftState done [11:40:02]opened in 1718760753 [11:40:02]opened+sec_in_day 1718847153 [11:40:02]quantity*price = 100064 [11:40:02]sum+1 = 100066 [11:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 62 19.06.2024 11:40 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111313 ФПД: 227542253186280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114034&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111313&fm=227542253186280&tin=02508201610067®Number=0000000000092771&sum=100000 [11:40:03]StoreToDocumentArchive [11:40:03]shift 388 fd 111313 [11:40:03]save to /storage/0388/doc_00111313 [11:40:03]save last doc name /storage/0388/doc_00111313 to /storage/kkm_last_doc_name [11:40:03]save OK [11:40:03]Clear old archive folders... [11:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:03]tlvbuf is B6F9B3A0 [11:40:03]SAM_PROTO_ClearQueue [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 09 00 00 [11:40:03]Write to MH i2c: E2 08 00 6E 4C 80 09 00 00 00 00 00 00 2C [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 6E 4C 00 90 00 2E [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]SAM_PROTO_ClearQueue done [11:40:03]KKMCreateOFDPacket [11:40:03]OFDProtocolAddRootSTLVToBuf [11:40:03]FM_MakeSignedData [11:40:03]FM_MakeSignedData [11:40:03]SAM_PROTO_SignData [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 01 02 [11:40:03]Write to MH i2c: E2 08 00 6F 4C 80 0D 01 02 00 00 00 00 34 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]OFD Sender: No OFD packet to send [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 6F 4C 00 90 00 2F [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=255 [11:40:03]MH_SAM_APDU [11:40: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B2 C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B2 01 00 35 04 06 00 CE [11:40:03]Write to MH i2c: E2 02 01 70 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B2 C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B2 01 00 35 04 06 00 CE 00 00 9A [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 70 4C 00 90 00 30 [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=10 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 02 02 05 F2 CF 2C 2C E8 [11:40:03]Write to MH i2c: E2 0D 00 71 4C 80 0D 02 02 05 00 F2 CF 2C 2C E8 00 00 42 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 71 4C 00 90 00 31 [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 03 02 [11:40:03]Write to MH i2c: E2 08 00 72 4C 80 0D 03 02 00 00 00 00 39 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 0B 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 0B 00 72 4C 00 9A 40 2D FF BC 3C D6 F0 90 00 FE [11:40:04]RAPDU: 9A 40 2D FF BC 3C D6 F0 90 00 [11:40:04]wFMCommunicate OK [11:40:04]SAM_PROTO_SignData done [11:40:04]FM_MakeSignedData done [11:40:04]CreateOFDProtocolMessage [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 11 00 00 [11:40:04]Write to MH i2c: E2 08 00 73 4C 80 11 00 00 00 00 00 00 39 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 17 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 17 00 73 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8B [11:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:40:04]wFMCommunicate OK [11:40:04]CreateOFDProtocolMessage done [11:40:04]OFDSenderStorePacket 111313 [11:40:04]StoreOFDPacket docnum=111313 [11:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 01 07 01 B4 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B2 C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B2 01 00 35 04 06 00 CE F2 CF 2C 2C E8 9A 40 2D FF BC 3C D6 F0 [11:40:04]CheckFolder [11:40:04]dirname=/storage/ofd_packets [11:40:04]CheckFolder done [11:40:04]ProducePacketName [11:40:04]name=ofd_packets/00111313 [11:40:04]NVStorageSaveData ofd_packets/00111313 [11:40:04]File name is /storage/ofd_packets/00111313 [11:40:04]Write 301 bytes [11:40:04]NVStorageSaveData done [11:40:04]OFDSenderStorePacket done [11:40:04]KKMCreateOFDPacket done [11:40:04]NVStorageSaveData kkm_last_timestamp [11:40:04]File name is /storage/kkm_last_timestamp [11:40:04]Write 4 bytes [11:40:04]NVStorageSaveData done [11:40:04]ExternCall_PrintAddStr [11:40:04]wPrintStart [11:40:04]Write to MH i2c: 01 00 00 74 4C C0 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 74 4C 00 00 00 00 00 FF 0F D5 [11:40:04]RasterBufferAndPrint [11:40:04]line Счет N : (1)319884 [11:40:04]line ИНН: 02508201610067 [11:40:04]line Контрольно-Кассовый Чек [11:40:04]line ПРОДАЖА [11:40:04]line ТРК (МРК, ГНК) : 11 [11:40:04]line Товар: 2710124130 [11:40:04]line Аи-92-К-5 [11:40:04]line 15.070 * 66.40 [11:40:04]line = 1000.65 [11:40:04]line НДС 12% НСП 1% [11:40:04]line > о реализуемом товаре [11:40:04]line ОКРУГЛЕНИЕ: -0.65 [11:40:04]line ИТОГО: 1000.00 [11:40:04]line Внесено: 1000.00 [11:40:04]line СДАЧА: 0.00 [11:40:04]line НСП 1% : 8.85 [11:40:04]line НДС 12% : 106.26 [11:40:04]line Наличными: 1000.00 [11:40:04]line Безнал.: 0.00 [11:40:04]line Место: АЗС № 65 "Партнер Нефть" [11:40:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:40:04]line СНО: Общий режим [11:40:04]line Чек 62 19.06.2024 11:40 [11:40:04]line Смена: 388 ФФД: 1.0 [11:40:04]line ЗНМ: 0300000198 [11:40:04]line РНМ: 0000000000092771 [11:40:04]line Версия ККМ: 001 [11:40:04]line ФМ: 0000000000875083 [11:40:04]line ФД: 111313 [11:40:04]line ФПД: 227542253186280 [11:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114034&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111313&fm=227542253186280&tin=02508201610067®Number=0000000000092771&sum=100000 [11:40:04]written 0, free lines is 4095 [11:40:04]OFD Sender: Processing packet 111313 [packets to send 38, broken 37] [11:40:04]ProducePacketName [11:40:04]name=ofd_packets/00111313 [11:40:04]OFD Sender: To server: pG, [11:40:04]CommunicateWithHost lk.salyk.kg:30040 [11:40:04]ConnectInit lk.salyk.kg [11:40:04]Connected sock=10 [11:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 01 07 01 B4 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 B2 C3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D1 B2 01 00 35 04 06 00 CE F2 CF 2C 2C E8 9A 40 2D FF BC 3C D6 F0 [11:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E8 AB 47 00 86 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 35 30 38 33 10 04 04 00 D1 B2 01 00 F4 03 04 00 1C 5B 72 66 B6 04 01 00 00 81 67 57 76 1A 11 2E EE [11:40:04]CommunicateWithHost err = 0 [11:40:04]CheckOFDResponse [11:40:04]1017 (14) - 77093643461234 [11:40:04]1041 (16) - 0000000000875083 [11:40:04]1040 (4) - 111313 [11:40:04]1012 (4) - 19.06.2024 04:14 [11:40:04]1206 (1) - 0 [11:40:04]OFD Sender: Remove packet 111313 [11:40:04]ProducePacketName [11:40:04]name=ofd_packets/00111313 [11:40:04]NVStorageDeleteData [11:40:04]Write to MH i2c: 01 00 00 9F 4C EB [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 9F 4C 00 00 00 00 00 DE 0C DC [11:40:04]RasterBufferAndPrint [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]written 0, free lines is 3300 [11:40:04]MH_Cut [11:40:04]Write to MH i2c: D1 01 00 A6 4C 01 C4 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 01 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: D1 01 00 A6 4C 00 C3 [11:40:04]Write to MH i2c: 01 00 00 A7 4C F3 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]OFD Sender: No OFD packet to send [11:40:05]*** Cut start [11:40:05]*** Partial cut [11:40:05]*** CUTSNS_PIN = 1 [11:40:05]*** CUTSNS_PIN = 0 [11:40:05]*** Brake cut motor [11:40:05]Read from MH i2c: 01 [11:40:05]MH_I2C_Read... [11:40:05]*** Stop cut motor [11:40:05]*** Cut end [11:40:05]Read from MH i2c: 01 07 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: 01 07 00 A7 4C 00 00 00 00 00 FF 0F 08 [11:40:05]process_action close_receipt done [11:40:05]requested_data is exist [11:40:05]produce_requested_data [11:40:05]requested_item fm.sn is exist - process it [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 11 00 00 [11:40:05]Write to MH i2c: E2 08 00 A8 4C 80 11 00 00 00 00 00 00 6E [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 17 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 17 00 A8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C0 [11:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:40:05]wFMCommunicate OK [11:40:05]requested_item fd.num is exist - process it [11:40:05]SAM_PROTO_GetFieldsCounters [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 13 00 00 [11:40:05]Write to MH i2c: E2 08 00 A9 4C 80 13 00 00 00 00 00 00 71 [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 62 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 62 00 A9 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [11:40: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:06]wFMCommunicate OK [11:40:06]SAM_PROTO_GetFieldsCounters done [11:40:06]requested_item shift.num is exist - process it [11:40:06]requested_item shift.opened is exist - process it [11:40:06]req_shift_opened [11:40:06]FM_GetShiftState [11:40:06]SAM_PROTO_GetShiftState [11:40:06]wFMCommunicate request_size=4 [11:40:06]MH_SAM_APDU [11:40:06]CAPDU: 80 13 01 00 [11:40:06]Write to MH i2c: E2 08 00 AA 4C 80 13 01 00 00 00 00 00 73 [11:40:06]Write i2c OK [11:40:06]MH_I2C_Read... [11:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:06]Read from MH i2c: E2 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 0E 00 [11:40:06]MH_I2C_Read... [11:40:06]Read from MH i2c: E2 0E 00 AA 4C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BD [11:40:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:40:06]wFMCommunicate OK [11:40:06]SAM_PROTO_GetShiftState done [11:40:06]FM_GetShiftState done [11:40:06]req_shift_opened done [11:40:06]requested_item shift.open_date is exist - process it [11:40:06]req_shift_open_date [11:40:06]req_shift_open_date done [11:40:06]produce_requested_data done [11:40:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111313,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:40:06]process_action_free close_receipt [11:40:06]json_value_free [11:40:06]json_value_free done [11:40:06]process_json_proto returns [11:40:06]Send response to host [11:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111313,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:40:06]free response buf [11:40:06]execute_script done [11:40:06]execute_script returns [11:40:06]free content buf [11:40:06]Sock 9.Close socket [11:40:06]Sock 9.Thread stoped [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:41:57]accept exits with 8 [11:41:57]New connection [11:41:57]New thread 3067084132 created [11:41:57]Thread 3067227492 joined [11:41:57]Waiting for new connection... [11:41:57] Sock 8.Parse request [11:41:57]Sock 8.Check first char [11:41:57]Sock 8.First char is OK [11:41:57]request: POST /json_proto HTTP/1.0 [11:41:57]Method: POST [11:41:57]URL: /json_proto [11:41:57]Method is POST - this is cgi request [11:41:57]url: /json_proto [11:41:57]query_string will be loaded in cgi processing [11:41:57]execute_cgi json_proto POST (null) [11:41:57]execute_cgi path=json_proto method=POST [11:41:57]POST find Content-Length [11:41:57]Host: 172.17.59.68:8080 [11:41:57]Content-Length: 677 [11:41:57]Content-Type: application/json [11:41:57] [11:41:57]POST finish read [11:41:57]Found Content-Length = 677 [11:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:41:57]execute_script... [11:41: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)319885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:41:57]POST & json_proto [11:41:57]process_json_proto [11:41:57]json parsed OK: [11:41:57]protocol is kg_v1.0 [11:41:57]action value=close_receipt [11:41:57]process_action close_receipt [11:41:57]cmd_close_receipt [11:41:57]MH_GetDate [11:41:57]Write to MH i2c: F0 00 00 AB 4C E6 [11:41:57]Write i2c OK [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: F0 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: F0 09 00 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: F0 09 00 AB 4C 00 25 C4 72 66 BC EC 60 65 1D [11:41:57]GetLastDocTimeStamp 1718797234 [11:41:57]current date 1718797349 [11:41:57]FM_GetShiftState [11:41:57]SAM_PROTO_GetShiftState [11:41:57]wFMCommunicate request_size=4 [11:41:57]MH_SAM_APDU [11:41:57]CAPDU: 80 13 01 00 [11:41:57]Write to MH i2c: E2 08 00 AC 4C 80 13 01 00 00 00 00 00 75 [11:41:57]Write i2c OK [11:41:57]MH_I2C_Read... [11:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:57]Read from MH i2c: E2 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: E2 0E 00 [11:41:57]MH_I2C_Read... [11:41:57]Read from MH i2c: E2 0E 00 AC 4C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BF [11:41:57]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:41:57]wFMCommunicate OK [11:41:57]SAM_PROTO_GetShiftState done [11:41:57]FM_GetShiftState done [11:41:57]opened in 1718760753 [11:41:57]opened+sec_in_day 1718847153 [11:41:57]quantity*price = 60025 [11:41:57]sum+1 = 60027 [11:41:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 63 19.06.2024 11:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111314 ФПД: 42089542575414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114229&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111314&fm=42089542575414&tin=02508201610067®Number=0000000000092771&sum=60000 [11:41:58]StoreToDocumentArchive [11:41:58]shift 388 fd 111314 [11:41:58]save to /storage/0388/doc_00111314 [11:41:58]save last doc name /storage/0388/doc_00111314 to /storage/kkm_last_doc_name [11:41:58]save OK [11:41:58]Clear old archive folders... [11:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:58]tlvbuf is 0195EC10 [11:41:58]SAM_PROTO_ClearQueue [11:41:58]wFMCommunicate request_size=4 [11:41:58]MH_SAM_APDU [11:41:58]CAPDU: 80 09 00 00 [11:41:58]Write to MH i2c: E2 08 00 B9 4C 80 09 00 00 00 00 00 00 77 [11:41:58]Write i2c OK [11:41:58]MH_I2C_Read... [11:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:58]Read from MH i2c: E2 [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: E2 03 00 [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: E2 03 00 B9 4C 00 90 00 79 [11:41:58]RAPDU: 90 00 [11:41:58]wFMCommunicate OK [11:41:58]SAM_PROTO_ClearQueue done [11:41:58]KKMCreateOFDPacket [11:41:58]OFDProtocolAddRootSTLVToBuf [11:41:58]FM_MakeSignedData [11:41:58]FM_MakeSignedData [11:41:58]SAM_PROTO_SignData [11:41:58]wFMCommunicate request_size=4 [11:41:58]MH_SAM_APDU [11:41:58]CAPDU: 80 0D 01 02 [11:41:58]Write to MH i2c: E2 08 00 BA 4C 80 0D 01 02 00 00 00 00 7F [11:41:58]Write i2c OK [11:41:58]MH_I2C_Read... [11:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:58]Read from MH i2c: E2 [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: E2 03 00 [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: E2 03 00 BA 4C 00 90 00 7A [11:41:58]RAPDU: 90 00 [11:41:58]wFMCommunicate OK [11:41:58]wFMCommunicate request_size=255 [11:41:58]MH_SAM_APDU [11:41: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 25 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B2 01 00 35 04 06 00 26 [11:41:58]Write to MH i2c: E2 02 01 BB 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 25 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B2 01 00 35 04 06 00 26 00 00 40 [11:41:58]Write i2c OK [11:41:58]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 03 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 03 00 BB 4C 00 90 00 7B [11:41:59]RAPDU: 90 00 [11:41:59]wFMCommunicate OK [11:41:59]wFMCommunicate request_size=10 [11:41:59]MH_SAM_APDU [11:41:59]CAPDU: 80 0D 02 02 05 47 BC 3B E5 36 [11:41:59]Write to MH i2c: E2 0D 00 BC 4C 80 0D 02 02 05 00 47 BC 3B E5 36 00 00 E5 [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 03 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 03 00 BC 4C 00 90 00 7C [11:41:59]RAPDU: 90 00 [11:41:59]wFMCommunicate OK [11:41:59]wFMCommunicate request_size=4 [11:41:59]MH_SAM_APDU [11:41:59]CAPDU: 80 0D 03 02 [11:41:59]Write to MH i2c: E2 08 00 BD 4C 80 0D 03 02 00 00 00 00 84 [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 0B 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 0B 00 BD 4C 00 50 E2 5A AE 93 E2 88 61 90 00 1D [11:41:59]RAPDU: 50 E2 5A AE 93 E2 88 61 90 00 [11:41:59]wFMCommunicate OK [11:41:59]SAM_PROTO_SignData done [11:41:59]FM_MakeSignedData done [11:41:59]CreateOFDProtocolMessage [11:41:59]wFMCommunicate request_size=4 [11:41:59]MH_SAM_APDU [11:41:59]CAPDU: 80 11 00 00 [11:41:59]Write to MH i2c: E2 08 00 BE 4C 80 11 00 00 00 00 00 00 84 [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:59]Read from MH i2c: E2 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 17 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: E2 17 00 BE 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [11:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:41:59]wFMCommunicate OK [11:41:59]CreateOFDProtocolMessage done [11:41:59]OFDSenderStorePacket 111314 [11:41:59]StoreOFDPacket docnum=111314 [11:41:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 D8 07 01 0A 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 25 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B2 01 00 35 04 06 00 26 47 BC 3B E5 36 50 E2 5A AE 93 E2 88 61 [11:41:59]CheckFolder [11:41:59]dirname=/storage/ofd_packets [11:41:59]CheckFolder done [11:41:59]ProducePacketName [11:41:59]name=ofd_packets/00111314 [11:41:59]NVStorageSaveData ofd_packets/00111314 [11:41:59]File name is /storage/ofd_packets/00111314 [11:41:59]Write 301 bytes [11:41:59]NVStorageSaveData done [11:41:59]OFDSenderStorePacket done [11:41:59]KKMCreateOFDPacket done [11:41:59]NVStorageSaveData kkm_last_timestamp [11:41:59]File name is /storage/kkm_last_timestamp [11:41:59]Write 4 bytes [11:41:59]NVStorageSaveData done [11:41:59]ExternCall_PrintAddStr [11:41:59]wPrintStart [11:41:59]Write to MH i2c: 01 00 00 BF 4C 0B [11:41:59]Write i2c OK [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: 01 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: 01 07 00 [11:41:59]MH_I2C_Read... [11:41:59]Read from MH i2c: 01 07 00 BF 4C 00 00 00 00 00 FF 0F 20 [11:41:59]RasterBufferAndPrint [11:41:59]line Счет N : (1)319885 [11:41:59]line ИНН: 02508201610067 [11:41:59]line Контрольно-Кассовый Чек [11:41:59]line ПРОДАЖА [11:41:59]line ТРК (МРК, ГНК) : 11 [11:41:59]line Товар: 2710124130 [11:41:59]line Аи-92-К-5 [11:41:59]line 9.040 * 66.40 [11:41:59]line = 600.26 [11:41:59]line НДС 12% НСП 1% [11:41:59]line > о реализуемом товаре [11:41:59]line ОКРУГЛЕНИЕ: -0.26 [11:41:59]line ИТОГО: 600.00 [11:41:59]line Внесено: 600.00 [11:41:59]line СДАЧА: 0.00 [11:41:59]line НСП 1% : 5.31 [11:41:59]line НДС 12% : 63.74 [11:41:59]line Наличными: 600.00 [11:41:59]line Безнал.: 0.00 [11:41:59]line Место: АЗС № 65 "Партнер Нефть" [11:41:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:41:59]line СНО: Общий режим [11:41:59]line Чек 63 19.06.2024 11:42 [11:41:59]line Смена: 388 ФФД: 1.0 [11:41:59]line ЗНМ: 0300000198 [11:41:59]line РНМ: 0000000000092771 [11:41:59]line Версия ККМ: 001 [11:41:59]line ФМ: 0000000000875083 [11:41:59]line ФД: 111314 [11:41:59]line ФПД: 42089542575414 [11:41:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114229&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111314&fm=42089542575414&tin=02508201610067®Number=0000000000092771&sum=60000 [11:41:59]OFD Sender: Processing packet 111314 [packets to send 38, broken 37] [11:41:59]ProducePacketName [11:41:59]name=ofd_packets/00111314 [11:41:59]OFD Sender: To server: pG, [11:41:59]CommunicateWithHost lk.salyk.kg:30040 [11:41:59]ConnectInit lk.salyk.kg [11:41:59]written 0, free lines is 4095 [11:41:59]Connected sock=10 [11:41:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 D8 07 01 0A 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 25 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D2 B2 01 00 35 04 06 00 26 47 BC 3B E5 36 50 E2 5A AE 93 E2 88 61 [11:41:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5B 0A 47 00 4D 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 35 30 38 33 10 04 04 00 D2 B2 01 00 F4 03 04 00 90 5B 72 66 B6 04 01 00 00 3C 2E C0 4F F9 2C 40 2C [11:41:59]CommunicateWithHost err = 0 [11:41:59]CheckOFDResponse [11:41:59]1017 (14) - 77093643461234 [11:41:59]1041 (16) - 0000000000875083 [11:41:59]1040 (4) - 111314 [11:41:59]1012 (4) - 19.06.2024 04:16 [11:41:59]1206 (1) - 0 [11:41:59]OFD Sender: Remove packet 111314 [11:41:59]ProducePacketName [11:41:59]name=ofd_packets/00111314 [11:41:59]NVStorageDeleteData [11:42:00]Write to MH i2c: 01 00 00 EA 4C 36 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 07 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 07 00 EA 4C 00 00 00 00 00 C8 0C 11 [11:42:00]RasterBufferAndPrint [11:42:00]line [11:42:00]line [11:42:00]line [11:42:00]line [11:42:00]line [11:42:00]written 0, free lines is 3279 [11:42:00]MH_Cut [11:42:00]Write to MH i2c: D1 01 00 F1 4C 01 0F [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: D1 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: D1 01 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: D1 01 00 F1 4C 00 0E [11:42:00]Write to MH i2c: 01 00 00 F2 4C 3E [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]OFD Sender: No OFD packet to send [11:42:00]*** Cut start [11:42:00]*** Partial cut [11:42:00]*** CUTSNS_PIN = 1 [11:42:00]*** CUTSNS_PIN = 0 [11:42:01]*** Brake cut motor [11:42:01]Read from MH i2c: 01 [11:42:01]MH_I2C_Read... [11:42:01]*** Stop cut motor [11:42:01]*** Cut end [11:42:01]Read from MH i2c: 01 07 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 F2 4C 00 00 00 00 00 FF 0F 53 [11:42:01]process_action close_receipt done [11:42:01]requested_data is exist [11:42:01]produce_requested_data [11:42:01]requested_item fm.sn is exist - process it [11:42:01]wFMCommunicate request_size=4 [11:42:01]MH_SAM_APDU [11:42:01]CAPDU: 80 11 00 00 [11:42:01]Write to MH i2c: E2 08 00 F3 4C 80 11 00 00 00 00 00 00 B9 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:01]Read from MH i2c: E2 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 17 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 17 00 F3 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [11:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:42:01]wFMCommunicate OK [11:42:01]requested_item fd.num is exist - process it [11:42:01]SAM_PROTO_GetFieldsCounters [11:42:01]wFMCommunicate request_size=4 [11:42:01]MH_SAM_APDU [11:42:01]CAPDU: 80 13 00 00 [11:42:01]Write to MH i2c: E2 08 00 F4 4C 80 13 00 00 00 00 00 00 BC [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:01]Read from MH i2c: E2 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 62 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 62 00 F4 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [11:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:01]wFMCommunicate OK [11:42:01]SAM_PROTO_GetFieldsCounters done [11:42:01]requested_item shift.num is exist - process it [11:42:01]requested_item shift.opened is exist - process it [11:42:01]req_shift_opened [11:42:01]FM_GetShiftState [11:42:01]SAM_PROTO_GetShiftState [11:42:01]wFMCommunicate request_size=4 [11:42:01]MH_SAM_APDU [11:42:01]CAPDU: 80 13 01 00 [11:42:01]Write to MH i2c: E2 08 00 F5 4C 80 13 01 00 00 00 00 00 BE [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:01]Read from MH i2c: E2 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 0E 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: E2 0E 00 F5 4C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 08 [11:42:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:42:01]wFMCommunicate OK [11:42:01]SAM_PROTO_GetShiftState done [11:42:01]FM_GetShiftState done [11:42:01]req_shift_opened done [11:42:01]requested_item shift.open_date is exist - process it [11:42:01]req_shift_open_date [11:42:01]req_shift_open_date done [11:42:01]produce_requested_data done [11:42:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111314,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:42:01]process_action_free close_receipt [11:42:01]json_value_free [11:42:01]json_value_free done [11:42:01]process_json_proto returns [11:42:01]Send response to host [11:42:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111314,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:42:01]free response buf [11:42:01]execute_script done [11:42:01]execute_script returns [11:42:01]free content buf [11:42:01]Sock 8.Close socket [11:42:01]Sock 8.Thread stoped [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:31]accept exits with 9 [11:42:31]New connection [11:42:31]New thread 3067227492 created [11:42:31]Thread 3067084132 joined [11:42:31]Waiting for new connection... [11:42:31] Sock 9.Parse request [11:42:31]Sock 9.Check first char [11:42:31]Sock 9.First char is OK [11:42:31]request: POST /json_proto HTTP/1.0 [11:42:31]Method: POST [11:42:31]URL: /json_proto [11:42:31]Method is POST - this is cgi request [11:42:31]url: /json_proto [11:42:31]query_string will be loaded in cgi processing [11:42:31]execute_cgi json_proto POST (null) [11:42:31]execute_cgi path=json_proto method=POST [11:42:31]POST find Content-Length [11:42:31]Host: 172.17.59.68:8080 [11:42:31]Content-Length: 677 [11:42:31]Content-Type: application/json [11:42:31] [11:42:31]POST finish read [11:42:31]Found Content-Length = 677 [11:42:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:31]execute_script... [11:42:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:31]POST & json_proto [11:42:31]process_json_proto [11:42:31]json parsed OK: [11:42:31]protocol is kg_v1.0 [11:42:31]action value=close_receipt [11:42:31]process_action close_receipt [11:42:31]cmd_close_receipt [11:42:31]MH_GetDate [11:42:31]Write to MH i2c: F0 00 00 F6 4C 31 [11:42:31]Write i2c OK [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: F0 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: F0 09 00 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: F0 09 00 F6 4C 00 46 C4 72 66 BC EC 60 65 89 [11:42:31]GetLastDocTimeStamp 1718797349 [11:42:31]current date 1718797382 [11:42:31]FM_GetShiftState [11:42:31]SAM_PROTO_GetShiftState [11:42:31]wFMCommunicate request_size=4 [11:42:31]MH_SAM_APDU [11:42:31]CAPDU: 80 13 01 00 [11:42:31]Write to MH i2c: E2 08 00 F7 4C 80 13 01 00 00 00 00 00 C0 [11:42:31]Write i2c OK [11:42:31]MH_I2C_Read... [11:42:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:31]Read from MH i2c: E2 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 0E 00 [11:42:31]MH_I2C_Read... [11:42:31]Read from MH i2c: E2 0E 00 F7 4C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0A [11:42:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:42:31]wFMCommunicate OK [11:42:31]SAM_PROTO_GetShiftState done [11:42:31]FM_GetShiftState done [11:42:31]opened in 1718760753 [11:42:31]opened+sec_in_day 1718847153 [11:42:31]quantity*price = 40039 [11:42:31]sum+1 = 40040 [11:42:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 64 19.06.2024 11:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111315 ФПД: 184099718943783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114302&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111315&fm=184099718943783&tin=02508201610067®Number=0000000000092771&sum=40000 [11:42:32]StoreToDocumentArchive [11:42:32]shift 388 fd 111315 [11:42:32]save to /storage/0388/doc_00111315 [11:42:32]save last doc name /storage/0388/doc_00111315 to /storage/kkm_last_doc_name [11:42:32]save OK [11:42:32]Clear old archive folders... [11:42:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:32]tlvbuf is 01941650 [11:42:32]SAM_PROTO_ClearQueue [11:42:32]wFMCommunicate request_size=4 [11:42:32]MH_SAM_APDU [11:42:32]CAPDU: 80 09 00 00 [11:42:32]Write to MH i2c: E2 08 00 04 4D 80 09 00 00 00 00 00 00 C3 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:32]Read from MH i2c: E2 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 03 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 03 00 04 4D 00 90 00 C5 [11:42:32]RAPDU: 90 00 [11:42:32]wFMCommunicate OK [11:42:32]SAM_PROTO_ClearQueue done [11:42:32]KKMCreateOFDPacket [11:42:32]OFDProtocolAddRootSTLVToBuf [11:42:32]FM_MakeSignedData [11:42:32]FM_MakeSignedData [11:42:32]SAM_PROTO_SignData [11:42:32]wFMCommunicate request_size=4 [11:42:32]MH_SAM_APDU [11:42:32]CAPDU: 80 0D 01 02 [11:42:32]Write to MH i2c: E2 08 00 05 4D 80 0D 01 02 00 00 00 00 CB [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:32]Read from MH i2c: E2 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 03 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 03 00 05 4D 00 90 00 C6 [11:42:32]RAPDU: 90 00 [11:42:32]wFMCommunicate OK [11:42:32]wFMCommunicate request_size=255 [11:42:32]MH_SAM_APDU [11:42:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 40 00 00 00 F4 03 04 00 46 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B2 01 00 35 04 06 00 A7 [11:42:32]Write to MH i2c: E2 02 01 06 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 40 00 00 00 F4 03 04 00 46 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B2 01 00 35 04 06 00 A7 00 00 21 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:32]Read from MH i2c: E2 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 03 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 03 00 06 4D 00 90 00 C7 [11:42:32]RAPDU: 90 00 [11:42:32]wFMCommunicate OK [11:42:32]wFMCommunicate request_size=10 [11:42:32]MH_SAM_APDU [11:42:32]CAPDU: 80 0D 02 02 05 70 0E 59 D4 27 [11:42:32]Write to MH i2c: E2 0D 00 07 4D 80 0D 02 02 05 00 70 0E 59 D4 27 00 00 AA [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:32]Read from MH i2c: E2 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 03 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 03 00 07 4D 00 90 00 C8 [11:42:32]RAPDU: 90 00 [11:42:32]wFMCommunicate OK [11:42:32]wFMCommunicate request_size=4 [11:42:32]MH_SAM_APDU [11:42:32]CAPDU: 80 0D 03 02 [11:42:32]Write to MH i2c: E2 08 00 08 4D 80 0D 03 02 00 00 00 00 D0 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:32]Read from MH i2c: E2 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 0B 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 0B 00 08 4D 00 9F 32 E7 4F 1E 43 BE FB 90 00 F2 [11:42:32]RAPDU: 9F 32 E7 4F 1E 43 BE FB 90 00 [11:42:32]wFMCommunicate OK [11:42:32]SAM_PROTO_SignData done [11:42:32]FM_MakeSignedData done [11:42:32]CreateOFDProtocolMessage [11:42:32]wFMCommunicate request_size=4 [11:42:32]MH_SAM_APDU [11:42:32]CAPDU: 80 11 00 00 [11:42:32]Write to MH i2c: E2 08 00 09 4D 80 11 00 00 00 00 00 00 D0 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:32]Read from MH i2c: E2 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 17 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: E2 17 00 09 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [11:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:42:32]wFMCommunicate OK [11:42:32]CreateOFDProtocolMessage done [11:42:32]OFDSenderStorePacket 111315 [11:42:32]StoreOFDPacket docnum=111315 [11:42:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7C A6 07 01 B0 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 40 00 00 00 F4 03 04 00 46 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B2 01 00 35 04 06 00 A7 70 0E 59 D4 27 9F 32 E7 4F 1E 43 BE FB [11:42:32]CheckFolder [11:42:32]dirname=/storage/ofd_packets [11:42:32]CheckFolder done [11:42:32]ProducePacketName [11:42:32]name=ofd_packets/00111315 [11:42:32]NVStorageSaveData ofd_packets/00111315 [11:42:32]File name is /storage/ofd_packets/00111315 [11:42:32]Write 301 bytes [11:42:32]NVStorageSaveData done [11:42:32]OFDSenderStorePacket done [11:42:32]KKMCreateOFDPacket done [11:42:32]NVStorageSaveData kkm_last_timestamp [11:42:32]File name is /storage/kkm_last_timestamp [11:42:32]Write 4 bytes [11:42:32]NVStorageSaveData done [11:42:32]ExternCall_PrintAddStr [11:42:32]wPrintStart [11:42:32]Write to MH i2c: 01 00 00 0A 4D 57 [11:42:32]Write i2c OK [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 [11:42:32]MH_I2C_Read... [11:42:32]Read from MH i2c: 01 07 00 0A 4D 00 00 00 00 00 FF 0F 6C [11:42:32]RasterBufferAndPrint [11:42:32]line Счет N : (1)319886 [11:42:32]line ИНН: 02508201610067 [11:42:32]line Контрольно-Кассовый Чек [11:42:32]line ПРОДАЖА [11:42:32]line ТРК (МРК, ГНК) : 11 [11:42:32]line Товар: 2710124130 [11:42:32]line Аи-92-К-5 [11:42:32]line 6.030 * 66.40 [11:42:32]line = 400.39 [11:42:32]line НДС 12% НСП 1% [11:42:32]line > о реализуемом товаре [11:42:32]line ОКРУГЛЕНИЕ: -0.39 [11:42:32]line ИТОГО: 400.00 [11:42:32]line Внесено: 400.00 [11:42:32]line СДАЧА: 0.00 [11:42:32]line НСП 1% : 3.54 [11:42:32]line НДС 12% : 42.52 [11:42:32]line Наличными: 400.00 [11:42:32]line Безнал.: 0.00 [11:42:32]line Место: АЗС № 65 "Партнер Нефть" [11:42:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:42:32]line СНО: Общий режим [11:42:32]line Чек 64 19.06.2024 11:43 [11:42:32]line Смена: 388 ФФД: 1.0 [11:42:32]line ЗНМ: 0300000198 [11:42:32]line РНМ: 0000000000092771 [11:42:32]line Версия ККМ: 001 [11:42:32]line ФМ: 0000000000875083 [11:42:32]line ФД: 111315 [11:42:32]line ФПД: 184099718943783 [11:42:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114302&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111315&fm=184099718943783&tin=02508201610067®Number=0000000000092771&sum=40000 [11:42:33]OFD Sender: Processing packet 111315 [packets to send 38, broken 37] [11:42:33]ProducePacketName [11:42:33]name=ofd_packets/00111315 [11:42:33]OFD Sender: To server: pG, [11:42:33]CommunicateWithHost lk.salyk.kg:30040 [11:42:33]ConnectInit lk.salyk.kg [11:42:33]written 0, free lines is 4095 [11:42:33]Connected sock=10 [11:42:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7C A6 07 01 B0 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 40 00 00 00 F4 03 04 00 46 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D3 B2 01 00 35 04 06 00 A7 70 0E 59 D4 27 9F 32 E7 4F 1E 43 BE FB [11:42:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F9 A8 47 00 E6 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 35 30 38 33 10 04 04 00 D3 B2 01 00 F4 03 04 00 B1 5B 72 66 B6 04 01 00 00 4D C5 57 D1 F2 59 03 1C [11:42:33]CommunicateWithHost err = 0 [11:42:33]CheckOFDResponse [11:42:33]1017 (14) - 77093643461234 [11:42:33]1041 (16) - 0000000000875083 [11:42:33]1040 (4) - 111315 [11:42:33]1012 (4) - 19.06.2024 04:16 [11:42:33]1206 (1) - 0 [11:42:33]OFD Sender: Remove packet 111315 [11:42:33]ProducePacketName [11:42:33]name=ofd_packets/00111315 [11:42:33]NVStorageDeleteData [11:42:33]Write to MH i2c: 01 00 00 35 4D 82 [11:42:33]Write i2c OK [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: 01 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: 01 07 00 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: 01 07 00 35 4D 00 00 00 00 00 DA 0C 6F [11:42:33]RasterBufferAndPrint [11:42:33]line [11:42:33]line [11:42:33]line [11:42:33]line [11:42:33]line [11:42:33]written 0, free lines is 3298 [11:42:33]MH_Cut [11:42:33]Write to MH i2c: D1 01 00 3C 4D 01 5B [11:42:33]Write i2c OK [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: D1 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: D1 01 00 [11:42:33]MH_I2C_Read... [11:42:33]Read from MH i2c: D1 01 00 3C 4D 00 5A [11:42:33]Write to MH i2c: 01 00 00 3D 4D 8A [11:42:33]Write i2c OK [11:42:33]MH_I2C_Read... [11:42:34]OFD Sender: No OFD packet to send [11:42:34]*** Cut start [11:42:34]*** Partial cut [11:42:34]*** CUTSNS_PIN = 1 [11:42:34]*** CUTSNS_PIN = 0 [11:42:34]*** Brake cut motor [11:42:35]Read from MH i2c: 01 [11:42:35]MH_I2C_Read... [11:42:35]*** Stop cut motor [11:42:35]*** Cut end [11:42:35]Read from MH i2c: 01 07 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: 01 07 00 3D 4D 00 00 00 00 00 FF 0F 9F [11:42:35]process_action close_receipt done [11:42:35]requested_data is exist [11:42:35]produce_requested_data [11:42:35]requested_item fm.sn is exist - process it [11:42:35]wFMCommunicate request_size=4 [11:42:35]MH_SAM_APDU [11:42:35]CAPDU: 80 11 00 00 [11:42:35]Write to MH i2c: E2 08 00 3E 4D 80 11 00 00 00 00 00 00 05 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:35]Read from MH i2c: E2 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 17 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 17 00 3E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [11:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:42:35]wFMCommunicate OK [11:42:35]requested_item fd.num is exist - process it [11:42:35]SAM_PROTO_GetFieldsCounters [11:42:35]wFMCommunicate request_size=4 [11:42:35]MH_SAM_APDU [11:42:35]CAPDU: 80 13 00 00 [11:42:35]Write to MH i2c: E2 08 00 3F 4D 80 13 00 00 00 00 00 00 08 [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:35]Read from MH i2c: E2 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 62 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 62 00 3F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [11:42:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:35]wFMCommunicate OK [11:42:35]SAM_PROTO_GetFieldsCounters done [11:42:35]requested_item shift.num is exist - process it [11:42:35]requested_item shift.opened is exist - process it [11:42:35]req_shift_opened [11:42:35]FM_GetShiftState [11:42:35]SAM_PROTO_GetShiftState [11:42:35]wFMCommunicate request_size=4 [11:42:35]MH_SAM_APDU [11:42:35]CAPDU: 80 13 01 00 [11:42:35]Write to MH i2c: E2 08 00 40 4D 80 13 01 00 00 00 00 00 0A [11:42:35]Write i2c OK [11:42:35]MH_I2C_Read... [11:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:35]Read from MH i2c: E2 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 0E 00 [11:42:35]MH_I2C_Read... [11:42:35]Read from MH i2c: E2 0E 00 40 4D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 54 [11:42:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:42:35]wFMCommunicate OK [11:42:35]SAM_PROTO_GetShiftState done [11:42:35]FM_GetShiftState done [11:42:35]req_shift_opened done [11:42:35]requested_item shift.open_date is exist - process it [11:42:35]req_shift_open_date [11:42:35]req_shift_open_date done [11:42:35]produce_requested_data done [11:42:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111315,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:42:35]process_action_free close_receipt [11:42:35]json_value_free [11:42:35]json_value_free done [11:42:35]process_json_proto returns [11:42:35]Send response to host [11:42:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111315,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:42:35]free response buf [11:42:35]execute_script done [11:42:35]execute_script returns [11:42:35]free content buf [11:42:35]Sock 9.Close socket [11:42:35]Sock 9.Thread stoped [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:02]accept exits with 8 [11:44:02]New connection [11:44:02]New thread 3067084132 created [11:44:02]Thread 3067227492 joined [11:44:02]Waiting for new connection... [11:44:02] Sock 8.Parse request [11:44:02]Sock 8.Check first char [11:44:02]Sock 8.First char is OK [11:44:02]request: POST /json_proto HTTP/1.0 [11:44:02]Method: POST [11:44:02]URL: /json_proto [11:44:02]Method is POST - this is cgi request [11:44:02]url: /json_proto [11:44:02]query_string will be loaded in cgi processing [11:44:02]execute_cgi json_proto POST (null) [11:44:02]execute_cgi path=json_proto method=POST [11:44:02]POST find Content-Length [11:44:02]Host: 172.17.59.68:8080 [11:44:02]Content-Length: 677 [11:44:02]Content-Type: application/json [11:44:02] [11:44:02]POST finish read [11:44:02]Found Content-Length = 677 [11:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:02]execute_script... [11: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)319887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:02]POST & json_proto [11:44:02]process_json_proto [11:44:02]json parsed OK: [11:44:02]protocol is kg_v1.0 [11:44:02]action value=close_receipt [11:44:02]process_action close_receipt [11:44:02]cmd_close_receipt [11:44:02]MH_GetDate [11:44:02]Write to MH i2c: F0 00 00 41 4D 7D [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: F0 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: F0 09 00 [11:44:02]MH_I2C_Read... [11:44:02]Read from MH i2c: F0 09 00 41 4D 00 A2 C4 72 66 BC EC 60 65 31 [11:44:02]GetLastDocTimeStamp 1718797382 [11:44:02]current date 1718797474 [11:44:02]FM_GetShiftState [11:44:02]SAM_PROTO_GetShiftState [11:44:02]wFMCommunicate request_size=4 [11:44:02]MH_SAM_APDU [11:44:02]CAPDU: 80 13 01 00 [11:44:02]Write to MH i2c: E2 08 00 42 4D 80 13 01 00 00 00 00 00 0C [11:44:02]Write i2c OK [11:44:02]MH_I2C_Read... [11:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:03]Read from MH i2c: E2 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 0E 00 [11:44:03]MH_I2C_Read... [11:44:03]Read from MH i2c: E2 0E 00 42 4D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 56 [11:44:03]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:44:03]wFMCommunicate OK [11:44:03]SAM_PROTO_GetShiftState done [11:44:03]FM_GetShiftState done [11:44:03]opened in 1718760753 [11:44:03]opened+sec_in_day 1718847153 [11:44:03]quantity*price = 50065 [11:44:03]sum+1 = 50067 [11:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 65 19.06.2024 11:44 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111316 ФПД: 168676292565923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114434&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111316&fm=168676292565923&tin=02508201610067®Number=0000000000092771&sum=50000 [11:44:04]StoreToDocumentArchive [11:44:04]shift 388 fd 111316 [11:44:04]save to /storage/0388/doc_00111316 [11:44:04]save last doc name /storage/0388/doc_00111316 to /storage/kkm_last_doc_name [11:44:04]save OK [11:44:04]Clear old archive folders... [11:44:04]OFD Sender: No OFD packet to send [11:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:04]tlvbuf is 019A7E10 [11:44:04]SAM_PROTO_ClearQueue [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 09 00 00 [11:44:04]Write to MH i2c: E2 08 00 4F 4D 80 09 00 00 00 00 00 00 0E [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 03 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 03 00 4F 4D 00 90 00 10 [11:44:04]RAPDU: 90 00 [11:44:04]wFMCommunicate OK [11:44:04]SAM_PROTO_ClearQueue done [11:44:04]KKMCreateOFDPacket [11:44:04]OFDProtocolAddRootSTLVToBuf [11:44:04]FM_MakeSignedData [11:44:04]FM_MakeSignedData [11:44:04]SAM_PROTO_SignData [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 0D 01 02 [11:44:04]Write to MH i2c: E2 08 00 50 4D 80 0D 01 02 00 00 00 00 16 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 03 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 03 00 50 4D 00 90 00 11 [11:44:04]RAPDU: 90 00 [11:44:04]wFMCommunicate OK [11:44:04]wFMCommunicate request_size=255 [11:44:04]MH_SAM_APDU [11:44: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 A2 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B2 01 00 35 04 06 00 99 [11:44:04]Write to MH i2c: E2 02 01 51 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 A2 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B2 01 00 35 04 06 00 99 00 00 EE [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 03 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 03 00 51 4D 00 90 00 12 [11:44:04]RAPDU: 90 00 [11:44:04]wFMCommunicate OK [11:44:04]wFMCommunicate request_size=10 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 0D 02 02 05 69 02 80 1B A3 [11:44:04]Write to MH i2c: E2 0D 00 52 4D 80 0D 02 02 05 00 69 02 80 1B A3 00 00 CC [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 03 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 03 00 52 4D 00 90 00 13 [11:44:04]RAPDU: 90 00 [11:44:04]wFMCommunicate OK [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 0D 03 02 [11:44:04]Write to MH i2c: E2 08 00 53 4D 80 0D 03 02 00 00 00 00 1B [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0B 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 0B 00 53 4D 00 35 F7 82 01 68 25 E8 6D 90 00 AD [11:44:04]RAPDU: 35 F7 82 01 68 25 E8 6D 90 00 [11:44:04]wFMCommunicate OK [11:44:04]SAM_PROTO_SignData done [11:44:04]FM_MakeSignedData done [11:44:04]CreateOFDProtocolMessage [11:44:04]wFMCommunicate request_size=4 [11:44:04]MH_SAM_APDU [11:44:04]CAPDU: 80 11 00 00 [11:44:04]Write to MH i2c: E2 08 00 54 4D 80 11 00 00 00 00 00 00 1B [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:04]Read from MH i2c: E2 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 17 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: E2 17 00 54 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [11:44:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:44:04]wFMCommunicate OK [11:44:04]CreateOFDProtocolMessage done [11:44:04]OFDSenderStorePacket 111316 [11:44:04]StoreOFDPacket docnum=111316 [11:44:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9E FA 07 01 B9 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 A2 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B2 01 00 35 04 06 00 99 69 02 80 1B A3 35 F7 82 01 68 25 E8 6D [11:44:04]CheckFolder [11:44:04]dirname=/storage/ofd_packets [11:44:04]CheckFolder done [11:44:04]ProducePacketName [11:44:04]name=ofd_packets/00111316 [11:44:04]NVStorageSaveData ofd_packets/00111316 [11:44:04]File name is /storage/ofd_packets/00111316 [11:44:04]Write 301 bytes [11:44:04]NVStorageSaveData done [11:44:04]OFDSenderStorePacket done [11:44:04]KKMCreateOFDPacket done [11:44:04]NVStorageSaveData kkm_last_timestamp [11:44:04]File name is /storage/kkm_last_timestamp [11:44:04]Write 4 bytes [11:44:04]NVStorageSaveData done [11:44:04]ExternCall_PrintAddStr [11:44:04]wPrintStart [11:44:04]Write to MH i2c: 01 00 00 55 4D A2 [11:44:04]Write i2c OK [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: 01 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: 01 07 00 [11:44:04]MH_I2C_Read... [11:44:04]Read from MH i2c: 01 07 00 55 4D 00 00 00 00 00 FF 0F B7 [11:44:04]RasterBufferAndPrint [11:44:04]line Счет N : (1)319887 [11:44:04]line ИНН: 02508201610067 [11:44:04]line Контрольно-Кассовый Чек [11:44:04]line ПРОДАЖА [11:44:04]line ТРК (МРК, ГНК) : 11 [11:44:04]line Товар: 2710124130 [11:44:04]line Аи-92-К-5 [11:44:04]line 7.540 * 66.40 [11:44:04]line = 500.66 [11:44:04]line НДС 12% НСП 1% [11:44:04]line > о реализуемом товаре [11:44:04]line ОКРУГЛЕНИЕ: -0.66 [11:44:04]line ИТОГО: 500.00 [11:44:04]line Внесено: 500.00 [11:44:04]line СДАЧА: 0.00 [11:44:04]line НСП 1% : 4.43 [11:44:04]line НДС 12% : 53.17 [11:44:04]line Наличными: 500.00 [11:44:04]line Безнал.: 0.00 [11:44:04]line Место: АЗС № 65 "Партнер Нефть" [11:44:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:44:04]line СНО: Общий режим [11:44:04]line Чек 65 19.06.2024 11:44 [11:44:04]line Смена: 388 ФФД: 1.0 [11:44:04]line ЗНМ: 0300000198 [11:44:04]line РНМ: 0000000000092771 [11:44:04]line Версия ККМ: 001 [11:44:04]line ФМ: 0000000000875083 [11:44:04]line ФД: 111316 [11:44:04]line ФПД: 168676292565923 [11:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T114434&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111316&fm=168676292565923&tin=02508201610067®Number=0000000000092771&sum=50000 [11:44:05]OFD Sender: Processing packet 111316 [packets to send 38, broken 37] [11:44:05]ProducePacketName [11:44:05]name=ofd_packets/00111316 [11:44:05]OFD Sender: To server: pG, [11:44:05]CommunicateWithHost lk.salyk.kg:30040 [11:44:05]ConnectInit lk.salyk.kg [11:44:05]written 0, free lines is 4095 [11:44:05]Connected sock=10 [11:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9E FA 07 01 B9 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 A2 C4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B2 01 00 35 04 06 00 99 69 02 80 1B A3 35 F7 82 01 68 25 E8 6D [11:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 46 78 47 00 13 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D4 B2 01 00 F4 03 04 00 0D 5C 72 66 B6 04 01 00 00 5C 8F 2F B9 20 B6 61 AA [11:44:05]CommunicateWithHost err = 0 [11:44:05]CheckOFDResponse [11:44:05]1017 (14) - 77093643461234 [11:44:05]1041 (16) - 0000000000875083 [11:44:05]1040 (4) - 111316 [11:44:05]1012 (4) - 19.06.2024 04:18 [11:44:05]1206 (1) - 0 [11:44:05]OFD Sender: Remove packet 111316 [11:44:05]ProducePacketName [11:44:05]name=ofd_packets/00111316 [11:44:05]NVStorageDeleteData [11:44:05]Write to MH i2c: 01 00 00 80 4D CD [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: 01 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: 01 07 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: 01 07 00 80 4D 00 00 00 00 00 D6 0C B6 [11:44:05]RasterBufferAndPrint [11:44:05]line [11:44:05]line [11:44:05]line [11:44:05]line [11:44:05]line [11:44:05]written 0, free lines is 3293 [11:44:05]MH_Cut [11:44:05]Write to MH i2c: D1 01 00 87 4D 01 A6 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: D1 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: D1 01 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: D1 01 00 87 4D 00 A5 [11:44:05]Write to MH i2c: 01 00 00 88 4D D5 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]OFD Sender: No OFD packet to send [11:44:06]*** Cut start [11:44:06]*** Partial cut [11:44:06]*** CUTSNS_PIN = 1 [11:44:06]*** CUTSNS_PIN = 0 [11:44:06]*** Brake cut motor [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]*** Stop cut motor [11:44:06]*** Cut end [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 88 4D 00 00 00 00 00 FF 0F EA [11:44:06]process_action close_receipt done [11:44:06]requested_data is exist [11:44:06]produce_requested_data [11:44:06]requested_item fm.sn is exist - process it [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 11 00 00 [11:44:06]Write to MH i2c: E2 08 00 89 4D 80 11 00 00 00 00 00 00 50 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 89 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [11:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:44:06]wFMCommunicate OK [11:44:06]requested_item fd.num is exist - process it [11:44:06]SAM_PROTO_GetFieldsCounters [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 13 00 00 [11:44:06]Write to MH i2c: E2 08 00 8A 4D 80 13 00 00 00 00 00 00 53 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:07]Read from MH i2c: E2 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: E2 62 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: E2 62 00 8A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [11:44: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:07]wFMCommunicate OK [11:44:07]SAM_PROTO_GetFieldsCounters done [11:44:07]requested_item shift.num is exist - process it [11:44:07]requested_item shift.opened is exist - process it [11:44:07]req_shift_opened [11:44:07]FM_GetShiftState [11:44:07]SAM_PROTO_GetShiftState [11:44:07]wFMCommunicate request_size=4 [11:44:07]MH_SAM_APDU [11:44:07]CAPDU: 80 13 01 00 [11:44:07]Write to MH i2c: E2 08 00 8B 4D 80 13 01 00 00 00 00 00 55 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:07]Read from MH i2c: E2 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: E2 0E 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: E2 0E 00 8B 4D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9F [11:44:07]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:44:07]wFMCommunicate OK [11:44:07]SAM_PROTO_GetShiftState done [11:44:07]FM_GetShiftState done [11:44:07]req_shift_opened done [11:44:07]requested_item shift.open_date is exist - process it [11:44:07]req_shift_open_date [11:44:07]req_shift_open_date done [11:44:07]produce_requested_data done [11:44:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111316,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:44:07]process_action_free close_receipt [11:44:07]json_value_free [11:44:07]json_value_free done [11:44:07]process_json_proto returns [11:44:07]Send response to host [11:44:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111316,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:44:07]free response buf [11:44:07]execute_script done [11:44:07]execute_script returns [11:44:07]free content buf [11:44:07]Sock 8.Close socket [11:44:07]Sock 8.Thread stoped [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:10]accept exits with 9 [11:50:10]New connection [11:50:10]New thread 3067227492 created [11:50:10]Thread 3067084132 joined [11:50:10]Waiting for new connection... [11:50:10] Sock 9.Parse request [11:50:10]Sock 9.Check first char [11:50:10]Sock 9.First char is OK [11:50:10]request: POST /json_proto HTTP/1.0 [11:50:10]Method: POST [11:50:10]URL: /json_proto [11:50:10]Method is POST - this is cgi request [11:50:10]url: /json_proto [11:50:10]query_string will be loaded in cgi processing [11:50:10]execute_cgi json_proto POST (null) [11:50:10]execute_cgi path=json_proto method=POST [11:50:10]POST find Content-Length [11:50:10]Host: 172.17.59.68:8080 [11:50:10]Content-Length: 677 [11:50:10]Content-Type: application/json [11:50:10] [11:50:10]POST finish read [11:50:10]Found Content-Length = 677 [11:50:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:50:10]execute_script... [11:50:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:50:10]POST & json_proto [11:50:10]process_json_proto [11:50:10]json parsed OK: [11:50:10]protocol is kg_v1.0 [11:50:10]action value=close_receipt [11:50:10]process_action close_receipt [11:50:10]cmd_close_receipt [11:50:10]MH_GetDate [11:50:10]Write to MH i2c: F0 00 00 8C 4D C8 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: F0 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: F0 09 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: F0 09 00 8C 4D 00 11 C6 72 66 BC EC 60 65 ED [11:50:10]GetLastDocTimeStamp 1718797474 [11:50:10]current date 1718797841 [11:50:10]FM_GetShiftState [11:50:10]SAM_PROTO_GetShiftState [11:50:10]wFMCommunicate request_size=4 [11:50:10]MH_SAM_APDU [11:50:10]CAPDU: 80 13 01 00 [11:50:10]Write to MH i2c: E2 08 00 8D 4D 80 13 01 00 00 00 00 00 57 [11:50:10]Write i2c OK [11:50:10]MH_I2C_Read... [11:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:10]Read from MH i2c: E2 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 0E 00 [11:50:10]MH_I2C_Read... [11:50:10]Read from MH i2c: E2 0E 00 8D 4D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A1 [11:50:10]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:50:10]wFMCommunicate OK [11:50:10]SAM_PROTO_GetShiftState done [11:50:10]FM_GetShiftState done [11:50:10]opened in 1718760753 [11:50:10]opened+sec_in_day 1718847153 [11:50:10]quantity*price = 20052 [11:50:10]sum+1 = 20054 [11:50:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 66 19.06.2024 11:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111317 ФПД: 56602636027512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115041&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111317&fm=56602636027512&tin=02508201610067®Number=0000000000092771&sum=20000 [11:50:11]StoreToDocumentArchive [11:50:11]shift 388 fd 111317 [11:50:11]save to /storage/0388/doc_00111317 [11:50:11]save last doc name /storage/0388/doc_00111317 to /storage/kkm_last_doc_name [11:50:11]save OK [11:50:11]Clear old archive folders... [11:50:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:11]tlvbuf is 019A80D0 [11:50:11]SAM_PROTO_ClearQueue [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 09 00 00 [11:50:11]Write to MH i2c: E2 08 00 9A 4D 80 09 00 00 00 00 00 00 59 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 9A 4D 00 90 00 5B [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]SAM_PROTO_ClearQueue done [11:50:11]KKMCreateOFDPacket [11:50:11]OFDProtocolAddRootSTLVToBuf [11:50:11]FM_MakeSignedData [11:50:11]FM_MakeSignedData [11:50:11]SAM_PROTO_SignData [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 01 02 [11:50:11]Write to MH i2c: E2 08 00 9B 4D 80 0D 01 02 00 00 00 00 61 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 9B 4D 00 90 00 5C [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]wFMCommunicate request_size=255 [11:50:11]MH_SAM_APDU [11:50: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 11 C6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B2 01 00 35 04 06 00 33 [11:50:11]Write to MH i2c: E2 02 01 9C 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 11 C6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B2 01 00 35 04 06 00 33 00 00 05 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 9C 4D 00 90 00 5D [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]wFMCommunicate request_size=10 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 02 02 05 7A D4 03 86 78 [11:50:11]Write to MH i2c: E2 0D 00 9D 4D 80 0D 02 02 05 00 7A D4 03 86 78 00 00 BD [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 03 00 9D 4D 00 90 00 5E [11:50:11]RAPDU: 90 00 [11:50:11]wFMCommunicate OK [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 0D 03 02 [11:50:11]Write to MH i2c: E2 08 00 9E 4D 80 0D 03 02 00 00 00 00 66 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 0B 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 0B 00 9E 4D 00 BD 3E 49 0B FC C7 72 32 90 00 1D [11:50:11]RAPDU: BD 3E 49 0B FC C7 72 32 90 00 [11:50:11]wFMCommunicate OK [11:50:11]SAM_PROTO_SignData done [11:50:11]FM_MakeSignedData done [11:50:11]CreateOFDProtocolMessage [11:50:11]wFMCommunicate request_size=4 [11:50:11]MH_SAM_APDU [11:50:11]CAPDU: 80 11 00 00 [11:50:11]Write to MH i2c: E2 08 00 9F 4D 80 11 00 00 00 00 00 00 66 [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:11]Read from MH i2c: E2 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 17 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: E2 17 00 9F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [11:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:50:11]wFMCommunicate OK [11:50:11]CreateOFDProtocolMessage done [11:50:11]OFDSenderStorePacket 111317 [11:50:11]StoreOFDPacket docnum=111317 [11:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 27 02 07 01 3B 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 11 C6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B2 01 00 35 04 06 00 33 7A D4 03 86 78 BD 3E 49 0B FC C7 72 32 [11:50:11]CheckFolder [11:50:11]dirname=/storage/ofd_packets [11:50:11]CheckFolder done [11:50:11]ProducePacketName [11:50:11]name=ofd_packets/00111317 [11:50:11]NVStorageSaveData ofd_packets/00111317 [11:50:11]File name is /storage/ofd_packets/00111317 [11:50:11]Write 301 bytes [11:50:11]NVStorageSaveData done [11:50:11]OFDSenderStorePacket done [11:50:11]KKMCreateOFDPacket done [11:50:11]NVStorageSaveData kkm_last_timestamp [11:50:11]File name is /storage/kkm_last_timestamp [11:50:11]Write 4 bytes [11:50:11]NVStorageSaveData done [11:50:11]ExternCall_PrintAddStr [11:50:11]wPrintStart [11:50:11]Write to MH i2c: 01 00 00 A0 4D ED [11:50:11]Write i2c OK [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 07 00 [11:50:11]MH_I2C_Read... [11:50:11]Read from MH i2c: 01 07 00 A0 4D 00 00 00 00 00 FF 0F 02 [11:50:11]RasterBufferAndPrint [11:50:11]line Счет N : (1)319888 [11:50:11]line ИНН: 02508201610067 [11:50:11]line Контрольно-Кассовый Чек [11:50:11]line ПРОДАЖА [11:50:11]line ТРК (МРК, ГНК) : 11 [11:50:11]line Товар: 2710124130 [11:50:11]line Аи-92-К-5 [11:50:11]line 3.020 * 66.40 [11:50:11]line = 200.53 [11:50:11]line НДС 12% НСП 1% [11:50:11]line > о реализуемом товаре [11:50:11]line ОКРУГЛЕНИЕ: -0.53 [11:50:11]line ИТОГО: 200.00 [11:50:11]line Внесено: 200.00 [11:50:11]line СДАЧА: 0.00 [11:50:11]line НСП 1% : 1.77 [11:50:11]line НДС 12% : 21.29 [11:50:11]line Наличными: 200.00 [11:50:11]line Безнал.: 0.00 [11:50:11]line Место: АЗС № 65 "Партнер Нефть" [11:50:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:50:11]line СНО: Общий режим [11:50:11]line Чек 66 19.06.2024 11:50 [11:50:11]line Смена: 388 ФФД: 1.0 [11:50:11]line ЗНМ: 0300000198 [11:50:11]line РНМ: 0000000000092771 [11:50:11]line Версия ККМ: 001 [11:50:11]line ФМ: 0000000000875083 [11:50:11]line ФД: 111317 [11:50:11]line ФПД: 56602636027512 [11:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115041&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111317&fm=56602636027512&tin=02508201610067®Number=0000000000092771&sum=20000 [11:50:11]written 0, free lines is 4095 [11:50:11]OFD Sender: Processing packet 111317 [packets to send 38, broken 37] [11:50:11]ProducePacketName [11:50:11]name=ofd_packets/00111317 [11:50:11]OFD Sender: To server: pG, [11:50:11]CommunicateWithHost lk.salyk.kg:30040 [11:50:11]ConnectInit lk.salyk.kg [11:50:11]Connected sock=10 [11: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 35 30 38 33 0F 01 00 00 27 02 07 01 3B 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 11 C6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B2 01 00 35 04 06 00 33 7A D4 03 86 78 BD 3E 49 0B FC C7 72 32 [11:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 40 7D 47 00 47 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D5 B2 01 00 F4 03 04 00 7C 5D 72 66 B6 04 01 00 00 FE 2E A6 90 26 5D 5A 1D [11:50:12]CommunicateWithHost err = 0 [11:50:12]CheckOFDResponse [11:50:12]1017 (14) - 77093643461234 [11:50:12]1041 (16) - 0000000000875083 [11:50:12]1040 (4) - 111317 [11:50:12]1012 (4) - 19.06.2024 04:24 [11:50:12]1206 (1) - 0 [11:50:12]OFD Sender: Remove packet 111317 [11:50:12]ProducePacketName [11:50:12]name=ofd_packets/00111317 [11:50:12]NVStorageDeleteData [11:50:12]Write to MH i2c: 01 00 00 CB 4D 18 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 07 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: 01 07 00 CB 4D 00 00 00 00 00 E1 0C 0C [11:50:12]RasterBufferAndPrint [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]line [11:50:12]written 0, free lines is 3306 [11:50:12]MH_Cut [11:50:12]Write to MH i2c: D1 01 00 D2 4D 01 F1 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 01 00 [11:50:12]MH_I2C_Read... [11:50:12]Read from MH i2c: D1 01 00 D2 4D 00 F0 [11:50:12]Write to MH i2c: 01 00 00 D3 4D 20 [11:50:12]Write i2c OK [11:50:12]MH_I2C_Read... [11:50:12]OFD Sender: No OFD packet to send [11:50:12]*** Cut start [11:50:12]*** Partial cut [11:50:12]*** CUTSNS_PIN = 1 [11:50:13]*** CUTSNS_PIN = 0 [11:50:13]*** Brake cut motor [11:50:13]Read from MH i2c: 01 [11:50:13]MH_I2C_Read... [11:50:13]*** Stop cut motor [11:50:13]*** Cut end [11:50:13]Read from MH i2c: 01 07 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: 01 07 00 D3 4D 00 00 00 00 00 FF 0F 35 [11:50:13]process_action close_receipt done [11:50:13]requested_data is exist [11:50:13]produce_requested_data [11:50:13]requested_item fm.sn is exist - process it [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 11 00 00 [11:50:13]Write to MH i2c: E2 08 00 D4 4D 80 11 00 00 00 00 00 00 9B [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 17 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 17 00 D4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 ED [11:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:50:13]wFMCommunicate OK [11:50:13]requested_item fd.num is exist - process it [11:50:13]SAM_PROTO_GetFieldsCounters [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 13 00 00 [11:50:13]Write to MH i2c: E2 08 00 D5 4D 80 13 00 00 00 00 00 00 9E [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 62 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 62 00 D5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_GetFieldsCounters done [11:50:13]requested_item shift.num is exist - process it [11:50:13]requested_item shift.opened is exist - process it [11:50:13]req_shift_opened [11:50:13]FM_GetShiftState [11:50:13]SAM_PROTO_GetShiftState [11:50:13]wFMCommunicate request_size=4 [11:50:13]MH_SAM_APDU [11:50:13]CAPDU: 80 13 01 00 [11:50:13]Write to MH i2c: E2 08 00 D6 4D 80 13 01 00 00 00 00 00 A0 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:13]Read from MH i2c: E2 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 0E 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: E2 0E 00 D6 4D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EA [11:50:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:50:13]wFMCommunicate OK [11:50:13]SAM_PROTO_GetShiftState done [11:50:13]FM_GetShiftState done [11:50:13]req_shift_opened done [11:50:13]requested_item shift.open_date is exist - process it [11:50:13]req_shift_open_date [11:50:13]req_shift_open_date done [11:50:13]produce_requested_data done [11:50:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111317,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:50:13]process_action_free close_receipt [11:50:13]json_value_free [11:50:13]json_value_free done [11:50:13]process_json_proto returns [11:50:13]Send response to host [11:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111317,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:50:13]free response buf [11:50:13]execute_script done [11:50:13]execute_script returns [11:50:13]free content buf [11:50:13]Sock 9.Close socket [11:50:13]Sock 9.Thread stoped [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:34]accept exits with 8 [11:56:34]New connection [11:56:34]New thread 3067084132 created [11:56:34]Thread 3067227492 joined [11:56:34]Waiting for new connection... [11:56:34] Sock 8.Parse request [11:56:34]Sock 8.Check first char [11:56:34]Sock 8.First char is OK [11:56:34]request: POST /json_proto HTTP/1.0 [11:56:34]Method: POST [11:56:34]URL: /json_proto [11:56:34]Method is POST - this is cgi request [11:56:34]url: /json_proto [11:56:34]query_string will be loaded in cgi processing [11:56:34]execute_cgi json_proto POST (null) [11:56:34]execute_cgi path=json_proto method=POST [11:56:34]POST find Content-Length [11:56:34]Host: 172.17.59.68:8080 [11:56:34]Content-Length: 677 [11:56:34]Content-Type: application/json [11:56:34] [11:56:34]POST finish read [11:56:34]Found Content-Length = 677 [11:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:34]execute_script... [11: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)319889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:34]POST & json_proto [11:56:34]process_json_proto [11:56:34]json parsed OK: [11:56:34]protocol is kg_v1.0 [11:56:34]action value=close_receipt [11:56:34]process_action close_receipt [11:56:34]cmd_close_receipt [11:56:34]MH_GetDate [11:56:34]Write to MH i2c: F0 00 00 D7 4D 13 [11:56:34]Write i2c OK [11:56:34]MH_I2C_Read... [11:56:34]Read from MH i2c: F0 [11:56:34]MH_I2C_Read... [11:56:34]Read from MH i2c: F0 09 00 [11:56:34]MH_I2C_Read... [11:56:34]Read from MH i2c: F0 09 00 D7 4D 00 92 C7 72 66 BC EC 60 65 BA [11:56:34]GetLastDocTimeStamp 1718797841 [11:56:34]current date 1718798226 [11:56:34]FM_GetShiftState [11:56:34]SAM_PROTO_GetShiftState [11:56:34]wFMCommunicate request_size=4 [11:56:34]MH_SAM_APDU [11:56:34]CAPDU: 80 13 01 00 [11:56:34]Write to MH i2c: E2 08 00 D8 4D 80 13 01 00 00 00 00 00 A2 [11:56:34]Write i2c OK [11:56:34]MH_I2C_Read... [11:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:34]Read from MH i2c: E2 [11:56:34]MH_I2C_Read... [11:56:34]Read from MH i2c: E2 0E 00 [11:56:34]MH_I2C_Read... [11:56:34]Read from MH i2c: E2 0E 00 D8 4D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EC [11:56:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:56:34]wFMCommunicate OK [11:56:34]SAM_PROTO_GetShiftState done [11:56:34]FM_GetShiftState done [11:56:34]opened in 1718760753 [11:56:34]opened+sec_in_day 1718847153 [11:56:34]quantity*price = 33532 [11:56:34]sum+1 = 33533 [11:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 335.00 Внесено: 335.00 СДАЧА: 0.00 НСП 1% : 2.97 НДС 12% : 35.61 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 67 19.06.2024 11:57 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111318 ФПД: 128192567747438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115706&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111318&fm=128192567747438&tin=02508201610067®Number=0000000000092771&sum=33500 [11:56:36]StoreToDocumentArchive [11:56:36]shift 388 fd 111318 [11:56:36]save to /storage/0388/doc_00111318 [11:56:36]save last doc name /storage/0388/doc_00111318 to /storage/kkm_last_doc_name [11:56:36]save OK [11:56:36]Clear old archive folders... [11:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:36]tlvbuf is 01AAC0C0 [11:56:36]SAM_PROTO_ClearQueue [11:56:36]wFMCommunicate request_size=4 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 09 00 00 [11:56:36]Write to MH i2c: E2 08 00 E5 4D 80 09 00 00 00 00 00 00 A4 [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 E5 4D 00 90 00 A6 [11:56:36]RAPDU: 90 00 [11:56:36]wFMCommunicate OK [11:56:36]SAM_PROTO_ClearQueue done [11:56:36]KKMCreateOFDPacket [11:56:36]OFDProtocolAddRootSTLVToBuf [11:56:36]FM_MakeSignedData [11:56:36]FM_MakeSignedData [11:56:36]SAM_PROTO_SignData [11:56:36]wFMCommunicate request_size=4 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 0D 01 02 [11:56:36]Write to MH i2c: E2 08 00 E6 4D 80 0D 01 02 00 00 00 00 AC [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 E6 4D 00 90 00 A7 [11:56:36]RAPDU: 90 00 [11:56:36]wFMCommunicate OK [11:56:36]wFMCommunicate request_size=255 [11:56:36]MH_SAM_APDU [11:56: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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 92 C7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B2 01 00 35 04 06 00 74 [11:56:36]Write to MH i2c: E2 02 01 E7 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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 92 C7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B2 01 00 35 04 06 00 74 00 00 DC [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 E7 4D 00 90 00 A8 [11:56:36]RAPDU: 90 00 [11:56:36]wFMCommunicate OK [11:56:36]wFMCommunicate request_size=10 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 0D 02 02 05 97 28 76 A3 6E [11:56:36]Write to MH i2c: E2 0D 00 E8 4D 80 0D 02 02 05 00 97 28 76 A3 6E 00 00 FF [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 03 00 E8 4D 00 90 00 A9 [11:56:36]RAPDU: 90 00 [11:56:36]wFMCommunicate OK [11:56:36]wFMCommunicate request_size=4 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 0D 03 02 [11:56:36]Write to MH i2c: E2 08 00 E9 4D 80 0D 03 02 00 00 00 00 B1 [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 0B 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 0B 00 E9 4D 00 B6 E5 84 EE 3D 25 1D E4 90 00 22 [11:56:36]RAPDU: B6 E5 84 EE 3D 25 1D E4 90 00 [11:56:36]wFMCommunicate OK [11:56:36]SAM_PROTO_SignData done [11:56:36]FM_MakeSignedData done [11:56:36]CreateOFDProtocolMessage [11:56:36]wFMCommunicate request_size=4 [11:56:36]MH_SAM_APDU [11:56:36]CAPDU: 80 11 00 00 [11:56:36]Write to MH i2c: E2 08 00 EA 4D 80 11 00 00 00 00 00 00 B1 [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:36]Read from MH i2c: E2 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 17 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: E2 17 00 EA 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 03 [11:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:56:36]wFMCommunicate OK [11:56:36]CreateOFDProtocolMessage done [11:56:36]OFDSenderStorePacket 111318 [11:56:36]StoreOFDPacket docnum=111318 [11:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA 92 07 01 F8 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 92 C7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B2 01 00 35 04 06 00 74 97 28 76 A3 6E B6 E5 84 EE 3D 25 1D E4 [11:56:36]CheckFolder [11:56:36]dirname=/storage/ofd_packets [11:56:36]CheckFolder done [11:56:36]ProducePacketName [11:56:36]name=ofd_packets/00111318 [11:56:36]NVStorageSaveData ofd_packets/00111318 [11:56:36]File name is /storage/ofd_packets/00111318 [11:56:36]Write 301 bytes [11:56:36]NVStorageSaveData done [11:56:36]OFDSenderStorePacket done [11:56:36]KKMCreateOFDPacket done [11:56:36]NVStorageSaveData kkm_last_timestamp [11:56:36]File name is /storage/kkm_last_timestamp [11:56:36]Write 4 bytes [11:56:36]NVStorageSaveData done [11:56:36]ExternCall_PrintAddStr [11:56:36]wPrintStart [11:56:36]Write to MH i2c: 01 00 00 EB 4D 38 [11:56:36]Write i2c OK [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: 01 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: 01 07 00 [11:56:36]MH_I2C_Read... [11:56:36]Read from MH i2c: 01 07 00 EB 4D 00 00 00 00 00 FF 0F 4D [11:56:36]RasterBufferAndPrint [11:56:36]line Счет N : (1)319889 [11:56:36]line ИНН: 02508201610067 [11:56:36]line Контрольно-Кассовый Чек [11:56:36]line ПРОДАЖА [11:56:36]line ТРК (МРК, ГНК) : 11 [11:56:36]line Товар: 2710124130 [11:56:36]line Аи-92-К-5 [11:56:36]line 5.050 * 66.40 [11:56:36]line = 335.32 [11:56:36]line НДС 12% НСП 1% [11:56:36]line > о реализуемом товаре [11:56:36]line ОКРУГЛЕНИЕ: -0.32 [11:56:36]line ИТОГО: 335.00 [11:56:36]line Внесено: 335.00 [11:56:36]line СДАЧА: 0.00 [11:56:36]line НСП 1% : 2.97 [11:56:36]line НДС 12% : 35.61 [11:56:36]line Наличными: 335.00 [11:56:36]line Безнал.: 0.00 [11:56:36]line Место: АЗС № 65 "Партнер Нефть" [11:56:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:56:36]line СНО: Общий режим [11:56:36]line Чек 67 19.06.2024 11:57 [11:56:36]line Смена: 388 ФФД: 1.0 [11:56:36]line ЗНМ: 0300000198 [11:56:36]line РНМ: 0000000000092771 [11:56:36]line Версия ККМ: 001 [11:56:36]line ФМ: 0000000000875083 [11:56:36]line ФД: 111318 [11:56:36]line ФПД: 128192567747438 [11:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115706&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111318&fm=128192567747438&tin=02508201610067®Number=0000000000092771&sum=33500 [11:56:36]OFD Sender: Processing packet 111318 [packets to send 38, broken 37] [11:56:36]ProducePacketName [11:56:36]name=ofd_packets/00111318 [11:56:36]OFD Sender: To server: pG, [11:56:36]CommunicateWithHost lk.salyk.kg:30040 [11:56:36]ConnectInit lk.salyk.kg [11:56:36]written 0, free lines is 4095 [11:56:37]Connected sock=10 [11:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA 92 07 01 F8 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 92 C7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B2 01 00 35 04 06 00 74 97 28 76 A3 6E B6 E5 84 EE 3D 25 1D E4 [11:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C3 04 47 00 31 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D6 B2 01 00 F4 03 04 00 FD 5E 72 66 B6 04 01 00 00 B1 6C CE 3B 3A 30 37 15 [11:56:37]CommunicateWithHost err = 0 [11:56:37]CheckOFDResponse [11:56:37]1017 (14) - 77093643461234 [11:56:37]1041 (16) - 0000000000875083 [11:56:37]1040 (4) - 111318 [11:56:37]1012 (4) - 19.06.2024 04:30 [11:56:37]1206 (1) - 0 [11:56:37]OFD Sender: Remove packet 111318 [11:56:37]ProducePacketName [11:56:37]name=ofd_packets/00111318 [11:56:37]NVStorageDeleteData [11:56:37]Write to MH i2c: 01 00 00 16 4E 64 [11:56:37]Write i2c OK [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 07 00 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: 01 07 00 16 4E 00 00 00 00 00 E7 0C 5E [11:56:37]RasterBufferAndPrint [11:56:37]line [11:56:37]line [11:56:37]line [11:56:37]line [11:56:37]line [11:56:37]written 0, free lines is 3312 [11:56:37]MH_Cut [11:56:37]Write to MH i2c: D1 01 00 1D 4E 01 3D [11:56:37]Write i2c OK [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: D1 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: D1 01 00 [11:56:37]MH_I2C_Read... [11:56:37]Read from MH i2c: D1 01 00 1D 4E 00 3C [11:56:37]Write to MH i2c: 01 00 00 1E 4E 6C [11:56:37]Write i2c OK [11:56:37]MH_I2C_Read... [11:56:37]OFD Sender: No OFD packet to send [11:56:38]*** Cut start [11:56:38]*** Partial cut [11:56:38]*** CUTSNS_PIN = 1 [11:56:38]*** CUTSNS_PIN = 0 [11:56:38]*** Brake cut motor [11:56:38]Read from MH i2c: 01 [11:56:38]MH_I2C_Read... [11:56:38]*** Stop cut motor [11:56:38]*** Cut end [11:56:38]Read from MH i2c: 01 07 00 [11:56:38]MH_I2C_Read... [11:56:38]Read from MH i2c: 01 07 00 1E 4E 00 00 00 00 00 FF 0F 81 [11:56:38]process_action close_receipt done [11:56:38]requested_data is exist [11:56:38]produce_requested_data [11:56:38]requested_item fm.sn is exist - process it [11:56:38]wFMCommunicate request_size=4 [11:56:38]MH_SAM_APDU [11:56:38]CAPDU: 80 11 00 00 [11:56:38]Write to MH i2c: E2 08 00 1F 4E 80 11 00 00 00 00 00 00 E7 [11:56:38]Write i2c OK [11:56:38]MH_I2C_Read... [11:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:38]Read from MH i2c: E2 [11:56:38]MH_I2C_Read... [11:56:38]Read from MH i2c: E2 17 00 [11:56:38]MH_I2C_Read... [11:56:38]Read from MH i2c: E2 17 00 1F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [11:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:56:38]wFMCommunicate OK [11:56:38]requested_item fd.num is exist - process it [11:56:38]SAM_PROTO_GetFieldsCounters [11:56:38]wFMCommunicate request_size=4 [11:56:38]MH_SAM_APDU [11:56:38]CAPDU: 80 13 00 00 [11:56:38]Write to MH i2c: E2 08 00 20 4E 80 13 00 00 00 00 00 00 EA [11:56:38]Write i2c OK [11:56:38]MH_I2C_Read... [11:56:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:38]Read from MH i2c: E2 [11:56:38]MH_I2C_Read... [11:56:38]Read from MH i2c: E2 62 00 [11:56:38]MH_I2C_Read... [11:56:38]Read from MH i2c: E2 62 00 20 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:38]wFMCommunicate OK [11:56:38]SAM_PROTO_GetFieldsCounters done [11:56:38]requested_item shift.num is exist - process it [11:56:38]requested_item shift.opened is exist - process it [11:56:38]req_shift_opened [11:56:38]FM_GetShiftState [11:56:38]SAM_PROTO_GetShiftState [11:56:38]wFMCommunicate request_size=4 [11:56:38]MH_SAM_APDU [11:56:38]CAPDU: 80 13 01 00 [11:56:38]Write to MH i2c: E2 08 00 21 4E 80 13 01 00 00 00 00 00 EC [11:56:38]Write i2c OK [11:56:38]MH_I2C_Read... [11:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:39]Read from MH i2c: E2 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: E2 0E 00 [11:56:39]MH_I2C_Read... [11:56:39]Read from MH i2c: E2 0E 00 21 4E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 36 [11:56:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:56:39]wFMCommunicate OK [11:56:39]SAM_PROTO_GetShiftState done [11:56:39]FM_GetShiftState done [11:56:39]req_shift_opened done [11:56:39]requested_item shift.open_date is exist - process it [11:56:39]req_shift_open_date [11:56:39]req_shift_open_date done [11:56:39]produce_requested_data done [11:56:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111318,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:56:39]process_action_free close_receipt [11:56:39]json_value_free [11:56:39]json_value_free done [11:56:39]process_json_proto returns [11:56:39]Send response to host [11:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111318,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:56:39]free response buf [11:56:39]execute_script done [11:56:39]execute_script returns [11:56:39]free content buf [11:56:39]Sock 8.Close socket [11:56:39]Sock 8.Thread stoped [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:28]accept exits with 9 [11:58:28]New connection [11:58:28]New thread 3067227492 created [11:58:28]Thread 3067084132 joined [11:58:28]Waiting for new connection... [11:58:28] Sock 9.Parse request [11:58:28]Sock 9.Check first char [11:58:28]Sock 9.First char is OK [11:58:28]request: POST /json_proto HTTP/1.0 [11:58:28]Method: POST [11:58:28]URL: /json_proto [11:58:28]Method is POST - this is cgi request [11:58:28]url: /json_proto [11:58:28]query_string will be loaded in cgi processing [11:58:28]execute_cgi json_proto POST (null) [11:58:28]execute_cgi path=json_proto method=POST [11:58:28]POST find Content-Length [11:58:28]Host: 172.17.59.68:8080 [11:58:28]Content-Length: 805 [11:58:28]Content-Type: application/json [11:58:28] [11:58:28]POST finish read [11:58:28]Found Content-Length = 805 [11:58:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:28]execute_script... [11:58: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)319890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:28]POST & json_proto [11:58:28]process_json_proto [11:58:28]json parsed OK: [11:58:28]protocol is kg_v1.0 [11:58:28]action value=close_receipt [11:58:28]process_action close_receipt [11:58:28]cmd_close_receipt [11:58:28]MH_GetDate [11:58:28]Write to MH i2c: F0 00 00 22 4E 5F [11:58:28]Write i2c OK [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: F0 [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: F0 09 00 [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: F0 09 00 22 4E 00 04 C8 72 66 BC EC 60 65 79 [11:58:28]GetLastDocTimeStamp 1718798226 [11:58:28]current date 1718798340 [11:58:28]FM_GetShiftState [11:58:28]SAM_PROTO_GetShiftState [11:58:28]wFMCommunicate request_size=4 [11:58:28]MH_SAM_APDU [11:58:28]CAPDU: 80 13 01 00 [11:58:28]Write to MH i2c: E2 08 00 23 4E 80 13 01 00 00 00 00 00 EE [11:58:28]Write i2c OK [11:58:28]MH_I2C_Read... [11:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:28]Read from MH i2c: E2 [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: E2 0E 00 [11:58:28]MH_I2C_Read... [11:58:28]Read from MH i2c: E2 0E 00 23 4E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 38 [11:58:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:58:28]wFMCommunicate OK [11:58:28]SAM_PROTO_GetShiftState done [11:58:28]FM_GetShiftState done [11:58:28]opened in 1718760753 [11:58:28]opened+sec_in_day 1718847153 [11:58:28]quantity*price = 50065 [11:58:28]sum+1 = 50067 [11:58:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 68 19.06.2024 11:59 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111319 ФПД: 2796732039447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115900&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111319&fm=2796732039447&tin=02508201610067®Number=0000000000092771&sum=50066 [11:58:29]StoreToDocumentArchive [11:58:29]shift 388 fd 111319 [11:58:29]save to /storage/0388/doc_00111319 [11:58:29]save last doc name /storage/0388/doc_00111319 to /storage/kkm_last_doc_name [11:58:29]save OK [11:58:29]Clear old archive folders... [11:58:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:29]tlvbuf is 0194C540 [11:58:29]SAM_PROTO_ClearQueue [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 09 00 00 [11:58:29]Write to MH i2c: E2 08 00 30 4E 80 09 00 00 00 00 00 00 F0 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:29]Read from MH i2c: E2 03 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 30 4E 00 90 00 F2 [11:58:29]RAPDU: 90 00 [11:58:29]wFMCommunicate OK [11:58:29]SAM_PROTO_ClearQueue done [11:58:29]KKMCreateOFDPacket [11:58:29]OFDProtocolAddRootSTLVToBuf [11:58:29]FM_MakeSignedData [11:58:29]FM_MakeSignedData [11:58:29]SAM_PROTO_SignData [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 0D 01 02 [11:58:29]Write to MH i2c: E2 08 00 31 4E 80 0D 01 02 00 00 00 00 F8 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 31 4E 00 90 00 F3 [11:58:29]RAPDU: 90 00 [11:58:29]wFMCommunicate OK [11:58:29]wFMCommunicate request_size=255 [11:58:29]MH_SAM_APDU [11:58: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 04 C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B2 01 00 35 04 06 00 02 [11:58:29]Write to MH i2c: E2 02 01 32 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 04 C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B2 01 00 35 04 06 00 02 00 00 29 [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 32 4E 00 90 00 F4 [11:58:29]RAPDU: 90 00 [11:58:29]wFMCommunicate OK [11:58:29]wFMCommunicate request_size=10 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 0D 02 02 05 8B 2A 38 41 17 [11:58:29]Write to MH i2c: E2 0D 00 33 4E 80 0D 02 02 05 00 8B 2A 38 41 17 00 00 4A [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 03 00 33 4E 00 90 00 F5 [11:58:29]RAPDU: 90 00 [11:58:29]wFMCommunicate OK [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 0D 03 02 [11:58:29]Write to MH i2c: E2 08 00 34 4E 80 0D 03 02 00 00 00 00 FD [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 0B 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 0B 00 34 4E 00 2F EF FA B3 11 B3 7B C6 90 00 CE [11:58:29]RAPDU: 2F EF FA B3 11 B3 7B C6 90 00 [11:58:29]wFMCommunicate OK [11:58:29]SAM_PROTO_SignData done [11:58:29]FM_MakeSignedData done [11:58:29]CreateOFDProtocolMessage [11:58:29]wFMCommunicate request_size=4 [11:58:29]MH_SAM_APDU [11:58:29]CAPDU: 80 11 00 00 [11:58:29]Write to MH i2c: E2 08 00 35 4E 80 11 00 00 00 00 00 00 FD [11:58:29]Write i2c OK [11:58:29]MH_I2C_Read... [11:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:29]Read from MH i2c: E2 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 17 00 [11:58:29]MH_I2C_Read... [11:58:29]Read from MH i2c: E2 17 00 35 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [11:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:58:30]wFMCommunicate OK [11:58:30]CreateOFDProtocolMessage done [11:58:30]OFDSenderStorePacket 111319 [11:58:30]StoreOFDPacket docnum=111319 [11:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 05 07 01 24 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 04 C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B2 01 00 35 04 06 00 02 8B 2A 38 41 17 2F EF FA B3 11 B3 7B C6 [11:58:30]CheckFolder [11:58:30]dirname=/storage/ofd_packets [11:58:30]CheckFolder done [11:58:30]ProducePacketName [11:58:30]name=ofd_packets/00111319 [11:58:30]NVStorageSaveData ofd_packets/00111319 [11:58:30]File name is /storage/ofd_packets/00111319 [11:58:30]Write 301 bytes [11:58:30]NVStorageSaveData done [11:58:30]OFDSenderStorePacket done [11:58:30]KKMCreateOFDPacket done [11:58:30]NVStorageSaveData kkm_last_timestamp [11:58:30]File name is /storage/kkm_last_timestamp [11:58:30]Write 4 bytes [11:58:30]NVStorageSaveData done [11:58:30]ExternCall_PrintAddStr [11:58:30]wPrintStart [11:58:30]Write to MH i2c: 01 00 00 36 4E 84 [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 07 00 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 07 00 36 4E 00 00 00 00 00 FF 0F 99 [11:58:30]RasterBufferAndPrint [11:58:30]line Счет N : (1)319890 [11:58:30]line ИНН: 02508201610067 [11:58:30]line Контрольно-Кассовый Чек [11:58:30]line ПРОДАЖА [11:58:30]line ТРК (МРК, ГНК) : 11 [11:58:30]line Товар: 2710124130 [11:58:30]line Аи-92-К-5 [11:58:30]line 7.540 * 66.40 [11:58:30]line = 500.66 [11:58:30]line НДС 12% НСП 1% [11:58:30]line > о реализуемом товаре [11:58:30]line ИТОГО: 500.66 [11:58:30]line НСП 1% : 4.43 [11:58:30]line НДС 12% : 53.17 [11:58:30]line Наличными: 0.00 [11:58:30]line Безнал.: 500.66 [11:58:30]line Место: АЗС № 65 "Партнер Нефть" [11:58:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:58:30]line СНО: Общий режим [11:58:30]line Чек 68 19.06.2024 11:59 [11:58:30]line Смена: 388 ФФД: 1.0 [11:58:30]line ЗНМ: 0300000198 [11:58:30]line РНМ: 0000000000092771 [11:58:30]line Версия ККМ: 001 [11:58:30]line Платежная система: О! деньги [11:58:30]line ФМ: 0000000000875083 [11:58:30]line ФД: 111319 [11:58:30]line ФПД: 2796732039447 [11:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T115900&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111319&fm=2796732039447&tin=02508201610067®Number=0000000000092771&sum=50066 [11:58:30]OFD Sender: Processing packet 111319 [packets to send 38, broken 37] [11:58:30]ProducePacketName [11:58:30]name=ofd_packets/00111319 [11:58:30]OFD Sender: To server: pG, [11:58:30]CommunicateWithHost lk.salyk.kg:30040 [11:58:30]ConnectInit lk.salyk.kg [11:58:30]written 0, free lines is 4095 [11:58:30]Connected sock=10 [11:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 05 07 01 24 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 04 C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D7 B2 01 00 35 04 06 00 02 8B 2A 38 41 17 2F EF FA B3 11 B3 7B C6 [11:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0B 1E 47 00 E6 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 35 30 38 33 10 04 04 00 D7 B2 01 00 F4 03 04 00 6E 5F 72 66 B6 04 01 00 00 22 FF 39 54 19 64 27 E5 [11:58:30]CommunicateWithHost err = 0 [11:58:30]CheckOFDResponse [11:58:30]1017 (14) - 77093643461234 [11:58:30]1041 (16) - 0000000000875083 [11:58:30]1040 (4) - 111319 [11:58:30]1012 (4) - 19.06.2024 04:32 [11:58:30]1206 (1) - 0 [11:58:30]OFD Sender: Remove packet 111319 [11:58:30]ProducePacketName [11:58:30]name=ofd_packets/00111319 [11:58:30]NVStorageDeleteData [11:58:30]Write to MH i2c: 01 00 00 60 4E AE [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 07 00 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: 01 07 00 60 4E 00 00 00 00 00 E6 0C A7 [11:58:30]RasterBufferAndPrint [11:58:30]line [11:58:30]line [11:58:30]line [11:58:30]line [11:58:30]line [11:58:30]written 0, free lines is 3309 [11:58:30]MH_Cut [11:58:30]Write to MH i2c: D1 01 00 67 4E 01 87 [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: D1 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: D1 01 00 [11:58:30]MH_I2C_Read... [11:58:30]Read from MH i2c: D1 01 00 67 4E 00 86 [11:58:30]Write to MH i2c: 01 00 00 68 4E B6 [11:58:30]Write i2c OK [11:58:30]MH_I2C_Read... [11:58:31]OFD Sender: No OFD packet to send [11:58:31]*** Cut start [11:58:31]*** Partial cut [11:58:31]*** CUTSNS_PIN = 1 [11:58:31]*** CUTSNS_PIN = 0 [11:58:31]*** Brake cut motor [11:58:32]Read from MH i2c: 01 [11:58:32]MH_I2C_Read... [11:58:32]*** Stop cut motor [11:58:32]*** Cut end [11:58:32]Read from MH i2c: 01 07 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: 01 07 00 68 4E 00 00 00 00 00 FF 0F CB [11:58:32]process_action close_receipt done [11:58:32]requested_data is exist [11:58:32]produce_requested_data [11:58:32]requested_item fm.sn is exist - process it [11:58:32]wFMCommunicate request_size=4 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 11 00 00 [11:58:32]Write to MH i2c: E2 08 00 69 4E 80 11 00 00 00 00 00 00 31 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 17 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 17 00 69 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [11:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:58:32]wFMCommunicate OK [11:58:32]requested_item fd.num is exist - process it [11:58:32]SAM_PROTO_GetFieldsCounters [11:58:32]wFMCommunicate request_size=4 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 13 00 00 [11:58:32]Write to MH i2c: E2 08 00 6A 4E 80 13 00 00 00 00 00 00 34 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 62 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 62 00 6A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [11:58: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:32]wFMCommunicate OK [11:58:32]SAM_PROTO_GetFieldsCounters done [11:58:32]requested_item shift.num is exist - process it [11:58:32]requested_item shift.opened is exist - process it [11:58:32]req_shift_opened [11:58:32]FM_GetShiftState [11:58:32]SAM_PROTO_GetShiftState [11:58:32]wFMCommunicate request_size=4 [11:58:32]MH_SAM_APDU [11:58:32]CAPDU: 80 13 01 00 [11:58:32]Write to MH i2c: E2 08 00 6B 4E 80 13 01 00 00 00 00 00 36 [11:58:32]Write i2c OK [11:58:32]MH_I2C_Read... [11:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:32]Read from MH i2c: E2 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 0E 00 [11:58:32]MH_I2C_Read... [11:58:32]Read from MH i2c: E2 0E 00 6B 4E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 80 [11:58:32]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:58:32]wFMCommunicate OK [11:58:32]SAM_PROTO_GetShiftState done [11:58:32]FM_GetShiftState done [11:58:32]req_shift_opened done [11:58:32]requested_item shift.open_date is exist - process it [11:58:32]req_shift_open_date [11:58:32]req_shift_open_date done [11:58:32]produce_requested_data done [11:58:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111319,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [11:58:32]process_action_free close_receipt [11:58:32]json_value_free [11:58:32]json_value_free done [11:58:32]process_json_proto returns [11:58:32]Send response to host [11:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111319,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [11:58:32]free response buf [11:58:32]execute_script done [11:58:32]execute_script returns [11:58:32]free content buf [11:58:32]Sock 9.Close socket [11:58:32]Sock 9.Thread stoped [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [11:59:56]accept exits with 8 [11:59:56]New connection [11:59:56]New thread 3067084132 created [11:59:56]Thread 3067227492 joined [11:59:56]Waiting for new connection... [11:59:56] Sock 8.Parse request [11:59:56]Sock 8.Check first char [11:59:56]Sock 8.First char is OK [11:59:56]request: POST /json_proto HTTP/1.0 [11:59:56]Method: POST [11:59:56]URL: /json_proto [11:59:56]Method is POST - this is cgi request [11:59:56]url: /json_proto [11:59:56]query_string will be loaded in cgi processing [11:59:56]execute_cgi json_proto POST (null) [11:59:56]execute_cgi path=json_proto method=POST [11:59:56]POST find Content-Length [11:59:56]Host: 172.17.59.68:8080 [11:59:56]Content-Length: 806 [11:59:56]Content-Type: application/json [11:59:56] [11:59:56]POST finish read [11:59:56]Found Content-Length = 806 [11:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 740.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:56]execute_script... [11:59: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)319891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 10.020, "sum" : 740.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 740.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:56]POST & json_proto [11:59:56]process_json_proto [11:59:56]json parsed OK: [11:59:56]protocol is kg_v1.0 [11:59:56]action value=close_receipt [11:59:56]process_action close_receipt [11:59:56]cmd_close_receipt [11:59:56]MH_GetDate [11:59:56]Write to MH i2c: F0 00 00 6C 4E A9 [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: F0 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: F0 09 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: F0 09 00 6C 4E 00 5C C8 72 66 BC EC 60 65 1B [11:59:56]GetLastDocTimeStamp 1718798340 [11:59:56]current date 1718798428 [11:59:56]FM_GetShiftState [11:59:56]SAM_PROTO_GetShiftState [11:59:56]wFMCommunicate request_size=4 [11:59:56]MH_SAM_APDU [11:59:56]CAPDU: 80 13 01 00 [11:59:56]Write to MH i2c: E2 08 00 6D 4E 80 13 01 00 00 00 00 00 38 [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 0E 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 0E 00 6D 4E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 82 [11:59:56]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [11:59:56]wFMCommunicate OK [11:59:56]SAM_PROTO_GetShiftState done [11:59:56]FM_GetShiftState done [11:59:56]opened in 1718760753 [11:59:56]opened+sec_in_day 1718847153 [11:59:56]quantity*price = 74047 [11:59:56]sum+1 = 74049 [11:59:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 740.48 НСП 1% : 6.55 НДС 12% : 78.63 Наличными: 0.00 Безнал.: 740.48 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 69 19.06.2024 12:00 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111320 ФПД: 60061979500952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120029&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111320&fm=60061979500952&tin=02508201610067®Number=0000000000092771&sum=74048 [11:59:58]StoreToDocumentArchive [11:59:58]shift 388 fd 111320 [11:59:58]save to /storage/0388/doc_00111320 [11:59:58]save last doc name /storage/0388/doc_00111320 to /storage/kkm_last_doc_name [11:59:58]save OK [11:59:58]Clear old archive folders... [11:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:58]tlvbuf is 01A2FB20 [11:59:58]SAM_PROTO_ClearQueue [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 09 00 00 [11:59:58]Write to MH i2c: E2 08 00 7A 4E 80 09 00 00 00 00 00 00 3A [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 03 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 03 00 7A 4E 00 90 00 3C [11:59:58]RAPDU: 90 00 [11:59:58]wFMCommunicate OK [11:59:58]SAM_PROTO_ClearQueue done [11:59:58]KKMCreateOFDPacket [11:59:58]OFDProtocolAddRootSTLVToBuf [11:59:58]FM_MakeSignedData [11:59:58]FM_MakeSignedData [11:59:58]SAM_PROTO_SignData [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 0D 01 02 [11:59:58]Write to MH i2c: E2 08 00 7B 4E 80 0D 01 02 00 00 00 00 42 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 03 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 03 00 7B 4E 00 90 00 3D [11:59:58]RAPDU: 90 00 [11:59:58]wFMCommunicate OK [11:59:58]wFMCommunicate request_size=255 [11:59:58]MH_SAM_APDU [11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5D C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B2 01 00 35 04 06 00 36 [11:59:58]Write to MH i2c: E2 02 01 7C 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5D C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B2 01 00 35 04 06 00 36 00 00 A9 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 03 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 03 00 7C 4E 00 90 00 3E [11:59:58]RAPDU: 90 00 [11:59:58]wFMCommunicate OK [11:59:58]wFMCommunicate request_size=10 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 0D 02 02 05 A0 44 F3 E1 98 [11:59:58]Write to MH i2c: E2 0D 00 7D 4E 80 0D 02 02 05 00 A0 44 F3 E1 98 00 00 9F [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 03 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 03 00 7D 4E 00 90 00 3F [11:59:58]RAPDU: 90 00 [11:59:58]wFMCommunicate OK [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 0D 03 02 [11:59:58]Write to MH i2c: E2 08 00 7E 4E 80 0D 03 02 00 00 00 00 47 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 0B 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 0B 00 7E 4E 00 35 51 CE 52 36 64 48 96 90 00 66 [11:59:58]RAPDU: 35 51 CE 52 36 64 48 96 90 00 [11:59:58]wFMCommunicate OK [11:59:58]SAM_PROTO_SignData done [11:59:58]FM_MakeSignedData done [11:59:58]CreateOFDProtocolMessage [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 11 00 00 [11:59:58]Write to MH i2c: E2 08 00 7F 4E 80 11 00 00 00 00 00 00 47 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 17 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 17 00 7F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [11:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [11:59:58]wFMCommunicate OK [11:59:58]CreateOFDProtocolMessage done [11:59:58]OFDSenderStorePacket 111320 [11:59:58]StoreOFDPacket docnum=111320 [11:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 7B 07 01 A8 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5D C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B2 01 00 35 04 06 00 36 A0 44 F3 E1 98 35 51 CE 52 36 64 48 96 [11:59:58]CheckFolder [11:59:58]dirname=/storage/ofd_packets [11:59:58]CheckFolder done [11:59:58]ProducePacketName [11:59:58]name=ofd_packets/00111320 [11:59:58]NVStorageSaveData ofd_packets/00111320 [11:59:58]File name is /storage/ofd_packets/00111320 [11:59:58]Write 301 bytes [11:59:58]NVStorageSaveData done [11:59:58]OFDSenderStorePacket done [11:59:58]KKMCreateOFDPacket done [11:59:58]NVStorageSaveData kkm_last_timestamp [11:59:58]File name is /storage/kkm_last_timestamp [11:59:58]Write 4 bytes [11:59:58]NVStorageSaveData done [11:59:58]ExternCall_PrintAddStr [11:59:58]wPrintStart [11:59:58]Write to MH i2c: 01 00 00 80 4E CE [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: 01 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: 01 07 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: 01 07 00 80 4E 00 00 00 00 00 FF 0F E3 [11:59:58]RasterBufferAndPrint [11:59:58]line Счет N : (1)319891 [11:59:58]line ИНН: 02508201610067 [11:59:58]line Контрольно-Кассовый Чек [11:59:58]line ПРОДАЖА [11:59:58]line ТРК (МРК, ГНК) : 12 [11:59:58]line Товар: 2710124500 [11:59:58]line Аи-95-К-5 [11:59:58]line 10.020 * 73.90 [11:59:58]line = 740.48 [11:59:58]line НДС 12% НСП 1% [11:59:58]line > о реализуемом товаре [11:59:58]line ИТОГО: 740.48 [11:59:58]line НСП 1% : 6.55 [11:59:58]line НДС 12% : 78.63 [11:59:58]line Наличными: 0.00 [11:59:58]line Безнал.: 740.48 [11:59:58]line Место: АЗС № 65 "Партнер Нефть" [11:59:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [11:59:58]line СНО: Общий режим [11:59:58]line Чек 69 19.06.2024 12:00 [11:59:58]line Смена: 388 ФФД: 1.0 [11:59:58]line ЗНМ: 0300000198 [11:59:58]line РНМ: 0000000000092771 [11:59:58]line Версия ККМ: 001 [11:59:58]line Платежная система: О! деньги [11:59:58]line ФМ: 0000000000875083 [11:59:58]line ФД: 111320 [11:59:58]line ФПД: 60061979500952 [11:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120029&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111320&fm=60061979500952&tin=02508201610067®Number=0000000000092771&sum=74048 [11:59:58]written 0, free lines is 4095 [11:59:58]OFD Sender: Processing packet 111320 [packets to send 38, broken 37] [11:59:58]ProducePacketName [11:59:58]name=ofd_packets/00111320 [11:59:58]OFD Sender: To server: pG, [11:59:58]CommunicateWithHost lk.salyk.kg:30040 [11:59:58]ConnectInit lk.salyk.kg [11:59:59]Connected sock=10 [11: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 35 30 38 33 0F 01 00 00 07 7B 07 01 A8 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 40 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 5D C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D8 B2 01 00 35 04 06 00 36 A0 44 F3 E1 98 35 51 CE 52 36 64 48 96 [11:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 36 47 00 34 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 35 30 38 33 10 04 04 00 D8 B2 01 00 F4 03 04 00 C7 5F 72 66 B6 04 01 00 00 72 28 F7 55 CD 10 21 B5 [11:59:59]CommunicateWithHost err = 0 [11:59:59]CheckOFDResponse [11:59:59]1017 (14) - 77093643461234 [11:59:59]1041 (16) - 0000000000875083 [11:59:59]1040 (4) - 111320 [11:59:59]1012 (4) - 19.06.2024 04:34 [11:59:59]1206 (1) - 0 [11:59:59]OFD Sender: Remove packet 111320 [11:59:59]ProducePacketName [11:59:59]name=ofd_packets/00111320 [11:59:59]NVStorageDeleteData [11:59:59]Write to MH i2c: 01 00 00 AA 4E F8 [11:59:59]Write i2c OK [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: 01 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: 01 07 00 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: 01 07 00 AA 4E 00 00 00 00 00 EA 0C F5 [11:59:59]RasterBufferAndPrint [11:59:59]line [11:59:59]line [11:59:59]line [11:59:59]line [11:59:59]line [11:59:59]written 0, free lines is 3312 [11:59:59]MH_Cut [11:59:59]Write to MH i2c: D1 01 00 B1 4E 01 D1 [11:59:59]Write i2c OK [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: D1 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: D1 01 00 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: D1 01 00 B1 4E 00 D0 [11:59:59]Write to MH i2c: 01 00 00 B2 4E 00 [11:59:59]Write i2c OK [11:59:59]MH_I2C_Read... [11:59:59]OFD Sender: No OFD packet to send [12:00:00]*** Cut start [12:00:00]*** Partial cut [12:00:00]*** CUTSNS_PIN = 1 [12:00:00]*** CUTSNS_PIN = 0 [12:00:00]*** Brake cut motor [12:00:00]Read from MH i2c: 01 [12:00:00]MH_I2C_Read... [12:00:00]*** Stop cut motor [12:00:00]*** Cut end [12:00:00]Read from MH i2c: 01 07 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: 01 07 00 B2 4E 00 00 00 00 00 FF 0F 15 [12:00:00]process_action close_receipt done [12:00:00]requested_data is exist [12:00:00]produce_requested_data [12:00:00]requested_item fm.sn is exist - process it [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 11 00 00 [12:00:00]Write to MH i2c: E2 08 00 B3 4E 80 11 00 00 00 00 00 00 7B [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 17 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 17 00 B3 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CD [12:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:00:00]wFMCommunicate OK [12:00:00]requested_item fd.num is exist - process it [12:00:00]SAM_PROTO_GetFieldsCounters [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 13 00 00 [12:00:00]Write to MH i2c: E2 08 00 B4 4E 80 13 00 00 00 00 00 00 7E [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 62 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 62 00 B4 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:00: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:00]wFMCommunicate OK [12:00:00]SAM_PROTO_GetFieldsCounters done [12:00:00]requested_item shift.num is exist - process it [12:00:00]requested_item shift.opened is exist - process it [12:00:00]req_shift_opened [12:00:00]FM_GetShiftState [12:00:00]SAM_PROTO_GetShiftState [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 13 01 00 [12:00:00]Write to MH i2c: E2 08 00 B5 4E 80 13 01 00 00 00 00 00 80 [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 0E 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 0E 00 B5 4E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CA [12:00:00]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:00:00]wFMCommunicate OK [12:00:00]SAM_PROTO_GetShiftState done [12:00:00]FM_GetShiftState done [12:00:00]req_shift_opened done [12:00:00]requested_item shift.open_date is exist - process it [12:00:00]req_shift_open_date [12:00:00]req_shift_open_date done [12:00:00]produce_requested_data done [12:00:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111320,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:00:00]process_action_free close_receipt [12:00:00]json_value_free [12:00:00]json_value_free done [12:00:00]process_json_proto returns [12:00:00]Send response to host [12:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111320,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:00:00]free response buf [12:00:00]execute_script done [12:00:00]execute_script returns [12:00:00]free content buf [12:00:00]Sock 8.Close socket [12:00:00]Sock 8.Thread stoped [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]accept exits with 9 [12:01:39]New connection [12:01:39]New thread 3067227492 created [12:01:39]Thread 3067084132 joined [12:01:39]Waiting for new connection... [12:01:39] Sock 9.Parse request [12:01:39]Sock 9.Check first char [12:01:39]Sock 9.First char is OK [12:01:39]request: POST /json_proto HTTP/1.0 [12:01:39]Method: POST [12:01:39]URL: /json_proto [12:01:39]Method is POST - this is cgi request [12:01:39]url: /json_proto [12:01:39]query_string will be loaded in cgi processing [12:01:39]execute_cgi json_proto POST (null) [12:01:39]execute_cgi path=json_proto method=POST [12:01:39]POST find Content-Length [12:01:39]Host: 172.17.59.68:8080 [12:01:39]Content-Length: 677 [12:01:39]Content-Type: application/json [12:01:39] [12:01:39]POST finish read [12:01:39]Found Content-Length = 677 [12:01:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.220, "sum" : 280.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:39]execute_script... [12:01: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)319892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.220, "sum" : 280.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:39]POST & json_proto [12:01:39]process_json_proto [12:01:39]json parsed OK: [12:01:39]protocol is kg_v1.0 [12:01:39]action value=close_receipt [12:01:39]process_action close_receipt [12:01:39]cmd_close_receipt [12:01:39]MH_GetDate [12:01:39]Write to MH i2c: F0 00 00 B6 4E F3 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: F0 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: F0 09 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: F0 09 00 B6 4E 00 C3 C8 72 66 BC EC 60 65 CC [12:01:39]GetLastDocTimeStamp 1718798429 [12:01:39]current date 1718798531 [12:01:39]FM_GetShiftState [12:01:39]SAM_PROTO_GetShiftState [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 13 01 00 [12:01:39]Write to MH i2c: E2 08 00 B7 4E 80 13 01 00 00 00 00 00 82 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 0E 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 0E 00 B7 4E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CC [12:01:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:01:39]wFMCommunicate OK [12:01:39]SAM_PROTO_GetShiftState done [12:01:39]FM_GetShiftState done [12:01:39]opened in 1718760753 [12:01:39]opened+sec_in_day 1718847153 [12:01:39]quantity*price = 28020 [12:01:39]sum+1 = 28022 [12:01:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.76 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 70 19.06.2024 12:02 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111321 ФПД: 182693826933338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120211&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111321&fm=182693826933338&tin=02508201610067®Number=0000000000092771&sum=28000 [12:01:40]StoreToDocumentArchive [12:01:40]shift 388 fd 111321 [12:01:40]save to /storage/0388/doc_00111321 [12:01:40]save last doc name /storage/0388/doc_00111321 to /storage/kkm_last_doc_name [12:01:40]save OK [12:01:40]Clear old archive folders... [12:01:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:40]tlvbuf is 01A06CB0 [12:01:40]SAM_PROTO_ClearQueue [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 09 00 00 [12:01:40]Write to MH i2c: E2 08 00 C4 4E 80 09 00 00 00 00 00 00 84 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 C4 4E 00 90 00 86 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]SAM_PROTO_ClearQueue done [12:01:40]KKMCreateOFDPacket [12:01:40]OFDProtocolAddRootSTLVToBuf [12:01:40]FM_MakeSignedData [12:01:40]FM_MakeSignedData [12:01:40]SAM_PROTO_SignData [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 01 02 [12:01:40]Write to MH i2c: E2 08 00 C5 4E 80 0D 01 02 00 00 00 00 8C [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 C5 4E 00 90 00 87 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]wFMCommunicate request_size=255 [12:01:40]MH_SAM_APDU [12:01: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 7C 10 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C3 C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B2 01 00 35 04 06 00 A6 [12:01:40]Write to MH i2c: E2 02 01 C6 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 7C 10 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C3 C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B2 01 00 35 04 06 00 A6 00 00 AA [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 C6 4E 00 90 00 88 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]wFMCommunicate request_size=10 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 02 02 05 28 B8 A8 32 5A [12:01:40]Write to MH i2c: E2 0D 00 C7 4E 80 0D 02 02 05 00 28 B8 A8 32 5A 00 00 AD [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 03 00 C7 4E 00 90 00 89 [12:01:40]RAPDU: 90 00 [12:01:40]wFMCommunicate OK [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 0D 03 02 [12:01:40]Write to MH i2c: E2 08 00 C8 4E 80 0D 03 02 00 00 00 00 91 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 0B 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 0B 00 C8 4E 00 E2 5A 78 43 52 13 2B C7 90 00 E0 [12:01:40]RAPDU: E2 5A 78 43 52 13 2B C7 90 00 [12:01:40]wFMCommunicate OK [12:01:40]SAM_PROTO_SignData done [12:01:40]FM_MakeSignedData done [12:01:40]CreateOFDProtocolMessage [12:01:40]wFMCommunicate request_size=4 [12:01:40]MH_SAM_APDU [12:01:40]CAPDU: 80 11 00 00 [12:01:40]Write to MH i2c: E2 08 00 C9 4E 80 11 00 00 00 00 00 00 91 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:40]Read from MH i2c: E2 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 17 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: E2 17 00 C9 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E3 [12:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:01:40]wFMCommunicate OK [12:01:40]CreateOFDProtocolMessage done [12:01:40]OFDSenderStorePacket 111321 [12:01:40]StoreOFDPacket docnum=111321 [12:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 CD 07 01 69 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 10 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C3 C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B2 01 00 35 04 06 00 A6 28 B8 A8 32 5A E2 5A 78 43 52 13 2B C7 [12:01:40]CheckFolder [12:01:40]dirname=/storage/ofd_packets [12:01:40]CheckFolder done [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00111321 [12:01:40]NVStorageSaveData ofd_packets/00111321 [12:01:40]File name is /storage/ofd_packets/00111321 [12:01:40]Write 301 bytes [12:01:40]NVStorageSaveData done [12:01:40]OFDSenderStorePacket done [12:01:40]KKMCreateOFDPacket done [12:01:40]NVStorageSaveData kkm_last_timestamp [12:01:40]File name is /storage/kkm_last_timestamp [12:01:40]Write 4 bytes [12:01:40]NVStorageSaveData done [12:01:40]OFD Sender: Processing packet 111321 [packets to send 38, broken 37] [12:01:40]ProducePacketName [12:01:40]name=ofd_packets/00111321 [12:01:40]OFD Sender: To server: pG, [12:01:40]CommunicateWithHost lk.salyk.kg:30040 [12:01:40]ConnectInit lk.salyk.kg [12:01:40]ExternCall_PrintAddStr [12:01:40]wPrintStart [12:01:40]Write to MH i2c: 01 00 00 CA 4E 18 [12:01:40]Write i2c OK [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 [12:01:40]MH_I2C_Read... [12:01:40]Read from MH i2c: 01 07 00 CA 4E 00 00 00 00 00 FF 0F 2D [12:01:40]RasterBufferAndPrint [12:01:40]line Счет N : (1)319892 [12:01:40]line ИНН: 02508201610067 [12:01:40]line Контрольно-Кассовый Чек [12:01:40]line ПРОДАЖА [12:01:40]line ТРК (МРК, ГНК) : 11 [12:01:40]line Товар: 2710124130 [12:01:40]line Аи-92-К-5 [12:01:40]line 4.220 * 66.40 [12:01:40]line = 280.21 [12:01:40]line НДС 12% НСП 1% [12:01:40]line > о реализуемом товаре [12:01:40]line ОКРУГЛЕНИЕ: -0.21 [12:01:40]line ИТОГО: 280.00 [12:01:40]line Внесено: 280.00 [12:01:40]line СДАЧА: 0.00 [12:01:40]line НСП 1% : 2.48 [12:01:40]line НДС 12% : 29.76 [12:01:40]line Наличными: 280.00 [12:01:40]line Безнал.: 0.00 [12:01:40]line Место: АЗС № 65 "Партнер Нефть" [12:01:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:01:40]line СНО: Общий режим [12:01:40]line Чек 70 19.06.2024 12:02 [12:01:40]line Смена: 388 ФФД: 1.0 [12:01:40]line ЗНМ: 0300000198 [12:01:40]line РНМ: 0000000000092771 [12:01:40]line Версия ККМ: 001 [12:01:40]line ФМ: 0000000000875083 [12:01:40]line ФД: 111321 [12:01:40]line ФПД: 182693826933338 [12:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120211&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111321&fm=182693826933338&tin=02508201610067®Number=0000000000092771&sum=28000 [12:01:41]Connected sock=11 [12:01:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 CD 07 01 69 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 10 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C3 C8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 D9 B2 01 00 35 04 06 00 A6 28 B8 A8 32 5A E2 5A 78 43 52 13 2B C7 [12:01:41]written 0, free lines is 4095 [12:01:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6C CE 47 00 C7 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 35 30 38 33 10 04 04 00 D9 B2 01 00 F4 03 04 00 2D 60 72 66 B6 04 01 00 00 5A A6 E7 B9 8C FA BB 96 [12:01:41]CommunicateWithHost err = 0 [12:01:41]CheckOFDResponse [12:01:41]1017 (14) - 77093643461234 [12:01:41]1041 (16) - 0000000000875083 [12:01:41]1040 (4) - 111321 [12:01:41]1012 (4) - 19.06.2024 04:35 [12:01:41]1206 (1) - 0 [12:01:41]OFD Sender: Remove packet 111321 [12:01:41]ProducePacketName [12:01:41]name=ofd_packets/00111321 [12:01:41]NVStorageDeleteData [12:01:41]Write to MH i2c: 01 00 00 F5 4E 43 [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: 01 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: 01 07 00 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: 01 07 00 F5 4E 00 00 00 00 00 E4 0C 3A [12:01:41]RasterBufferAndPrint [12:01:41]line [12:01:41]line [12:01:41]line [12:01:41]line [12:01:41]line [12:01:41]written 0, free lines is 3306 [12:01:41]MH_Cut [12:01:41]Write to MH i2c: D1 01 00 FC 4E 01 1C [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: D1 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: D1 01 00 [12:01:41]MH_I2C_Read... [12:01:41]Read from MH i2c: D1 01 00 FC 4E 00 1B [12:01:41]Write to MH i2c: 01 00 00 FD 4E 4B [12:01:41]Write i2c OK [12:01:41]MH_I2C_Read... [12:01:41]OFD Sender: No OFD packet to send [12:01:42]*** Cut start [12:01:42]*** Partial cut [12:01:42]*** CUTSNS_PIN = 1 [12:01:42]*** CUTSNS_PIN = 0 [12:01:42]*** Brake cut motor [12:01:43]Read from MH i2c: 01 [12:01:43]MH_I2C_Read... [12:01:43]*** Stop cut motor [12:01:43]*** Cut end [12:01:43]Read from MH i2c: 01 07 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: 01 07 00 FD 4E 00 00 00 00 00 FF 0F 60 [12:01:43]process_action close_receipt done [12:01:43]requested_data is exist [12:01:43]produce_requested_data [12:01:43]requested_item fm.sn is exist - process it [12:01:43]wFMCommunicate request_size=4 [12:01:43]MH_SAM_APDU [12:01:43]CAPDU: 80 11 00 00 [12:01:43]Write to MH i2c: E2 08 00 FE 4E 80 11 00 00 00 00 00 00 C6 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:43]Read from MH i2c: E2 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 17 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 17 00 FE 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [12:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:01:43]wFMCommunicate OK [12:01:43]requested_item fd.num is exist - process it [12:01:43]SAM_PROTO_GetFieldsCounters [12:01:43]wFMCommunicate request_size=4 [12:01:43]MH_SAM_APDU [12:01:43]CAPDU: 80 13 00 00 [12:01:43]Write to MH i2c: E2 08 00 FF 4E 80 13 00 00 00 00 00 00 C9 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:43]Read from MH i2c: E2 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 62 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 62 00 FF 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [12:01: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 D9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:43]wFMCommunicate OK [12:01:43]SAM_PROTO_GetFieldsCounters done [12:01:43]requested_item shift.num is exist - process it [12:01:43]requested_item shift.opened is exist - process it [12:01:43]req_shift_opened [12:01:43]FM_GetShiftState [12:01:43]SAM_PROTO_GetShiftState [12:01:43]wFMCommunicate request_size=4 [12:01:43]MH_SAM_APDU [12:01:43]CAPDU: 80 13 01 00 [12:01:43]Write to MH i2c: E2 08 00 00 4F 80 13 01 00 00 00 00 00 CC [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:43]Read from MH i2c: E2 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 0E 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 0E 00 00 4F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 16 [12:01:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:01:43]wFMCommunicate OK [12:01:43]SAM_PROTO_GetShiftState done [12:01:43]FM_GetShiftState done [12:01:43]req_shift_opened done [12:01:43]requested_item shift.open_date is exist - process it [12:01:43]req_shift_open_date [12:01:43]req_shift_open_date done [12:01:43]produce_requested_data done [12:01:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111321,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:01:43]process_action_free close_receipt [12:01:43]json_value_free [12:01:43]json_value_free done [12:01:43]process_json_proto returns [12:01:43]Send response to host [12:01:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111321,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:01:43]free response buf [12:01:43]execute_script done [12:01:43]execute_script returns [12:01:43]free content buf [12:01:43]Sock 9.Close socket [12:01:43]Sock 9.Thread stoped [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:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:36]accept exits with 10 [12:05:36]New connection [12:05:36]New thread 3067084132 created [12:05:36]Thread 3067227492 joined [12:05:36]Waiting for new connection... [12:05:36] Sock 10.Parse request [12:05:36]Sock 10.Check first char [12:05:36]Sock 10.First char is OK [12:05:36]request: POST /json_proto HTTP/1.0 [12:05:36]Method: POST [12:05:36]URL: /json_proto [12:05:36]Method is POST - this is cgi request [12:05:36]url: /json_proto [12:05:36]query_string will be loaded in cgi processing [12:05:36]execute_cgi json_proto POST (null) [12:05:36]execute_cgi path=json_proto method=POST [12:05:36]POST find Content-Length [12:05:36]Host: 172.17.59.68:8080 [12:05:36]Content-Length: 642 [12:05:36]Content-Type: application/json [12:05:36] [12:05:36]POST finish read [12:05:36]Found Content-Length = 642 [12:05:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.000, "sum" : 1660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:36]execute_script... [12:05: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)319893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.000, "sum" : 1660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:36]POST & json_proto [12:05:36]process_json_proto [12:05:36]json parsed OK: [12:05:36]protocol is kg_v1.0 [12:05:36]action value=close_receipt [12:05:36]process_action close_receipt [12:05:36]cmd_close_receipt [12:05:36]MH_GetDate [12:05:36]Write to MH i2c: F0 00 00 01 4F 3F [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: F0 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: F0 09 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: F0 09 00 01 4F 00 B0 C9 72 66 BC EC 60 65 06 [12:05:36]GetLastDocTimeStamp 1718798531 [12:05:36]current date 1718798768 [12:05:36]FM_GetShiftState [12:05:36]SAM_PROTO_GetShiftState [12:05:36]wFMCommunicate request_size=4 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 13 01 00 [12:05:36]Write to MH i2c: E2 08 00 02 4F 80 13 01 00 00 00 00 00 CE [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 0E 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 0E 00 02 4F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 18 [12:05:36]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:05:36]wFMCommunicate OK [12:05:36]SAM_PROTO_GetShiftState done [12:05:36]FM_GetShiftState done [12:05:36]opened in 1718760753 [12:05:36]opened+sec_in_day 1718847153 [12:05:36]quantity*price = 166000 [12:05:36]sum+1 = 166001 [12:05:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1660.00 НСП 1% : 14.69 НДС 12% : 176.28 Наличными: 1660.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 71 19.06.2024 12:06 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111322 ФПД: 259070045999154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120608&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111322&fm=259070045999154&tin=02508201610067®Number=0000000000092771&sum=166000 [12:05:37]StoreToDocumentArchive [12:05:37]shift 388 fd 111322 [12:05:37]save to /storage/0388/doc_00111322 [12:05:37]save last doc name /storage/0388/doc_00111322 to /storage/kkm_last_doc_name [12:05:37]save OK [12:05:37]Clear old archive folders... [12:05:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:37]tlvbuf is 0194CDD0 [12:05:37]SAM_PROTO_ClearQueue [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 09 00 00 [12:05:37]Write to MH i2c: E2 08 00 0F 4F 80 09 00 00 00 00 00 00 D0 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 0F 4F 00 90 00 D2 [12:05:37]RAPDU: 90 00 [12:05:37]wFMCommunicate OK [12:05:37]SAM_PROTO_ClearQueue done [12:05:37]KKMCreateOFDPacket [12:05:37]OFDProtocolAddRootSTLVToBuf [12:05:37]FM_MakeSignedData [12:05:37]FM_MakeSignedData [12:05:37]SAM_PROTO_SignData [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 0D 01 02 [12:05:37]Write to MH i2c: E2 08 00 10 4F 80 0D 01 02 00 00 00 00 D8 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 10 4F 00 90 00 D3 [12:05:37]RAPDU: 90 00 [12:05:37]wFMCommunicate OK [12:05:37]wFMCommunicate request_size=255 [12:05:37]MH_SAM_APDU [12:05: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 A8 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 44 00 00 00 00 07 04 06 00 70 88 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B0 C9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B2 01 00 35 04 06 00 EB [12:05:37]Write to MH i2c: E2 02 01 11 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 A8 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 44 00 00 00 00 07 04 06 00 70 88 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B0 C9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B2 01 00 35 04 06 00 EB 00 00 59 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 11 4F 00 90 00 D4 [12:05:37]RAPDU: 90 00 [12:05:37]wFMCommunicate OK [12:05:37]wFMCommunicate request_size=10 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 0D 02 02 05 9F 72 10 50 32 [12:05:37]Write to MH i2c: E2 0D 00 12 4F 80 0D 02 02 05 00 9F 72 10 50 32 00 00 88 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 03 00 12 4F 00 90 00 D5 [12:05:37]RAPDU: 90 00 [12:05:37]wFMCommunicate OK [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 0D 03 02 [12:05:37]Write to MH i2c: E2 08 00 13 4F 80 0D 03 02 00 00 00 00 DD [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0B 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 0B 00 13 4F 00 CE 72 5E E1 1D 20 9C 4C 90 00 82 [12:05:37]RAPDU: CE 72 5E E1 1D 20 9C 4C 90 00 [12:05:37]wFMCommunicate OK [12:05:37]SAM_PROTO_SignData done [12:05:37]FM_MakeSignedData done [12:05:37]CreateOFDProtocolMessage [12:05:37]wFMCommunicate request_size=4 [12:05:37]MH_SAM_APDU [12:05:37]CAPDU: 80 11 00 00 [12:05:37]Write to MH i2c: E2 08 00 14 4F 80 11 00 00 00 00 00 00 DD [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:37]Read from MH i2c: E2 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 17 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: E2 17 00 14 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [12:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:05:37]wFMCommunicate OK [12:05:37]CreateOFDProtocolMessage done [12:05:37]OFDSenderStorePacket 111322 [12:05:37]StoreOFDPacket docnum=111322 [12:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F6 DA 07 01 7C BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 44 00 00 00 00 07 04 06 00 70 88 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B0 C9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B2 01 00 35 04 06 00 EB 9F 72 10 50 32 CE 72 5E E1 1D 20 9C 4C [12:05:37]CheckFolder [12:05:37]dirname=/storage/ofd_packets [12:05:37]CheckFolder done [12:05:37]ProducePacketName [12:05:37]name=ofd_packets/00111322 [12:05:37]NVStorageSaveData ofd_packets/00111322 [12:05:37]File name is /storage/ofd_packets/00111322 [12:05:37]Write 301 bytes [12:05:37]NVStorageSaveData done [12:05:37]OFDSenderStorePacket done [12:05:37]KKMCreateOFDPacket done [12:05:37]NVStorageSaveData kkm_last_timestamp [12:05:37]File name is /storage/kkm_last_timestamp [12:05:37]Write 4 bytes [12:05:37]NVStorageSaveData done [12:05:37]ExternCall_PrintAddStr [12:05:37]wPrintStart [12:05:37]Write to MH i2c: 01 00 00 15 4F 64 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 07 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 07 00 15 4F 00 00 00 00 00 FF 0F 79 [12:05:37]RasterBufferAndPrint [12:05:37]line Счет N : (1)319893 [12:05:37]line ИНН: 02508201610067 [12:05:37]line Контрольно-Кассовый Чек [12:05:37]line ПРОДАЖА [12:05:37]line ТРК (МРК, ГНК) : 11 [12:05:37]line Товар: 2710124130 [12:05:37]line Аи-92-К-5 [12:05:37]line 25.000 * 66.40 [12:05:37]line = 1660.00 [12:05:37]line НДС 12% НСП 1% [12:05:37]line > о реализуемом товаре [12:05:37]line ИТОГО: 1660.00 [12:05:37]line НСП 1% : 14.69 [12:05:37]line НДС 12% : 176.28 [12:05:37]line Наличными: 1660.00 [12:05:37]line Безнал.: 0.00 [12:05:37]line Место: АЗС № 65 "Партнер Нефть" [12:05:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:05:37]line СНО: Общий режим [12:05:37]line Чек 71 19.06.2024 12:06 [12:05:37]line Смена: 388 ФФД: 1.0 [12:05:37]line ЗНМ: 0300000198 [12:05:37]line РНМ: 0000000000092771 [12:05:37]line Версия ККМ: 001 [12:05:37]line ФМ: 0000000000875083 [12:05:37]line ФД: 111322 [12:05:37]line ФПД: 259070045999154 [12:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120608&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111322&fm=259070045999154&tin=02508201610067®Number=0000000000092771&sum=166000 [12:05:37]written 0, free lines is 4095 [12:05:37]OFD Sender: Processing packet 111322 [packets to send 38, broken 37] [12:05:37]ProducePacketName [12:05:37]name=ofd_packets/00111322 [12:05:37]OFD Sender: To server: pG, [12:05:38]CommunicateWithHost lk.salyk.kg:30040 [12:05:38]ConnectInit lk.salyk.kg [12:05:38]Connected sock=9 [12:05:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F6 DA 07 01 7C BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 88 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 88 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 44 00 00 00 00 07 04 06 00 70 88 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 B0 C9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B2 01 00 35 04 06 00 EB 9F 72 10 50 32 CE 72 5E E1 1D 20 9C 4C [12:05:38]Write to MH i2c: 01 00 00 3D 4F 8C [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 07 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 07 00 3D 4F 00 00 00 00 00 0F 0D AF [12:05:38]RasterBufferAndPrint [12:05:38]line [12:05:38]line [12:05:38]line [12:05:38]line [12:05:38]line [12:05:38]written 0, free lines is 3349 [12:05:38]MH_Cut [12:05:38]Write to MH i2c: D1 01 00 44 4F 01 65 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: D1 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: D1 01 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: D1 01 00 44 4F 00 64 [12:05:38]Write to MH i2c: 01 00 00 45 4F 94 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 73 77 47 00 2B A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DA B2 01 00 F4 03 04 00 1A 61 72 66 B6 04 01 00 00 26 71 FB 27 07 8D 58 C0 [12:05:38]CommunicateWithHost err = 0 [12:05:38]CheckOFDResponse [12:05:38]1017 (14) - 77093643461234 [12:05:38]1041 (16) - 0000000000875083 [12:05:38]1040 (4) - 111322 [12:05:38]1012 (4) - 19.06.2024 04:39 [12:05:38]1206 (1) - 0 [12:05:38]OFD Sender: Remove packet 111322 [12:05:38]ProducePacketName [12:05:38]name=ofd_packets/00111322 [12:05:38]NVStorageDeleteData [12:05:39]OFD Sender: No OFD packet to send [12:05:39]*** Cut start [12:05:39]*** Partial cut [12:05:39]*** CUTSNS_PIN = 1 [12:05:39]*** CUTSNS_PIN = 0 [12:05:39]*** Brake cut motor [12:05:39]Read from MH i2c: 01 [12:05:39]MH_I2C_Read... [12:05:39]*** Stop cut motor [12:05:39]*** Cut end [12:05:39]Read from MH i2c: 01 07 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: 01 07 00 45 4F 00 00 00 00 00 FF 0F A9 [12:05:39]process_action close_receipt done [12:05:39]requested_data is exist [12:05:39]produce_requested_data [12:05:39]requested_item fm.sn is exist - process it [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 11 00 00 [12:05:39]Write to MH i2c: E2 08 00 46 4F 80 11 00 00 00 00 00 00 0F [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 17 00 46 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [12:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:05:39]wFMCommunicate OK [12:05:39]requested_item fd.num is exist - process it [12:05:39]SAM_PROTO_GetFieldsCounters [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 13 00 00 [12:05:39]Write to MH i2c: E2 08 00 47 4F 80 13 00 00 00 00 00 00 12 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 62 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 62 00 47 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:05: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_GetFieldsCounters done [12:05:39]requested_item shift.num is exist - process it [12:05:39]requested_item shift.opened is exist - process it [12:05:39]req_shift_opened [12:05:39]FM_GetShiftState [12:05:39]SAM_PROTO_GetShiftState [12:05:39]wFMCommunicate request_size=4 [12:05:39]MH_SAM_APDU [12:05:39]CAPDU: 80 13 01 00 [12:05:39]Write to MH i2c: E2 08 00 48 4F 80 13 01 00 00 00 00 00 14 [12:05:39]Write i2c OK [12:05:39]MH_I2C_Read... [12:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:39]Read from MH i2c: E2 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0E 00 [12:05:39]MH_I2C_Read... [12:05:39]Read from MH i2c: E2 0E 00 48 4F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5E [12:05:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:05:39]wFMCommunicate OK [12:05:39]SAM_PROTO_GetShiftState done [12:05:39]FM_GetShiftState done [12:05:39]req_shift_opened done [12:05:39]requested_item shift.open_date is exist - process it [12:05:39]req_shift_open_date [12:05:39]req_shift_open_date done [12:05:39]produce_requested_data done [12:05:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111322,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:05:39]process_action_free close_receipt [12:05:39]json_value_free [12:05:39]json_value_free done [12:05:39]process_json_proto returns [12:05:39]Send response to host [12:05:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111322,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:05:39]free response buf [12:05:39]execute_script done [12:05:39]execute_script returns [12:05:39]free content buf [12:05:39]Sock 10.Close socket [12:05:39]Sock 10.Thread stoped [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:43]accept exits with 8 [12:07:43]New connection [12:07:43]New thread 3067227492 created [12:07:43]Thread 3067084132 joined [12:07:43]Waiting for new connection... [12:07:43] Sock 8.Parse request [12:07:43]Sock 8.Check first char [12:07:43]Sock 8.First char is OK [12:07:43]request: POST /json_proto HTTP/1.0 [12:07:43]Method: POST [12:07:43]URL: /json_proto [12:07:43]Method is POST - this is cgi request [12:07:43]url: /json_proto [12:07:43]query_string will be loaded in cgi processing [12:07:43]execute_cgi json_proto POST (null) [12:07:43]execute_cgi path=json_proto method=POST [12:07:43]POST find Content-Length [12:07:43]Host: 172.17.59.68:8080 [12:07:43]Content-Length: 682 [12:07:43]Content-Type: application/json [12:07:43] [12:07:43]POST finish read [12:07:43]Found Content-Length = 682 [12:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:43]execute_script... [12: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)319894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:43]POST & json_proto [12:07:43]process_json_proto [12:07:43]json parsed OK: [12:07:43]protocol is kg_v1.0 [12:07:43]action value=close_receipt [12:07:43]process_action close_receipt [12:07:43]cmd_close_receipt [12:07:43]MH_GetDate [12:07:43]Write to MH i2c: F0 00 00 49 4F 87 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: F0 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: F0 09 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: F0 09 00 49 4F 00 2F CA 72 66 BC EC 60 65 CE [12:07:43]GetLastDocTimeStamp 1718798768 [12:07:43]current date 1718798895 [12:07:43]FM_GetShiftState [12:07:43]SAM_PROTO_GetShiftState [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 13 01 00 [12:07:43]Write to MH i2c: E2 08 00 4A 4F 80 13 01 00 00 00 00 00 16 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0E 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0E 00 4A 4F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 60 [12:07:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:07:43]wFMCommunicate OK [12:07:43]SAM_PROTO_GetShiftState done [12:07:43]FM_GetShiftState done [12:07:43]opened in 1718760753 [12:07:43]opened+sec_in_day 1718847153 [12:07:43]quantity*price = 100064 [12:07:43]sum+1 = 100066 [12:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 72 19.06.2024 12:08 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111323 ФПД: 165155167036153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111323&fm=165155167036153&tin=02508201610067®Number=0000000000092771&sum=100000 [12:07:44]StoreToDocumentArchive [12:07:44]shift 388 fd 111323 [12:07:44]save to /storage/0388/doc_00111323 [12:07:44]save last doc name /storage/0388/doc_00111323 to /storage/kkm_last_doc_name [12:07:44]save OK [12:07:44]Clear old archive folders... [12:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:44]tlvbuf is B6DEB010 [12:07:44]SAM_PROTO_ClearQueue [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 09 00 00 [12:07:44]Write to MH i2c: E2 08 00 57 4F 80 09 00 00 00 00 00 00 18 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 57 4F 00 90 00 1A [12:07:44]RAPDU: 90 00 [12:07:44]wFMCommunicate OK [12:07:44]SAM_PROTO_ClearQueue done [12:07:44]KKMCreateOFDPacket [12:07:44]OFDProtocolAddRootSTLVToBuf [12:07:44]FM_MakeSignedData [12:07:44]FM_MakeSignedData [12:07:44]SAM_PROTO_SignData [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 0D 01 02 [12:07:44]Write to MH i2c: E2 08 00 58 4F 80 0D 01 02 00 00 00 00 20 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 58 4F 00 90 00 1B [12:07:44]RAPDU: 90 00 [12:07:44]wFMCommunicate OK [12:07:44]wFMCommunicate request_size=255 [12:07:44]MH_SAM_APDU [12:07: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2F CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B2 01 00 35 04 06 00 96 [12:07:44]Write to MH i2c: E2 02 01 59 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2F CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B2 01 00 35 04 06 00 96 00 00 E6 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 59 4F 00 90 00 1C [12:07:44]RAPDU: 90 00 [12:07:44]wFMCommunicate OK [12:07:44]wFMCommunicate request_size=10 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 0D 02 02 05 35 2F 10 62 F9 [12:07:44]Write to MH i2c: E2 0D 00 5A 4F 80 0D 02 02 05 00 35 2F 10 62 F9 00 00 FC [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 03 00 5A 4F 00 90 00 1D [12:07:44]RAPDU: 90 00 [12:07:44]wFMCommunicate OK [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 0D 03 02 [12:07:44]Write to MH i2c: E2 08 00 5B 4F 80 0D 03 02 00 00 00 00 25 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 0B 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 0B 00 5B 4F 00 9A 80 5F 68 95 31 35 C3 90 00 C5 [12:07:44]RAPDU: 9A 80 5F 68 95 31 35 C3 90 00 [12:07:44]wFMCommunicate OK [12:07:44]SAM_PROTO_SignData done [12:07:44]FM_MakeSignedData done [12:07:44]CreateOFDProtocolMessage [12:07:44]wFMCommunicate request_size=4 [12:07:44]MH_SAM_APDU [12:07:44]CAPDU: 80 11 00 00 [12:07:44]Write to MH i2c: E2 08 00 5C 4F 80 11 00 00 00 00 00 00 25 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:44]Read from MH i2c: E2 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 17 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: E2 17 00 5C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [12:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:07:44]wFMCommunicate OK [12:07:44]CreateOFDProtocolMessage done [12:07:44]OFDSenderStorePacket 111323 [12:07:44]StoreOFDPacket docnum=111323 [12:07:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 90 8C 07 01 2B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2F CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B2 01 00 35 04 06 00 96 35 2F 10 62 F9 9A 80 5F 68 95 31 35 C3 [12:07:44]CheckFolder [12:07:44]dirname=/storage/ofd_packets [12:07:44]CheckFolder done [12:07:44]ProducePacketName [12:07:44]name=ofd_packets/00111323 [12:07:44]NVStorageSaveData ofd_packets/00111323 [12:07:44]File name is /storage/ofd_packets/00111323 [12:07:44]Write 301 bytes [12:07:44]NVStorageSaveData done [12:07:44]OFDSenderStorePacket done [12:07:44]KKMCreateOFDPacket done [12:07:44]NVStorageSaveData kkm_last_timestamp [12:07:44]File name is /storage/kkm_last_timestamp [12:07:44]Write 4 bytes [12:07:44]NVStorageSaveData done [12:07:44]ExternCall_PrintAddStr [12:07:44]wPrintStart [12:07:44]Write to MH i2c: 01 00 00 5D 4F AC [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 07 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 07 00 5D 4F 00 00 00 00 00 FF 0F C1 [12:07:44]RasterBufferAndPrint [12:07:44]line Счет N : (1)319894 [12:07:44]line ИНН: 02508201610067 [12:07:44]line Контрольно-Кассовый Чек [12:07:44]line ПРОДАЖА [12:07:44]line ТРК (МРК, ГНК) : 11 [12:07:44]line Товар: 2710124130 [12:07:44]line Аи-92-К-5 [12:07:44]line 15.070 * 66.40 [12:07:44]line = 1000.65 [12:07:44]line НДС 12% НСП 1% [12:07:44]line > о реализуемом товаре [12:07:44]line ОКРУГЛЕНИЕ: -0.65 [12:07:44]line ИТОГО: 1000.00 [12:07:44]line Внесено: 1000.00 [12:07:44]line СДАЧА: 0.00 [12:07:44]line НСП 1% : 8.85 [12:07:44]line НДС 12% : 106.26 [12:07:44]line Наличными: 1000.00 [12:07:44]line Безнал.: 0.00 [12:07:44]line Место: АЗС № 65 "Партнер Нефть" [12:07:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:07:44]line СНО: Общий режим [12:07:44]line Чек 72 19.06.2024 12:08 [12:07:44]line Смена: 388 ФФД: 1.0 [12:07:44]line ЗНМ: 0300000198 [12:07:44]line РНМ: 0000000000092771 [12:07:44]line Версия ККМ: 001 [12:07:44]line ФМ: 0000000000875083 [12:07:44]line ФД: 111323 [12:07:44]line ФПД: 165155167036153 [12:07:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111323&fm=165155167036153&tin=02508201610067®Number=0000000000092771&sum=100000 [12:07:45]OFD Sender: Processing packet 111323 [packets to send 38, broken 37] [12:07:45]ProducePacketName [12:07:45]name=ofd_packets/00111323 [12:07:45]OFD Sender: To server: pG, [12:07:45]CommunicateWithHost lk.salyk.kg:30040 [12:07:45]ConnectInit lk.salyk.kg [12:07:45]written 0, free lines is 4095 [12:07:45]Connected sock=10 [12: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 35 30 38 33 0F 01 00 00 90 8C 07 01 2B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2F CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DB B2 01 00 35 04 06 00 96 35 2F 10 62 F9 9A 80 5F 68 95 31 35 C3 [12:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1F 30 47 00 49 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 35 30 38 33 10 04 04 00 DB B2 01 00 F4 03 04 00 99 61 72 66 B6 04 01 00 00 68 EA E0 19 E0 85 03 F4 [12:07:45]CommunicateWithHost err = 0 [12:07:45]CheckOFDResponse [12:07:45]1017 (14) - 77093643461234 [12:07:45]1041 (16) - 0000000000875083 [12:07:45]1040 (4) - 111323 [12:07:45]1012 (4) - 19.06.2024 04:42 [12:07:45]1206 (1) - 0 [12:07:45]OFD Sender: Remove packet 111323 [12:07:45]ProducePacketName [12:07:45]name=ofd_packets/00111323 [12:07:45]NVStorageDeleteData [12:07:45]Write to MH i2c: 01 00 00 88 4F D7 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: 01 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: 01 07 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: 01 07 00 88 4F 00 00 00 00 00 DD 0C C7 [12:07:45]RasterBufferAndPrint [12:07:45]line [12:07:45]line [12:07:45]line [12:07:45]line [12:07:45]line [12:07:45]written 0, free lines is 3299 [12:07:45]MH_Cut [12:07:45]Write to MH i2c: D1 01 00 8F 4F 01 B0 [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: D1 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: D1 01 00 [12:07:45]MH_I2C_Read... [12:07:45]Read from MH i2c: D1 01 00 8F 4F 00 AF [12:07:45]Write to MH i2c: 01 00 00 90 4F DF [12:07:45]Write i2c OK [12:07:45]MH_I2C_Read... [12:07:46]OFD Sender: No OFD packet to send [12:07:46]*** Cut start [12:07:46]*** Partial cut [12:07:46]*** CUTSNS_PIN = 1 [12:07:46]*** CUTSNS_PIN = 0 [12:07:46]*** Brake cut motor [12:07:47]Read from MH i2c: 01 [12:07:47]MH_I2C_Read... [12:07:47]*** Stop cut motor [12:07:47]*** Cut end [12:07:47]Read from MH i2c: 01 07 00 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: 01 07 00 90 4F 00 00 00 00 00 FF 0F F4 [12:07:47]process_action close_receipt done [12:07:47]requested_data is exist [12:07:47]produce_requested_data [12:07:47]requested_item fm.sn is exist - process it [12:07:47]wFMCommunicate request_size=4 [12:07:47]MH_SAM_APDU [12:07:47]CAPDU: 80 11 00 00 [12:07:47]Write to MH i2c: E2 08 00 91 4F 80 11 00 00 00 00 00 00 5A [12:07:47]Write i2c OK [12:07:47]MH_I2C_Read... [12:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:47]Read from MH i2c: E2 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 17 00 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 17 00 91 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [12:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:07:47]wFMCommunicate OK [12:07:47]requested_item fd.num is exist - process it [12:07:47]SAM_PROTO_GetFieldsCounters [12:07:47]wFMCommunicate request_size=4 [12:07:47]MH_SAM_APDU [12:07:47]CAPDU: 80 13 00 00 [12:07:47]Write to MH i2c: E2 08 00 92 4F 80 13 00 00 00 00 00 00 5D [12:07:47]Write i2c OK [12:07:47]MH_I2C_Read... [12:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:47]Read from MH i2c: E2 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 62 00 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 62 00 92 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:47]wFMCommunicate OK [12:07:47]SAM_PROTO_GetFieldsCounters done [12:07:47]requested_item shift.num is exist - process it [12:07:47]requested_item shift.opened is exist - process it [12:07:47]req_shift_opened [12:07:47]FM_GetShiftState [12:07:47]SAM_PROTO_GetShiftState [12:07:47]wFMCommunicate request_size=4 [12:07:47]MH_SAM_APDU [12:07:47]CAPDU: 80 13 01 00 [12:07:47]Write to MH i2c: E2 08 00 93 4F 80 13 01 00 00 00 00 00 5F [12:07:47]Write i2c OK [12:07:47]MH_I2C_Read... [12:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:47]Read from MH i2c: E2 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 0E 00 [12:07:47]MH_I2C_Read... [12:07:47]Read from MH i2c: E2 0E 00 93 4F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A9 [12:07:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:07:47]wFMCommunicate OK [12:07:47]SAM_PROTO_GetShiftState done [12:07:47]FM_GetShiftState done [12:07:47]req_shift_opened done [12:07:47]requested_item shift.open_date is exist - process it [12:07:47]req_shift_open_date [12:07:47]req_shift_open_date done [12:07:47]produce_requested_data done [12:07:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111323,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:07:47]process_action_free close_receipt [12:07:47]json_value_free [12:07:47]json_value_free done [12:07:47]process_json_proto returns [12:07:47]Send response to host [12:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111323,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:07:47]free response buf [12:07:47]execute_script done [12:07:47]execute_script returns [12:07:47]free content buf [12:07:47]Sock 8.Close socket [12:07:47]Sock 8.Thread stoped [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:17]accept exits with 9 [12:08:17]New connection [12:08:17]New thread 3067084132 created [12:08:17]Thread 3067227492 joined [12:08:17]Waiting for new connection... [12:08:17] Sock 9.Parse request [12:08:17]Sock 9.Check first char [12:08:17]Sock 9.First char is OK [12:08:17]request: POST /json_proto HTTP/1.0 [12:08:17]Method: POST [12:08:17]URL: /json_proto [12:08:17]Method is POST - this is cgi request [12:08:17]url: /json_proto [12:08:17]query_string will be loaded in cgi processing [12:08:17]execute_cgi json_proto POST (null) [12:08:17]execute_cgi path=json_proto method=POST [12:08:17]POST find Content-Length [12:08:17]Host: 172.17.59.68:8080 [12:08:17]Content-Length: 677 [12:08:17]Content-Type: application/json [12:08:17] [12:08:17]POST finish read [12:08:17]Found Content-Length = 677 [12:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.670, "sum" : 310.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:17]execute_script... [12:08: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)319895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.670, "sum" : 310.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:08:17]POST & json_proto [12:08:17]process_json_proto [12:08:17]json parsed OK: [12:08:17]protocol is kg_v1.0 [12:08:17]action value=close_receipt [12:08:17]process_action close_receipt [12:08:17]cmd_close_receipt [12:08:17]MH_GetDate [12:08:17]Write to MH i2c: F0 00 00 94 4F D2 [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: F0 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: F0 09 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: F0 09 00 94 4F 00 51 CA 72 66 BC EC 60 65 3B [12:08:17]GetLastDocTimeStamp 1718798895 [12:08:17]current date 1718798929 [12:08:17]FM_GetShiftState [12:08:17]SAM_PROTO_GetShiftState [12:08:17]wFMCommunicate request_size=4 [12:08:17]MH_SAM_APDU [12:08:17]CAPDU: 80 13 01 00 [12:08:17]Write to MH i2c: E2 08 00 95 4F 80 13 01 00 00 00 00 00 61 [12:08:17]Write i2c OK [12:08:17]MH_I2C_Read... [12:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:17]Read from MH i2c: E2 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0E 00 [12:08:17]MH_I2C_Read... [12:08:17]Read from MH i2c: E2 0E 00 95 4F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AB [12:08:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:08:17]wFMCommunicate OK [12:08:17]SAM_PROTO_GetShiftState done [12:08:17]FM_GetShiftState done [12:08:17]opened in 1718760753 [12:08:17]opened+sec_in_day 1718847153 [12:08:17]quantity*price = 31008 [12:08:17]sum+1 = 31010 [12:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.93 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 73 19.06.2024 12:08 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111324 ФПД: 235363912826510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120850&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111324&fm=235363912826510&tin=02508201610067®Number=0000000000092771&sum=31000 [12:08:18]StoreToDocumentArchive [12:08:18]shift 388 fd 111324 [12:08:18]save to /storage/0388/doc_00111324 [12:08:18]save last doc name /storage/0388/doc_00111324 to /storage/kkm_last_doc_name [12:08:18]save OK [12:08:18]Clear old archive folders... [12:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:18]tlvbuf is 019889F0 [12:08:18]SAM_PROTO_ClearQueue [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 09 00 00 [12:08:18]Write to MH i2c: E2 08 00 A2 4F 80 09 00 00 00 00 00 00 63 [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 03 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 03 00 A2 4F 00 90 00 65 [12:08:18]RAPDU: 90 00 [12:08:18]wFMCommunicate OK [12:08:18]SAM_PROTO_ClearQueue done [12:08:18]KKMCreateOFDPacket [12:08:18]OFDProtocolAddRootSTLVToBuf [12:08:18]FM_MakeSignedData [12:08:18]FM_MakeSignedData [12:08:18]SAM_PROTO_SignData [12:08:18]wFMCommunicate request_size=4 [12:08:18]MH_SAM_APDU [12:08:18]CAPDU: 80 0D 01 02 [12:08:18]Write to MH i2c: E2 08 00 A3 4F 80 0D 01 02 00 00 00 00 6B [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:18]Read from MH i2c: E2 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 03 00 [12:08:18]MH_I2C_Read... [12:08:18]Read from MH i2c: E2 03 00 A3 4F 00 90 00 66 [12:08:18]RAPDU: 90 00 [12:08:18]wFMCommunicate OK [12:08:18]wFMCommunicate request_size=255 [12:08:18]MH_SAM_APDU [12:08: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 3E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 52 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B2 01 00 35 04 06 00 D6 [12:08:18]Write to MH i2c: E2 02 01 A4 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 3E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 52 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B2 01 00 35 04 06 00 D6 00 00 AD [12:08:18]Write i2c OK [12:08:18]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 A4 4F 00 90 00 67 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]wFMCommunicate request_size=10 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 0D 02 02 05 0F EE 6A BE 8E [12:08:19]Write to MH i2c: E2 0D 00 A5 4F 80 0D 02 02 05 00 0F EE 6A BE 8E 00 00 2B [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 03 00 A5 4F 00 90 00 68 [12:08:19]RAPDU: 90 00 [12:08:19]wFMCommunicate OK [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 0D 03 02 [12:08:19]Write to MH i2c: E2 08 00 A6 4F 80 0D 03 02 00 00 00 00 70 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 0B 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 0B 00 A6 4F 00 84 7F 27 BF 26 CF 74 82 90 00 45 [12:08:19]RAPDU: 84 7F 27 BF 26 CF 74 82 90 00 [12:08:19]wFMCommunicate OK [12:08:19]SAM_PROTO_SignData done [12:08:19]FM_MakeSignedData done [12:08:19]CreateOFDProtocolMessage [12:08:19]wFMCommunicate request_size=4 [12:08:19]MH_SAM_APDU [12:08:19]CAPDU: 80 11 00 00 [12:08:19]Write to MH i2c: E2 08 00 A7 4F 80 11 00 00 00 00 00 00 70 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:19]Read from MH i2c: E2 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 17 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: E2 17 00 A7 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [12:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:08:19]wFMCommunicate OK [12:08:19]CreateOFDProtocolMessage done [12:08:19]OFDSenderStorePacket 111324 [12:08:19]StoreOFDPacket docnum=111324 [12:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA BA 07 01 0B 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 3E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 52 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B2 01 00 35 04 06 00 D6 0F EE 6A BE 8E 84 7F 27 BF 26 CF 74 82 [12:08:19]CheckFolder [12:08:19]dirname=/storage/ofd_packets [12:08:19]CheckFolder done [12:08:19]ProducePacketName [12:08:19]name=ofd_packets/00111324 [12:08:19]NVStorageSaveData ofd_packets/00111324 [12:08:19]File name is /storage/ofd_packets/00111324 [12:08:19]Write 301 bytes [12:08:19]NVStorageSaveData done [12:08:19]OFDSenderStorePacket done [12:08:19]KKMCreateOFDPacket done [12:08:19]NVStorageSaveData kkm_last_timestamp [12:08:19]File name is /storage/kkm_last_timestamp [12:08:19]Write 4 bytes [12:08:19]NVStorageSaveData done [12:08:19]ExternCall_PrintAddStr [12:08:19]wPrintStart [12:08:19]Write to MH i2c: 01 00 00 A8 4F F7 [12:08:19]Write i2c OK [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: 01 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: 01 07 00 [12:08:19]MH_I2C_Read... [12:08:19]Read from MH i2c: 01 07 00 A8 4F 00 00 00 00 00 FF 0F 0C [12:08:19]RasterBufferAndPrint [12:08:19]line Счет N : (1)319895 [12:08:19]line ИНН: 02508201610067 [12:08:19]line Контрольно-Кассовый Чек [12:08:19]line ПРОДАЖА [12:08:19]line ТРК (МРК, ГНК) : 11 [12:08:19]line Товар: 2710124130 [12:08:19]line Аи-92-К-5 [12:08:19]line 4.670 * 66.40 [12:08:19]line = 310.09 [12:08:19]line НДС 12% НСП 1% [12:08:19]line > о реализуемом товаре [12:08:19]line ОКРУГЛЕНИЕ: -0.09 [12:08:19]line ИТОГО: 310.00 [12:08:19]line Внесено: 310.00 [12:08:19]line СДАЧА: 0.00 [12:08:19]line НСП 1% : 2.74 [12:08:19]line НДС 12% : 32.93 [12:08:19]line Наличными: 310.00 [12:08:19]line Безнал.: 0.00 [12:08:19]line Место: АЗС № 65 "Партнер Нефть" [12:08:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:08:19]line СНО: Общий режим [12:08:19]line Чек 73 19.06.2024 12:08 [12:08:19]line Смена: 388 ФФД: 1.0 [12:08:19]line ЗНМ: 0300000198 [12:08:19]line РНМ: 0000000000092771 [12:08:19]line Версия ККМ: 001 [12:08:19]line ФМ: 0000000000875083 [12:08:19]line ФД: 111324 [12:08:19]line ФПД: 235363912826510 [12:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T120850&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111324&fm=235363912826510&tin=02508201610067®Number=0000000000092771&sum=31000 [12:08:19]OFD Sender: Processing packet 111324 [packets to send 38, broken 37] [12:08:19]ProducePacketName [12:08:19]name=ofd_packets/00111324 [12:08:19]OFD Sender: To server: pG, [12:08:19]CommunicateWithHost lk.salyk.kg:30040 [12:08:19]ConnectInit lk.salyk.kg [12:08:19]written 0, free lines is 4095 [12:08:19]Connected sock=10 [12:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA BA 07 01 0B 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 3E 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 52 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DC B2 01 00 35 04 06 00 D6 0F EE 6A BE 8E 84 7F 27 BF 26 CF 74 82 [12:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FA 5D 47 00 E7 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 35 30 38 33 10 04 04 00 DC B2 01 00 F4 03 04 00 BC 61 72 66 B6 04 01 00 00 44 D7 25 A1 A5 99 D5 55 [12:08:20]CommunicateWithHost err = 0 [12:08:20]CheckOFDResponse [12:08:20]1017 (14) - 77093643461234 [12:08:20]1041 (16) - 0000000000875083 [12:08:20]1040 (4) - 111324 [12:08:20]1012 (4) - 19.06.2024 04:42 [12:08:20]1206 (1) - 0 [12:08:20]OFD Sender: Remove packet 111324 [12:08:20]ProducePacketName [12:08:20]name=ofd_packets/00111324 [12:08:20]NVStorageDeleteData [12:08:20]Write to MH i2c: 01 00 00 D3 4F 22 [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: 01 07 00 D3 4F 00 00 00 00 00 D3 0C 08 [12:08:20]RasterBufferAndPrint [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]line [12:08:20]written 0, free lines is 3288 [12:08:20]MH_Cut [12:08:20]Write to MH i2c: D1 01 00 DA 4F 01 FB [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 01 00 [12:08:20]MH_I2C_Read... [12:08:20]Read from MH i2c: D1 01 00 DA 4F 00 FA [12:08:20]Write to MH i2c: 01 00 00 DB 4F 2A [12:08:20]Write i2c OK [12:08:20]MH_I2C_Read... [12:08:20]OFD Sender: No OFD packet to send [12:08:20]*** Cut start [12:08:20]*** Partial cut [12:08:20]*** CUTSNS_PIN = 1 [12:08:20]*** CUTSNS_PIN = 0 [12:08:21]*** Brake cut motor [12:08:21]Read from MH i2c: 01 [12:08:21]MH_I2C_Read... [12:08:21]*** Stop cut motor [12:08:21]*** Cut end [12:08:21]Read from MH i2c: 01 07 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: 01 07 00 DB 4F 00 00 00 00 00 FF 0F 3F [12:08:21]process_action close_receipt done [12:08:21]requested_data is exist [12:08:21]produce_requested_data [12:08:21]requested_item fm.sn is exist - process it [12:08:21]wFMCommunicate request_size=4 [12:08:21]MH_SAM_APDU [12:08:21]CAPDU: 80 11 00 00 [12:08:21]Write to MH i2c: E2 08 00 DC 4F 80 11 00 00 00 00 00 00 A5 [12:08:21]Write i2c OK [12:08:21]MH_I2C_Read... [12:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:21]Read from MH i2c: E2 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 17 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 17 00 DC 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [12:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:08:21]wFMCommunicate OK [12:08:21]requested_item fd.num is exist - process it [12:08:21]SAM_PROTO_GetFieldsCounters [12:08:21]wFMCommunicate request_size=4 [12:08:21]MH_SAM_APDU [12:08:21]CAPDU: 80 13 00 00 [12:08:21]Write to MH i2c: E2 08 00 DD 4F 80 13 00 00 00 00 00 00 A8 [12:08:21]Write i2c OK [12:08:21]MH_I2C_Read... [12:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:21]Read from MH i2c: E2 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 62 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 62 00 DD 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [12:08: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:21]wFMCommunicate OK [12:08:21]SAM_PROTO_GetFieldsCounters done [12:08:21]requested_item shift.num is exist - process it [12:08:21]requested_item shift.opened is exist - process it [12:08:21]req_shift_opened [12:08:21]FM_GetShiftState [12:08:21]SAM_PROTO_GetShiftState [12:08:21]wFMCommunicate request_size=4 [12:08:21]MH_SAM_APDU [12:08:21]CAPDU: 80 13 01 00 [12:08:21]Write to MH i2c: E2 08 00 DE 4F 80 13 01 00 00 00 00 00 AA [12:08:21]Write i2c OK [12:08:21]MH_I2C_Read... [12:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:21]Read from MH i2c: E2 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 0E 00 [12:08:21]MH_I2C_Read... [12:08:21]Read from MH i2c: E2 0E 00 DE 4F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F4 [12:08:21]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:08:21]wFMCommunicate OK [12:08:21]SAM_PROTO_GetShiftState done [12:08:21]FM_GetShiftState done [12:08:21]req_shift_opened done [12:08:21]requested_item shift.open_date is exist - process it [12:08:21]req_shift_open_date [12:08:21]req_shift_open_date done [12:08:21]produce_requested_data done [12:08:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111324,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:08:21]process_action_free close_receipt [12:08:21]json_value_free [12:08:21]json_value_free done [12:08:21]process_json_proto returns [12:08:21]Send response to host [12:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111324,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:08:21]free response buf [12:08:21]execute_script done [12:08:21]execute_script returns [12:08:21]free content buf [12:08:21]Sock 9.Close socket [12:08:21]Sock 9.Thread stoped [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:44]accept exits with 8 [12:09:44]New connection [12:09:44]New thread 3067227492 created [12:09:44]Thread 3067084132 joined [12:09:44]Waiting for new connection... [12:09:44] Sock 8.Parse request [12:09:44]Sock 8.Check first char [12:09:44]Sock 8.First char is OK [12:09:44]request: POST /json_proto HTTP/1.0 [12:09:44]Method: POST [12:09:44]URL: /json_proto [12:09:44]Method is POST - this is cgi request [12:09:44]url: /json_proto [12:09:44]query_string will be loaded in cgi processing [12:09:44]execute_cgi json_proto POST (null) [12:09:44]execute_cgi path=json_proto method=POST [12:09:44]POST find Content-Length [12:09:44]Host: 172.17.59.68:8080 [12:09:44]Content-Length: 682 [12:09:44]Content-Type: application/json [12:09:44] [12:09:44]POST finish read [12:09:44]Found Content-Length = 682 [12:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:44]execute_script... [12:09: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)319896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:44]POST & json_proto [12:09:44]process_json_proto [12:09:44]json parsed OK: [12:09:44]protocol is kg_v1.0 [12:09:44]action value=close_receipt [12:09:44]process_action close_receipt [12:09:44]cmd_close_receipt [12:09:44]MH_GetDate [12:09:44]Write to MH i2c: F0 00 00 DF 4F 1D [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: F0 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: F0 09 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: F0 09 00 DF 4F 00 A8 CA 72 66 BC EC 60 65 DD [12:09:44]GetLastDocTimeStamp 1718798930 [12:09:44]current date 1718799016 [12:09:44]FM_GetShiftState [12:09:44]SAM_PROTO_GetShiftState [12:09:44]wFMCommunicate request_size=4 [12:09:44]MH_SAM_APDU [12:09:44]CAPDU: 80 13 01 00 [12:09:44]Write to MH i2c: E2 08 00 E0 4F 80 13 01 00 00 00 00 00 AC [12:09:44]Write i2c OK [12:09:44]MH_I2C_Read... [12:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:44]Read from MH i2c: E2 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0E 00 [12:09:44]MH_I2C_Read... [12:09:44]Read from MH i2c: E2 0E 00 E0 4F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F6 [12:09:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:09:44]wFMCommunicate OK [12:09:44]SAM_PROTO_GetShiftState done [12:09:44]FM_GetShiftState done [12:09:44]opened in 1718760753 [12:09:44]opened+sec_in_day 1718847153 [12:09:44]quantity*price = 100064 [12:09:44]sum+1 = 100066 [12:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 74 19.06.2024 12:10 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111325 ФПД: 111152626110952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121016&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111325&fm=111152626110952&tin=02508201610067®Number=0000000000092771&sum=100000 [12:09:45]StoreToDocumentArchive [12:09:45]shift 388 fd 111325 [12:09:45]save to /storage/0388/doc_00111325 [12:09:45]save last doc name /storage/0388/doc_00111325 to /storage/kkm_last_doc_name [12:09:45]save OK [12:09:45]Clear old archive folders... [12:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:45]tlvbuf is 01A16070 [12:09:45]SAM_PROTO_ClearQueue [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 09 00 00 [12:09:45]Write to MH i2c: E2 08 00 ED 4F 80 09 00 00 00 00 00 00 AE [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:45]Read from MH i2c: E2 03 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 ED 4F 00 90 00 B0 [12:09:45]RAPDU: 90 00 [12:09:45]wFMCommunicate OK [12:09:45]SAM_PROTO_ClearQueue done [12:09:45]KKMCreateOFDPacket [12:09:45]OFDProtocolAddRootSTLVToBuf [12:09:45]FM_MakeSignedData [12:09:45]FM_MakeSignedData [12:09:45]SAM_PROTO_SignData [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 0D 01 02 [12:09:45]Write to MH i2c: E2 08 00 EE 4F 80 0D 01 02 00 00 00 00 B6 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]OFD Sender: No OFD packet to send [12:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 EE 4F 00 90 00 B1 [12:09:45]RAPDU: 90 00 [12:09:45]wFMCommunicate OK [12:09:45]wFMCommunicate request_size=255 [12:09:45]MH_SAM_APDU [12:09: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B2 01 00 35 04 06 00 65 [12:09:45]Write to MH i2c: E2 02 01 EF 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B2 01 00 35 04 06 00 65 00 00 C8 [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 EF 4F 00 90 00 B2 [12:09:45]RAPDU: 90 00 [12:09:45]wFMCommunicate OK [12:09:45]wFMCommunicate request_size=10 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 0D 02 02 05 17 BC CB 91 E8 [12:09:45]Write to MH i2c: E2 0D 00 F0 4F 80 0D 02 02 05 00 17 BC CB 91 E8 00 00 DA [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:45]Read from MH i2c: E2 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 [12:09:45]MH_I2C_Read... [12:09:45]Read from MH i2c: E2 03 00 F0 4F 00 90 00 B3 [12:09:45]RAPDU: 90 00 [12:09:45]wFMCommunicate OK [12:09:45]wFMCommunicate request_size=4 [12:09:45]MH_SAM_APDU [12:09:45]CAPDU: 80 0D 03 02 [12:09:45]Write to MH i2c: E2 08 00 F1 4F 80 0D 03 02 00 00 00 00 BB [12:09:45]Write i2c OK [12:09:45]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0B 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 0B 00 F1 4F 00 FB 67 31 EA F5 10 4C 0D 90 00 97 [12:09:46]RAPDU: FB 67 31 EA F5 10 4C 0D 90 00 [12:09:46]wFMCommunicate OK [12:09:46]SAM_PROTO_SignData done [12:09:46]FM_MakeSignedData done [12:09:46]CreateOFDProtocolMessage [12:09:46]wFMCommunicate request_size=4 [12:09:46]MH_SAM_APDU [12:09:46]CAPDU: 80 11 00 00 [12:09:46]Write to MH i2c: E2 08 00 F2 4F 80 11 00 00 00 00 00 00 BB [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:46]Read from MH i2c: E2 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 17 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: E2 17 00 F2 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [12:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:09:46]wFMCommunicate OK [12:09:46]CreateOFDProtocolMessage done [12:09:46]OFDSenderStorePacket 111325 [12:09:46]StoreOFDPacket docnum=111325 [12:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F6 A4 07 01 A7 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B2 01 00 35 04 06 00 65 17 BC CB 91 E8 FB 67 31 EA F5 10 4C 0D [12:09:46]CheckFolder [12:09:46]dirname=/storage/ofd_packets [12:09:46]CheckFolder done [12:09:46]ProducePacketName [12:09:46]name=ofd_packets/00111325 [12:09:46]NVStorageSaveData ofd_packets/00111325 [12:09:46]File name is /storage/ofd_packets/00111325 [12:09:46]Write 301 bytes [12:09:46]NVStorageSaveData done [12:09:46]OFDSenderStorePacket done [12:09:46]KKMCreateOFDPacket done [12:09:46]NVStorageSaveData kkm_last_timestamp [12:09:46]File name is /storage/kkm_last_timestamp [12:09:46]Write 4 bytes [12:09:46]NVStorageSaveData done [12:09:46]ExternCall_PrintAddStr [12:09:46]wPrintStart [12:09:46]Write to MH i2c: 01 00 00 F3 4F 42 [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 07 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 07 00 F3 4F 00 00 00 00 00 FF 0F 57 [12:09:46]RasterBufferAndPrint [12:09:46]line Счет N : (1)319896 [12:09:46]line ИНН: 02508201610067 [12:09:46]line Контрольно-Кассовый Чек [12:09:46]line ПРОДАЖА [12:09:46]line ТРК (МРК, ГНК) : 11 [12:09:46]line Товар: 2710124130 [12:09:46]line Аи-92-К-5 [12:09:46]line 15.070 * 66.40 [12:09:46]line = 1000.65 [12:09:46]line НДС 12% НСП 1% [12:09:46]line > о реализуемом товаре [12:09:46]line ОКРУГЛЕНИЕ: -0.65 [12:09:46]line ИТОГО: 1000.00 [12:09:46]line Внесено: 1000.00 [12:09:46]line СДАЧА: 0.00 [12:09:46]line НСП 1% : 8.85 [12:09:46]line НДС 12% : 106.26 [12:09:46]line Наличными: 1000.00 [12:09:46]line Безнал.: 0.00 [12:09:46]line Место: АЗС № 65 "Партнер Нефть" [12:09:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:09:46]line СНО: Общий режим [12:09:46]line Чек 74 19.06.2024 12:10 [12:09:46]line Смена: 388 ФФД: 1.0 [12:09:46]line ЗНМ: 0300000198 [12:09:46]line РНМ: 0000000000092771 [12:09:46]line Версия ККМ: 001 [12:09:46]line ФМ: 0000000000875083 [12:09:46]line ФД: 111325 [12:09:46]line ФПД: 111152626110952 [12:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121016&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111325&fm=111152626110952&tin=02508201610067®Number=0000000000092771&sum=100000 [12:09:46]OFD Sender: Processing packet 111325 [packets to send 38, broken 37] [12:09:46]ProducePacketName [12:09:46]name=ofd_packets/00111325 [12:09:46]OFD Sender: To server: pG, [12:09:46]CommunicateWithHost lk.salyk.kg:30040 [12:09:46]ConnectInit lk.salyk.kg [12:09:46]written 0, free lines is 4095 [12:09:46]Connected sock=10 [12:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F6 A4 07 01 A7 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A8 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DD B2 01 00 35 04 06 00 65 17 BC CB 91 E8 FB 67 31 EA F5 10 4C 0D [12:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 27 C2 47 00 51 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 35 30 38 33 10 04 04 00 DD B2 01 00 F4 03 04 00 12 62 72 66 B6 04 01 00 00 FC A5 E1 D3 F0 E8 F2 0F [12:09:46]CommunicateWithHost err = 0 [12:09:46]CheckOFDResponse [12:09:46]1017 (14) - 77093643461234 [12:09:46]1041 (16) - 0000000000875083 [12:09:46]1040 (4) - 111325 [12:09:46]1012 (4) - 19.06.2024 04:44 [12:09:46]1206 (1) - 0 [12:09:46]OFD Sender: Remove packet 111325 [12:09:46]ProducePacketName [12:09:46]name=ofd_packets/00111325 [12:09:46]NVStorageDeleteData [12:09:46]Write to MH i2c: 01 00 00 1E 50 6E [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 07 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: 01 07 00 1E 50 00 00 00 00 00 E4 0C 65 [12:09:46]RasterBufferAndPrint [12:09:46]line [12:09:46]line [12:09:46]line [12:09:46]line [12:09:46]line [12:09:46]written 0, free lines is 3306 [12:09:46]MH_Cut [12:09:46]Write to MH i2c: D1 01 00 25 50 01 47 [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: D1 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: D1 01 00 [12:09:46]MH_I2C_Read... [12:09:46]Read from MH i2c: D1 01 00 25 50 00 46 [12:09:46]Write to MH i2c: 01 00 00 26 50 76 [12:09:46]Write i2c OK [12:09:46]MH_I2C_Read... [12:09:47]OFD Sender: No OFD packet to send [12:09:47]*** Cut start [12:09:47]*** Partial cut [12:09:47]*** CUTSNS_PIN = 1 [12:09:47]*** CUTSNS_PIN = 0 [12:09:47]*** Brake cut motor [12:09:48]Read from MH i2c: 01 [12:09:48]MH_I2C_Read... [12:09:48]*** Stop cut motor [12:09:48]*** Cut end [12:09:48]Read from MH i2c: 01 07 00 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: 01 07 00 26 50 00 00 00 00 00 FF 0F 8B [12:09:48]process_action close_receipt done [12:09:48]requested_data is exist [12:09:48]produce_requested_data [12:09:48]requested_item fm.sn is exist - process it [12:09:48]wFMCommunicate request_size=4 [12:09:48]MH_SAM_APDU [12:09:48]CAPDU: 80 11 00 00 [12:09:48]Write to MH i2c: E2 08 00 27 50 80 11 00 00 00 00 00 00 F1 [12:09:48]Write i2c OK [12:09:48]MH_I2C_Read... [12:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:48]Read from MH i2c: E2 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 17 00 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 17 00 27 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [12:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:09:48]wFMCommunicate OK [12:09:48]requested_item fd.num is exist - process it [12:09:48]SAM_PROTO_GetFieldsCounters [12:09:48]wFMCommunicate request_size=4 [12:09:48]MH_SAM_APDU [12:09:48]CAPDU: 80 13 00 00 [12:09:48]Write to MH i2c: E2 08 00 28 50 80 13 00 00 00 00 00 00 F4 [12:09:48]Write i2c OK [12:09:48]MH_I2C_Read... [12:09:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:48]Read from MH i2c: E2 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 62 00 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 62 00 28 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [12:09: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:48]wFMCommunicate OK [12:09:48]SAM_PROTO_GetFieldsCounters done [12:09:48]requested_item shift.num is exist - process it [12:09:48]requested_item shift.opened is exist - process it [12:09:48]req_shift_opened [12:09:48]FM_GetShiftState [12:09:48]SAM_PROTO_GetShiftState [12:09:48]wFMCommunicate request_size=4 [12:09:48]MH_SAM_APDU [12:09:48]CAPDU: 80 13 01 00 [12:09:48]Write to MH i2c: E2 08 00 29 50 80 13 01 00 00 00 00 00 F6 [12:09:48]Write i2c OK [12:09:48]MH_I2C_Read... [12:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:48]Read from MH i2c: E2 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 0E 00 [12:09:48]MH_I2C_Read... [12:09:48]Read from MH i2c: E2 0E 00 29 50 00 09 00 01 31 35 72 66 00 00 00 00 90 00 40 [12:09:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:09:48]wFMCommunicate OK [12:09:48]SAM_PROTO_GetShiftState done [12:09:48]FM_GetShiftState done [12:09:48]req_shift_opened done [12:09:48]requested_item shift.open_date is exist - process it [12:09:48]req_shift_open_date [12:09:48]req_shift_open_date done [12:09:48]produce_requested_data done [12:09:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111325,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:09:48]process_action_free close_receipt [12:09:48]json_value_free [12:09:48]json_value_free done [12:09:48]process_json_proto returns [12:09:48]Send response to host [12:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111325,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:09:48]free response buf [12:09:48]execute_script done [12:09:48]execute_script returns [12:09:48]free content buf [12:09:48]Sock 8.Close socket [12:09:48]Sock 8.Thread stoped [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:12]accept exits with 9 [12:10:12]New connection [12:10:12]New thread 3067084132 created [12:10:12]Thread 3067227492 joined [12:10:12]Waiting for new connection... [12:10:12] Sock 9.Parse request [12:10:12]Sock 9.Check first char [12:10:12]Sock 9.First char is OK [12:10:12]request: POST /json_proto HTTP/1.0 [12:10:12]Method: POST [12:10:12]URL: /json_proto [12:10:12]Method is POST - this is cgi request [12:10:12]url: /json_proto [12:10:12]query_string will be loaded in cgi processing [12:10:12]execute_cgi json_proto POST (null) [12:10:12]execute_cgi path=json_proto method=POST [12:10:12]POST find Content-Length [12:10:12]Host: 172.17.59.68:8080 [12:10:12]Content-Length: 674 [12:10:12]Content-Type: application/json [12:10:12] [12:10:12]POST finish read [12:10:12]Found Content-Length = 674 [12:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:12]execute_script... [12:10: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)319897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:10:12]POST & json_proto [12:10:12]process_json_proto [12:10:12]json parsed OK: [12:10:12]protocol is kg_v1.0 [12:10:12]action value=close_receipt [12:10:12]process_action close_receipt [12:10:12]cmd_close_receipt [12:10:12]MH_GetDate [12:10:12]Write to MH i2c: F0 00 00 2A 50 69 [12:10:12]Write i2c OK [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: F0 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: F0 09 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: F0 09 00 2A 50 00 C5 CA 72 66 BC EC 60 65 46 [12:10:12]GetLastDocTimeStamp 1718799016 [12:10:12]current date 1718799045 [12:10:12]FM_GetShiftState [12:10:12]SAM_PROTO_GetShiftState [12:10:12]wFMCommunicate request_size=4 [12:10:12]MH_SAM_APDU [12:10:12]CAPDU: 80 13 01 00 [12:10:12]Write to MH i2c: E2 08 00 2B 50 80 13 01 00 00 00 00 00 F8 [12:10:12]Write i2c OK [12:10:12]MH_I2C_Read... [12:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:12]Read from MH i2c: E2 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 0E 00 [12:10:12]MH_I2C_Read... [12:10:12]Read from MH i2c: E2 0E 00 2B 50 00 09 00 01 31 35 72 66 00 00 00 00 90 00 42 [12:10:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:10:12]wFMCommunicate OK [12:10:12]SAM_PROTO_GetShiftState done [12:10:12]FM_GetShiftState done [12:10:12]opened in 1718760753 [12:10:12]opened+sec_in_day 1718847153 [12:10:12]quantity*price = 50009 [12:10:12]sum+1 = 50010 [12:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 75 19.06.2024 12:10 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111326 ФПД: 121010123142384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111326&fm=121010123142384&tin=02508201610067®Number=0000000000092771&sum=50000 [12:10:14]StoreToDocumentArchive [12:10:14]shift 388 fd 111326 [12:10:14]save to /storage/0388/doc_00111326 [12:10:14]save last doc name /storage/0388/doc_00111326 to /storage/kkm_last_doc_name [12:10:14]save OK [12:10:14]Clear old archive folders... [12:10:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:10:14]tlvbuf is 019A8010 [12:10:14]SAM_PROTO_ClearQueue [12:10:14]wFMCommunicate request_size=4 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 09 00 00 [12:10:14]Write to MH i2c: E2 08 00 38 50 80 09 00 00 00 00 00 00 FA [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 38 50 00 90 00 FC [12:10:14]RAPDU: 90 00 [12:10:14]wFMCommunicate OK [12:10:14]SAM_PROTO_ClearQueue done [12:10:14]KKMCreateOFDPacket [12:10:14]OFDProtocolAddRootSTLVToBuf [12:10:14]FM_MakeSignedData [12:10:14]FM_MakeSignedData [12:10:14]SAM_PROTO_SignData [12:10:14]wFMCommunicate request_size=4 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 0D 01 02 [12:10:14]Write to MH i2c: E2 08 00 39 50 80 0D 01 02 00 00 00 00 02 [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 39 50 00 90 00 FD [12:10:14]RAPDU: 90 00 [12:10:14]wFMCommunicate OK [12:10:14]wFMCommunicate request_size=255 [12:10:14]MH_SAM_APDU [12:10: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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 C5 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B2 01 00 35 04 06 00 6E 0E DD 67 [12:10:14]Write to MH i2c: E2 02 01 3A 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 C5 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B2 01 00 35 04 06 00 6E 0E DD 67 00 00 34 [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 3A 50 00 90 00 FE [12:10:14]RAPDU: 90 00 [12:10:14]wFMCommunicate OK [12:10:14]wFMCommunicate request_size=7 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 0D 02 02 02 74 F0 [12:10:14]Write to MH i2c: E2 0A 00 3B 50 80 0D 02 02 02 00 74 F0 00 00 6D [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 03 00 3B 50 00 90 00 FF [12:10:14]RAPDU: 90 00 [12:10:14]wFMCommunicate OK [12:10:14]wFMCommunicate request_size=4 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 0D 03 02 [12:10:14]Write to MH i2c: E2 08 00 3C 50 80 0D 03 02 00 00 00 00 07 [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 0B 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 0B 00 3C 50 00 DB F4 6D 50 F7 97 DD AB 90 00 AA [12:10:14]RAPDU: DB F4 6D 50 F7 97 DD AB 90 00 [12:10:14]wFMCommunicate OK [12:10:14]SAM_PROTO_SignData done [12:10:14]FM_MakeSignedData done [12:10:14]CreateOFDProtocolMessage [12:10:14]wFMCommunicate request_size=4 [12:10:14]MH_SAM_APDU [12:10:14]CAPDU: 80 11 00 00 [12:10:14]Write to MH i2c: E2 08 00 3D 50 80 11 00 00 00 00 00 00 07 [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:14]Read from MH i2c: E2 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 17 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: E2 17 00 3D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [12:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:10:14]wFMCommunicate OK [12:10:14]CreateOFDProtocolMessage done [12:10:14]OFDSenderStorePacket 111326 [12:10:14]StoreOFDPacket docnum=111326 [12:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A0 A7 04 01 DD E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 C5 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B2 01 00 35 04 06 00 6E 0E DD 67 74 F0 DB F4 6D 50 F7 97 DD AB [12:10:14]CheckFolder [12:10:14]dirname=/storage/ofd_packets [12:10:14]CheckFolder done [12:10:14]ProducePacketName [12:10:14]name=ofd_packets/00111326 [12:10:14]NVStorageSaveData ofd_packets/00111326 [12:10:14]File name is /storage/ofd_packets/00111326 [12:10:14]Write 298 bytes [12:10:14]NVStorageSaveData done [12:10:14]OFDSenderStorePacket done [12:10:14]KKMCreateOFDPacket done [12:10:14]NVStorageSaveData kkm_last_timestamp [12:10:14]File name is /storage/kkm_last_timestamp [12:10:14]Write 4 bytes [12:10:14]NVStorageSaveData done [12:10:14]ExternCall_PrintAddStr [12:10:14]wPrintStart [12:10:14]Write to MH i2c: 01 00 00 3E 50 8E [12:10:14]Write i2c OK [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: 01 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: 01 07 00 [12:10:14]MH_I2C_Read... [12:10:14]Read from MH i2c: 01 07 00 3E 50 00 00 00 00 00 FF 0F A3 [12:10:14]RasterBufferAndPrint [12:10:14]line Счет N : (1)319897 [12:10:14]line ИНН: 02508201610067 [12:10:14]line Контрольно-Кассовый Чек [12:10:14]line ПРОДАЖА [12:10:14]line ТРК (МРК, ГНК) : 22 [12:10:14]line Товар: 2710194210 [12:10:14]line ДТ-К-5 [12:10:14]line 6.860 * 72.90 [12:10:14]line = 500.09 [12:10:14]line НДС 12% НСП 1% [12:10:14]line > о реализуемом товаре [12:10:14]line ОКРУГЛЕНИЕ: -0.09 [12:10:14]line ИТОГО: 500.00 [12:10:14]line Внесено: 500.00 [12:10:14]line СДАЧА: 0.00 [12:10:14]line НСП 1% : 4.43 [12:10:14]line НДС 12% : 53.11 [12:10:14]line Наличными: 500.00 [12:10:14]line Безнал.: 0.00 [12:10:14]line Место: АЗС № 65 "Партнер Нефть" [12:10:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:10:14]line СНО: Общий режим [12:10:14]line Чек 75 19.06.2024 12:10 [12:10:14]line Смена: 388 ФФД: 1.0 [12:10:14]line ЗНМ: 0300000198 [12:10:14]line РНМ: 0000000000092771 [12:10:14]line Версия ККМ: 001 [12:10:14]line ФМ: 0000000000875083 [12:10:14]line ФД: 111326 [12:10:14]line ФПД: 121010123142384 [12:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111326&fm=121010123142384&tin=02508201610067®Number=0000000000092771&sum=50000 [12:10:14]OFD Sender: Processing packet 111326 [packets to send 38, broken 37] [12:10:14]ProducePacketName [12:10:14]name=ofd_packets/00111326 [12:10:14]OFD Sender: To server: pG, [12:10:14]CommunicateWithHost lk.salyk.kg:30040 [12:10:14]ConnectInit lk.salyk.kg [12:10:14]written 0, free lines is 4095 [12:10:15]Connected sock=11 [12:10:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 A0 A7 04 01 DD E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 C5 CA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DE B2 01 00 35 04 06 00 6E 0E DD 67 74 F0 DB F4 6D 50 F7 97 DD AB [12:10:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 71 80 47 00 CD 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 35 30 38 33 10 04 04 00 DE B2 01 00 F4 03 04 00 2F 62 72 66 B6 04 01 00 00 B9 D7 28 23 BA 61 46 E5 [12:10:15]CommunicateWithHost err = 0 [12:10:15]CheckOFDResponse [12:10:15]1017 (14) - 77093643461234 [12:10:15]1041 (16) - 0000000000875083 [12:10:15]1040 (4) - 111326 [12:10:15]1012 (4) - 19.06.2024 04:44 [12:10:15]1206 (1) - 0 [12:10:15]OFD Sender: Remove packet 111326 [12:10:15]ProducePacketName [12:10:15]name=ofd_packets/00111326 [12:10:15]NVStorageDeleteData [12:10:15]Write to MH i2c: 01 00 00 69 50 B9 [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 07 00 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: 01 07 00 69 50 00 00 00 00 00 E6 0C B2 [12:10:15]RasterBufferAndPrint [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]line [12:10:15]written 0, free lines is 3308 [12:10:15]MH_Cut [12:10:15]Write to MH i2c: D1 01 00 70 50 01 92 [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 01 00 [12:10:15]MH_I2C_Read... [12:10:15]Read from MH i2c: D1 01 00 70 50 00 91 [12:10:15]Write to MH i2c: 01 00 00 71 50 C1 [12:10:15]Write i2c OK [12:10:15]MH_I2C_Read... [12:10:15]OFD Sender: No OFD packet to send [12:10:16]*** Cut start [12:10:16]*** Partial cut [12:10:16]*** CUTSNS_PIN = 1 [12:10:16]*** CUTSNS_PIN = 0 [12:10:16]*** Brake cut motor [12:10:16]Read from MH i2c: 01 [12:10:16]MH_I2C_Read... [12:10:16]*** Stop cut motor [12:10:16]*** Cut end [12:10:16]Read from MH i2c: 01 07 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: 01 07 00 71 50 00 00 00 00 00 FF 0F D6 [12:10:16]process_action close_receipt done [12:10:16]requested_data is exist [12:10:16]produce_requested_data [12:10:16]requested_item fm.sn is exist - process it [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 11 00 00 [12:10:16]Write to MH i2c: E2 08 00 72 50 80 11 00 00 00 00 00 00 3C [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 17 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 17 00 72 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8E [12:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:10:16]wFMCommunicate OK [12:10:16]requested_item fd.num is exist - process it [12:10:16]SAM_PROTO_GetFieldsCounters [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 13 00 00 [12:10:16]Write to MH i2c: E2 08 00 73 50 80 13 00 00 00 00 00 00 3F [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 62 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 62 00 73 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [12:10: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:16]wFMCommunicate OK [12:10:16]SAM_PROTO_GetFieldsCounters done [12:10:16]requested_item shift.num is exist - process it [12:10:16]requested_item shift.opened is exist - process it [12:10:16]req_shift_opened [12:10:16]FM_GetShiftState [12:10:16]SAM_PROTO_GetShiftState [12:10:16]wFMCommunicate request_size=4 [12:10:16]MH_SAM_APDU [12:10:16]CAPDU: 80 13 01 00 [12:10:16]Write to MH i2c: E2 08 00 74 50 80 13 01 00 00 00 00 00 41 [12:10:16]Write i2c OK [12:10:16]MH_I2C_Read... [12:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:16]Read from MH i2c: E2 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 0E 00 [12:10:16]MH_I2C_Read... [12:10:16]Read from MH i2c: E2 0E 00 74 50 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8B [12:10:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:10:16]wFMCommunicate OK [12:10:16]SAM_PROTO_GetShiftState done [12:10:16]FM_GetShiftState done [12:10:16]req_shift_opened done [12:10:16]requested_item shift.open_date is exist - process it [12:10:16]req_shift_open_date [12:10:16]req_shift_open_date done [12:10:16]produce_requested_data done [12:10:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111326,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:10:16]process_action_free close_receipt [12:10:16]json_value_free [12:10:16]json_value_free done [12:10:16]process_json_proto returns [12:10:16]Send response to host [12:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111326,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:10:16]free response buf [12:10:16]execute_script done [12:10:16]execute_script returns [12:10:16]free content buf [12:10:16]Sock 9.Close socket [12:10:16]Sock 9.Thread stoped [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:16]accept exits with 8 [12:11:16]New connection [12:11:16]New thread 3067227492 created [12:11:16]Thread 3067084132 joined [12:11:16]Waiting for new connection... [12:11:16] Sock 8.Parse request [12:11:16]Sock 8.Check first char [12:11:16]Sock 8.First char is OK [12:11:16]request: POST /json_proto HTTP/1.0 [12:11:16]Method: POST [12:11:16]URL: /json_proto [12:11:16]Method is POST - this is cgi request [12:11:16]url: /json_proto [12:11:16]query_string will be loaded in cgi processing [12:11:16]execute_cgi json_proto POST (null) [12:11:16]execute_cgi path=json_proto method=POST [12:11:16]POST find Content-Length [12:11:16]Host: 172.17.59.68:8080 [12:11:16]Content-Length: 677 [12:11:16]Content-Type: application/json [12:11:16] [12:11:16]POST finish read [12:11:16]Found Content-Length = 677 [12:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:16]execute_script... [12:11: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)319899", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:16]POST & json_proto [12:11:16]process_json_proto [12:11:16]json parsed OK: [12:11:16]protocol is kg_v1.0 [12:11:16]action value=close_receipt [12:11:16]process_action close_receipt [12:11:16]cmd_close_receipt [12:11:16]MH_GetDate [12:11:16]Write to MH i2c: F0 00 00 75 50 B4 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: F0 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: F0 09 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: F0 09 00 75 50 00 04 CB 72 66 BC EC 60 65 D1 [12:11:16]GetLastDocTimeStamp 1718799045 [12:11:16]current date 1718799108 [12:11:16]FM_GetShiftState [12:11:16]SAM_PROTO_GetShiftState [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 13 01 00 [12:11:16]Write to MH i2c: E2 08 00 76 50 80 13 01 00 00 00 00 00 43 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 0E 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 0E 00 76 50 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8D [12:11:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:11:16]wFMCommunicate OK [12:11:16]SAM_PROTO_GetShiftState done [12:11:16]FM_GetShiftState done [12:11:16]opened in 1718760753 [12:11:16]opened+sec_in_day 1718847153 [12:11:16]quantity*price = 50065 [12:11:16]sum+1 = 50067 [12:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 76 19.06.2024 12:11 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111327 ФПД: 250567286895149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121148&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111327&fm=250567286895149&tin=02508201610067®Number=0000000000092771&sum=50000 [12:11:17]StoreToDocumentArchive [12:11:17]shift 388 fd 111327 [12:11:17]save to /storage/0388/doc_00111327 [12:11:17]save last doc name /storage/0388/doc_00111327 to /storage/kkm_last_doc_name [12:11:17]save OK [12:11:17]Clear old archive folders... [12:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:17]tlvbuf is B6F9BB60 [12:11:17]SAM_PROTO_ClearQueue [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 09 00 00 [12:11:17]Write to MH i2c: E2 08 00 83 50 80 09 00 00 00 00 00 00 45 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 83 50 00 90 00 47 [12:11:17]RAPDU: 90 00 [12:11:17]wFMCommunicate OK [12:11:17]SAM_PROTO_ClearQueue done [12:11:17]KKMCreateOFDPacket [12:11:17]OFDProtocolAddRootSTLVToBuf [12:11:17]FM_MakeSignedData [12:11:17]FM_MakeSignedData [12:11:17]SAM_PROTO_SignData [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 0D 01 02 [12:11:17]Write to MH i2c: E2 08 00 84 50 80 0D 01 02 00 00 00 00 4D [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 84 50 00 90 00 48 [12:11:17]RAPDU: 90 00 [12:11:17]wFMCommunicate OK [12:11:17]wFMCommunicate request_size=255 [12:11:17]MH_SAM_APDU [12:11: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 04 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B2 01 00 35 04 06 00 E3 [12:11:17]Write to MH i2c: E2 02 01 85 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 04 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B2 01 00 35 04 06 00 E3 00 00 EE [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 85 50 00 90 00 49 [12:11:17]RAPDU: 90 00 [12:11:17]wFMCommunicate OK [12:11:17]wFMCommunicate request_size=10 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 0D 02 02 05 E3 BE 20 B2 2D [12:11:17]Write to MH i2c: E2 0D 00 86 50 80 0D 02 02 05 00 E3 BE 20 B2 2D 00 00 FA [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:17]Read from MH i2c: E2 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: E2 03 00 86 50 00 90 00 4A [12:11:17]RAPDU: 90 00 [12:11:17]wFMCommunicate OK [12:11:17]wFMCommunicate request_size=4 [12:11:17]MH_SAM_APDU [12:11:17]CAPDU: 80 0D 03 02 [12:11:17]Write to MH i2c: E2 08 00 87 50 80 0D 03 02 00 00 00 00 52 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 0B 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 0B 00 87 50 00 07 26 D1 00 B3 AA BE 43 90 00 AF [12:11:18]RAPDU: 07 26 D1 00 B3 AA BE 43 90 00 [12:11:18]wFMCommunicate OK [12:11:18]SAM_PROTO_SignData done [12:11:18]FM_MakeSignedData done [12:11:18]CreateOFDProtocolMessage [12:11:18]wFMCommunicate request_size=4 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 11 00 00 [12:11:18]Write to MH i2c: E2 08 00 88 50 80 11 00 00 00 00 00 00 52 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 17 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 17 00 88 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [12:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:11:18]wFMCommunicate OK [12:11:18]CreateOFDProtocolMessage done [12:11:18]OFDSenderStorePacket 111327 [12:11:18]StoreOFDPacket docnum=111327 [12:11:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C 29 07 01 9E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 04 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B2 01 00 35 04 06 00 E3 E3 BE 20 B2 2D 07 26 D1 00 B3 AA BE 43 [12:11:18]CheckFolder [12:11:18]dirname=/storage/ofd_packets [12:11:18]CheckFolder done [12:11:18]ProducePacketName [12:11:18]name=ofd_packets/00111327 [12:11:18]NVStorageSaveData ofd_packets/00111327 [12:11:18]File name is /storage/ofd_packets/00111327 [12:11:18]Write 301 bytes [12:11:18]NVStorageSaveData done [12:11:18]OFDSenderStorePacket done [12:11:18]KKMCreateOFDPacket done [12:11:18]NVStorageSaveData kkm_last_timestamp [12:11:18]File name is /storage/kkm_last_timestamp [12:11:18]Write 4 bytes [12:11:18]NVStorageSaveData done [12:11:18]ExternCall_PrintAddStr [12:11:18]wPrintStart [12:11:18]Write to MH i2c: 01 00 00 89 50 D9 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 89 50 00 00 00 00 00 FF 0F EE [12:11:18]RasterBufferAndPrint [12:11:18]line Счет N : (1)319899 [12:11:18]line ИНН: 02508201610067 [12:11:18]line Контрольно-Кассовый Чек [12:11:18]line ПРОДАЖА [12:11:18]line ТРК (МРК, ГНК) : 11 [12:11:18]line Товар: 2710124130 [12:11:18]line Аи-92-К-5 [12:11:18]line 7.540 * 66.40 [12:11:18]line = 500.66 [12:11:18]line НДС 12% НСП 1% [12:11:18]line > о реализуемом товаре [12:11:18]line ОКРУГЛЕНИЕ: -0.66 [12:11:18]line ИТОГО: 500.00 [12:11:18]line Внесено: 500.00 [12:11:18]line СДАЧА: 0.00 [12:11:18]line НСП 1% : 4.43 [12:11:18]line НДС 12% : 53.17 [12:11:18]line Наличными: 500.00 [12:11:18]line Безнал.: 0.00 [12:11:18]line Место: АЗС № 65 "Партнер Нефть" [12:11:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:11:18]line СНО: Общий режим [12:11:18]line Чек 76 19.06.2024 12:11 [12:11:18]line Смена: 388 ФФД: 1.0 [12:11:18]line ЗНМ: 0300000198 [12:11:18]line РНМ: 0000000000092771 [12:11:18]line Версия ККМ: 001 [12:11:18]line ФМ: 0000000000875083 [12:11:18]line ФД: 111327 [12:11:18]line ФПД: 250567286895149 [12:11:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121148&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111327&fm=250567286895149&tin=02508201610067®Number=0000000000092771&sum=50000 [12:11:18]OFD Sender: Processing packet 111327 [packets to send 38, broken 37] [12:11:18]ProducePacketName [12:11:18]name=ofd_packets/00111327 [12:11:18]OFD Sender: To server: pG, [12:11:18]CommunicateWithHost lk.salyk.kg:30040 [12:11:18]ConnectInit lk.salyk.kg [12:11:18]written 0, free lines is 4095 [12:11:18]Connected sock=10 [12:11:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C 29 07 01 9E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 04 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 DF B2 01 00 35 04 06 00 E3 E3 BE 20 B2 2D 07 26 D1 00 B3 AA BE 43 [12:11:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 94 17 47 00 0A 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 35 30 38 33 10 04 04 00 DF B2 01 00 F4 03 04 00 6E 62 72 66 B6 04 01 00 00 36 30 2B 27 E6 1D 74 E5 [12:11:18]CommunicateWithHost err = 0 [12:11:18]CheckOFDResponse [12:11:18]1017 (14) - 77093643461234 [12:11:18]1041 (16) - 0000000000875083 [12:11:18]1040 (4) - 111327 [12:11:18]1012 (4) - 19.06.2024 04:45 [12:11:18]1206 (1) - 0 [12:11:18]OFD Sender: Remove packet 111327 [12:11:18]ProducePacketName [12:11:18]name=ofd_packets/00111327 [12:11:18]NVStorageDeleteData [12:11:18]Write to MH i2c: 01 00 00 B4 50 04 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 B4 50 00 00 00 00 00 DC 0C F3 [12:11:18]RasterBufferAndPrint [12:11:18]line [12:11:18]line [12:11:18]line [12:11:18]line [12:11:18]line [12:11:18]written 0, free lines is 3298 [12:11:18]MH_Cut [12:11:18]Write to MH i2c: D1 01 00 BB 50 01 DD [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D1 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D1 01 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: D1 01 00 BB 50 00 DC [12:11:18]Write to MH i2c: 01 00 00 BC 50 0C [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:19]OFD Sender: No OFD packet to send [12:11:19]*** Cut start [12:11:19]*** Partial cut [12:11:19]*** CUTSNS_PIN = 1 [12:11:19]*** CUTSNS_PIN = 0 [12:11:19]*** Brake cut motor [12:11:20]Read from MH i2c: 01 [12:11:20]MH_I2C_Read... [12:11:20]*** Stop cut motor [12:11:20]*** Cut end [12:11:20]Read from MH i2c: 01 07 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: 01 07 00 BC 50 00 00 00 00 00 FF 0F 21 [12:11:20]process_action close_receipt done [12:11:20]requested_data is exist [12:11:20]produce_requested_data [12:11:20]requested_item fm.sn is exist - process it [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 11 00 00 [12:11:20]Write to MH i2c: E2 08 00 BD 50 80 11 00 00 00 00 00 00 87 [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 17 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 17 00 BD 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D9 [12:11:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:11:20]wFMCommunicate OK [12:11:20]requested_item fd.num is exist - process it [12:11:20]SAM_PROTO_GetFieldsCounters [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 13 00 00 [12:11:20]Write to MH i2c: E2 08 00 BE 50 80 13 00 00 00 00 00 00 8A [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 62 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 62 00 BE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [12:11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 DF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:20]wFMCommunicate OK [12:11:20]SAM_PROTO_GetFieldsCounters done [12:11:20]requested_item shift.num is exist - process it [12:11:20]requested_item shift.opened is exist - process it [12:11:20]req_shift_opened [12:11:20]FM_GetShiftState [12:11:20]SAM_PROTO_GetShiftState [12:11:20]wFMCommunicate request_size=4 [12:11:20]MH_SAM_APDU [12:11:20]CAPDU: 80 13 01 00 [12:11:20]Write to MH i2c: E2 08 00 BF 50 80 13 01 00 00 00 00 00 8C [12:11:20]Write i2c OK [12:11:20]MH_I2C_Read... [12:11:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:20]Read from MH i2c: E2 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 0E 00 [12:11:20]MH_I2C_Read... [12:11:20]Read from MH i2c: E2 0E 00 BF 50 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D6 [12:11:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:11:20]wFMCommunicate OK [12:11:20]SAM_PROTO_GetShiftState done [12:11:20]FM_GetShiftState done [12:11:20]req_shift_opened done [12:11:20]requested_item shift.open_date is exist - process it [12:11:20]req_shift_open_date [12:11:20]req_shift_open_date done [12:11:20]produce_requested_data done [12:11:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111327,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:11:20]process_action_free close_receipt [12:11:20]json_value_free [12:11:20]json_value_free done [12:11:20]process_json_proto returns [12:11:20]Send response to host [12:11:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111327,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:11:20]free response buf [12:11:20]execute_script done [12:11:20]execute_script returns [12:11:20]free content buf [12:11:20]Sock 8.Close socket [12:11:20]Sock 8.Thread stoped [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:41]accept exits with 9 [12:12:41]New connection [12:12:41]New thread 3067084132 created [12:12:41]Thread 3067227492 joined [12:12:41]Waiting for new connection... [12:12:41] Sock 9.Parse request [12:12:41]Sock 9.Check first char [12:12:41]Sock 9.First char is OK [12:12:41]request: POST /json_proto HTTP/1.0 [12:12:41]Method: POST [12:12:41]URL: /json_proto [12:12:41]Method is POST - this is cgi request [12:12:41]url: /json_proto [12:12:41]query_string will be loaded in cgi processing [12:12:41]execute_cgi json_proto POST (null) [12:12:41]execute_cgi path=json_proto method=POST [12:12:41]POST find Content-Length [12:12:41]Host: 172.17.59.68:8080 [12:12:41]Content-Length: 677 [12:12:41]Content-Type: application/json [12:12:41] [12:12:41]POST finish read [12:12:41]Found Content-Length = 677 [12:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:41]execute_script... [12:12: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)319900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:41]POST & json_proto [12:12:41]process_json_proto [12:12:41]json parsed OK: [12:12:41]protocol is kg_v1.0 [12:12:41]action value=close_receipt [12:12:41]process_action close_receipt [12:12:41]cmd_close_receipt [12:12:41]MH_GetDate [12:12:41]Write to MH i2c: F0 00 00 C0 50 FF [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: F0 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: F0 09 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: F0 09 00 C0 50 00 59 CB 72 66 BC EC 60 65 71 [12:12:41]GetLastDocTimeStamp 1718799108 [12:12:41]current date 1718799193 [12:12:41]FM_GetShiftState [12:12:41]SAM_PROTO_GetShiftState [12:12:41]wFMCommunicate request_size=4 [12:12:41]MH_SAM_APDU [12:12:41]CAPDU: 80 13 01 00 [12:12:41]Write to MH i2c: E2 08 00 C1 50 80 13 01 00 00 00 00 00 8E [12:12:41]Write i2c OK [12:12:41]MH_I2C_Read... [12:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:41]Read from MH i2c: E2 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 0E 00 [12:12:41]MH_I2C_Read... [12:12:41]Read from MH i2c: E2 0E 00 C1 50 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D8 [12:12:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:12:41]wFMCommunicate OK [12:12:41]SAM_PROTO_GetShiftState done [12:12:41]FM_GetShiftState done [12:12:41]opened in 1718760753 [12:12:41]opened+sec_in_day 1718847153 [12:12:41]quantity*price = 50065 [12:12:41]sum+1 = 50067 [12:12:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 77 19.06.2024 12:13 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111328 ФПД: 264968514172521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121313&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111328&fm=264968514172521&tin=02508201610067®Number=0000000000092771&sum=50000 [12:12:42]StoreToDocumentArchive [12:12:42]shift 388 fd 111328 [12:12:42]save to /storage/0388/doc_00111328 [12:12:42]save last doc name /storage/0388/doc_00111328 to /storage/kkm_last_doc_name [12:12:42]save OK [12:12:42]Clear old archive folders... [12:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:42]tlvbuf is 019419E0 [12:12:42]SAM_PROTO_ClearQueue [12:12:42]wFMCommunicate request_size=4 [12:12:42]MH_SAM_APDU [12:12:42]CAPDU: 80 09 00 00 [12:12:42]Write to MH i2c: E2 08 00 CE 50 80 09 00 00 00 00 00 00 90 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 03 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 03 00 CE 50 00 90 00 92 [12:12:42]RAPDU: 90 00 [12:12:42]wFMCommunicate OK [12:12:42]SAM_PROTO_ClearQueue done [12:12:42]KKMCreateOFDPacket [12:12:42]OFDProtocolAddRootSTLVToBuf [12:12:42]FM_MakeSignedData [12:12:42]FM_MakeSignedData [12:12:42]SAM_PROTO_SignData [12:12:42]wFMCommunicate request_size=4 [12:12:42]MH_SAM_APDU [12:12:42]CAPDU: 80 0D 01 02 [12:12:42]Write to MH i2c: E2 08 00 CF 50 80 0D 01 02 00 00 00 00 98 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 03 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 03 00 CF 50 00 90 00 93 [12:12:42]RAPDU: 90 00 [12:12:42]wFMCommunicate OK [12:12:42]wFMCommunicate request_size=255 [12:12:42]MH_SAM_APDU [12:12: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 59 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B2 01 00 35 04 06 00 F0 [12:12:42]Write to MH i2c: E2 02 01 D0 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 59 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B2 01 00 35 04 06 00 F0 00 00 9D [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 03 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 03 00 D0 50 00 90 00 94 [12:12:42]RAPDU: 90 00 [12:12:42]wFMCommunicate OK [12:12:42]wFMCommunicate request_size=10 [12:12:42]MH_SAM_APDU [12:12:42]CAPDU: 80 0D 02 02 05 FC CA 29 F6 69 [12:12:42]Write to MH i2c: E2 0D 00 D1 50 80 0D 02 02 05 00 FC CA 29 F6 69 00 00 F3 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 03 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 03 00 D1 50 00 90 00 95 [12:12:42]RAPDU: 90 00 [12:12:42]wFMCommunicate OK [12:12:42]wFMCommunicate request_size=4 [12:12:42]MH_SAM_APDU [12:12:42]CAPDU: 80 0D 03 02 [12:12:42]Write to MH i2c: E2 08 00 D2 50 80 0D 03 02 00 00 00 00 9D [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 0B 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 0B 00 D2 50 00 0C D0 A9 FE 50 E0 30 60 90 00 E1 [12:12:42]RAPDU: 0C D0 A9 FE 50 E0 30 60 90 00 [12:12:42]wFMCommunicate OK [12:12:42]SAM_PROTO_SignData done [12:12:42]FM_MakeSignedData done [12:12:42]CreateOFDProtocolMessage [12:12:42]wFMCommunicate request_size=4 [12:12:42]MH_SAM_APDU [12:12:42]CAPDU: 80 11 00 00 [12:12:42]Write to MH i2c: E2 08 00 D3 50 80 11 00 00 00 00 00 00 9D [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:42]Read from MH i2c: E2 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 17 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: E2 17 00 D3 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [12:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:12:42]wFMCommunicate OK [12:12:42]CreateOFDProtocolMessage done [12:12:42]OFDSenderStorePacket 111328 [12:12:42]StoreOFDPacket docnum=111328 [12:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 5E 07 01 B0 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 59 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B2 01 00 35 04 06 00 F0 FC CA 29 F6 69 0C D0 A9 FE 50 E0 30 60 [12:12:42]CheckFolder [12:12:42]dirname=/storage/ofd_packets [12:12:42]CheckFolder done [12:12:42]ProducePacketName [12:12:42]name=ofd_packets/00111328 [12:12:42]NVStorageSaveData ofd_packets/00111328 [12:12:42]File name is /storage/ofd_packets/00111328 [12:12:42]Write 301 bytes [12:12:42]NVStorageSaveData done [12:12:42]OFDSenderStorePacket done [12:12:42]KKMCreateOFDPacket done [12:12:42]NVStorageSaveData kkm_last_timestamp [12:12:42]File name is /storage/kkm_last_timestamp [12:12:42]Write 4 bytes [12:12:42]NVStorageSaveData done [12:12:42]ExternCall_PrintAddStr [12:12:42]wPrintStart [12:12:42]Write to MH i2c: 01 00 00 D4 50 24 [12:12:42]Write i2c OK [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: 01 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: 01 07 00 [12:12:42]MH_I2C_Read... [12:12:42]Read from MH i2c: 01 07 00 D4 50 00 00 00 00 00 FF 0F 39 [12:12:42]RasterBufferAndPrint [12:12:42]line Счет N : (1)319900 [12:12:42]line ИНН: 02508201610067 [12:12:42]line Контрольно-Кассовый Чек [12:12:42]line ПРОДАЖА [12:12:42]line ТРК (МРК, ГНК) : 11 [12:12:42]line Товар: 2710124130 [12:12:42]line Аи-92-К-5 [12:12:42]line 7.540 * 66.40 [12:12:42]line = 500.66 [12:12:42]line НДС 12% НСП 1% [12:12:42]line > о реализуемом товаре [12:12:42]line ОКРУГЛЕНИЕ: -0.66 [12:12:42]line ИТОГО: 500.00 [12:12:42]line Внесено: 500.00 [12:12:42]line СДАЧА: 0.00 [12:12:42]line НСП 1% : 4.43 [12:12:42]line НДС 12% : 53.17 [12:12:42]line Наличными: 500.00 [12:12:42]line Безнал.: 0.00 [12:12:42]line Место: АЗС № 65 "Партнер Нефть" [12:12:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:12:42]line СНО: Общий режим [12:12:42]line Чек 77 19.06.2024 12:13 [12:12:42]line Смена: 388 ФФД: 1.0 [12:12:42]line ЗНМ: 0300000198 [12:12:42]line РНМ: 0000000000092771 [12:12:42]line Версия ККМ: 001 [12:12:42]line ФМ: 0000000000875083 [12:12:42]line ФД: 111328 [12:12:42]line ФПД: 264968514172521 [12:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121313&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111328&fm=264968514172521&tin=02508201610067®Number=0000000000092771&sum=50000 [12:12:43]OFD Sender: Processing packet 111328 [packets to send 38, broken 37] [12:12:43]ProducePacketName [12:12:43]name=ofd_packets/00111328 [12:12:43]OFD Sender: To server: pG, [12:12:43]CommunicateWithHost lk.salyk.kg:30040 [12:12:43]ConnectInit lk.salyk.kg [12:12:43]written 0, free lines is 4095 [12:12:43]Connected sock=10 [12:12:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 5E 07 01 B0 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 59 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E0 B2 01 00 35 04 06 00 F0 FC CA 29 F6 69 0C D0 A9 FE 50 E0 30 60 [12:12:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 08 7E 47 00 FF 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 35 30 38 33 10 04 04 00 E0 B2 01 00 F4 03 04 00 C3 62 72 66 B6 04 01 00 00 7B E7 69 1D 1A 52 35 B6 [12:12:43]CommunicateWithHost err = 0 [12:12:43]CheckOFDResponse [12:12:43]1017 (14) - 77093643461234 [12:12:43]1041 (16) - 0000000000875083 [12:12:43]1040 (4) - 111328 [12:12:43]1012 (4) - 19.06.2024 04:46 [12:12:43]1206 (1) - 0 [12:12:43]OFD Sender: Remove packet 111328 [12:12:43]ProducePacketName [12:12:43]name=ofd_packets/00111328 [12:12:43]NVStorageDeleteData [12:12:43]Write to MH i2c: 01 00 00 FF 50 4F [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 07 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: 01 07 00 FF 50 00 00 00 00 00 D4 0C 36 [12:12:43]RasterBufferAndPrint [12:12:43]line [12:12:43]line [12:12:43]line [12:12:43]line [12:12:43]line [12:12:43]written 0, free lines is 3292 [12:12:43]MH_Cut [12:12:43]Write to MH i2c: D1 01 00 06 51 01 29 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: D1 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: D1 01 00 [12:12:43]MH_I2C_Read... [12:12:43]Read from MH i2c: D1 01 00 06 51 00 28 [12:12:43]Write to MH i2c: 01 00 00 07 51 58 [12:12:43]Write i2c OK [12:12:43]MH_I2C_Read... [12:12:44]OFD Sender: No OFD packet to send [12:12:44]*** Cut start [12:12:44]*** Partial cut [12:12:44]*** CUTSNS_PIN = 1 [12:12:44]*** CUTSNS_PIN = 0 [12:12:44]*** Brake cut motor [12:12:44]Read from MH i2c: 01 [12:12:45]MH_I2C_Read... [12:12:45]*** Stop cut motor [12:12:45]*** Cut end [12:12:45]Read from MH i2c: 01 07 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: 01 07 00 07 51 00 00 00 00 00 FF 0F 6D [12:12:45]process_action close_receipt done [12:12:45]requested_data is exist [12:12:45]produce_requested_data [12:12:45]requested_item fm.sn is exist - process it [12:12:45]wFMCommunicate request_size=4 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 11 00 00 [12:12:45]Write to MH i2c: E2 08 00 08 51 80 11 00 00 00 00 00 00 D3 [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 17 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 17 00 08 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [12:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:12:45]wFMCommunicate OK [12:12:45]requested_item fd.num is exist - process it [12:12:45]SAM_PROTO_GetFieldsCounters [12:12:45]wFMCommunicate request_size=4 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 13 00 00 [12:12:45]Write to MH i2c: E2 08 00 09 51 80 13 00 00 00 00 00 00 D6 [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 62 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 62 00 09 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [12:12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:45]wFMCommunicate OK [12:12:45]SAM_PROTO_GetFieldsCounters done [12:12:45]requested_item shift.num is exist - process it [12:12:45]requested_item shift.opened is exist - process it [12:12:45]req_shift_opened [12:12:45]FM_GetShiftState [12:12:45]SAM_PROTO_GetShiftState [12:12:45]wFMCommunicate request_size=4 [12:12:45]MH_SAM_APDU [12:12:45]CAPDU: 80 13 01 00 [12:12:45]Write to MH i2c: E2 08 00 0A 51 80 13 01 00 00 00 00 00 D8 [12:12:45]Write i2c OK [12:12:45]MH_I2C_Read... [12:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:45]Read from MH i2c: E2 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 0E 00 [12:12:45]MH_I2C_Read... [12:12:45]Read from MH i2c: E2 0E 00 0A 51 00 09 00 01 31 35 72 66 00 00 00 00 90 00 22 [12:12:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:12:45]wFMCommunicate OK [12:12:45]SAM_PROTO_GetShiftState done [12:12:45]FM_GetShiftState done [12:12:45]req_shift_opened done [12:12:45]requested_item shift.open_date is exist - process it [12:12:45]req_shift_open_date [12:12:45]req_shift_open_date done [12:12:45]produce_requested_data done [12:12:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111328,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:12:45]process_action_free close_receipt [12:12:45]json_value_free [12:12:45]json_value_free done [12:12:45]process_json_proto returns [12:12:45]Send response to host [12:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111328,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:12:45]free response buf [12:12:45]execute_script done [12:12:45]execute_script returns [12:12:45]free content buf [12:12:45]Sock 9.Close socket [12:12:45]Sock 9.Thread stoped [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:27]accept exits with 8 [12:14:27]New connection [12:14:27]New thread 3067227492 created [12:14:27]Thread 3067084132 joined [12:14:27]Waiting for new connection... [12:14:27] Sock 8.Parse request [12:14:27]Sock 8.Check first char [12:14:27]Sock 8.First char is OK [12:14:27]request: POST /json_proto HTTP/1.0 [12:14:27]Method: POST [12:14:27]URL: /json_proto [12:14:27]Method is POST - this is cgi request [12:14:27]url: /json_proto [12:14:27]query_string will be loaded in cgi processing [12:14:27]execute_cgi json_proto POST (null) [12:14:27]execute_cgi path=json_proto method=POST [12:14:27]POST find Content-Length [12:14:27]Host: 172.17.59.68:8080 [12:14:27]Content-Length: 677 [12:14:27]Content-Type: application/json [12:14:27] [12:14:27]POST finish read [12:14:27]Found Content-Length = 677 [12:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:27]execute_script... [12:14: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)319901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:27]POST & json_proto [12:14:27]process_json_proto [12:14:27]json parsed OK: [12:14:27]protocol is kg_v1.0 [12:14:27]action value=close_receipt [12:14:27]process_action close_receipt [12:14:27]cmd_close_receipt [12:14:27]MH_GetDate [12:14:27]Write to MH i2c: F0 00 00 0B 51 4B [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: F0 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: F0 09 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: F0 09 00 0B 51 00 C3 CB 72 66 BC EC 60 65 27 [12:14:27]GetLastDocTimeStamp 1718799193 [12:14:27]current date 1718799299 [12:14:27]FM_GetShiftState [12:14:27]SAM_PROTO_GetShiftState [12:14:27]wFMCommunicate request_size=4 [12:14:27]MH_SAM_APDU [12:14:27]CAPDU: 80 13 01 00 [12:14:27]Write to MH i2c: E2 08 00 0C 51 80 13 01 00 00 00 00 00 DA [12:14:27]Write i2c OK [12:14:27]MH_I2C_Read... [12:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:27]Read from MH i2c: E2 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 0E 00 [12:14:27]MH_I2C_Read... [12:14:27]Read from MH i2c: E2 0E 00 0C 51 00 09 00 01 31 35 72 66 00 00 00 00 90 00 24 [12:14:27]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:14:27]wFMCommunicate OK [12:14:27]SAM_PROTO_GetShiftState done [12:14:27]FM_GetShiftState done [12:14:27]opened in 1718760753 [12:14:27]opened+sec_in_day 1718847153 [12:14:27]quantity*price = 33532 [12:14:27]sum+1 = 33533 [12:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 335.00 Внесено: 335.00 СДАЧА: 0.00 НСП 1% : 2.97 НДС 12% : 35.61 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 78 19.06.2024 12:14 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111329 ФПД: 133705406898693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121459&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111329&fm=133705406898693&tin=02508201610067®Number=0000000000092771&sum=33500 [12:14:28]StoreToDocumentArchive [12:14:28]shift 388 fd 111329 [12:14:28]save to /storage/0388/doc_00111329 [12:14:28]save last doc name /storage/0388/doc_00111329 to /storage/kkm_last_doc_name [12:14:28]save OK [12:14:28]Clear old archive folders... [12:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:28]tlvbuf is B6F9B2F0 [12:14:28]SAM_PROTO_ClearQueue [12:14:28]wFMCommunicate request_size=4 [12:14:28]MH_SAM_APDU [12:14:28]CAPDU: 80 09 00 00 [12:14:28]Write to MH i2c: E2 08 00 19 51 80 09 00 00 00 00 00 00 DC [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:28]Read from MH i2c: E2 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 03 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 03 00 19 51 00 90 00 DE [12:14:28]RAPDU: 90 00 [12:14:28]wFMCommunicate OK [12:14:28]SAM_PROTO_ClearQueue done [12:14:28]KKMCreateOFDPacket [12:14:28]OFDProtocolAddRootSTLVToBuf [12:14:28]FM_MakeSignedData [12:14:28]FM_MakeSignedData [12:14:28]SAM_PROTO_SignData [12:14:28]wFMCommunicate request_size=4 [12:14:28]MH_SAM_APDU [12:14:28]CAPDU: 80 0D 01 02 [12:14:28]Write to MH i2c: E2 08 00 1A 51 80 0D 01 02 00 00 00 00 E4 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:28]Read from MH i2c: E2 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 03 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 03 00 1A 51 00 90 00 DF [12:14:28]RAPDU: 90 00 [12:14:28]wFMCommunicate OK [12:14:28]wFMCommunicate request_size=255 [12:14:28]MH_SAM_APDU [12:14: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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 C3 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B2 01 00 35 04 06 00 79 [12:14:28]Write to MH i2c: E2 02 01 1B 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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 C3 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B2 01 00 35 04 06 00 79 00 00 64 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:28]Read from MH i2c: E2 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 03 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 03 00 1B 51 00 90 00 E0 [12:14:28]RAPDU: 90 00 [12:14:28]wFMCommunicate OK [12:14:28]wFMCommunicate request_size=10 [12:14:28]MH_SAM_APDU [12:14:28]CAPDU: 80 0D 02 02 05 9A B7 48 62 05 [12:14:28]Write to MH i2c: E2 0D 00 1C 51 80 0D 02 02 05 00 9A B7 48 62 05 00 00 F1 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:28]Read from MH i2c: E2 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 03 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 03 00 1C 51 00 90 00 E1 [12:14:28]RAPDU: 90 00 [12:14:28]wFMCommunicate OK [12:14:28]wFMCommunicate request_size=4 [12:14:28]MH_SAM_APDU [12:14:28]CAPDU: 80 0D 03 02 [12:14:28]Write to MH i2c: E2 08 00 1D 51 80 0D 03 02 00 00 00 00 E9 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:28]Read from MH i2c: E2 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 0B 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 0B 00 1D 51 00 3E EB C5 DE B3 31 0B 22 90 00 C7 [12:14:28]RAPDU: 3E EB C5 DE B3 31 0B 22 90 00 [12:14:28]wFMCommunicate OK [12:14:28]SAM_PROTO_SignData done [12:14:28]FM_MakeSignedData done [12:14:28]CreateOFDProtocolMessage [12:14:28]wFMCommunicate request_size=4 [12:14:28]MH_SAM_APDU [12:14:28]CAPDU: 80 11 00 00 [12:14:28]Write to MH i2c: E2 08 00 1E 51 80 11 00 00 00 00 00 00 E9 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:28]Read from MH i2c: E2 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 17 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: E2 17 00 1E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [12:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:14:28]wFMCommunicate OK [12:14:28]CreateOFDProtocolMessage done [12:14:28]OFDSenderStorePacket 111329 [12:14:28]StoreOFDPacket docnum=111329 [12:14:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1E EA 07 01 EF 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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 C3 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B2 01 00 35 04 06 00 79 9A B7 48 62 05 3E EB C5 DE B3 31 0B 22 [12:14:28]CheckFolder [12:14:28]dirname=/storage/ofd_packets [12:14:28]CheckFolder done [12:14:28]ProducePacketName [12:14:28]name=ofd_packets/00111329 [12:14:28]NVStorageSaveData ofd_packets/00111329 [12:14:28]File name is /storage/ofd_packets/00111329 [12:14:28]Write 301 bytes [12:14:28]NVStorageSaveData done [12:14:28]OFDSenderStorePacket done [12:14:28]KKMCreateOFDPacket done [12:14:28]NVStorageSaveData kkm_last_timestamp [12:14:28]File name is /storage/kkm_last_timestamp [12:14:28]Write 4 bytes [12:14:28]NVStorageSaveData done [12:14:28]ExternCall_PrintAddStr [12:14:28]wPrintStart [12:14:28]Write to MH i2c: 01 00 00 1F 51 70 [12:14:28]Write i2c OK [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 07 00 [12:14:28]MH_I2C_Read... [12:14:28]Read from MH i2c: 01 07 00 1F 51 00 00 00 00 00 FF 0F 85 [12:14:28]RasterBufferAndPrint [12:14:28]line Счет N : (1)319901 [12:14:28]line ИНН: 02508201610067 [12:14:28]line Контрольно-Кассовый Чек [12:14:28]line ПРОДАЖА [12:14:28]line ТРК (МРК, ГНК) : 11 [12:14:28]line Товар: 2710124130 [12:14:28]line Аи-92-К-5 [12:14:28]line 5.050 * 66.40 [12:14:28]line = 335.32 [12:14:28]line НДС 12% НСП 1% [12:14:28]line > о реализуемом товаре [12:14:28]line ОКРУГЛЕНИЕ: -0.32 [12:14:28]line ИТОГО: 335.00 [12:14:28]line Внесено: 335.00 [12:14:28]line СДАЧА: 0.00 [12:14:28]line НСП 1% : 2.97 [12:14:28]line НДС 12% : 35.61 [12:14:28]line Наличными: 335.00 [12:14:28]line Безнал.: 0.00 [12:14:28]line Место: АЗС № 65 "Партнер Нефть" [12:14:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:14:28]line СНО: Общий режим [12:14:28]line Чек 78 19.06.2024 12:14 [12:14:28]line Смена: 388 ФФД: 1.0 [12:14:28]line ЗНМ: 0300000198 [12:14:28]line РНМ: 0000000000092771 [12:14:28]line Версия ККМ: 001 [12:14:28]line ФМ: 0000000000875083 [12:14:28]line ФД: 111329 [12:14:28]line ФПД: 133705406898693 [12:14:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121459&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111329&fm=133705406898693&tin=02508201610067®Number=0000000000092771&sum=33500 [12:14:29]OFD Sender: Processing packet 111329 [packets to send 38, broken 37] [12:14:29]ProducePacketName [12:14:29]name=ofd_packets/00111329 [12:14:29]OFD Sender: To server: pG, [12:14:29]CommunicateWithHost lk.salyk.kg:30040 [12:14:29]ConnectInit lk.salyk.kg [12:14:29]written 0, free lines is 4095 [12:14:29]Connected sock=10 [12:14:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1E EA 07 01 EF 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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 C3 CB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E1 B2 01 00 35 04 06 00 79 9A B7 48 62 05 3E EB C5 DE B3 31 0B 22 [12:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CC 94 47 00 00 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 35 30 38 33 10 04 04 00 E1 B2 01 00 F4 03 04 00 2D 63 72 66 B6 04 01 00 00 85 3A 0D 2C D5 6A D2 14 [12:14:29]CommunicateWithHost err = 0 [12:14:29]CheckOFDResponse [12:14:29]1017 (14) - 77093643461234 [12:14:29]1041 (16) - 0000000000875083 [12:14:29]1040 (4) - 111329 [12:14:29]1012 (4) - 19.06.2024 04:48 [12:14:29]1206 (1) - 0 [12:14:29]OFD Sender: Remove packet 111329 [12:14:29]ProducePacketName [12:14:29]name=ofd_packets/00111329 [12:14:29]NVStorageDeleteData [12:14:29]Write to MH i2c: 01 00 00 4A 51 9B [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: 01 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: 01 07 00 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: 01 07 00 4A 51 00 00 00 00 00 E4 0C 92 [12:14:29]RasterBufferAndPrint [12:14:29]line [12:14:29]line [12:14:29]line [12:14:29]line [12:14:29]line [12:14:29]written 0, free lines is 3306 [12:14:29]MH_Cut [12:14:29]Write to MH i2c: D1 01 00 51 51 01 74 [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: D1 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: D1 01 00 [12:14:29]MH_I2C_Read... [12:14:29]Read from MH i2c: D1 01 00 51 51 00 73 [12:14:29]Write to MH i2c: 01 00 00 52 51 A3 [12:14:29]Write i2c OK [12:14:29]MH_I2C_Read... [12:14:30]OFD Sender: No OFD packet to send [12:14:30]*** Cut start [12:14:30]*** Partial cut [12:14:30]*** CUTSNS_PIN = 1 [12:14:30]*** CUTSNS_PIN = 0 [12:14:30]*** Brake cut motor [12:14:31]Read from MH i2c: 01 [12:14:31]MH_I2C_Read... [12:14:31]*** Stop cut motor [12:14:31]*** Cut end [12:14:31]Read from MH i2c: 01 07 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: 01 07 00 52 51 00 00 00 00 00 FF 0F B8 [12:14:31]process_action close_receipt done [12:14:31]requested_data is exist [12:14:31]produce_requested_data [12:14:31]requested_item fm.sn is exist - process it [12:14:31]wFMCommunicate request_size=4 [12:14:31]MH_SAM_APDU [12:14:31]CAPDU: 80 11 00 00 [12:14:31]Write to MH i2c: E2 08 00 53 51 80 11 00 00 00 00 00 00 1E [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:31]Read from MH i2c: E2 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 17 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 17 00 53 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 70 [12:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:14:31]wFMCommunicate OK [12:14:31]requested_item fd.num is exist - process it [12:14:31]SAM_PROTO_GetFieldsCounters [12:14:31]wFMCommunicate request_size=4 [12:14:31]MH_SAM_APDU [12:14:31]CAPDU: 80 13 00 00 [12:14:31]Write to MH i2c: E2 08 00 54 51 80 13 00 00 00 00 00 00 21 [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:31]Read from MH i2c: E2 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 62 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 62 00 54 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [12:14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:31]wFMCommunicate OK [12:14:31]SAM_PROTO_GetFieldsCounters done [12:14:31]requested_item shift.num is exist - process it [12:14:31]requested_item shift.opened is exist - process it [12:14:31]req_shift_opened [12:14:31]FM_GetShiftState [12:14:31]SAM_PROTO_GetShiftState [12:14:31]wFMCommunicate request_size=4 [12:14:31]MH_SAM_APDU [12:14:31]CAPDU: 80 13 01 00 [12:14:31]Write to MH i2c: E2 08 00 55 51 80 13 01 00 00 00 00 00 23 [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:31]Read from MH i2c: E2 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 0E 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 0E 00 55 51 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6D [12:14:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:14:31]wFMCommunicate OK [12:14:31]SAM_PROTO_GetShiftState done [12:14:31]FM_GetShiftState done [12:14:31]req_shift_opened done [12:14:31]requested_item shift.open_date is exist - process it [12:14:31]req_shift_open_date [12:14:31]req_shift_open_date done [12:14:31]produce_requested_data done [12:14:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111329,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:14:31]process_action_free close_receipt [12:14:31]json_value_free [12:14:31]json_value_free done [12:14:31]process_json_proto returns [12:14:31]Send response to host [12:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111329,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:14:31]free response buf [12:14:31]execute_script done [12:14:31]execute_script returns [12:14:31]free content buf [12:14:31]Sock 8.Close socket [12:14:31]Sock 8.Thread stoped [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:47]accept exits with 9 [12:15:47]New connection [12:15:47]New thread 3067084132 created [12:15:47]Thread 3067227492 joined [12:15:47]Waiting for new connection... [12:15:47] Sock 9.Parse request [12:15:47]Sock 9.Check first char [12:15:47]Sock 9.First char is OK [12:15:47]request: POST /json_proto HTTP/1.0 [12:15:47]Method: POST [12:15:47]URL: /json_proto [12:15:47]Method is POST - this is cgi request [12:15:47]url: /json_proto [12:15:47]query_string will be loaded in cgi processing [12:15:47]execute_cgi json_proto POST (null) [12:15:47]execute_cgi path=json_proto method=POST [12:15:47]POST find Content-Length [12:15:47]Host: 172.17.59.68:8080 [12:15:47]Content-Length: 678 [12:15:47]Content-Type: application/json [12:15:47] [12:15:47]POST finish read [12:15:47]Found Content-Length = 678 [12:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "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:15:47]execute_script... [12:15: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)319902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.560, "sum" : 900.38, "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:15:47]POST & json_proto [12:15:47]process_json_proto [12:15:47]json parsed OK: [12:15:47]protocol is kg_v1.0 [12:15:47]action value=close_receipt [12:15:47]process_action close_receipt [12:15:47]cmd_close_receipt [12:15:47]MH_GetDate [12:15:47]Write to MH i2c: F0 00 00 56 51 96 [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 09 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 09 00 56 51 00 14 CC 72 66 BC EC 60 65 C4 [12:15:47]GetLastDocTimeStamp 1718799299 [12:15:47]current date 1718799380 [12:15:47]FM_GetShiftState [12:15:47]SAM_PROTO_GetShiftState [12:15:47]wFMCommunicate request_size=4 [12:15:47]MH_SAM_APDU [12:15:47]CAPDU: 80 13 01 00 [12:15:47]Write to MH i2c: E2 08 00 57 51 80 13 01 00 00 00 00 00 25 [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:47]Read from MH i2c: E2 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: E2 0E 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: E2 0E 00 57 51 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6F [12:15:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:15:47]wFMCommunicate OK [12:15:47]SAM_PROTO_GetShiftState done [12:15:47]FM_GetShiftState done [12:15:47]opened in 1718760753 [12:15:47]opened+sec_in_day 1718847153 [12:15:47]quantity*price = 90038 [12:15:47]sum+1 = 90039 [12:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 79 19.06.2024 12:16 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111330 ФПД: 123231497654751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121620&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111330&fm=123231497654751&tin=02508201610067®Number=0000000000092771&sum=90000 [12:15:49]StoreToDocumentArchive [12:15:49]shift 388 fd 111330 [12:15:49]save to /storage/0388/doc_00111330 [12:15:49]save last doc name /storage/0388/doc_00111330 to /storage/kkm_last_doc_name [12:15:49]save OK [12:15:49]Clear old archive folders... [12:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:49]tlvbuf is 0198E4A0 [12:15:49]SAM_PROTO_ClearQueue [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 09 00 00 [12:15:49]Write to MH i2c: E2 08 00 64 51 80 09 00 00 00 00 00 00 27 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 64 51 00 90 00 29 [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_ClearQueue done [12:15:49]KKMCreateOFDPacket [12:15:49]OFDProtocolAddRootSTLVToBuf [12:15:49]FM_MakeSignedData [12:15:49]FM_MakeSignedData [12:15:49]SAM_PROTO_SignData [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 01 02 [12:15:49]Write to MH i2c: E2 08 00 65 51 80 0D 01 02 00 00 00 00 2F [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 65 51 00 90 00 2A [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=255 [12:15:49]MH_SAM_APDU [12: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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 4F 00 00 00 F4 03 04 00 14 CC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B2 01 00 35 04 06 00 70 [12:15:49]Write to MH i2c: E2 02 01 66 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 4F 00 00 00 F4 03 04 00 14 CC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B2 01 00 35 04 06 00 70 00 00 94 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 66 51 00 90 00 2B [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=10 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 02 02 05 14 11 A4 91 DF [12:15:49]Write to MH i2c: E2 0D 00 67 51 80 0D 02 02 05 00 14 11 A4 91 DF 00 00 75 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 67 51 00 90 00 2C [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 03 02 [12:15:49]Write to MH i2c: E2 08 00 68 51 80 0D 03 02 00 00 00 00 34 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0B 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0B 00 68 51 00 21 62 89 B4 D4 FB 12 58 90 00 2E [12:15:49]RAPDU: 21 62 89 B4 D4 FB 12 58 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_SignData done [12:15:49]FM_MakeSignedData done [12:15:49]CreateOFDProtocolMessage [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 11 00 00 [12:15:49]Write to MH i2c: E2 08 00 69 51 80 11 00 00 00 00 00 00 34 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 69 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 86 [12:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:15:49]wFMCommunicate OK [12:15:49]CreateOFDProtocolMessage done [12:15:49]OFDSenderStorePacket 111330 [12:15:49]StoreOFDPacket docnum=111330 [12:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2B 9D 07 01 87 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 4F 00 00 00 F4 03 04 00 14 CC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B2 01 00 35 04 06 00 70 14 11 A4 91 DF 21 62 89 B4 D4 FB 12 58 [12:15:49]CheckFolder [12:15:49]dirname=/storage/ofd_packets [12:15:49]CheckFolder done [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00111330 [12:15:49]NVStorageSaveData ofd_packets/00111330 [12:15:49]File name is /storage/ofd_packets/00111330 [12:15:49]Write 301 bytes [12:15:49]NVStorageSaveData done [12:15:49]OFDSenderStorePacket done [12:15:49]KKMCreateOFDPacket done [12:15:49]NVStorageSaveData kkm_last_timestamp [12:15:49]File name is /storage/kkm_last_timestamp [12:15:49]Write 4 bytes [12:15:49]NVStorageSaveData done [12:15:49]ExternCall_PrintAddStr [12:15:49]wPrintStart [12:15:49]Write to MH i2c: 01 00 00 6A 51 BB [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 6A 51 00 00 00 00 00 FF 0F D0 [12:15:49]RasterBufferAndPrint [12:15:49]line Счет N : (1)319902 [12:15:49]line ИНН: 02508201610067 [12:15:49]line Контрольно-Кассовый Чек [12:15:49]line ПРОДАЖА [12:15:49]line ТРК (МРК, ГНК) : 11 [12:15:49]line Товар: 2710124130 [12:15:49]line Аи-92-К-5 [12:15:49]line 13.560 * 66.40 [12:15:49]line = 900.38 [12:15:49]line НДС 12% НСП 1% [12:15:49]line > о реализуемом товаре [12:15:49]line ОКРУГЛЕНИЕ: -0.38 [12:15:49]line ИТОГО: 900.00 [12:15:49]line Внесено: 900.00 [12:15:49]line СДАЧА: 0.00 [12:15:49]line НСП 1% : 7.97 [12:15:49]line НДС 12% : 95.62 [12:15:49]line Наличными: 900.00 [12:15:49]line Безнал.: 0.00 [12:15:49]line Место: АЗС № 65 "Партнер Нефть" [12:15:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:15:49]line СНО: Общий режим [12:15:49]line Чек 79 19.06.2024 12:16 [12:15:49]line Смена: 388 ФФД: 1.0 [12:15:49]line ЗНМ: 0300000198 [12:15:49]line РНМ: 0000000000092771 [12:15:49]line Версия ККМ: 001 [12:15:49]line ФМ: 0000000000875083 [12:15:49]line ФД: 111330 [12:15:49]line ФПД: 123231497654751 [12:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T121620&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111330&fm=123231497654751&tin=02508201610067®Number=0000000000092771&sum=90000 [12:15:49]OFD Sender: Processing packet 111330 [packets to send 38, broken 37] [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00111330 [12:15:49]OFD Sender: To server: pG, [12:15:49]CommunicateWithHost lk.salyk.kg:30040 [12:15:49]ConnectInit lk.salyk.kg [12:15:49]written 0, free lines is 4095 [12:15:49]Connected sock=10 [12:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2B 9D 07 01 87 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 F8 34 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B6 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 4F 00 00 00 F4 03 04 00 14 CC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E2 B2 01 00 35 04 06 00 70 14 11 A4 91 DF 21 62 89 B4 D4 FB 12 58 [12:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 80 11 47 00 9A 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 35 30 38 33 10 04 04 00 E2 B2 01 00 F4 03 04 00 7E 63 72 66 B6 04 01 00 00 17 28 49 C2 07 75 76 E3 [12:15:50]CommunicateWithHost err = 0 [12:15:50]CheckOFDResponse [12:15:50]1017 (14) - 77093643461234 [12:15:50]1041 (16) - 0000000000875083 [12:15:50]1040 (4) - 111330 [12:15:50]1012 (4) - 19.06.2024 04:50 [12:15:50]1206 (1) - 0 [12:15:50]OFD Sender: Remove packet 111330 [12:15:50]ProducePacketName [12:15:50]name=ofd_packets/00111330 [12:15:50]NVStorageDeleteData [12:15:50]Write to MH i2c: 01 00 00 95 51 E6 [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: 01 07 00 95 51 00 00 00 00 00 DE 0C D7 [12:15:50]RasterBufferAndPrint [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]line [12:15:50]written 0, free lines is 3303 [12:15:50]MH_Cut [12:15:50]Write to MH i2c: D1 01 00 9C 51 01 BF [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 01 00 [12:15:50]MH_I2C_Read... [12:15:50]Read from MH i2c: D1 01 00 9C 51 00 BE [12:15:50]Write to MH i2c: 01 00 00 9D 51 EE [12:15:50]Write i2c OK [12:15:50]MH_I2C_Read... [12:15:50]OFD Sender: No OFD packet to send [12:15:51]*** Cut start [12:15:51]*** Partial cut [12:15:51]*** CUTSNS_PIN = 1 [12:15:51]*** CUTSNS_PIN = 0 [12:15:51]*** Brake cut motor [12:15:51]Read from MH i2c: 01 [12:15:51]MH_I2C_Read... [12:15:51]*** Stop cut motor [12:15:51]*** Cut end [12:15:51]Read from MH i2c: 01 07 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 9D 51 00 00 00 00 00 FF 0F 03 [12:15:51]process_action close_receipt done [12:15:51]requested_data is exist [12:15:51]produce_requested_data [12:15:51]requested_item fm.sn is exist - process it [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 11 00 00 [12:15:51]Write to MH i2c: E2 08 00 9E 51 80 11 00 00 00 00 00 00 69 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 9E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BB [12:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:15:51]wFMCommunicate OK [12:15:51]requested_item fd.num is exist - process it [12:15:51]SAM_PROTO_GetFieldsCounters [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 00 00 [12:15:51]Write to MH i2c: E2 08 00 9F 51 80 13 00 00 00 00 00 00 6C [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 62 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 62 00 9F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [12:15: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetFieldsCounters done [12:15:51]requested_item shift.num is exist - process it [12:15:51]requested_item shift.opened is exist - process it [12:15:51]req_shift_opened [12:15:51]FM_GetShiftState [12:15:51]SAM_PROTO_GetShiftState [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 01 00 [12:15:51]Write to MH i2c: E2 08 00 A0 51 80 13 01 00 00 00 00 00 6E [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 A0 51 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B8 [12:15:51]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetShiftState done [12:15:51]FM_GetShiftState done [12:15:51]req_shift_opened done [12:15:51]requested_item shift.open_date is exist - process it [12:15:51]req_shift_open_date [12:15:51]req_shift_open_date done [12:15:51]produce_requested_data done [12:15:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111330,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:15:51]process_action_free close_receipt [12:15:51]json_value_free [12:15:51]json_value_free done [12:15:51]process_json_proto returns [12:15:51]Send response to host [12:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111330,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:15:51]free response buf [12:15:51]execute_script done [12:15:51]execute_script returns [12:15:51]free content buf [12:15:51]Sock 9.Close socket [12:15:51]Sock 9.Thread stoped [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:22:56]accept exits with 8 [12:22:56]New connection [12:22:56]New thread 3067227492 created [12:22:56]Thread 3067084132 joined [12:22:56]Waiting for new connection... [12:22:56] Sock 8.Parse request [12:22:56]Sock 8.Check first char [12:22:56]Sock 8.First char is OK [12:22:56]request: POST /json_proto HTTP/1.0 [12:22:56]Method: POST [12:22:56]URL: /json_proto [12:22:56]Method is POST - this is cgi request [12:22:56]url: /json_proto [12:22:56]query_string will be loaded in cgi processing [12:22:56]execute_cgi json_proto POST (null) [12:22:56]execute_cgi path=json_proto method=POST [12:22:56]POST find Content-Length [12:22:56]Host: 172.17.59.68:8080 [12:22:56]Content-Length: 678 [12:22:56]Content-Type: application/json [12:22:56] [12:22:56]POST finish read [12:22:56]Found Content-Length = 678 [12:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:56]execute_script... [12:22: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)319903", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:56]POST & json_proto [12:22:56]process_json_proto [12:22:56]json parsed OK: [12:22:56]protocol is kg_v1.0 [12:22:56]action value=close_receipt [12:22:56]process_action close_receipt [12:22:56]cmd_close_receipt [12:22:56]MH_GetDate [12:22:56]Write to MH i2c: F0 00 00 A1 51 E1 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: F0 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: F0 09 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: F0 09 00 A1 51 00 C1 CD 72 66 BC EC 60 65 BD [12:22:56]GetLastDocTimeStamp 1718799380 [12:22:56]current date 1718799809 [12:22:56]FM_GetShiftState [12:22:56]SAM_PROTO_GetShiftState [12:22:56]wFMCommunicate request_size=4 [12:22:56]MH_SAM_APDU [12:22:56]CAPDU: 80 13 01 00 [12:22:56]Write to MH i2c: E2 08 00 A2 51 80 13 01 00 00 00 00 00 70 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:56]Read from MH i2c: E2 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 0E 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: E2 0E 00 A2 51 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BA [12:22:56]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:22:56]wFMCommunicate OK [12:22:56]SAM_PROTO_GetShiftState done [12:22:56]FM_GetShiftState done [12:22:56]opened in 1718760753 [12:22:56]opened+sec_in_day 1718847153 [12:22:56]quantity*price = 70052 [12:22:56]sum+1 = 70053 [12:22:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 80 19.06.2024 12:23 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111331 ФПД: 251463471492839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122329&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111331&fm=251463471492839&tin=02508201610067®Number=0000000000092771&sum=70000 [12:22:57]StoreToDocumentArchive [12:22:57]shift 388 fd 111331 [12:22:57]save to /storage/0388/doc_00111331 [12:22:57]save last doc name /storage/0388/doc_00111331 to /storage/kkm_last_doc_name [12:22:57]save OK [12:22:57]Clear old archive folders... [12:22:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:57]tlvbuf is 01A06EC0 [12:22:57]SAM_PROTO_ClearQueue [12:22:57]wFMCommunicate request_size=4 [12:22:57]MH_SAM_APDU [12:22:57]CAPDU: 80 09 00 00 [12:22:57]Write to MH i2c: E2 08 00 AF 51 80 09 00 00 00 00 00 00 72 [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:57]Read from MH i2c: E2 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 03 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 03 00 AF 51 00 90 00 74 [12:22:57]RAPDU: 90 00 [12:22:57]wFMCommunicate OK [12:22:57]SAM_PROTO_ClearQueue done [12:22:57]KKMCreateOFDPacket [12:22:57]OFDProtocolAddRootSTLVToBuf [12:22:57]FM_MakeSignedData [12:22:57]FM_MakeSignedData [12:22:57]SAM_PROTO_SignData [12:22:57]wFMCommunicate request_size=4 [12:22:57]MH_SAM_APDU [12:22:57]CAPDU: 80 0D 01 02 [12:22:57]Write to MH i2c: E2 08 00 B0 51 80 0D 01 02 00 00 00 00 7A [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:57]Read from MH i2c: E2 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 03 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 03 00 B0 51 00 90 00 75 [12:22:57]RAPDU: 90 00 [12:22:57]wFMCommunicate OK [12:22:57]wFMCommunicate request_size=255 [12:22:57]MH_SAM_APDU [12:22: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 50 00 00 00 F4 03 04 00 C1 CD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B2 01 00 35 04 06 00 E4 [12:22:57]Write to MH i2c: E2 02 01 B1 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 50 00 00 00 F4 03 04 00 C1 CD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B2 01 00 35 04 06 00 E4 00 00 F5 [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:57]Read from MH i2c: E2 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 03 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 03 00 B1 51 00 90 00 76 [12:22:57]RAPDU: 90 00 [12:22:57]wFMCommunicate OK [12:22:57]wFMCommunicate request_size=10 [12:22:57]MH_SAM_APDU [12:22:57]CAPDU: 80 0D 02 02 05 B4 66 E4 6E E7 [12:22:57]Write to MH i2c: E2 0D 00 B2 51 80 0D 02 02 05 00 B4 66 E4 6E E7 00 00 DA [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:57]Read from MH i2c: E2 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 03 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 03 00 B2 51 00 90 00 77 [12:22:57]RAPDU: 90 00 [12:22:57]wFMCommunicate OK [12:22:57]wFMCommunicate request_size=4 [12:22:57]MH_SAM_APDU [12:22:57]CAPDU: 80 0D 03 02 [12:22:57]Write to MH i2c: E2 08 00 B3 51 80 0D 03 02 00 00 00 00 7F [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:58]Read from MH i2c: E2 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: E2 0B 00 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: E2 0B 00 B3 51 00 25 73 40 7A 19 9D D4 F2 90 00 4E [12:22:58]RAPDU: 25 73 40 7A 19 9D D4 F2 90 00 [12:22:58]wFMCommunicate OK [12:22:58]SAM_PROTO_SignData done [12:22:58]FM_MakeSignedData done [12:22:58]CreateOFDProtocolMessage [12:22:58]wFMCommunicate request_size=4 [12:22:58]MH_SAM_APDU [12:22:58]CAPDU: 80 11 00 00 [12:22:58]Write to MH i2c: E2 08 00 B4 51 80 11 00 00 00 00 00 00 7F [12:22:58]Write i2c OK [12:22:58]MH_I2C_Read... [12:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:58]Read from MH i2c: E2 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: E2 17 00 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: E2 17 00 B4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D1 [12:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:22:58]wFMCommunicate OK [12:22:58]CreateOFDProtocolMessage done [12:22:58]OFDSenderStorePacket 111331 [12:22:58]StoreOFDPacket docnum=111331 [12:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 48 07 01 FC 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 50 00 00 00 F4 03 04 00 C1 CD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B2 01 00 35 04 06 00 E4 B4 66 E4 6E E7 25 73 40 7A 19 9D D4 F2 [12:22:58]CheckFolder [12:22:58]dirname=/storage/ofd_packets [12:22:58]CheckFolder done [12:22:58]ProducePacketName [12:22:58]name=ofd_packets/00111331 [12:22:58]NVStorageSaveData ofd_packets/00111331 [12:22:58]File name is /storage/ofd_packets/00111331 [12:22:58]Write 301 bytes [12:22:58]NVStorageSaveData done [12:22:58]OFDSenderStorePacket done [12:22:58]KKMCreateOFDPacket done [12:22:58]NVStorageSaveData kkm_last_timestamp [12:22:58]File name is /storage/kkm_last_timestamp [12:22:58]Write 4 bytes [12:22:58]NVStorageSaveData done [12:22:58]ExternCall_PrintAddStr [12:22:58]wPrintStart [12:22:58]Write to MH i2c: 01 00 00 B5 51 06 [12:22:58]Write i2c OK [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: 01 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: 01 07 00 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: 01 07 00 B5 51 00 00 00 00 00 FF 0F 1B [12:22:58]RasterBufferAndPrint [12:22:58]line Счет N : (1)319903 [12:22:58]line ИНН: 02508201610067 [12:22:58]line Контрольно-Кассовый Чек [12:22:58]line ПРОДАЖА [12:22:58]line ТРК (МРК, ГНК) : 11 [12:22:58]line Товар: 2710124130 [12:22:58]line Аи-92-К-5 [12:22:58]line 10.550 * 66.40 [12:22:58]line = 700.52 [12:22:58]line НДС 12% НСП 1% [12:22:58]line > о реализуемом товаре [12:22:58]line ОКРУГЛЕНИЕ: -0.52 [12:22:58]line ИТОГО: 700.00 [12:22:58]line Внесено: 700.00 [12:22:58]line СДАЧА: 0.00 [12:22:58]line НСП 1% : 6.20 [12:22:58]line НДС 12% : 74.39 [12:22:58]line Наличными: 700.00 [12:22:58]line Безнал.: 0.00 [12:22:58]line Место: АЗС № 65 "Партнер Нефть" [12:22:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:22:58]line СНО: Общий режим [12:22:58]line Чек 80 19.06.2024 12:23 [12:22:58]line Смена: 388 ФФД: 1.0 [12:22:58]line ЗНМ: 0300000198 [12:22:58]line РНМ: 0000000000092771 [12:22:58]line Версия ККМ: 001 [12:22:58]line ФМ: 0000000000875083 [12:22:58]line ФД: 111331 [12:22:58]line ФПД: 251463471492839 [12:22:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122329&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111331&fm=251463471492839&tin=02508201610067®Number=0000000000092771&sum=70000 [12:22:58]OFD Sender: Processing packet 111331 [packets to send 38, broken 37] [12:22:58]ProducePacketName [12:22:58]name=ofd_packets/00111331 [12:22:58]OFD Sender: To server: pG, [12:22:58]CommunicateWithHost lk.salyk.kg:30040 [12:22:58]ConnectInit lk.salyk.kg [12:22:58]written 0, free lines is 4095 [12:22:58]Connected sock=10 [12:22:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3B 48 07 01 FC 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 50 00 00 00 F4 03 04 00 C1 CD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E3 B2 01 00 35 04 06 00 E4 B4 66 E4 6E E7 25 73 40 7A 19 9D D4 F2 [12:22:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A9 FB 47 00 66 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 35 30 38 33 10 04 04 00 E3 B2 01 00 F4 03 04 00 2A 65 72 66 B6 04 01 00 00 CD 48 C8 92 A1 6D C8 85 [12:22:58]CommunicateWithHost err = 0 [12:22:58]CheckOFDResponse [12:22:58]1017 (14) - 77093643461234 [12:22:58]1041 (16) - 0000000000875083 [12:22:58]1040 (4) - 111331 [12:22:58]1012 (4) - 19.06.2024 04:57 [12:22:58]1206 (1) - 0 [12:22:58]OFD Sender: Remove packet 111331 [12:22:58]ProducePacketName [12:22:58]name=ofd_packets/00111331 [12:22:58]NVStorageDeleteData [12:22:58]Write to MH i2c: 01 00 00 E0 51 31 [12:22:58]Write i2c OK [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: 01 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: 01 07 00 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: 01 07 00 E0 51 00 00 00 00 00 D6 0C 1A [12:22:58]RasterBufferAndPrint [12:22:58]line [12:22:58]line [12:22:58]line [12:22:58]line [12:22:58]line [12:22:58]written 0, free lines is 3289 [12:22:58]MH_Cut [12:22:58]Write to MH i2c: D1 01 00 E7 51 01 0A [12:22:58]Write i2c OK [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: D1 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: D1 01 00 [12:22:58]MH_I2C_Read... [12:22:58]Read from MH i2c: D1 01 00 E7 51 00 09 [12:22:58]Write to MH i2c: 01 00 00 E8 51 39 [12:22:58]Write i2c OK [12:22:58]MH_I2C_Read... [12:22:59]OFD Sender: No OFD packet to send [12:22:59]*** Cut start [12:22:59]*** Partial cut [12:22:59]*** CUTSNS_PIN = 1 [12:22:59]*** CUTSNS_PIN = 0 [12:22:59]*** Brake cut motor [12:23:00]Read from MH i2c: 01 [12:23:00]MH_I2C_Read... [12:23:00]*** Stop cut motor [12:23:00]*** Cut end [12:23:00]Read from MH i2c: 01 07 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: 01 07 00 E8 51 00 00 00 00 00 FF 0F 4E [12:23:00]process_action close_receipt done [12:23:00]requested_data is exist [12:23:00]produce_requested_data [12:23:00]requested_item fm.sn is exist - process it [12:23:00]wFMCommunicate request_size=4 [12:23:00]MH_SAM_APDU [12:23:00]CAPDU: 80 11 00 00 [12:23:00]Write to MH i2c: E2 08 00 E9 51 80 11 00 00 00 00 00 00 B4 [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:00]Read from MH i2c: E2 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 17 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 17 00 E9 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 06 [12:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:23:00]wFMCommunicate OK [12:23:00]requested_item fd.num is exist - process it [12:23:00]SAM_PROTO_GetFieldsCounters [12:23:00]wFMCommunicate request_size=4 [12:23:00]MH_SAM_APDU [12:23:00]CAPDU: 80 13 00 00 [12:23:00]Write to MH i2c: E2 08 00 EA 51 80 13 00 00 00 00 00 00 B7 [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:00]Read from MH i2c: E2 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 62 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 62 00 EA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [12:23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:00]wFMCommunicate OK [12:23:00]SAM_PROTO_GetFieldsCounters done [12:23:00]requested_item shift.num is exist - process it [12:23:00]requested_item shift.opened is exist - process it [12:23:00]req_shift_opened [12:23:00]FM_GetShiftState [12:23:00]SAM_PROTO_GetShiftState [12:23:00]wFMCommunicate request_size=4 [12:23:00]MH_SAM_APDU [12:23:00]CAPDU: 80 13 01 00 [12:23:00]Write to MH i2c: E2 08 00 EB 51 80 13 01 00 00 00 00 00 B9 [12:23:00]Write i2c OK [12:23:00]MH_I2C_Read... [12:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:00]Read from MH i2c: E2 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 0E 00 [12:23:00]MH_I2C_Read... [12:23:00]Read from MH i2c: E2 0E 00 EB 51 00 09 00 01 31 35 72 66 00 00 00 00 90 00 03 [12:23:00]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:23:00]wFMCommunicate OK [12:23:00]SAM_PROTO_GetShiftState done [12:23:00]FM_GetShiftState done [12:23:00]req_shift_opened done [12:23:00]requested_item shift.open_date is exist - process it [12:23:00]req_shift_open_date [12:23:00]req_shift_open_date done [12:23:00]produce_requested_data done [12:23:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111331,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:23:00]process_action_free close_receipt [12:23:00]json_value_free [12:23:00]json_value_free done [12:23:00]process_json_proto returns [12:23:00]Send response to host [12:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111331,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:23:00]free response buf [12:23:00]execute_script done [12:23:00]execute_script returns [12:23:00]free content buf [12:23:00]Sock 8.Close socket [12:23:00]Sock 8.Thread stoped [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:48]accept exits with 9 [12:23:48]New connection [12:23:48]New thread 3067084132 created [12:23:48]Thread 3067227492 joined [12:23:48]Waiting for new connection... [12:23:48] Sock 9.Parse request [12:23:48]Sock 9.Check first char [12:23:48]Sock 9.First char is OK [12:23:48]request: POST /json_proto HTTP/1.0 [12:23:48]Method: POST [12:23:48]URL: /json_proto [12:23:48]Method is POST - this is cgi request [12:23:48]url: /json_proto [12:23:48]query_string will be loaded in cgi processing [12:23:48]execute_cgi json_proto POST (null) [12:23:48]execute_cgi path=json_proto method=POST [12:23:48]POST find Content-Length [12:23:48]Host: 172.17.59.68:8080 [12:23:48]Content-Length: 675 [12:23:48]Content-Type: application/json [12:23:48] [12:23:48]POST finish read [12:23:48]Found Content-Length = 675 [12:23:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:48]execute_script... [12:23: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)319904", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:48]POST & json_proto [12:23:48]process_json_proto [12:23:48]json parsed OK: [12:23:48]protocol is kg_v1.0 [12:23:48]action value=close_receipt [12:23:48]process_action close_receipt [12:23:48]cmd_close_receipt [12:23:48]MH_GetDate [12:23:48]Write to MH i2c: F0 00 00 EC 51 2C [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 09 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: F0 09 00 EC 51 00 F4 CD 72 66 BC EC 60 65 3B [12:23:48]GetLastDocTimeStamp 1718799809 [12:23:48]current date 1718799860 [12:23:48]FM_GetShiftState [12:23:48]SAM_PROTO_GetShiftState [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 13 01 00 [12:23:48]Write to MH i2c: E2 08 00 ED 51 80 13 01 00 00 00 00 00 BB [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0E 00 ED 51 00 09 00 01 31 35 72 66 00 00 00 00 90 00 05 [12:23:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:23:48]wFMCommunicate OK [12:23:48]SAM_PROTO_GetShiftState done [12:23:48]FM_GetShiftState done [12:23:48]opened in 1718760753 [12:23:48]opened+sec_in_day 1718847153 [12:23:48]quantity*price = 75014 [12:23:48]sum+1 = 75015 [12:23:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 81 19.06.2024 12:24 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111332 ФПД: 191278062705062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122420&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111332&fm=191278062705062&tin=02508201610067®Number=0000000000092771&sum=75000 [12:23:49]StoreToDocumentArchive [12:23:49]shift 388 fd 111332 [12:23:49]save to /storage/0388/doc_00111332 [12:23:49]save last doc name /storage/0388/doc_00111332 to /storage/kkm_last_doc_name [12:23:49]save OK [12:23:49]Clear old archive folders... [12:23:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:23:49]tlvbuf is 019F6A00 [12:23:49]SAM_PROTO_ClearQueue [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 09 00 00 [12:23:49]Write to MH i2c: E2 08 00 FA 51 80 09 00 00 00 00 00 00 BD [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 FA 51 00 90 00 BF [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]SAM_PROTO_ClearQueue done [12:23:49]KKMCreateOFDPacket [12:23:49]OFDProtocolAddRootSTLVToBuf [12:23:49]FM_MakeSignedData [12:23:49]FM_MakeSignedData [12:23:49]SAM_PROTO_SignData [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 01 02 [12:23:49]Write to MH i2c: E2 08 00 FB 51 80 0D 01 02 00 00 00 00 C5 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 FB 51 00 90 00 C0 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]wFMCommunicate request_size=255 [12:23:49]MH_SAM_APDU [12:23: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 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F4 CD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B2 01 00 35 04 06 00 AD F7 64 FB [12:23:49]Write to MH i2c: E2 02 01 FC 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 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F4 CD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B2 01 00 35 04 06 00 AD F7 64 FB 00 00 58 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 FC 51 00 90 00 C1 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]wFMCommunicate request_size=7 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 02 02 02 19 A6 [12:23:49]Write to MH i2c: E2 0A 00 FD 51 80 0D 02 02 02 00 19 A6 00 00 8B [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 03 00 FD 51 00 90 00 C2 [12:23:49]RAPDU: 90 00 [12:23:49]wFMCommunicate OK [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 0D 03 02 [12:23:49]Write to MH i2c: E2 08 00 FE 51 80 0D 03 02 00 00 00 00 CA [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 0B 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 0B 00 FE 51 00 52 F7 9D 8F 7D 7F 93 8A 90 00 59 [12:23:49]RAPDU: 52 F7 9D 8F 7D 7F 93 8A 90 00 [12:23:49]wFMCommunicate OK [12:23:49]SAM_PROTO_SignData done [12:23:49]FM_MakeSignedData done [12:23:49]CreateOFDProtocolMessage [12:23:49]wFMCommunicate request_size=4 [12:23:49]MH_SAM_APDU [12:23:49]CAPDU: 80 11 00 00 [12:23:49]Write to MH i2c: E2 08 00 FF 51 80 11 00 00 00 00 00 00 CA [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:49]Read from MH i2c: E2 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 17 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: E2 17 00 FF 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [12:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:23:49]wFMCommunicate OK [12:23:49]CreateOFDProtocolMessage done [12:23:49]OFDSenderStorePacket 111332 [12:23:49]StoreOFDPacket docnum=111332 [12:23:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 97 14 04 01 D0 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F4 CD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B2 01 00 35 04 06 00 AD F7 64 FB 19 A6 52 F7 9D 8F 7D 7F 93 8A [12:23:49]CheckFolder [12:23:49]dirname=/storage/ofd_packets [12:23:49]CheckFolder done [12:23:49]ProducePacketName [12:23:49]name=ofd_packets/00111332 [12:23:49]NVStorageSaveData ofd_packets/00111332 [12:23:49]File name is /storage/ofd_packets/00111332 [12:23:49]Write 298 bytes [12:23:49]NVStorageSaveData done [12:23:49]OFDSenderStorePacket done [12:23:49]KKMCreateOFDPacket done [12:23:49]NVStorageSaveData kkm_last_timestamp [12:23:49]File name is /storage/kkm_last_timestamp [12:23:49]Write 4 bytes [12:23:49]NVStorageSaveData done [12:23:49]ExternCall_PrintAddStr [12:23:49]wPrintStart [12:23:49]Write to MH i2c: 01 00 00 00 52 52 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 00 52 00 00 00 00 00 FF 0F 67 [12:23:49]RasterBufferAndPrint [12:23:49]line Счет N : (1)319904 [12:23:49]line ИНН: 02508201610067 [12:23:49]line Контрольно-Кассовый Чек [12:23:49]line ПРОДАЖА [12:23:49]line ТРК (МРК, ГНК) : 22 [12:23:49]line Товар: 2710194210 [12:23:49]line ДТ-К-5 [12:23:49]line 10.290 * 72.90 [12:23:49]line = 750.14 [12:23:49]line НДС 12% НСП 1% [12:23:49]line > о реализуемом товаре [12:23:49]line ОКРУГЛЕНИЕ: -0.14 [12:23:49]line ИТОГО: 750.00 [12:23:49]line Внесено: 750.00 [12:23:49]line СДАЧА: 0.00 [12:23:49]line НСП 1% : 6.64 [12:23:49]line НДС 12% : 79.66 [12:23:49]line Наличными: 750.00 [12:23:49]line Безнал.: 0.00 [12:23:49]line Место: АЗС № 65 "Партнер Нефть" [12:23:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:23:49]line СНО: Общий режим [12:23:49]line Чек 81 19.06.2024 12:24 [12:23:49]line Смена: 388 ФФД: 1.0 [12:23:49]line ЗНМ: 0300000198 [12:23:49]line РНМ: 0000000000092771 [12:23:49]line Версия ККМ: 001 [12:23:49]line ФМ: 0000000000875083 [12:23:49]line ФД: 111332 [12:23:49]line ФПД: 191278062705062 [12:23:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122420&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111332&fm=191278062705062&tin=02508201610067®Number=0000000000092771&sum=75000 [12:23:50]OFD Sender: Processing packet 111332 [packets to send 38, broken 37] [12:23:50]ProducePacketName [12:23:50]name=ofd_packets/00111332 [12:23:50]OFD Sender: To server: pG, [12:23:50]CommunicateWithHost lk.salyk.kg:30040 [12:23:50]ConnectInit lk.salyk.kg [12:23:50]written 0, free lines is 4095 [12:23:50]Connected sock=11 [12:23:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 97 14 04 01 D0 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 F4 CD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B2 01 00 35 04 06 00 AD F7 64 FB 19 A6 52 F7 9D 8F 7D 7F 93 8A [12:23:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A6 3B 47 00 86 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E4 B2 01 00 F4 03 04 00 5E 65 72 66 B6 04 01 00 00 AA 54 43 17 AE 41 6C 09 [12:23:50]CommunicateWithHost err = 0 [12:23:50]CheckOFDResponse [12:23:50]1017 (14) - 77093643461234 [12:23:50]1041 (16) - 0000000000875083 [12:23:50]1040 (4) - 111332 [12:23:50]1012 (4) - 19.06.2024 04:58 [12:23:50]1206 (1) - 0 [12:23:50]OFD Sender: Remove packet 111332 [12:23:50]ProducePacketName [12:23:50]name=ofd_packets/00111332 [12:23:50]NVStorageDeleteData [12:23:50]Write to MH i2c: 01 00 00 2B 52 7D [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 07 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 07 00 2B 52 00 00 00 00 00 D7 0C 67 [12:23:50]RasterBufferAndPrint [12:23:50]line [12:23:50]line [12:23:50]line [12:23:50]line [12:23:50]line [12:23:50]written 0, free lines is 3294 [12:23:50]MH_Cut [12:23:50]Write to MH i2c: D1 01 00 32 52 01 56 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: D1 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: D1 01 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: D1 01 00 32 52 00 55 [12:23:50]Write to MH i2c: 01 00 00 33 52 85 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:51]OFD Sender: No OFD packet to send [12:23:51]*** Cut start [12:23:51]*** Partial cut [12:23:51]*** CUTSNS_PIN = 1 [12:23:51]*** CUTSNS_PIN = 0 [12:23:51]*** Brake cut motor [12:23:52]Read from MH i2c: 01 [12:23:52]MH_I2C_Read... [12:23:52]*** Stop cut motor [12:23:52]*** Cut end [12:23:52]Read from MH i2c: 01 07 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: 01 07 00 33 52 00 00 00 00 00 FF 0F 9A [12:23:52]process_action close_receipt done [12:23:52]requested_data is exist [12:23:52]produce_requested_data [12:23:52]requested_item fm.sn is exist - process it [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 11 00 00 [12:23:52]Write to MH i2c: E2 08 00 34 52 80 11 00 00 00 00 00 00 00 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 17 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 17 00 34 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 52 [12:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:23:52]wFMCommunicate OK [12:23:52]requested_item fd.num is exist - process it [12:23:52]SAM_PROTO_GetFieldsCounters [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 13 00 00 [12:23:52]Write to MH i2c: E2 08 00 35 52 80 13 00 00 00 00 00 00 03 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 62 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 62 00 35 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [12:23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:52]wFMCommunicate OK [12:23:52]SAM_PROTO_GetFieldsCounters done [12:23:52]requested_item shift.num is exist - process it [12:23:52]requested_item shift.opened is exist - process it [12:23:52]req_shift_opened [12:23:52]FM_GetShiftState [12:23:52]SAM_PROTO_GetShiftState [12:23:52]wFMCommunicate request_size=4 [12:23:52]MH_SAM_APDU [12:23:52]CAPDU: 80 13 01 00 [12:23:52]Write to MH i2c: E2 08 00 36 52 80 13 01 00 00 00 00 00 05 [12:23:52]Write i2c OK [12:23:52]MH_I2C_Read... [12:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:52]Read from MH i2c: E2 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 0E 00 [12:23:52]MH_I2C_Read... [12:23:52]Read from MH i2c: E2 0E 00 36 52 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4F [12:23:52]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:23:52]wFMCommunicate OK [12:23:52]SAM_PROTO_GetShiftState done [12:23:52]FM_GetShiftState done [12:23:52]req_shift_opened done [12:23:52]requested_item shift.open_date is exist - process it [12:23:52]req_shift_open_date [12:23:52]req_shift_open_date done [12:23:52]produce_requested_data done [12:23:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111332,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:23:52]process_action_free close_receipt [12:23:52]json_value_free [12:23:52]json_value_free done [12:23:52]process_json_proto returns [12:23:52]Send response to host [12:23:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111332,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:23:52]free response buf [12:23:52]execute_script done [12:23:52]execute_script returns [12:23:52]free content buf [12:23:52]Sock 9.Close socket [12:23:52]Sock 9.Thread stoped [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:19]accept exits with 8 [12:24:19]New connection [12:24:19]New thread 3067227492 created [12:24:19]Thread 3067084132 joined [12:24:19]Waiting for new connection... [12:24:19] Sock 8.Parse request [12:24:19]Sock 8.Check first char [12:24:19]Sock 8.First char is OK [12:24:19]request: POST /json_proto HTTP/1.0 [12:24:19]Method: POST [12:24:19]URL: /json_proto [12:24:19]Method is POST - this is cgi request [12:24:19]url: /json_proto [12:24:19]query_string will be loaded in cgi processing [12:24:19]execute_cgi json_proto POST (null) [12:24:19]execute_cgi path=json_proto method=POST [12:24:19]POST find Content-Length [12:24:19]Host: 172.17.59.68:8080 [12:24:19]Content-Length: 677 [12:24:19]Content-Type: application/json [12:24:19] [12:24:19]POST finish read [12:24:19]Found Content-Length = 677 [12:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:19]execute_script... [12:24:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:19]POST & json_proto [12:24:19]process_json_proto [12:24:19]json parsed OK: [12:24:19]protocol is kg_v1.0 [12:24:19]action value=close_receipt [12:24:19]process_action close_receipt [12:24:19]cmd_close_receipt [12:24:19]MH_GetDate [12:24:19]Write to MH i2c: F0 00 00 37 52 78 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: F0 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: F0 09 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: F0 09 00 37 52 00 14 CE 72 66 BC EC 60 65 A8 [12:24:19]GetLastDocTimeStamp 1718799860 [12:24:19]current date 1718799892 [12:24:19]FM_GetShiftState [12:24:19]SAM_PROTO_GetShiftState [12:24:19]wFMCommunicate request_size=4 [12:24:19]MH_SAM_APDU [12:24:19]CAPDU: 80 13 01 00 [12:24:19]Write to MH i2c: E2 08 00 38 52 80 13 01 00 00 00 00 00 07 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:19]Read from MH i2c: E2 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0E 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: E2 0E 00 38 52 00 09 00 01 31 35 72 66 00 00 00 00 90 00 51 [12:24:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:24:19]wFMCommunicate OK [12:24:19]SAM_PROTO_GetShiftState done [12:24:19]FM_GetShiftState done [12:24:19]opened in 1718760753 [12:24:19]opened+sec_in_day 1718847153 [12:24:19]quantity*price = 50065 [12:24:19]sum+1 = 50067 [12:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 82 19.06.2024 12:24 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111333 ФПД: 163347007187457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122452&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111333&fm=163347007187457&tin=02508201610067®Number=0000000000092771&sum=50000 [12:24:20]StoreToDocumentArchive [12:24:20]shift 388 fd 111333 [12:24:20]save to /storage/0388/doc_00111333 [12:24:20]save last doc name /storage/0388/doc_00111333 to /storage/kkm_last_doc_name [12:24:20]save OK [12:24:20]Clear old archive folders... [12:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:20]tlvbuf is 019D7490 [12:24:20]SAM_PROTO_ClearQueue [12:24:20]wFMCommunicate request_size=4 [12:24:20]MH_SAM_APDU [12:24:20]CAPDU: 80 09 00 00 [12:24:20]Write to MH i2c: E2 08 00 45 52 80 09 00 00 00 00 00 00 09 [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 45 52 00 90 00 0B [12:24:21]RAPDU: 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_ClearQueue done [12:24:21]KKMCreateOFDPacket [12:24:21]OFDProtocolAddRootSTLVToBuf [12:24:21]FM_MakeSignedData [12:24:21]FM_MakeSignedData [12:24:21]SAM_PROTO_SignData [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 0D 01 02 [12:24:21]Write to MH i2c: E2 08 00 46 52 80 0D 01 02 00 00 00 00 11 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 46 52 00 90 00 0C [12:24:21]RAPDU: 90 00 [12:24:21]wFMCommunicate OK [12:24:21]wFMCommunicate request_size=255 [12:24:21]MH_SAM_APDU [12:24: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 14 CE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B2 01 00 35 04 06 00 94 [12:24:21]Write to MH i2c: E2 02 01 47 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 14 CE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B2 01 00 35 04 06 00 94 00 00 82 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]OFD Sender: No OFD packet to send [12:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 47 52 00 90 00 0D [12:24:21]RAPDU: 90 00 [12:24:21]wFMCommunicate OK [12:24:21]wFMCommunicate request_size=10 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 0D 02 02 05 90 30 56 AA 01 [12:24:21]Write to MH i2c: E2 0D 00 48 52 80 0D 02 02 05 00 90 30 56 AA 01 00 00 DF [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 48 52 00 90 00 0E [12:24:21]RAPDU: 90 00 [12:24:21]wFMCommunicate OK [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 0D 03 02 [12:24:21]Write to MH i2c: E2 08 00 49 52 80 0D 03 02 00 00 00 00 16 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0B 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0B 00 49 52 00 3A 10 01 BD 62 96 68 63 90 00 E2 [12:24:21]RAPDU: 3A 10 01 BD 62 96 68 63 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_SignData done [12:24:21]FM_MakeSignedData done [12:24:21]CreateOFDProtocolMessage [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 11 00 00 [12:24:21]Write to MH i2c: E2 08 00 4A 52 80 11 00 00 00 00 00 00 16 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 4A 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 68 [12:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:24:21]wFMCommunicate OK [12:24:21]CreateOFDProtocolMessage done [12:24:21]OFDSenderStorePacket 111333 [12:24:21]StoreOFDPacket docnum=111333 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 E4 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057253F (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 17949232+1700850876=1718800108 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 3F FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 E5 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 ED CE 72 66 BC EC 60 65 FF [12:28:29]Current date/time: 19.06.2024 12:28 [12:28:29]FM_Init [12:28:29]wFMConnect [12:28:29]MH_SAM_On [12:28:29]Write to MH i2c: E0 00 00 08 00 E7 [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]*** iso7816_init finished! [12:28:29]*** atr: [12:28:29]*** 0F 3B D5 18 FF 81 91 FE [12:28:29]*** 1F C3 80 73 C8 21 10 0A [12:28:29]*** 00 00 00 00 00 00 00 00 [12:28:29]*** 00 00 00 00 00 00 00 00 [12:28:29]*** 00 00 00 00 00 00 00 00 [12:28:29]*** 00 00 00 00 00 00 00 00 [12:28:29]*** 00 00 00 00 00 00 00 00 [12:28:29]*** 00 00 00 00 00 00 00 00 [12:28:29]Read from MH i2c: E0 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E0 10 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:28:29]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:28:29]wFMCommunicate request_size=10 [12:28:29]MH_SAM_APDU [12:28:29]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:28:29]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:28:29]Read from MH i2c: E2 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 03 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:28:29]RAPDU: 90 00 [12:28:29]wFMCommunicate OK [12:28:29]wFMCommunicate request_size=4 [12:28:29]MH_SAM_APDU [12:28:29]CAPDU: 80 11 00 00 [12:28:29]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:29]Read from MH i2c: E2 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 17 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [12:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:28:29]wFMCommunicate OK [12:28:29]Detected FM SN is 0000000000875083 [12:28:29]Stored FM SN is 0000000000875083 [12:28:29]wFMCommunicate request_size=9 [12:28:29]MH_SAM_APDU [12:28:29]CAPDU: 80 16 00 00 04 46 5F 00 00 [12:28:29]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 46 5F 00 00 00 00 37 [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:28:29]Read from MH i2c: E2 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 03 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:28:29]RAPDU: 90 00 [12:28:29]wFMCommunicate OK [12:28:29]FM PIN OK [12:28:29]wFMCommunicate request_size=8 [12:28:29]MH_SAM_APDU [12:28:29]CAPDU: 80 14 04 00 03 02 00 01 [12:28:29]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:28:29]Read from MH i2c: E2 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 03 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:28:29]RAPDU: 90 00 [12:28:29]wFMCommunicate OK [12:28:29]wFMCommunicate request_size=13 [12:28:29]MH_SAM_APDU [12:28:29]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:28:29]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:28:29]Read from MH i2c: E2 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 03 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:28:29]RAPDU: 90 00 [12:28:29]wFMCommunicate OK [12:28:29]wFMCommunicate request_size=4 [12:28:29]MH_SAM_APDU [12:28:29]CAPDU: 80 11 00 00 [12:28:29]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:29]Read from MH i2c: E2 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 17 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [12:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:28:29]wFMCommunicate OK [12:28:29]DocumentArchiveInit [12:28:29]Start Httpd... [12:28:29]Httpd thread 3067751780 created [12:28:29]Write to MH i2c: 01 00 00 0F 00 0F [12:28:29]Write i2c OK [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: 01 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: 01 07 00 [12:28:29]MH_I2C_Read... [12:28:29]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:28:29]MH Int Process started [12:28:29]Allocated Socket 8 [12:28:29]Bind OK [12:28:29]Listen OK [12:28:29]httpd running on port 8080 [12:28:29]Waiting for new connection... [12:28:29]OFD Sender: Processing packet 111333 [packets to send 38, broken 37] [12:28:29]ProducePacketName [12:28:29]name=ofd_packets/00111333 [12:28:29]OFD Sender: To server: pG, [12:28:29]CommunicateWithHost lk.salyk.kg:30040 [12:28:29]ConnectInit lk.salyk.kg [12:28:29]Connected sock=5 [12:28:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 37 07 01 0F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 14 CE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E5 B2 01 00 35 04 06 00 94 90 30 56 AA 01 3A 10 01 BD 62 96 68 63 [12:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AF 68 47 00 98 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 35 30 38 33 10 04 04 00 E5 B2 01 00 F4 03 04 00 55 66 72 66 B6 04 01 00 00 47 07 6E ED 72 4F 9B C9 [12:28:29]CommunicateWithHost err = 0 [12:28:29]CheckOFDResponse [12:28:29]1017 (14) - 77093643461234 [12:28:29]1041 (16) - 0000000000875083 [12:28:29]1040 (4) - 111333 [12:28:29]1012 (4) - 19.06.2024 05:02 [12:28:29]1206 (1) - 0 [12:28:29]OFD Sender: Remove packet 111333 [12:28:29]ProducePacketName [12:28:29]name=ofd_packets/00111333 [12:28:29]NVStorageDeleteData [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:38]accept exits with 9 [12:28:38]New connection [12:28:38]New thread 3067465060 created [12:28:38]Waiting for new connection... [12:28:38] Sock 9.Parse request [12:28:38]Sock 9.Check first char [12:28:38]Sock 9.First char is OK [12:28:38]request: POST /json_proto HTTP/1.0 [12:28:38]Method: POST [12:28:38]URL: /json_proto [12:28:38]Method is POST - this is cgi request [12:28:38]url: /json_proto [12:28:38]query_string will be loaded in cgi processing [12:28:38]execute_cgi json_proto POST (null) [12:28:38]execute_cgi path=json_proto method=POST [12:28:38]POST find Content-Length [12:28:38]Host: 172.17.59.68:8080 [12:28:38]Content-Length: 215 [12:28:38]Content-Type: application/json [12:28:38] [12:28:38]POST finish read [12:28:38]Found Content-Length = 215 [12:28:38]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" ] } } [12:28:38]execute_script... [12:28:38]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" ] } } [12:28:38]POST & json_proto [12:28:38]process_json_proto [12:28:38]json parsed OK: [12:28:38]protocol is kg_v1.0 [12:28:38]action value=get_value [12:28:38]process_action get_value [12:28:38]cmd_get_value [12:28:38]process_action get_value done [12:28:38]requested_data is exist [12:28:38]produce_requested_data [12:28:38]requested_item kkm.sn is exist - process it [12:28:38]requested_item kkm.ver is exist - process it [12:28:38]requested_item fm.sn is exist - process it [12:28:38]wFMCommunicate request_size=4 [12:28:38]MH_SAM_APDU [12:28:38]CAPDU: 80 11 00 00 [12:28:38]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:38]Read from MH i2c: E2 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 17 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [12:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:28:38]wFMCommunicate OK [12:28:38]requested_item fd.num is exist - process it [12:28:38]SAM_PROTO_GetFieldsCounters [12:28:38]wFMCommunicate request_size=4 [12:28:38]MH_SAM_APDU [12:28:38]CAPDU: 80 13 00 00 [12:28:38]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:38]Read from MH i2c: E2 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 62 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [12:28: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:38]wFMCommunicate OK [12:28:38]SAM_PROTO_GetFieldsCounters done [12:28:38]requested_item shift.num is exist - process it [12:28:38]requested_item shift.opened is exist - process it [12:28:38]req_shift_opened [12:28:38]FM_GetShiftState [12:28:38]SAM_PROTO_GetShiftState [12:28:38]wFMCommunicate request_size=4 [12:28:38]MH_SAM_APDU [12:28:38]CAPDU: 80 13 01 00 [12:28:38]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:38]Read from MH i2c: E2 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 0E 00 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D9 [12:28:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:28:38]wFMCommunicate OK [12:28:38]SAM_PROTO_GetShiftState done [12:28:38]FM_GetShiftState done [12:28:38]req_shift_opened done [12:28:38]requested_item shift.open_date is exist - process it [12:28:38]req_shift_open_date [12:28:38]req_shift_open_date done [12:28:38]produce_requested_data done [12:28:38]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111333,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:28:38]process_action_free get_value [12:28:38]json_value_free [12:28:38]json_value_free done [12:28:38]process_json_proto returns [12:28:38]Send response to host [12:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111333,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:28:38]free response buf [12:28:38]execute_script done [12:28:38]execute_script returns [12:28:38]free content buf [12:28:38]Sock 9.Close socket [12:28:38]Sock 9.Thread stoped [12:28:38]accept exits with 7 [12:28:38]New connection [12:28:38]New thread 3067321700 created [12:28:38]Thread 3067465060 joined [12:28:38]Waiting for new connection... [12:28:38] Sock 7.Parse request [12:28:38]Sock 7.Check first char [12:28:38]Sock 7.First char is OK [12:28:38]request: POST /json_proto HTTP/1.0 [12:28:38]Method: POST [12:28:38]URL: /json_proto [12:28:38]Method is POST - this is cgi request [12:28:38]url: /json_proto [12:28:38]query_string will be loaded in cgi processing [12:28:38]execute_cgi json_proto POST (null) [12:28:38]execute_cgi path=json_proto method=POST [12:28:38]POST find Content-Length [12:28:38]Host: 172.17.59.68:8080 [12:28:38]Content-Length: 331 [12:28:38]Content-Type: application/json [12:28:38] [12:28:38]POST finish read [12:28:38]Found Content-Length = 331 [12:28:38]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" ] } } [12:28:38]execute_script... [12:28:38]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" ] } } [12:28:38]POST & json_proto [12:28:38]process_json_proto [12:28:38]json parsed OK: [12:28:38]protocol is kg_v1.0 [12:28:38]action value=get_value [12:28:38]process_action get_value [12:28:38]cmd_get_value [12:28:38]process_action get_value done [12:28:38]requested_data is exist [12:28:38]produce_requested_data [12:28:38]requested_item fm.sale.total is exist - process it [12:28:38]SAM_PROTO_GetFMData [12:28:38]wFMCommunicate request_size=4 [12:28:38]MH_SAM_APDU [12:28:38]CAPDU: 80 13 03 00 [12:28:38]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:28:38]Write i2c OK [12:28:38]MH_I2C_Read... [12:28:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:28:38]Read from MH i2c: E2 [12:28:38]MH_I2C_Read... [12:28:38]Read from MH i2c: E2 FD 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 FD 00 13 00 00 BD 04 85 04 B9 04 6E 04 04 00 DE AF 01 00 69 04 A3 00 6F 04 04 00 DC AF 01 00 B1 04 05 00 94 6A DF F2 01 70 04 05 00 FC 7A AA E1 01 72 04 04 00 98 EF 34 11 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 E4 18 FF 34 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 09 76 6A 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 66 [12:28:39]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 DE AF 01 00 69 04 A3 00 6F 04 04 00 DC AF 01 00 B1 04 05 00 94 6A DF F2 01 70 04 05 00 FC 7A AA E1 01 72 04 04 00 98 EF 34 11 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 E4 18 FF 34 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 09 76 6A 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [12:28:39]wFMCommunicate OK [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 17 00 00 [12:28:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:28:39]Read from MH i2c: E2 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 FD 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 FD 00 14 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E8 [12:28:39]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:28:39]wFMCommunicate OK [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 17 00 00 [12:28:39]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:28:39]Read from MH i2c: E2 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 FD 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 C7 [12:28:39]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [12:28:39]wFMCommunicate OK [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 17 00 00 [12:28:39]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:28:39]Read from MH i2c: E2 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 FD 00 [12:28:39]MH_I2C_Read... [12:28:39]Read from MH i2c: E2 FD 00 16 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 0D [12:28:39]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [12:28:39]wFMCommunicate OK [12:28:39]wFMCommunicate request_size=4 [12:28:39]MH_SAM_APDU [12:28:39]CAPDU: 80 17 00 00 [12:28:39]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:28:39]Write i2c OK [12:28:39]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 DA 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 DA 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [12:28:40]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:28:40]wFMCommunicate OK [12:28:40]SAM_PROTO_GetFMData done [12:28:40]requested_item fm.sale_refund.total is exist - process it [12:28:40]requested_item fm.buy.total is exist - process it [12:28:40]requested_item shift.sale.total is exist - process it [12:28:40]SAM_PROTO_GetShiftData [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 13 02 00 [12:28:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]OFD Sender: No OFD packet to send [12:28:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 FD 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 52 00 00 00 69 04 9B 00 6F 04 04 00 52 00 00 00 B1 04 03 00 C1 D2 55 70 04 03 00 BC F0 4D 72 04 03 00 05 E2 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6F 1E 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 80 C2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A2 [12:28:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 52 00 00 00 69 04 9B 00 6F 04 04 00 52 00 00 00 B1 04 03 00 C1 D2 55 70 04 03 00 BC F0 4D 72 04 03 00 05 E2 07 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6F 1E 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 80 C2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:28:40]wFMCommunicate OK [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 17 00 00 [12:28:40]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:28:40]Read from MH i2c: E2 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 FD 00 [12:28:40]MH_I2C_Read... [12:28:40]Read from MH i2c: E2 FD 00 19 00 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 BB [12:28:40]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 [12:28:40]wFMCommunicate OK [12:28:40]wFMCommunicate request_size=4 [12:28:40]MH_SAM_APDU [12:28:40]CAPDU: 80 17 00 00 [12:28:40]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:28:40]Write i2c OK [12:28:40]MH_I2C_Read... [12:28:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:28:41]Read from MH i2c: E2 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 FD 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [12:28:41]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 [12:28:41]wFMCommunicate OK [12:28:41]wFMCommunicate request_size=4 [12:28:41]MH_SAM_APDU [12:28:41]CAPDU: 80 17 00 00 [12:28:41]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:28:41]Read from MH i2c: E2 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 FD 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 FD 00 1B 00 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 0D [12:28:41]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 [12:28:41]wFMCommunicate OK [12:28:41]wFMCommunicate request_size=4 [12:28:41]MH_SAM_APDU [12:28:41]CAPDU: 80 17 00 00 [12:28:41]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:28:41]Write i2c OK [12:28:41]MH_I2C_Read... [12:28:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:28:41]Read from MH i2c: E2 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 CB 00 [12:28:41]MH_I2C_Read... [12:28:41]Read from MH i2c: E2 CB 00 1C 00 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 85 [12:28:41]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 [12:28:41]wFMCommunicate OK [12:28:41]SAM_PROTO_GetShiftData done [12:28:41]requested_item shift.sale.total_cash is exist - process it [12:28:41]requested_item shift.sale_refund.total is exist - process it [12:28:41]requested_item shift.sale_refund.total_cash is exist - process it [12:28:41]requested_item shift.buy.total is exist - process it [12:28:41]requested_item shift.buy.total_cash is exist - process it [12:28:41]produce_requested_data done [12:28:41]produce_requested_data return {"fm.sale.total":83696953.80,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":56245.13,"shift.sale.total_cash":51079.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} [12:28:41]process_action_free get_value [12:28:41]json_value_free [12:28:41]json_value_free done [12:28:41]process_json_proto returns [12:28:41]Send response to host [12:28:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83696953.80,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":56245.13,"shift.sale.total_cash":51079.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}}} [12:28:41]free response buf [12:28:41]execute_script done [12:28:41]execute_script returns [12:28:41]free content buf [12:28:41]Sock 7.Close socket [12:28:41]Sock 7.Thread stoped [12:28:42]accept exits with 9 [12:28:42]New connection [12:28:42]New thread 3067465060 created [12:28:42]Thread 3067321700 joined [12:28:42]Waiting for new connection... [12:28:42] Sock 9.Parse request [12:28:42]Sock 9.Check first char [12:28:42]Sock 9.First char is OK [12:28:42]request: POST /json_proto HTTP/1.0 [12:28:42]Method: POST [12:28:42]URL: /json_proto [12:28:42]Method is POST - this is cgi request [12:28:42]url: /json_proto [12:28:42]query_string will be loaded in cgi processing [12:28:42]execute_cgi json_proto POST (null) [12:28:42]execute_cgi path=json_proto method=POST [12:28:42]POST find Content-Length [12:28:42]Host: 172.17.59.68:8080 [12:28:42]Content-Length: 674 [12:28:42]Content-Type: application/json [12:28:42] [12:28:42]POST finish read [12:28:42]Found Content-Length = 674 [12:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "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:28:42]execute_script... [12:28: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)319906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "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:28:42]POST & json_proto [12:28:42]process_json_proto [12:28:42]json parsed OK: [12:28:42]protocol is kg_v1.0 [12:28:42]action value=close_receipt [12:28:42]process_action close_receipt [12:28:42]cmd_close_receipt [12:28:42]MH_GetDate [12:28:42]Write to MH i2c: F0 00 00 1D 00 0C [12:28:42]Write i2c OK [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: F0 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: F0 09 00 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: F0 09 00 1D 00 00 FA CE 72 66 BC EC 60 65 22 [12:28:42]GetLastDocTimeStamp 1718799892 [12:28:42]current date 1718800122 [12:28:42]FM_GetShiftState [12:28:42]SAM_PROTO_GetShiftState [12:28:42]wFMCommunicate request_size=4 [12:28:42]MH_SAM_APDU [12:28:42]CAPDU: 80 13 01 00 [12:28:42]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:28:42]Write i2c OK [12:28:42]MH_I2C_Read... [12:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:42]Read from MH i2c: E2 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: E2 0E 00 [12:28:42]MH_I2C_Read... [12:28:42]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E5 [12:28:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:28:42]wFMCommunicate OK [12:28:42]SAM_PROTO_GetShiftState done [12:28:42]FM_GetShiftState done [12:28:42]opened in 1718760753 [12:28:42]opened+sec_in_day 1718847153 [12:28:42]quantity*price = 60069 [12:28:42]sum+1 = 60071 [12:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 83 19.06.2024 12:28 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111334 ФПД: 142000231789834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122842&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111334&fm=142000231789834&tin=02508201610067®Number=0000000000092771&sum=60000 [12:28:43]StoreToDocumentArchive [12:28:43]shift 388 fd 111334 [12:28:43]save to /storage/0388/doc_00111334 [12:28:43]save last doc name /storage/0388/doc_00111334 to /storage/kkm_last_doc_name [12:28:43]save OK [12:28:43]Clear old archive folders... [12:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:28:43]tlvbuf is 00F16520 [12:28:43]SAM_PROTO_ClearQueue [12:28:43]wFMCommunicate request_size=4 [12:28:43]MH_SAM_APDU [12:28:43]CAPDU: 80 09 00 00 [12:28:43]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:28:43]Write i2c OK [12:28:43]MH_I2C_Read... [12:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:43]Read from MH i2c: E2 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 03 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:28:43]RAPDU: 90 00 [12:28:43]wFMCommunicate OK [12:28:43]SAM_PROTO_ClearQueue done [12:28:43]KKMCreateOFDPacket [12:28:43]OFDProtocolAddRootSTLVToBuf [12:28:43]FM_MakeSignedData [12:28:43]FM_MakeSignedData [12:28:43]SAM_PROTO_SignData [12:28:43]wFMCommunicate request_size=4 [12:28:43]MH_SAM_APDU [12:28:43]CAPDU: 80 0D 01 02 [12:28:43]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:28:43]Write i2c OK [12:28:43]MH_I2C_Read... [12:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:43]Read from MH i2c: E2 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 03 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:28:43]RAPDU: 90 00 [12:28:43]wFMCommunicate OK [12:28:43]wFMCommunicate request_size=255 [12:28:43]MH_SAM_APDU [12:28:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 53 00 00 00 F4 03 04 00 FA CE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B2 01 00 35 04 06 00 81 26 01 5F [12:28:43]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 53 00 00 00 F4 03 04 00 FA CE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B2 01 00 35 04 06 00 81 26 01 5F 00 00 3D [12:28:43]Write i2c OK [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 [12:28:43]MH_I2C_Read... [12:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:43]Read from MH i2c: E2 03 00 [12:28:43]MH_I2C_Read... [12:28:43]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:28:44]RAPDU: 90 00 [12:28:44]wFMCommunicate OK [12:28:44]wFMCommunicate request_size=7 [12:28:44]MH_SAM_APDU [12:28:44]CAPDU: 80 0D 02 02 02 B5 0A [12:28:44]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 B5 0A 00 00 6B [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:44]Read from MH i2c: E2 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: E2 03 00 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [12:28:44]RAPDU: 90 00 [12:28:44]wFMCommunicate OK [12:28:44]wFMCommunicate request_size=4 [12:28:44]MH_SAM_APDU [12:28:44]CAPDU: 80 0D 03 02 [12:28:44]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:44]Read from MH i2c: E2 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: E2 0B 00 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: E2 0B 00 2F 00 00 F5 E9 17 84 63 B7 DB 48 90 00 61 [12:28:44]RAPDU: F5 E9 17 84 63 B7 DB 48 90 00 [12:28:44]wFMCommunicate OK [12:28:44]SAM_PROTO_SignData done [12:28:44]FM_MakeSignedData done [12:28:44]CreateOFDProtocolMessage [12:28:44]wFMCommunicate request_size=4 [12:28:44]MH_SAM_APDU [12:28:44]CAPDU: 80 11 00 00 [12:28:44]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:44]Read from MH i2c: E2 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: E2 17 00 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [12:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:28:44]wFMCommunicate OK [12:28:44]CreateOFDProtocolMessage done [12:28:44]OFDSenderStorePacket 111334 [12:28:44]StoreOFDPacket docnum=111334 [12:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B6 9F 04 01 ED D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 53 00 00 00 F4 03 04 00 FA CE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B2 01 00 35 04 06 00 81 26 01 5F B5 0A F5 E9 17 84 63 B7 DB 48 [12:28:44]CheckFolder [12:28:44]dirname=/storage/ofd_packets [12:28:44]CheckFolder done [12:28:44]ProducePacketName [12:28:44]name=ofd_packets/00111334 [12:28:44]NVStorageSaveData ofd_packets/00111334 [12:28:44]File name is /storage/ofd_packets/00111334 [12:28:44]Write 298 bytes [12:28:44]NVStorageSaveData done [12:28:44]OFDSenderStorePacket done [12:28:44]KKMCreateOFDPacket done [12:28:44]NVStorageSaveData kkm_last_timestamp [12:28:44]File name is /storage/kkm_last_timestamp [12:28:44]Write 4 bytes [12:28:44]NVStorageSaveData done [12:28:44]ExternCall_PrintAddStr [12:28:44]wPrintStart [12:28:44]Write to MH i2c: 01 00 00 31 00 31 [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: 01 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: 01 07 00 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [12:28:44]RasterBufferAndPrint [12:28:44]line Счет N : (1)319906 [12:28:44]line ИНН: 02508201610067 [12:28:44]line Контрольно-Кассовый Чек [12:28:44]line ПРОДАЖА [12:28:44]line ТРК (МРК, ГНК) : 22 [12:28:44]line Товар: 2710194210 [12:28:44]line ДТ-К-5 [12:28:44]line 8.240 * 72.90 [12:28:44]line = 600.70 [12:28:44]line НДС 12% НСП 1% [12:28:44]line > о реализуемом товаре [12:28:44]line ОКРУГЛЕНИЕ: -0.70 [12:28:44]line ИТОГО: 600.00 [12:28:44]line Внесено: 600.00 [12:28:44]line СДАЧА: 0.00 [12:28:44]line НСП 1% : 5.32 [12:28:44]line НДС 12% : 63.79 [12:28:44]line Наличными: 600.00 [12:28:44]line Безнал.: 0.00 [12:28:44]line Место: АЗС № 65 "Партнер Нефть" [12:28:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:28:44]line СНО: Общий режим [12:28:44]line Чек 83 19.06.2024 12:28 [12:28:44]line Смена: 388 ФФД: 1.0 [12:28:44]line ЗНМ: 0300000198 [12:28:44]line РНМ: 0000000000092771 [12:28:44]line Версия ККМ: 001 [12:28:44]line ФМ: 0000000000875083 [12:28:44]line ФД: 111334 [12:28:44]line ФПД: 142000231789834 [12:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122842&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111334&fm=142000231789834&tin=02508201610067®Number=0000000000092771&sum=60000 [12:28:44]OFD Sender: Processing packet 111334 [packets to send 38, broken 37] [12:28:44]ProducePacketName [12:28:44]name=ofd_packets/00111334 [12:28:44]OFD Sender: To server: pG, [12:28:44]CommunicateWithHost lk.salyk.kg:30040 [12:28:44]ConnectInit lk.salyk.kg [12:28:44]written 0, free lines is 4095 [12:28:44]Connected sock=10 [12:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B6 9F 04 01 ED D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 53 00 00 00 F4 03 04 00 FA CE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E6 B2 01 00 35 04 06 00 81 26 01 5F B5 0A F5 E9 17 84 63 B7 DB 48 [12:28:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B4 70 47 00 E3 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 35 30 38 33 10 04 04 00 E6 B2 01 00 F4 03 04 00 64 66 72 66 B6 04 01 00 00 38 A4 75 1F B3 A1 6D 51 [12:28:44]CommunicateWithHost err = 0 [12:28:44]CheckOFDResponse [12:28:44]1017 (14) - 77093643461234 [12:28:44]1041 (16) - 0000000000875083 [12:28:44]1040 (4) - 111334 [12:28:44]1012 (4) - 19.06.2024 05:02 [12:28:44]1206 (1) - 0 [12:28:44]OFD Sender: Remove packet 111334 [12:28:44]ProducePacketName [12:28:44]name=ofd_packets/00111334 [12:28:44]NVStorageDeleteData [12:28:44]Write to MH i2c: 01 00 00 5C 00 5C [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: 01 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: 01 07 00 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E5 0C 54 [12:28:44]RasterBufferAndPrint [12:28:44]line [12:28:44]line [12:28:44]line [12:28:44]line [12:28:44]line [12:28:44]written 0, free lines is 3319 [12:28:44]MH_Cut [12:28:44]Write to MH i2c: D1 01 00 63 00 01 35 [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: D1 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: D1 01 00 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: D1 01 00 63 00 00 34 [12:28:44]Write to MH i2c: 01 00 00 64 00 64 [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:45]OFD Sender: No OFD packet to send [12:28:45]*** Cut start [12:28:45]*** Partial cut [12:28:45]*** CUTSNS_PIN = 1 [12:28:45]*** CUTSNS_PIN = 0 [12:28:45]*** Brake cut motor [12:28:46]Read from MH i2c: 01 [12:28:46]MH_I2C_Read... [12:28:46]*** Stop cut motor [12:28:46]*** Cut end [12:28:46]Read from MH i2c: 01 07 00 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [12:28:46]process_action close_receipt done [12:28:46]requested_data is exist [12:28:46]produce_requested_data [12:28:46]requested_item fm.sn is exist - process it [12:28:46]wFMCommunicate request_size=4 [12:28:46]MH_SAM_APDU [12:28:46]CAPDU: 80 11 00 00 [12:28:46]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:46]Read from MH i2c: E2 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 17 00 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [12:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:28:46]wFMCommunicate OK [12:28:46]requested_item fd.num is exist - process it [12:28:46]SAM_PROTO_GetFieldsCounters [12:28:46]wFMCommunicate request_size=4 [12:28:46]MH_SAM_APDU [12:28:46]CAPDU: 80 13 00 00 [12:28:46]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:46]Read from MH i2c: E2 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 62 00 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:28: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:46]wFMCommunicate OK [12:28:46]SAM_PROTO_GetFieldsCounters done [12:28:46]requested_item shift.num is exist - process it [12:28:46]requested_item shift.opened is exist - process it [12:28:46]req_shift_opened [12:28:46]FM_GetShiftState [12:28:46]SAM_PROTO_GetShiftState [12:28:46]wFMCommunicate request_size=4 [12:28:46]MH_SAM_APDU [12:28:46]CAPDU: 80 13 01 00 [12:28:46]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:46]Read from MH i2c: E2 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 0E 00 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2E [12:28:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:28:46]wFMCommunicate OK [12:28:46]SAM_PROTO_GetShiftState done [12:28:46]FM_GetShiftState done [12:28:46]req_shift_opened done [12:28:46]requested_item shift.open_date is exist - process it [12:28:46]req_shift_open_date [12:28:46]req_shift_open_date done [12:28:46]produce_requested_data done [12:28:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111334,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:28:46]process_action_free close_receipt [12:28:46]json_value_free [12:28:46]json_value_free done [12:28:46]process_json_proto returns [12:28:46]Send response to host [12:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111334,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:28:46]free response buf [12:28:46]execute_script done [12:28:46]execute_script returns [12:28:46]free content buf [12:28:46]Sock 9.Close socket [12:28:46]Sock 9.Thread stoped [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:09]accept exits with 7 [12:29:09]New connection [12:29:09]New thread 3067321700 created [12:29:09]Thread 3067465060 joined [12:29:09]Waiting for new connection... [12:29:09] Sock 7.Parse request [12:29:09]Sock 7.Check first char [12:29:09]Sock 7.First char is OK [12:29:09]request: POST /json_proto HTTP/1.0 [12:29:09]Method: POST [12:29:09]URL: /json_proto [12:29:09]Method is POST - this is cgi request [12:29:09]url: /json_proto [12:29:09]query_string will be loaded in cgi processing [12:29:09]execute_cgi json_proto POST (null) [12:29:09]execute_cgi path=json_proto method=POST [12:29:09]POST find Content-Length [12:29:09]Host: 172.17.59.68:8080 [12:29:09]Content-Length: 674 [12:29:09]Content-Type: application/json [12:29:09] [12:29:09]POST finish read [12:29:09]Found Content-Length = 674 [12:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:09]execute_script... [12:29: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)319909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:09]POST & json_proto [12:29:09]process_json_proto [12:29:09]json parsed OK: [12:29:09]protocol is kg_v1.0 [12:29:09]action value=close_receipt [12:29:09]process_action close_receipt [12:29:09]cmd_close_receipt [12:29:09]MH_GetDate [12:29:09]Write to MH i2c: F0 00 00 68 00 57 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 09 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 09 00 68 00 00 16 CF 72 66 BC EC 60 65 8A [12:29:09]GetLastDocTimeStamp 1718800122 [12:29:09]current date 1718800150 [12:29:09]FM_GetShiftState [12:29:09]SAM_PROTO_GetShiftState [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 13 01 00 [12:29:09]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0E 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 31 35 72 66 00 00 00 00 90 00 30 [12:29:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_GetShiftState done [12:29:09]FM_GetShiftState done [12:29:09]opened in 1718760753 [12:29:09]opened+sec_in_day 1718847153 [12:29:09]quantity*price = 70056 [12:29:09]sum+1 = 70058 [12:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 84 19.06.2024 12:29 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111335 ФПД: 189633324705609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122910&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111335&fm=189633324705609&tin=02508201610067®Number=0000000000092771&sum=70000 [12:29:10]StoreToDocumentArchive [12:29:10]shift 388 fd 111335 [12:29:10]save to /storage/0388/doc_00111335 [12:29:10]save last doc name /storage/0388/doc_00111335 to /storage/kkm_last_doc_name [12:29:10]save OK [12:29:10]Clear old archive folders... [12:29:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:10]tlvbuf is 00F04680 [12:29:10]SAM_PROTO_ClearQueue [12:29:10]wFMCommunicate request_size=4 [12:29:10]MH_SAM_APDU [12:29:10]CAPDU: 80 09 00 00 [12:29:10]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [12:29:10]Write i2c OK [12:29:10]MH_I2C_Read... [12:29:10]Read from MH i2c: E2 [12:29:10]MH_I2C_Read... [12:29:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_ClearQueue done [12:29:11]KKMCreateOFDPacket [12:29:11]OFDProtocolAddRootSTLVToBuf [12:29:11]FM_MakeSignedData [12:29:11]FM_MakeSignedData [12:29:11]SAM_PROTO_SignData [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 01 02 [12:29:11]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=255 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 54 00 00 00 F4 03 04 00 16 CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B2 01 00 35 04 06 00 AC 78 72 F4 [12:29:11]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 54 00 00 00 F4 03 04 00 16 CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B2 01 00 35 04 06 00 AC 78 72 F4 00 00 A6 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=7 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 02 02 02 E7 49 [12:29:11]Write to MH i2c: E2 0A 00 79 00 80 0D 02 02 02 00 E7 49 00 00 27 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 03 02 [12:29:11]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0B 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0B 00 7A 00 00 6B 44 6D 86 CD 57 C4 DB 90 00 5B [12:29:11]RAPDU: 6B 44 6D 86 CD 57 C4 DB 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_SignData done [12:29:11]FM_MakeSignedData done [12:29:11]CreateOFDProtocolMessage [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 11 00 00 [12:29:11]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 17 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [12:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:11]wFMCommunicate OK [12:29:11]CreateOFDProtocolMessage done [12:29:11]OFDSenderStorePacket 111335 [12:29:11]StoreOFDPacket docnum=111335 [12:29:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 93 62 04 01 38 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 54 00 00 00 F4 03 04 00 16 CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B2 01 00 35 04 06 00 AC 78 72 F4 E7 49 6B 44 6D 86 CD 57 C4 DB [12:29:11]CheckFolder [12:29:11]dirname=/storage/ofd_packets [12:29:11]CheckFolder done [12:29:11]ProducePacketName [12:29:11]name=ofd_packets/00111335 [12:29:11]NVStorageSaveData ofd_packets/00111335 [12:29:11]File name is /storage/ofd_packets/00111335 [12:29:11]Write 298 bytes [12:29:11]NVStorageSaveData done [12:29:11]OFDSenderStorePacket done [12:29:11]KKMCreateOFDPacket done [12:29:11]NVStorageSaveData kkm_last_timestamp [12:29:11]File name is /storage/kkm_last_timestamp [12:29:11]Write 4 bytes [12:29:11]NVStorageSaveData done [12:29:11]ExternCall_PrintAddStr [12:29:11]wPrintStart [12:29:11]Write to MH i2c: 01 00 00 7C 00 7C [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [12:29:11]RasterBufferAndPrint [12:29:11]line Счет N : (1)319909 [12:29:11]line ИНН: 02508201610067 [12:29:11]line Контрольно-Кассовый Чек [12:29:11]line ПРОДАЖА [12:29:11]line ТРК (МРК, ГНК) : 22 [12:29:11]line Товар: 2710194210 [12:29:11]line ДТ-К-5 [12:29:11]line 9.610 * 72.90 [12:29:11]line = 700.57 [12:29:11]line НДС 12% НСП 1% [12:29:11]line > о реализуемом товаре [12:29:11]line ОКРУГЛЕНИЕ: -0.57 [12:29:11]line ИТОГО: 700.00 [12:29:11]line Внесено: 700.00 [12:29:11]line СДАЧА: 0.00 [12:29:11]line НСП 1% : 6.20 [12:29:11]line НДС 12% : 74.40 [12:29:11]line Наличными: 700.00 [12:29:11]line Безнал.: 0.00 [12:29:11]line Место: АЗС № 65 "Партнер Нефть" [12:29:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:29:11]line СНО: Общий режим [12:29:11]line Чек 84 19.06.2024 12:29 [12:29:11]line Смена: 388 ФФД: 1.0 [12:29:11]line ЗНМ: 0300000198 [12:29:11]line РНМ: 0000000000092771 [12:29:11]line Версия ККМ: 001 [12:29:11]line ФМ: 0000000000875083 [12:29:11]line ФД: 111335 [12:29:11]line ФПД: 189633324705609 [12:29:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122910&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111335&fm=189633324705609&tin=02508201610067®Number=0000000000092771&sum=70000 [12:29:11]OFD Sender: Processing packet 111335 [packets to send 38, broken 37] [12:29:11]ProducePacketName [12:29:11]name=ofd_packets/00111335 [12:29:11]OFD Sender: To server: pG, [12:29:11]CommunicateWithHost lk.salyk.kg:30040 [12:29:11]ConnectInit lk.salyk.kg [12:29:11]written 0, free lines is 4095 [12:29:11]Connected sock=10 [12:29:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 93 62 04 01 38 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 54 00 00 00 F4 03 04 00 16 CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E7 B2 01 00 35 04 06 00 AC 78 72 F4 E7 49 6B 44 6D 86 CD 57 C4 DB [12:29:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 93 D5 47 00 36 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 35 30 38 33 10 04 04 00 E7 B2 01 00 F4 03 04 00 80 66 72 66 B6 04 01 00 00 C7 F3 09 D9 6F 0C 53 E5 [12:29:12]CommunicateWithHost err = 0 [12:29:12]CheckOFDResponse [12:29:12]1017 (14) - 77093643461234 [12:29:12]1041 (16) - 0000000000875083 [12:29:12]1040 (4) - 111335 [12:29:12]1012 (4) - 19.06.2024 05:02 [12:29:12]1206 (1) - 0 [12:29:12]OFD Sender: Remove packet 111335 [12:29:12]ProducePacketName [12:29:12]name=ofd_packets/00111335 [12:29:12]NVStorageDeleteData [12:29:12]Write to MH i2c: 01 00 00 A7 00 A7 [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 07 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 CF 0C 89 [12:29:12]RasterBufferAndPrint [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]written 0, free lines is 3287 [12:29:12]MH_Cut [12:29:12]Write to MH i2c: D1 01 00 AE 00 01 80 [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 01 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 01 00 AE 00 00 7F [12:29:12]Write to MH i2c: 01 00 00 AF 00 AF [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]OFD Sender: No OFD packet to send [12:29:13]*** Cut start [12:29:13]*** Partial cut [12:29:13]*** CUTSNS_PIN = 1 [12:29:13]*** CUTSNS_PIN = 0 [12:29:13]*** Brake cut motor [12:29:13]Read from MH i2c: 01 [12:29:13]MH_I2C_Read... [12:29:13]*** Stop cut motor [12:29:13]*** Cut end [12:29:13]Read from MH i2c: 01 07 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [12:29:13]process_action close_receipt done [12:29:13]requested_data is exist [12:29:13]produce_requested_data [12:29:13]requested_item fm.sn is exist - process it [12:29:13]wFMCommunicate request_size=4 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 11 00 00 [12:29:13]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 17 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [12:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:13]wFMCommunicate OK [12:29:13]requested_item fd.num is exist - process it [12:29:13]SAM_PROTO_GetFieldsCounters [12:29:13]wFMCommunicate request_size=4 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 13 00 00 [12:29:13]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 62 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:29: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:13]wFMCommunicate OK [12:29:13]SAM_PROTO_GetFieldsCounters done [12:29:13]requested_item shift.num is exist - process it [12:29:13]requested_item shift.opened is exist - process it [12:29:13]req_shift_opened [12:29:13]FM_GetShiftState [12:29:13]SAM_PROTO_GetShiftState [12:29:13]wFMCommunicate request_size=4 [12:29:13]MH_SAM_APDU [12:29:13]CAPDU: 80 13 01 00 [12:29:13]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [12:29:13]Write i2c OK [12:29:13]MH_I2C_Read... [12:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:13]Read from MH i2c: E2 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 0E 00 [12:29:13]MH_I2C_Read... [12:29:13]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 31 35 72 66 00 00 00 00 90 00 79 [12:29:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:29:13]wFMCommunicate OK [12:29:13]SAM_PROTO_GetShiftState done [12:29:13]FM_GetShiftState done [12:29:13]req_shift_opened done [12:29:13]requested_item shift.open_date is exist - process it [12:29:13]req_shift_open_date [12:29:13]req_shift_open_date done [12:29:13]produce_requested_data done [12:29:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111335,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:29:13]process_action_free close_receipt [12:29:13]json_value_free [12:29:13]json_value_free done [12:29:13]process_json_proto returns [12:29:13]Send response to host [12:29:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111335,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:29:13]free response buf [12:29:13]execute_script done [12:29:13]execute_script returns [12:29:13]free content buf [12:29:13]Sock 7.Close socket [12:29:13]Sock 7.Thread stoped [12:29:14]accept exits with 9 [12:29:14]New connection [12:29:14]New thread 3067465060 created [12:29:14]Thread 3067321700 joined [12:29:14]Waiting for new connection... [12:29:14] Sock 9.Parse request [12:29:14]Sock 9.Check first char [12:29:14]Sock 9.First char is OK [12:29:14]request: POST /json_proto HTTP/1.0 [12:29:14]Method: POST [12:29:14]URL: /json_proto [12:29:14]Method is POST - this is cgi request [12:29:14]url: /json_proto [12:29:14]query_string will be loaded in cgi processing [12:29:14]execute_cgi json_proto POST (null) [12:29:14]execute_cgi path=json_proto method=POST [12:29:14]POST find Content-Length [12:29:14]Host: 172.17.59.68:8080 [12:29:14]Content-Length: 677 [12:29:14]Content-Type: application/json [12:29:14] [12:29:14]POST finish read [12:29:14]Found Content-Length = 677 [12:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:29:14]execute_script... [12:29: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)319908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:29:14]POST & json_proto [12:29:14]process_json_proto [12:29:14]json parsed OK: [12:29:14]protocol is kg_v1.0 [12:29:14]action value=close_receipt [12:29:14]process_action close_receipt [12:29:14]cmd_close_receipt [12:29:14]MH_GetDate [12:29:14]Write to MH i2c: F0 00 00 B3 00 A2 [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: F0 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: F0 09 00 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: F0 09 00 B3 00 00 1A CF 72 66 BC EC 60 65 D9 [12:29:14]GetLastDocTimeStamp 1718800150 [12:29:14]current date 1718800154 [12:29:14]FM_GetShiftState [12:29:14]SAM_PROTO_GetShiftState [12:29:14]wFMCommunicate request_size=4 [12:29:14]MH_SAM_APDU [12:29:14]CAPDU: 80 13 01 00 [12:29:14]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:14]Read from MH i2c: E2 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: E2 0E 00 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7B [12:29:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:29:14]wFMCommunicate OK [12:29:14]SAM_PROTO_GetShiftState done [12:29:14]FM_GetShiftState done [12:29:14]opened in 1718760753 [12:29:14]opened+sec_in_day 1718847153 [12:29:14]quantity*price = 60025 [12:29:14]sum+1 = 60027 [12:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 85 19.06.2024 12:29 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111336 ФПД: 247464636761603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122914&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111336&fm=247464636761603&tin=02508201610067®Number=0000000000092771&sum=60000 [12:29:15]StoreToDocumentArchive [12:29:15]shift 388 fd 111336 [12:29:15]save to /storage/0388/doc_00111336 [12:29:15]save last doc name /storage/0388/doc_00111336 to /storage/kkm_last_doc_name [12:29:15]save OK [12:29:15]Clear old archive folders... [12:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:29:15]tlvbuf is B6E25AB0 [12:29:15]SAM_PROTO_ClearQueue [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 09 00 00 [12:29:15]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [12:29:15]RAPDU: 90 00 [12:29:15]wFMCommunicate OK [12:29:15]SAM_PROTO_ClearQueue done [12:29:15]KKMCreateOFDPacket [12:29:15]OFDProtocolAddRootSTLVToBuf [12:29:15]FM_MakeSignedData [12:29:15]FM_MakeSignedData [12:29:15]SAM_PROTO_SignData [12:29:15]wFMCommunicate request_size=4 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 0D 01 02 [12:29:15]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:15]Read from MH i2c: E2 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 [12:29:15]MH_I2C_Read... [12:29:15]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [12:29:15]RAPDU: 90 00 [12:29:15]wFMCommunicate OK [12:29:15]wFMCommunicate request_size=255 [12:29:15]MH_SAM_APDU [12:29:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 1A CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B2 01 00 35 04 06 00 E1 [12:29:15]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 1A CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B2 01 00 35 04 06 00 E1 00 00 E3 [12:29:15]Write i2c OK [12:29:15]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [12:29:16]RAPDU: 90 00 [12:29:16]wFMCommunicate OK [12:29:16]wFMCommunicate request_size=10 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 0D 02 02 05 11 59 C4 C6 03 [12:29:16]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 11 59 C4 C6 03 00 00 3F [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [12:29:16]RAPDU: 90 00 [12:29:16]wFMCommunicate OK [12:29:16]wFMCommunicate request_size=4 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 0D 03 02 [12:29:16]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 0B 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 0B 00 C5 00 00 C9 35 9E A9 0A 93 A8 A2 90 00 6D [12:29:16]RAPDU: C9 35 9E A9 0A 93 A8 A2 90 00 [12:29:16]wFMCommunicate OK [12:29:16]SAM_PROTO_SignData done [12:29:16]FM_MakeSignedData done [12:29:16]CreateOFDProtocolMessage [12:29:16]wFMCommunicate request_size=4 [12:29:16]MH_SAM_APDU [12:29:16]CAPDU: 80 11 00 00 [12:29:16]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 [12:29:16]MH_I2C_Read... [12:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:16]Read from MH i2c: E2 17 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [12:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:16]wFMCommunicate OK [12:29:16]CreateOFDProtocolMessage done [12:29:16]OFDSenderStorePacket 111336 [12:29:16]StoreOFDPacket docnum=111336 [12:29:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 52 07 01 14 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 1A CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B2 01 00 35 04 06 00 E1 11 59 C4 C6 03 C9 35 9E A9 0A 93 A8 A2 [12:29:16]CheckFolder [12:29:16]dirname=/storage/ofd_packets [12:29:16]CheckFolder done [12:29:16]ProducePacketName [12:29:16]name=ofd_packets/00111336 [12:29:16]NVStorageSaveData ofd_packets/00111336 [12:29:16]File name is /storage/ofd_packets/00111336 [12:29:16]Write 301 bytes [12:29:16]NVStorageSaveData done [12:29:16]OFDSenderStorePacket done [12:29:16]KKMCreateOFDPacket done [12:29:16]NVStorageSaveData kkm_last_timestamp [12:29:16]File name is /storage/kkm_last_timestamp [12:29:16]Write 4 bytes [12:29:16]NVStorageSaveData done [12:29:16]ExternCall_PrintAddStr [12:29:16]wPrintStart [12:29:16]Write to MH i2c: 01 00 00 C7 00 C7 [12:29:16]OFD Sender: Processing packet 111336 [packets to send 38, broken 37] [12:29:16]ProducePacketName [12:29:16]name=ofd_packets/00111336 [12:29:16]OFD Sender: To server: pG, [12:29:16]CommunicateWithHost lk.salyk.kg:30040 [12:29:16]ConnectInit lk.salyk.kg [12:29:16]Write i2c OK [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 07 00 [12:29:16]MH_I2C_Read... [12:29:16]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [12:29:16]RasterBufferAndPrint [12:29:16]line Счет N : (1)319908 [12:29:16]line ИНН: 02508201610067 [12:29:16]line Контрольно-Кассовый Чек [12:29:16]line ПРОДАЖА [12:29:16]line ТРК (МРК, ГНК) : 11 [12:29:16]line Товар: 2710124130 [12:29:16]line Аи-92-К-5 [12:29:16]line 9.040 * 66.40 [12:29:16]line = 600.26 [12:29:16]line НДС 12% НСП 1% [12:29:16]line > о реализуемом товаре [12:29:16]line ОКРУГЛЕНИЕ: -0.26 [12:29:16]line ИТОГО: 600.00 [12:29:16]line Внесено: 600.00 [12:29:16]line СДАЧА: 0.00 [12:29:16]line НСП 1% : 5.31 [12:29:16]line НДС 12% : 63.74 [12:29:16]line Наличными: 600.00 [12:29:16]line Безнал.: 0.00 [12:29:16]line Место: АЗС № 65 "Партнер Нефть" [12:29:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:29:16]line СНО: Общий режим [12:29:16]line Чек 85 19.06.2024 12:29 [12:29:16]line Смена: 388 ФФД: 1.0 [12:29:16]line ЗНМ: 0300000198 [12:29:16]line РНМ: 0000000000092771 [12:29:16]line Версия ККМ: 001 [12:29:16]line ФМ: 0000000000875083 [12:29:16]line ФД: 111336 [12:29:16]line ФПД: 247464636761603 [12:29:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T122914&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111336&fm=247464636761603&tin=02508201610067®Number=0000000000092771&sum=60000 [12:29:16]written 0, free lines is 4095 [12:29:16]Connected sock=10 [12:29:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 52 07 01 14 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 1A CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E8 B2 01 00 35 04 06 00 E1 11 59 C4 C6 03 C9 35 9E A9 0A 93 A8 A2 [12:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 02 1E 47 00 DD 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 35 30 38 33 10 04 04 00 E8 B2 01 00 F4 03 04 00 84 66 72 66 B6 04 01 00 00 C8 21 32 FB 6A 63 6C 63 [12:29:16]CommunicateWithHost err = 0 [12:29:16]CheckOFDResponse [12:29:16]1017 (14) - 77093643461234 [12:29:16]1041 (16) - 0000000000875083 [12:29:16]1040 (4) - 111336 [12:29:16]1012 (4) - 19.06.2024 05:03 [12:29:16]1206 (1) - 0 [12:29:16]OFD Sender: Remove packet 111336 [12:29:16]ProducePacketName [12:29:16]name=ofd_packets/00111336 [12:29:16]NVStorageDeleteData [12:29:17]Write to MH i2c: 01 00 00 F2 00 F2 [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 F3 0C F8 [12:29:17]RasterBufferAndPrint [12:29:17]line [12:29:17]line [12:29:17]line [12:29:17]line [12:29:17]line [12:29:17]written 0, free lines is 3327 [12:29:17]MH_Cut [12:29:17]Write to MH i2c: D1 01 00 F9 00 01 CB [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: D1 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: D1 01 00 [12:29:17]MH_I2C_Read... [12:29:17]Read from MH i2c: D1 01 00 F9 00 00 CA [12:29:17]Write to MH i2c: 01 00 00 FA 00 FA [12:29:17]Write i2c OK [12:29:17]MH_I2C_Read... [12:29:17]OFD Sender: No OFD packet to send [12:29:17]*** Cut start [12:29:17]*** Partial cut [12:29:17]*** CUTSNS_PIN = 1 [12:29:17]*** CUTSNS_PIN = 0 [12:29:18]*** Brake cut motor [12:29:18]Read from MH i2c: 01 [12:29:18]MH_I2C_Read... [12:29:18]*** Stop cut motor [12:29:18]*** Cut end [12:29:18]Read from MH i2c: 01 07 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [12:29:18]process_action close_receipt done [12:29:18]requested_data is exist [12:29:18]produce_requested_data [12:29:18]requested_item fm.sn is exist - process it [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 11 00 00 [12:29:18]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 17 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [12:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:29:18]wFMCommunicate OK [12:29:18]requested_item fd.num is exist - process it [12:29:18]SAM_PROTO_GetFieldsCounters [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 13 00 00 [12:29:18]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 62 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [12:29: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:18]wFMCommunicate OK [12:29:18]SAM_PROTO_GetFieldsCounters done [12:29:18]requested_item shift.num is exist - process it [12:29:18]requested_item shift.opened is exist - process it [12:29:18]req_shift_opened [12:29:18]FM_GetShiftState [12:29:18]SAM_PROTO_GetShiftState [12:29:18]wFMCommunicate request_size=4 [12:29:18]MH_SAM_APDU [12:29:18]CAPDU: 80 13 01 00 [12:29:18]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [12:29:18]Write i2c OK [12:29:18]MH_I2C_Read... [12:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:18]Read from MH i2c: E2 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 0E 00 [12:29:18]MH_I2C_Read... [12:29:18]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C4 [12:29:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:29:18]wFMCommunicate OK [12:29:18]SAM_PROTO_GetShiftState done [12:29:18]FM_GetShiftState done [12:29:18]req_shift_opened done [12:29:18]requested_item shift.open_date is exist - process it [12:29:18]req_shift_open_date [12:29:18]req_shift_open_date done [12:29:18]produce_requested_data done [12:29:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111336,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:29:18]process_action_free close_receipt [12:29:18]json_value_free [12:29:18]json_value_free done [12:29:18]process_json_proto returns [12:29:18]Send response to host [12:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111336,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:29:18]free response buf [12:29:18]execute_script done [12:29:18]execute_script returns [12:29:18]free content buf [12:29:18]Sock 9.Close socket [12:29:18]Sock 9.Thread stoped [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:12]accept exits with 7 [12:32:12]New connection [12:32:12]New thread 3067321700 created [12:32:12]Thread 3067465060 joined [12:32:12]Waiting for new connection... [12:32:12] Sock 7.Parse request [12:32:12]Sock 7.Check first char [12:32:12]Sock 7.First char is OK [12:32:12]request: POST /json_proto HTTP/1.0 [12:32:12]Method: POST [12:32:12]URL: /json_proto [12:32:12]Method is POST - this is cgi request [12:32:12]url: /json_proto [12:32:12]query_string will be loaded in cgi processing [12:32:12]execute_cgi json_proto POST (null) [12:32:12]execute_cgi path=json_proto method=POST [12:32:12]POST find Content-Length [12:32:12]Host: 172.17.59.68:8080 [12:32:12]Content-Length: 678 [12:32:12]Content-Type: application/json [12:32:12] [12:32:12]POST finish read [12:32:12]Found Content-Length = 678 [12:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:12]execute_script... [12:32: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)319911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:12]POST & json_proto [12:32:12]process_json_proto [12:32:12]json parsed OK: [12:32:12]protocol is kg_v1.0 [12:32:12]action value=close_receipt [12:32:12]process_action close_receipt [12:32:12]cmd_close_receipt [12:32:12]MH_GetDate [12:32:12]Write to MH i2c: F0 00 00 FE 00 ED [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: F0 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: F0 09 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: F0 09 00 FE 00 00 CD CF 72 66 BC EC 60 65 D7 [12:32:12]GetLastDocTimeStamp 1718800154 [12:32:12]current date 1718800333 [12:32:12]FM_GetShiftState [12:32:12]SAM_PROTO_GetShiftState [12:32:12]wFMCommunicate request_size=4 [12:32:12]MH_SAM_APDU [12:32:12]CAPDU: 80 13 01 00 [12:32:12]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:12]Read from MH i2c: E2 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 0E 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C6 [12:32:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:32:12]wFMCommunicate OK [12:32:12]SAM_PROTO_GetShiftState done [12:32:12]FM_GetShiftState done [12:32:12]opened in 1718760753 [12:32:12]opened+sec_in_day 1718847153 [12:32:12]quantity*price = 66532 [12:32:12]sum+1 = 66534 [12:32:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.65 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 86 19.06.2024 12:32 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111337 ФПД: 211041226689072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111337&fm=211041226689072&tin=02508201610067®Number=0000000000092771&sum=66500 [12:32:13]StoreToDocumentArchive [12:32:13]shift 388 fd 111337 [12:32:13]save to /storage/0388/doc_00111337 [12:32:13]save last doc name /storage/0388/doc_00111337 to /storage/kkm_last_doc_name [12:32:13]save OK [12:32:13]Clear old archive folders... [12:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:13]tlvbuf is 00EB8D90 [12:32:13]SAM_PROTO_ClearQueue [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 09 00 00 [12:32:13]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 03 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [12:32:13]RAPDU: 90 00 [12:32:13]wFMCommunicate OK [12:32:13]SAM_PROTO_ClearQueue done [12:32:13]KKMCreateOFDPacket [12:32:13]OFDProtocolAddRootSTLVToBuf [12:32:13]FM_MakeSignedData [12:32:13]FM_MakeSignedData [12:32:13]SAM_PROTO_SignData [12:32:13]wFMCommunicate request_size=4 [12:32:13]MH_SAM_APDU [12:32:13]CAPDU: 80 0D 01 02 [12:32:13]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:13]Read from MH i2c: E2 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 03 00 [12:32:13]MH_I2C_Read... [12:32:13]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [12:32:13]RAPDU: 90 00 [12:32:13]wFMCommunicate OK [12:32:13]wFMCommunicate request_size=255 [12:32:13]MH_SAM_APDU [12:32: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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CD CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B2 01 00 35 04 06 00 BF [12:32:13]Write to MH i2c: E2 02 01 0E 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CD CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B2 01 00 35 04 06 00 BF 00 00 0B [12:32:13]Write i2c OK [12:32:13]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [12:32:14]RAPDU: 90 00 [12:32:14]wFMCommunicate OK [12:32:14]wFMCommunicate request_size=10 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 0D 02 02 05 F0 DD 59 8A 30 [12:32:14]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 F0 DD 59 8A 30 00 00 74 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [12:32:14]RAPDU: 90 00 [12:32:14]wFMCommunicate OK [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 0D 03 02 [12:32:14]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0B 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0B 00 10 01 00 A1 52 BB 04 DD 17 30 11 90 00 74 [12:32:14]RAPDU: A1 52 BB 04 DD 17 30 11 90 00 [12:32:14]wFMCommunicate OK [12:32:14]SAM_PROTO_SignData done [12:32:14]FM_MakeSignedData done [12:32:14]CreateOFDProtocolMessage [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 11 00 00 [12:32:14]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 17 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DE [12:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:32:14]wFMCommunicate OK [12:32:14]CreateOFDProtocolMessage done [12:32:14]OFDSenderStorePacket 111337 [12:32:14]StoreOFDPacket docnum=111337 [12:32:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 6F 07 01 0D 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CD CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B2 01 00 35 04 06 00 BF F0 DD 59 8A 30 A1 52 BB 04 DD 17 30 11 [12:32:14]CheckFolder [12:32:14]dirname=/storage/ofd_packets [12:32:14]CheckFolder done [12:32:14]ProducePacketName [12:32:14]name=ofd_packets/00111337 [12:32:14]NVStorageSaveData ofd_packets/00111337 [12:32:14]File name is /storage/ofd_packets/00111337 [12:32:14]Write 301 bytes [12:32:14]NVStorageSaveData done [12:32:14]OFDSenderStorePacket done [12:32:14]KKMCreateOFDPacket done [12:32:14]NVStorageSaveData kkm_last_timestamp [12:32:14]File name is /storage/kkm_last_timestamp [12:32:14]Write 4 bytes [12:32:14]NVStorageSaveData done [12:32:14]ExternCall_PrintAddStr [12:32:14]wPrintStart [12:32:14]Write to MH i2c: 01 00 00 12 01 13 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: 01 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: 01 07 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [12:32:14]RasterBufferAndPrint [12:32:14]line Счет N : (1)319911 [12:32:14]line ИНН: 02508201610067 [12:32:14]line Контрольно-Кассовый Чек [12:32:14]line ПРОДАЖА [12:32:14]line ТРК (МРК, ГНК) : 11 [12:32:14]line Товар: 2710124130 [12:32:14]line Аи-92-К-5 [12:32:14]line 10.020 * 66.40 [12:32:14]line = 665.33 [12:32:14]line НДС 12% НСП 1% [12:32:14]line > о реализуемом товаре [12:32:14]line ОКРУГЛЕНИЕ: -0.33 [12:32:14]line ИТОГО: 665.00 [12:32:14]line Внесено: 665.00 [12:32:14]line СДАЧА: 0.00 [12:32:14]line НСП 1% : 5.89 [12:32:14]line НДС 12% : 70.65 [12:32:14]line Наличными: 665.00 [12:32:14]line Безнал.: 0.00 [12:32:14]line Место: АЗС № 65 "Партнер Нефть" [12:32:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:32:14]line СНО: Общий режим [12:32:14]line Чек 86 19.06.2024 12:32 [12:32:14]line Смена: 388 ФФД: 1.0 [12:32:14]line ЗНМ: 0300000198 [12:32:14]line РНМ: 0000000000092771 [12:32:14]line Версия ККМ: 001 [12:32:14]line ФМ: 0000000000875083 [12:32:14]line ФД: 111337 [12:32:14]line ФПД: 211041226689072 [12:32:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111337&fm=211041226689072&tin=02508201610067®Number=0000000000092771&sum=66500 [12:32:14]OFD Sender: Processing packet 111337 [packets to send 38, broken 37] [12:32:14]ProducePacketName [12:32:14]name=ofd_packets/00111337 [12:32:14]OFD Sender: To server: pG, [12:32:14]CommunicateWithHost lk.salyk.kg:30040 [12:32:14]ConnectInit lk.salyk.kg [12:32:14]written 0, free lines is 4095 [12:32:14]Connected sock=10 [12:32:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 6F 07 01 0D 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 CD CF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 E9 B2 01 00 35 04 06 00 BF F0 DD 59 8A 30 A1 52 BB 04 DD 17 30 11 [12:32:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A7 E4 47 00 9E 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 35 30 38 33 10 04 04 00 E9 B2 01 00 F4 03 04 00 37 67 72 66 B6 04 01 00 00 57 65 20 A3 03 74 D8 EC [12:32:14]CommunicateWithHost err = 0 [12:32:14]CheckOFDResponse [12:32:14]1017 (14) - 77093643461234 [12:32:14]1041 (16) - 0000000000875083 [12:32:14]1040 (4) - 111337 [12:32:14]1012 (4) - 19.06.2024 05:05 [12:32:14]1206 (1) - 0 [12:32:14]OFD Sender: Remove packet 111337 [12:32:14]ProducePacketName [12:32:14]name=ofd_packets/00111337 [12:32:14]NVStorageDeleteData [12:32:15]Write to MH i2c: 01 00 00 3D 01 3E [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 07 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 CF 0C 20 [12:32:15]RasterBufferAndPrint [12:32:15]line [12:32:15]line [12:32:15]line [12:32:15]line [12:32:15]line [12:32:15]written 0, free lines is 3286 [12:32:15]MH_Cut [12:32:15]Write to MH i2c: D1 01 00 44 01 01 17 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: D1 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: D1 01 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: D1 01 00 44 01 00 16 [12:32:15]Write to MH i2c: 01 00 00 45 01 46 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]OFD Sender: No OFD packet to send [12:32:15]*** Cut start [12:32:15]*** Partial cut [12:32:15]*** CUTSNS_PIN = 1 [12:32:15]*** CUTSNS_PIN = 0 [12:32:16]*** Brake cut motor [12:32:16]Read from MH i2c: 01 [12:32:16]MH_I2C_Read... [12:32:16]*** Stop cut motor [12:32:16]*** Cut end [12:32:16]Read from MH i2c: 01 07 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [12:32:16]process_action close_receipt done [12:32:16]requested_data is exist [12:32:16]produce_requested_data [12:32:16]requested_item fm.sn is exist - process it [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 11 00 00 [12:32:16]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 17 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 13 [12:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:32:16]wFMCommunicate OK [12:32:16]requested_item fd.num is exist - process it [12:32:16]SAM_PROTO_GetFieldsCounters [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 13 00 00 [12:32:16]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 62 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [12:32: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 E9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:16]wFMCommunicate OK [12:32:16]SAM_PROTO_GetFieldsCounters done [12:32:16]requested_item shift.num is exist - process it [12:32:16]requested_item shift.opened is exist - process it [12:32:16]req_shift_opened [12:32:16]FM_GetShiftState [12:32:16]SAM_PROTO_GetShiftState [12:32:16]wFMCommunicate request_size=4 [12:32:16]MH_SAM_APDU [12:32:16]CAPDU: 80 13 01 00 [12:32:16]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [12:32:16]Write i2c OK [12:32:16]MH_I2C_Read... [12:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:16]Read from MH i2c: E2 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 0E 00 [12:32:16]MH_I2C_Read... [12:32:16]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 31 35 72 66 00 00 00 00 90 00 10 [12:32:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:32:16]wFMCommunicate OK [12:32:16]SAM_PROTO_GetShiftState done [12:32:16]FM_GetShiftState done [12:32:16]req_shift_opened done [12:32:16]requested_item shift.open_date is exist - process it [12:32:16]req_shift_open_date [12:32:16]req_shift_open_date done [12:32:16]produce_requested_data done [12:32:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111337,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:32:16]process_action_free close_receipt [12:32:16]json_value_free [12:32:16]json_value_free done [12:32:16]process_json_proto returns [12:32:16]Send response to host [12:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111337,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:32:16]free response buf [12:32:16]execute_script done [12:32:16]execute_script returns [12:32:16]free content buf [12:32:16]Sock 7.Close socket [12:32:16]Sock 7.Thread stoped [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:12]accept exits with 9 [12:33:12]New connection [12:33:12]New thread 3067465060 created [12:33:12]Thread 3067321700 joined [12:33:12]Waiting for new connection... [12:33:12] Sock 9.Parse request [12:33:12]Sock 9.Check first char [12:33:12]Sock 9.First char is OK [12:33:12]request: POST /json_proto HTTP/1.0 [12:33:12]Method: POST [12:33:12]URL: /json_proto [12:33:12]Method is POST - this is cgi request [12:33:12]url: /json_proto [12:33:12]query_string will be loaded in cgi processing [12:33:12]execute_cgi json_proto POST (null) [12:33:12]execute_cgi path=json_proto method=POST [12:33:12]POST find Content-Length [12:33:12]Host: 172.17.59.68:8080 [12:33:12]Content-Length: 682 [12:33:12]Content-Type: application/json [12:33:12] [12:33:12]POST finish read [12:33:12]Found Content-Length = 682 [12:33:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 47.370, "sum" : 3500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:12]execute_script... [12:33: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)319910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 47.370, "sum" : 3500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:12]POST & json_proto [12:33:12]process_json_proto [12:33:12]json parsed OK: [12:33:12]protocol is kg_v1.0 [12:33:12]action value=close_receipt [12:33:12]process_action close_receipt [12:33:12]cmd_close_receipt [12:33:12]MH_GetDate [12:33:12]Write to MH i2c: F0 00 00 49 01 39 [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: F0 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: F0 09 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: F0 09 00 49 01 00 09 D0 72 66 BC EC 60 65 60 [12:33:12]GetLastDocTimeStamp 1718800333 [12:33:12]current date 1718800393 [12:33:12]FM_GetShiftState [12:33:12]SAM_PROTO_GetShiftState [12:33:12]wFMCommunicate request_size=4 [12:33:12]MH_SAM_APDU [12:33:12]CAPDU: 80 13 01 00 [12:33:12]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [12:33:12]Write i2c OK [12:33:12]MH_I2C_Read... [12:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:12]Read from MH i2c: E2 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 0E 00 [12:33:12]MH_I2C_Read... [12:33:12]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 31 35 72 66 00 00 00 00 90 00 12 [12:33:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:33:12]wFMCommunicate OK [12:33:12]SAM_PROTO_GetShiftState done [12:33:12]FM_GetShiftState done [12:33:12]opened in 1718760753 [12:33:12]opened+sec_in_day 1718847153 [12:33:12]quantity*price = 350064 [12:33:12]sum+1 = 350065 [12:33:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 87 19.06.2024 12:33 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111338 ФПД: 257993148546873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123313&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111338&fm=257993148546873&tin=02508201610067®Number=0000000000092771&sum=350000 [12:33:13]StoreToDocumentArchive [12:33:13]shift 388 fd 111338 [12:33:13]save to /storage/0388/doc_00111338 [12:33:13]save last doc name /storage/0388/doc_00111338 to /storage/kkm_last_doc_name [12:33:13]save OK [12:33:13]Clear old archive folders... [12:33:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:13]tlvbuf is 00F23D50 [12:33:13]SAM_PROTO_ClearQueue [12:33:13]wFMCommunicate request_size=4 [12:33:13]MH_SAM_APDU [12:33:13]CAPDU: 80 09 00 00 [12:33:13]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [12:33:13]Write i2c OK [12:33:13]MH_I2C_Read... [12:33:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:13]Read from MH i2c: E2 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [12:33:13]RAPDU: 90 00 [12:33:13]wFMCommunicate OK [12:33:13]SAM_PROTO_ClearQueue done [12:33:13]KKMCreateOFDPacket [12:33:13]OFDProtocolAddRootSTLVToBuf [12:33:13]FM_MakeSignedData [12:33:13]FM_MakeSignedData [12:33:13]SAM_PROTO_SignData [12:33:13]wFMCommunicate request_size=4 [12:33:13]MH_SAM_APDU [12:33:13]CAPDU: 80 0D 01 02 [12:33:13]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [12:33:13]Write i2c OK [12:33:13]MH_I2C_Read... [12:33:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:13]Read from MH i2c: E2 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 [12:33:13]MH_I2C_Read... [12:33:13]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [12:33:13]RAPDU: 90 00 [12:33:13]wFMCommunicate OK [12:33:13]wFMCommunicate request_size=255 [12:33:13]MH_SAM_APDU [12:33: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 70 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 09 D0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B2 01 00 35 04 06 00 EA [12:33:14]Write to MH i2c: E2 02 01 59 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 70 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 09 D0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B2 01 00 35 04 06 00 EA 00 00 83 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [12:33:14]RAPDU: 90 00 [12:33:14]wFMCommunicate OK [12:33:14]wFMCommunicate request_size=10 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 0D 02 02 05 A4 B5 F9 3F 39 [12:33:14]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 A4 B5 F9 3F 39 00 00 A9 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [12:33:14]RAPDU: 90 00 [12:33:14]wFMCommunicate OK [12:33:14]wFMCommunicate request_size=4 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 0D 03 02 [12:33:14]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 0B 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 0B 00 5B 01 00 09 23 58 3A 5B AC 2A 3E 90 00 05 [12:33:14]RAPDU: 09 23 58 3A 5B AC 2A 3E 90 00 [12:33:14]wFMCommunicate OK [12:33:14]SAM_PROTO_SignData done [12:33:14]FM_MakeSignedData done [12:33:14]CreateOFDProtocolMessage [12:33:14]wFMCommunicate request_size=4 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 11 00 00 [12:33:14]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 17 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [12:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:33:14]wFMCommunicate OK [12:33:14]CreateOFDProtocolMessage done [12:33:14]OFDSenderStorePacket 111338 [12:33:14]StoreOFDPacket docnum=111338 [12:33:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 4C 07 01 84 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 70 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 09 D0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B2 01 00 35 04 06 00 EA A4 B5 F9 3F 39 09 23 58 3A 5B AC 2A 3E [12:33:14]CheckFolder [12:33:14]dirname=/storage/ofd_packets [12:33:14]CheckFolder done [12:33:14]ProducePacketName [12:33:14]name=ofd_packets/00111338 [12:33:14]NVStorageSaveData ofd_packets/00111338 [12:33:14]File name is /storage/ofd_packets/00111338 [12:33:14]Write 301 bytes [12:33:14]NVStorageSaveData done [12:33:14]OFDSenderStorePacket done [12:33:14]KKMCreateOFDPacket done [12:33:14]NVStorageSaveData kkm_last_timestamp [12:33:14]File name is /storage/kkm_last_timestamp [12:33:14]Write 4 bytes [12:33:14]NVStorageSaveData done [12:33:14]ExternCall_PrintAddStr [12:33:14]wPrintStart [12:33:14]Write to MH i2c: 01 00 00 5D 01 5E [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 07 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [12:33:14]RasterBufferAndPrint [12:33:14]line Счет N : (1)319910 [12:33:14]line ИНН: 02508201610067 [12:33:14]line Контрольно-Кассовый Чек [12:33:14]line ПРОДАЖА [12:33:14]line ТРК (МРК, ГНК) : 12 [12:33:14]line Товар: 2710124500 [12:33:14]line Аи-95-К-5 [12:33:14]line 47.370 * 73.90 [12:33:14]line = 3500.64 [12:33:14]line НДС 12% НСП 1% [12:33:14]line > о реализуемом товаре [12:33:14]line ОКРУГЛЕНИЕ: -0.64 [12:33:14]line ИТОГО: 3500.00 [12:33:14]line Внесено: 3500.00 [12:33:14]line СДАЧА: 0.00 [12:33:14]line НСП 1% : 30.98 [12:33:14]line НДС 12% : 371.75 [12:33:14]line Наличными: 3500.00 [12:33:14]line Безнал.: 0.00 [12:33:14]line Место: АЗС № 65 "Партнер Нефть" [12:33:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:33:14]line СНО: Общий режим [12:33:14]line Чек 87 19.06.2024 12:33 [12:33:14]line Смена: 388 ФФД: 1.0 [12:33:14]line ЗНМ: 0300000198 [12:33:14]line РНМ: 0000000000092771 [12:33:14]line Версия ККМ: 001 [12:33:14]line ФМ: 0000000000875083 [12:33:14]line ФД: 111338 [12:33:14]line ФПД: 257993148546873 [12:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123313&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111338&fm=257993148546873&tin=02508201610067®Number=0000000000092771&sum=350000 [12:33:14]OFD Sender: Processing packet 111338 [packets to send 38, broken 37] [12:33:14]ProducePacketName [12:33:14]name=ofd_packets/00111338 [12:33:14]OFD Sender: To server: pG, [12:33:14]CommunicateWithHost lk.salyk.kg:30040 [12:33:14]ConnectInit lk.salyk.kg [12:33:14]written 0, free lines is 4095 [12:33:14]Connected sock=10 [12:33:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D8 4C 07 01 84 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0A B9 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 70 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 09 D0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B2 01 00 35 04 06 00 EA A4 B5 F9 3F 39 09 23 58 3A 5B AC 2A 3E [12:33:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 13 9F 47 00 5F 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EA B2 01 00 F4 03 04 00 73 67 72 66 B6 04 01 00 00 29 A0 18 FE A5 F2 34 DD [12:33:15]CommunicateWithHost err = 0 [12:33:15]CheckOFDResponse [12:33:15]1017 (14) - 77093643461234 [12:33:15]1041 (16) - 0000000000875083 [12:33:15]1040 (4) - 111338 [12:33:15]1012 (4) - 19.06.2024 05:06 [12:33:15]1206 (1) - 0 [12:33:15]OFD Sender: Remove packet 111338 [12:33:15]ProducePacketName [12:33:15]name=ofd_packets/00111338 [12:33:15]NVStorageDeleteData [12:33:15]Write to MH i2c: 01 00 00 88 01 89 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: 01 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: 01 07 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: 01 07 00 88 01 00 00 00 00 00 DC 0C 78 [12:33:15]RasterBufferAndPrint [12:33:15]line [12:33:15]line [12:33:15]line [12:33:15]line [12:33:15]line [12:33:15]written 0, free lines is 3298 [12:33:15]MH_Cut [12:33:15]Write to MH i2c: D1 01 00 8F 01 01 62 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: D1 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: D1 01 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: D1 01 00 8F 01 00 61 [12:33:15]Write to MH i2c: 01 00 00 90 01 91 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]OFD Sender: No OFD packet to send [12:33:15]*** Cut start [12:33:15]*** Partial cut [12:33:15]*** CUTSNS_PIN = 1 [12:33:16]*** CUTSNS_PIN = 0 [12:33:16]*** Brake cut motor [12:33:16]Read from MH i2c: 01 [12:33:16]MH_I2C_Read... [12:33:16]*** Stop cut motor [12:33:16]*** Cut end [12:33:16]Read from MH i2c: 01 07 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [12:33:16]process_action close_receipt done [12:33:16]requested_data is exist [12:33:16]produce_requested_data [12:33:16]requested_item fm.sn is exist - process it [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 11 00 00 [12:33:16]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 17 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [12:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:33:16]wFMCommunicate OK [12:33:16]requested_item fd.num is exist - process it [12:33:16]SAM_PROTO_GetFieldsCounters [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 13 00 00 [12:33:16]Write to MH i2c: E2 08 00 92 01 80 13 00 00 00 00 00 00 0F [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 62 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 62 00 92 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [12:33: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:16]wFMCommunicate OK [12:33:16]SAM_PROTO_GetFieldsCounters done [12:33:16]requested_item shift.num is exist - process it [12:33:16]requested_item shift.opened is exist - process it [12:33:16]req_shift_opened [12:33:16]FM_GetShiftState [12:33:16]SAM_PROTO_GetShiftState [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 13 01 00 [12:33:16]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 0E 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5B [12:33:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:33:16]wFMCommunicate OK [12:33:16]SAM_PROTO_GetShiftState done [12:33:16]FM_GetShiftState done [12:33:16]req_shift_opened done [12:33:16]requested_item shift.open_date is exist - process it [12:33:16]req_shift_open_date [12:33:16]req_shift_open_date done [12:33:16]produce_requested_data done [12:33:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111338,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:33:16]process_action_free close_receipt [12:33:16]json_value_free [12:33:16]json_value_free done [12:33:16]process_json_proto returns [12:33:16]Send response to host [12:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111338,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:33:16]free response buf [12:33:16]execute_script done [12:33:16]execute_script returns [12:33:16]free content buf [12:33:16]Sock 9.Close socket [12:33:16]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:13]accept exits with 7 [12:37:13]New connection [12:37:13]New thread 3067321700 created [12:37:13]Thread 3067465060 joined [12:37:13]Waiting for new connection... [12:37:13] Sock 7.Parse request [12:37:13]Sock 7.Check first char [12:37:13]Sock 7.First char is OK [12:37:13]request: POST /json_proto HTTP/1.0 [12:37:13]Method: POST [12:37:13]URL: /json_proto [12:37:13]Method is POST - this is cgi request [12:37:13]url: /json_proto [12:37:13]query_string will be loaded in cgi processing [12:37:13]execute_cgi json_proto POST (null) [12:37:13]execute_cgi path=json_proto method=POST [12:37:13]POST find Content-Length [12:37:13]Host: 172.17.59.68:8080 [12:37:13]Content-Length: 642 [12:37:13]Content-Type: application/json [12:37:13] [12:37:13]POST finish read [12:37:13]Found Content-Length = 642 [12:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 50.000, "sum" : 3695.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3695.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:13]execute_script... [12:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 50.000, "sum" : 3695.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3695.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:13]POST & json_proto [12:37:13]process_json_proto [12:37:13]json parsed OK: [12:37:13]protocol is kg_v1.0 [12:37:13]action value=close_receipt [12:37:13]process_action close_receipt [12:37:13]cmd_close_receipt [12:37:13]MH_GetDate [12:37:13]Write to MH i2c: F0 00 00 94 01 84 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 09 00 [12:37:13]MH_I2C_Read... [12:37:13]Read from MH i2c: F0 09 00 94 01 00 FA D0 72 66 BC EC 60 65 9C [12:37:13]GetLastDocTimeStamp 1718800393 [12:37:13]current date 1718800634 [12:37:13]FM_GetShiftState [12:37:13]SAM_PROTO_GetShiftState [12:37:13]wFMCommunicate request_size=4 [12:37:13]MH_SAM_APDU [12:37:13]CAPDU: 80 13 01 00 [12:37:13]Write to MH i2c: E2 08 00 95 01 80 13 01 00 00 00 00 00 13 [12:37:13]Write i2c OK [12:37:13]MH_I2C_Read... [12:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:14]Read from MH i2c: E2 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 0E 00 [12:37:14]MH_I2C_Read... [12:37:14]Read from MH i2c: E2 0E 00 95 01 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5D [12:37:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:37:14]wFMCommunicate OK [12:37:14]SAM_PROTO_GetShiftState done [12:37:14]FM_GetShiftState done [12:37:14]opened in 1718760753 [12:37:14]opened+sec_in_day 1718847153 [12:37:14]quantity*price = 369500 [12:37:14]sum+1 = 369501 [12:37:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3695.00 НСП 1% : 32.70 НДС 12% : 392.39 Наличными: 3695.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 88 19.06.2024 12:37 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111339 ФПД: 67693235268613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123714&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111339&fm=67693235268613&tin=02508201610067®Number=0000000000092771&sum=369500 [12:37:15]StoreToDocumentArchive [12:37:15]shift 388 fd 111339 [12:37:15]save to /storage/0388/doc_00111339 [12:37:15]save last doc name /storage/0388/doc_00111339 to /storage/kkm_last_doc_name [12:37:15]save OK [12:37:15]Clear old archive folders... [12:37:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:15]tlvbuf is 00F408E0 [12:37:15]SAM_PROTO_ClearQueue [12:37:15]wFMCommunicate request_size=4 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 09 00 00 [12:37:15]Write to MH i2c: E2 08 00 A2 01 80 09 00 00 00 00 00 00 15 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [12:37:15]RAPDU: 90 00 [12:37:15]wFMCommunicate OK [12:37:15]SAM_PROTO_ClearQueue done [12:37:15]KKMCreateOFDPacket [12:37:15]OFDProtocolAddRootSTLVToBuf [12:37:15]FM_MakeSignedData [12:37:15]FM_MakeSignedData [12:37:15]SAM_PROTO_SignData [12:37:15]wFMCommunicate request_size=4 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 0D 01 02 [12:37:15]Write to MH i2c: E2 08 00 A3 01 80 0D 01 02 00 00 00 00 1D [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [12:37:15]RAPDU: 90 00 [12:37:15]wFMCommunicate OK [12:37:15]wFMCommunicate request_size=255 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5C A3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 99 00 00 00 00 07 04 06 00 5C A3 05 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 FA D0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B2 01 00 35 04 06 00 3D [12:37:15]Write to MH i2c: E2 02 01 A4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5C A3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 99 00 00 00 00 07 04 06 00 5C A3 05 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 FA D0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B2 01 00 35 04 06 00 3D 00 00 50 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [12:37:15]RAPDU: 90 00 [12:37:15]wFMCommunicate OK [12:37:15]wFMCommunicate request_size=10 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 0D 02 02 05 91 0F 3D EC 05 [12:37:15]Write to MH i2c: E2 0D 00 A5 01 80 0D 02 02 05 00 91 0F 3D EC 05 00 00 F8 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 03 00 A5 01 00 90 00 1A [12:37:15]RAPDU: 90 00 [12:37:15]wFMCommunicate OK [12:37:15]wFMCommunicate request_size=4 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 0D 03 02 [12:37:15]Write to MH i2c: E2 08 00 A6 01 80 0D 03 02 00 00 00 00 22 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 0B 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 0B 00 A6 01 00 2A 68 AD B4 65 7E 46 E8 90 00 27 [12:37:15]RAPDU: 2A 68 AD B4 65 7E 46 E8 90 00 [12:37:15]wFMCommunicate OK [12:37:15]SAM_PROTO_SignData done [12:37:15]FM_MakeSignedData done [12:37:15]CreateOFDProtocolMessage [12:37:15]wFMCommunicate request_size=4 [12:37:15]MH_SAM_APDU [12:37:15]CAPDU: 80 11 00 00 [12:37:15]Write to MH i2c: E2 08 00 A7 01 80 11 00 00 00 00 00 00 22 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:15]Read from MH i2c: E2 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 17 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: E2 17 00 A7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [12:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:37:15]wFMCommunicate OK [12:37:15]CreateOFDProtocolMessage done [12:37:15]OFDSenderStorePacket 111339 [12:37:15]StoreOFDPacket docnum=111339 [12:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BD C2 07 01 B5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5C A3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 99 00 00 00 00 07 04 06 00 5C A3 05 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 FA D0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B2 01 00 35 04 06 00 3D 91 0F 3D EC 05 2A 68 AD B4 65 7E 46 E8 [12:37:15]CheckFolder [12:37:15]dirname=/storage/ofd_packets [12:37:15]CheckFolder done [12:37:15]ProducePacketName [12:37:15]name=ofd_packets/00111339 [12:37:15]NVStorageSaveData ofd_packets/00111339 [12:37:15]File name is /storage/ofd_packets/00111339 [12:37:15]Write 301 bytes [12:37:15]NVStorageSaveData done [12:37:15]OFDSenderStorePacket done [12:37:15]KKMCreateOFDPacket done [12:37:15]NVStorageSaveData kkm_last_timestamp [12:37:15]File name is /storage/kkm_last_timestamp [12:37:15]Write 4 bytes [12:37:15]NVStorageSaveData done [12:37:15]ExternCall_PrintAddStr [12:37:15]wPrintStart [12:37:15]Write to MH i2c: 01 00 00 A8 01 A9 [12:37:15]Write i2c OK [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 [12:37:15]MH_I2C_Read... [12:37:15]Read from MH i2c: 01 07 00 A8 01 00 00 00 00 00 FF 0F BE [12:37:15]RasterBufferAndPrint [12:37:15]line Счет N : (1)319912 [12:37:15]line ИНН: 02508201610067 [12:37:15]line Контрольно-Кассовый Чек [12:37:15]line ПРОДАЖА [12:37:15]line ТРК (МРК, ГНК) : 12 [12:37:15]line Товар: 2710124500 [12:37:15]line Аи-95-К-5 [12:37:15]line 50.000 * 73.90 [12:37:15]line = 3695.00 [12:37:15]line НДС 12% НСП 1% [12:37:15]line > о реализуемом товаре [12:37:15]line ИТОГО: 3695.00 [12:37:15]line НСП 1% : 32.70 [12:37:15]line НДС 12% : 392.39 [12:37:15]line Наличными: 3695.00 [12:37:15]line Безнал.: 0.00 [12:37:15]line Место: АЗС № 65 "Партнер Нефть" [12:37:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:37:15]line СНО: Общий режим [12:37:15]line Чек 88 19.06.2024 12:37 [12:37:15]line Смена: 388 ФФД: 1.0 [12:37:15]line ЗНМ: 0300000198 [12:37:15]line РНМ: 0000000000092771 [12:37:15]line Версия ККМ: 001 [12:37:15]line ФМ: 0000000000875083 [12:37:15]line ФД: 111339 [12:37:15]line ФПД: 67693235268613 [12:37:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123714&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111339&fm=67693235268613&tin=02508201610067®Number=0000000000092771&sum=369500 [12:37:16]OFD Sender: Processing packet 111339 [packets to send 38, broken 37] [12:37:16]ProducePacketName [12:37:16]name=ofd_packets/00111339 [12:37:16]OFD Sender: To server: pG, [12:37:16]CommunicateWithHost lk.salyk.kg:30040 [12:37:16]ConnectInit lk.salyk.kg [12:37:16]written 0, free lines is 4095 [12:37:16]Connected sock=9 [12:37:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BD C2 07 01 B5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5C A3 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A3 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 99 00 00 00 00 07 04 06 00 5C A3 05 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 FA D0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B2 01 00 35 04 06 00 3D 91 0F 3D EC 05 2A 68 AD B4 65 7E 46 E8 [12:37:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D5 63 47 00 88 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EB B2 01 00 F4 03 04 00 64 68 72 66 B6 04 01 00 00 64 E6 9D 47 7F 40 66 B9 [12:37:16]CommunicateWithHost err = 0 [12:37:16]CheckOFDResponse [12:37:16]1017 (14) - 77093643461234 [12:37:16]1041 (16) - 0000000000875083 [12:37:16]1040 (4) - 111339 [12:37:16]1012 (4) - 19.06.2024 05:11 [12:37:16]1206 (1) - 0 [12:37:16]OFD Sender: Remove packet 111339 [12:37:16]ProducePacketName [12:37:16]name=ofd_packets/00111339 [12:37:16]NVStorageDeleteData [12:37:16]Write to MH i2c: 01 00 00 D0 01 D1 [12:37:16]Write i2c OK [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: 01 [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: 01 07 00 [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 0F 0D F4 [12:37:16]RasterBufferAndPrint [12:37:16]line [12:37:16]line [12:37:16]line [12:37:16]line [12:37:16]line [12:37:16]written 0, free lines is 3349 [12:37:16]MH_Cut [12:37:16]Write to MH i2c: D1 01 00 D7 01 01 AA [12:37:16]Write i2c OK [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: D1 [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: D1 01 00 [12:37:16]MH_I2C_Read... [12:37:16]Read from MH i2c: D1 01 00 D7 01 00 A9 [12:37:16]Write to MH i2c: 01 00 00 D8 01 D9 [12:37:16]Write i2c OK [12:37:16]MH_I2C_Read... [12:37:16]OFD Sender: No OFD packet to send [12:37:17]*** Cut start [12:37:17]*** Partial cut [12:37:17]*** CUTSNS_PIN = 1 [12:37:17]*** CUTSNS_PIN = 0 [12:37:17]*** Brake cut motor [12:37:17]Read from MH i2c: 01 [12:37:17]MH_I2C_Read... [12:37:17]*** Stop cut motor [12:37:17]*** Cut end [12:37:17]Read from MH i2c: 01 07 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [12:37:17]process_action close_receipt done [12:37:17]requested_data is exist [12:37:17]produce_requested_data [12:37:17]requested_item fm.sn is exist - process it [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 11 00 00 [12:37:17]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 17 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [12:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:37:17]wFMCommunicate OK [12:37:17]requested_item fd.num is exist - process it [12:37:17]SAM_PROTO_GetFieldsCounters [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 00 00 [12:37:17]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:17]Read from MH i2c: E2 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 62 00 [12:37:17]MH_I2C_Read... [12:37:17]Read from MH i2c: E2 62 00 DA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [12:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:17]wFMCommunicate OK [12:37:17]SAM_PROTO_GetFieldsCounters done [12:37:17]requested_item shift.num is exist - process it [12:37:17]requested_item shift.opened is exist - process it [12:37:17]req_shift_opened [12:37:17]FM_GetShiftState [12:37:17]SAM_PROTO_GetShiftState [12:37:17]wFMCommunicate request_size=4 [12:37:17]MH_SAM_APDU [12:37:17]CAPDU: 80 13 01 00 [12:37:17]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [12:37:17]Write i2c OK [12:37:17]MH_I2C_Read... [12:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:18]Read from MH i2c: E2 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 0E 00 [12:37:18]MH_I2C_Read... [12:37:18]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A3 [12:37:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:37:18]wFMCommunicate OK [12:37:18]SAM_PROTO_GetShiftState done [12:37:18]FM_GetShiftState done [12:37:18]req_shift_opened done [12:37:18]requested_item shift.open_date is exist - process it [12:37:18]req_shift_open_date [12:37:18]req_shift_open_date done [12:37:18]produce_requested_data done [12:37:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111339,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:37:18]process_action_free close_receipt [12:37:18]json_value_free [12:37:18]json_value_free done [12:37:18]process_json_proto returns [12:37:18]Send response to host [12:37:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111339,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:37:18]free response buf [12:37:18]execute_script done [12:37:18]execute_script returns [12:37:18]free content buf [12:37:18]Sock 7.Close socket [12:37:18]Sock 7.Thread stoped [12:37:21]OFD Sender: No OFD packet to send [12:37:26]OFD Sender: No OFD packet to send [12:37:31]OFD Sender: No OFD packet to send [12:37:36]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:03]accept exits with 10 [12:38:03]New connection [12:38:03]New thread 3067465060 created [12:38:03]Thread 3067321700 joined [12:38:03]Waiting for new connection... [12:38:03] Sock 10.Parse request [12:38:03]Sock 10.Check first char [12:38:03]Sock 10.First char is OK [12:38:03]request: POST /json_proto HTTP/1.0 [12:38:03]Method: POST [12:38:03]URL: /json_proto [12:38:03]Method is POST - this is cgi request [12:38:03]url: /json_proto [12:38:03]query_string will be loaded in cgi processing [12:38:03]execute_cgi json_proto POST (null) [12:38:03]execute_cgi path=json_proto method=POST [12:38:03]POST find Content-Length [12:38:03]Host: 172.17.59.68:8080 [12:38:03]Content-Length: 677 [12:38:03]Content-Type: application/json [12:38:03] [12:38:03]POST finish read [12:38:03]Found Content-Length = 677 [12:38:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:03]execute_script... [12:38: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)319913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:03]POST & json_proto [12:38:03]process_json_proto [12:38:03]json parsed OK: [12:38:03]protocol is kg_v1.0 [12:38:03]action value=close_receipt [12:38:03]process_action close_receipt [12:38:03]cmd_close_receipt [12:38:03]MH_GetDate [12:38:03]Write to MH i2c: F0 00 00 DC 01 CC [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: F0 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: F0 09 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: F0 09 00 DC 01 00 2C D1 72 66 BC EC 60 65 17 [12:38:03]GetLastDocTimeStamp 1718800634 [12:38:03]current date 1718800684 [12:38:03]FM_GetShiftState [12:38:03]SAM_PROTO_GetShiftState [12:38:03]wFMCommunicate request_size=4 [12:38:03]MH_SAM_APDU [12:38:03]CAPDU: 80 13 01 00 [12:38:03]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [12:38:03]Write i2c OK [12:38:03]MH_I2C_Read... [12:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:03]Read from MH i2c: E2 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 0E 00 [12:38:03]MH_I2C_Read... [12:38:03]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A5 [12:38:03]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:38:03]wFMCommunicate OK [12:38:03]SAM_PROTO_GetShiftState done [12:38:03]FM_GetShiftState done [12:38:03]opened in 1718760753 [12:38:03]opened+sec_in_day 1718847153 [12:38:03]quantity*price = 50065 [12:38:03]sum+1 = 50067 [12:38:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 89 19.06.2024 12:38 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111340 ФПД: 235037877185542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123804&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111340&fm=235037877185542&tin=02508201610067®Number=0000000000092771&sum=50000 [12:38:04]StoreToDocumentArchive [12:38:04]shift 388 fd 111340 [12:38:04]save to /storage/0388/doc_00111340 [12:38:04]save last doc name /storage/0388/doc_00111340 to /storage/kkm_last_doc_name [12:38:04]save OK [12:38:04]Clear old archive folders... [12:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:04]tlvbuf is 00F3AA60 [12:38:04]SAM_PROTO_ClearQueue [12:38:04]wFMCommunicate request_size=4 [12:38:04]MH_SAM_APDU [12:38:04]CAPDU: 80 09 00 00 [12:38:04]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:04]Read from MH i2c: E2 03 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [12:38:04]RAPDU: 90 00 [12:38:04]wFMCommunicate OK [12:38:04]SAM_PROTO_ClearQueue done [12:38:04]KKMCreateOFDPacket [12:38:04]OFDProtocolAddRootSTLVToBuf [12:38:04]FM_MakeSignedData [12:38:04]FM_MakeSignedData [12:38:04]SAM_PROTO_SignData [12:38:04]wFMCommunicate request_size=4 [12:38:04]MH_SAM_APDU [12:38:04]CAPDU: 80 0D 01 02 [12:38:04]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:04]Read from MH i2c: E2 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 [12:38:04]MH_I2C_Read... [12:38:04]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [12:38:04]RAPDU: 90 00 [12:38:04]wFMCommunicate OK [12:38:04]wFMCommunicate request_size=255 [12:38:04]MH_SAM_APDU [12:38: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 2C D1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B2 01 00 35 04 06 00 D5 [12:38:04]Write to MH i2c: E2 02 01 EC 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 2C D1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B2 01 00 35 04 06 00 D5 00 00 40 [12:38:04]Write i2c OK [12:38:04]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 03 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [12:38:05]RAPDU: 90 00 [12:38:05]wFMCommunicate OK [12:38:05]wFMCommunicate request_size=10 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 0D 02 02 05 C4 05 2D AC 06 [12:38:05]Write to MH i2c: E2 0D 00 ED 01 80 0D 02 02 05 00 C4 05 2D AC 06 00 00 1A [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 03 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [12:38:05]RAPDU: 90 00 [12:38:05]wFMCommunicate OK [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 0D 03 02 [12:38:05]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 0B 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 0B 00 EE 01 00 1C 9A 1F 55 5F 47 64 F6 90 00 95 [12:38:05]RAPDU: 1C 9A 1F 55 5F 47 64 F6 90 00 [12:38:05]wFMCommunicate OK [12:38:05]SAM_PROTO_SignData done [12:38:05]FM_MakeSignedData done [12:38:05]CreateOFDProtocolMessage [12:38:05]wFMCommunicate request_size=4 [12:38:05]MH_SAM_APDU [12:38:05]CAPDU: 80 11 00 00 [12:38:05]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:05]Read from MH i2c: E2 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [12:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:38:05]wFMCommunicate OK [12:38:05]CreateOFDProtocolMessage done [12:38:05]OFDSenderStorePacket 111340 [12:38:05]StoreOFDPacket docnum=111340 [12:38:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 75 07 01 CF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 2C D1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B2 01 00 35 04 06 00 D5 C4 05 2D AC 06 1C 9A 1F 55 5F 47 64 F6 [12:38:05]CheckFolder [12:38:05]dirname=/storage/ofd_packets [12:38:05]CheckFolder done [12:38:05]ProducePacketName [12:38:05]name=ofd_packets/00111340 [12:38:05]NVStorageSaveData ofd_packets/00111340 [12:38:05]File name is /storage/ofd_packets/00111340 [12:38:05]Write 301 bytes [12:38:05]NVStorageSaveData done [12:38:05]OFDSenderStorePacket done [12:38:05]KKMCreateOFDPacket done [12:38:05]NVStorageSaveData kkm_last_timestamp [12:38:05]File name is /storage/kkm_last_timestamp [12:38:05]Write 4 bytes [12:38:05]NVStorageSaveData done [12:38:05]ExternCall_PrintAddStr [12:38:05]wPrintStart [12:38:05]Write to MH i2c: 01 00 00 F0 01 F1 [12:38:05]Write i2c OK [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 07 00 [12:38:05]MH_I2C_Read... [12:38:05]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [12:38:05]RasterBufferAndPrint [12:38:05]line Счет N : (1)319913 [12:38:05]line ИНН: 02508201610067 [12:38:05]line Контрольно-Кассовый Чек [12:38:05]line ПРОДАЖА [12:38:05]line ТРК (МРК, ГНК) : 11 [12:38:05]line Товар: 2710124130 [12:38:05]line Аи-92-К-5 [12:38:05]line 7.540 * 66.40 [12:38:05]line = 500.66 [12:38:05]line НДС 12% НСП 1% [12:38:05]line > о реализуемом товаре [12:38:05]line ОКРУГЛЕНИЕ: -0.66 [12:38:05]line ИТОГО: 500.00 [12:38:05]line Внесено: 500.00 [12:38:05]line СДАЧА: 0.00 [12:38:05]line НСП 1% : 4.43 [12:38:05]line НДС 12% : 53.17 [12:38:05]line Наличными: 500.00 [12:38:05]line Безнал.: 0.00 [12:38:05]line Место: АЗС № 65 "Партнер Нефть" [12:38:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:38:05]line СНО: Общий режим [12:38:05]line Чек 89 19.06.2024 12:38 [12:38:05]line Смена: 388 ФФД: 1.0 [12:38:05]line ЗНМ: 0300000198 [12:38:05]line РНМ: 0000000000092771 [12:38:05]line Версия ККМ: 001 [12:38:05]line ФМ: 0000000000875083 [12:38:05]line ФД: 111340 [12:38:05]line ФПД: 235037877185542 [12:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T123804&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111340&fm=235037877185542&tin=02508201610067®Number=0000000000092771&sum=50000 [12:38:05]OFD Sender: Processing packet 111340 [packets to send 38, broken 37] [12:38:05]ProducePacketName [12:38:05]name=ofd_packets/00111340 [12:38:05]OFD Sender: To server: pG, [12:38:05]CommunicateWithHost lk.salyk.kg:30040 [12:38:05]ConnectInit lk.salyk.kg [12:38:05]written 0, free lines is 4095 [12:38:05]Connected sock=9 [12:38:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 50 75 07 01 CF 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 2C D1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B2 01 00 35 04 06 00 D5 C4 05 2D AC 06 1C 9A 1F 55 5F 47 64 F6 [12:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1A AF 47 00 4E EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EC B2 01 00 F4 03 04 00 95 68 72 66 B6 04 01 00 00 DC 1C E8 02 C0 65 68 23 [12:38:05]CommunicateWithHost err = 0 [12:38:05]CheckOFDResponse [12:38:05]1017 (14) - 77093643461234 [12:38:05]1041 (16) - 0000000000875083 [12:38:05]1040 (4) - 111340 [12:38:05]1012 (4) - 19.06.2024 05:11 [12:38:05]1206 (1) - 0 [12:38:05]OFD Sender: Remove packet 111340 [12:38:05]ProducePacketName [12:38:05]name=ofd_packets/00111340 [12:38:05]NVStorageDeleteData [12:38:06]Write to MH i2c: 01 00 00 1B 02 1D [12:38:06]Write i2c OK [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: 01 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: 01 07 00 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 D4 0C 04 [12:38:06]RasterBufferAndPrint [12:38:06]line [12:38:06]line [12:38:06]line [12:38:06]line [12:38:06]line [12:38:06]written 0, free lines is 3292 [12:38:06]MH_Cut [12:38:06]Write to MH i2c: D1 01 00 22 02 01 F6 [12:38:06]Write i2c OK [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: D1 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: D1 01 00 [12:38:06]MH_I2C_Read... [12:38:06]Read from MH i2c: D1 01 00 22 02 00 F5 [12:38:06]Write to MH i2c: 01 00 00 23 02 25 [12:38:06]Write i2c OK [12:38:06]MH_I2C_Read... [12:38:06]OFD Sender: No OFD packet to send [12:38:06]*** Cut start [12:38:06]*** Partial cut [12:38:06]*** CUTSNS_PIN = 1 [12:38:06]*** CUTSNS_PIN = 0 [12:38:07]*** Brake cut motor [12:38:07]Read from MH i2c: 01 [12:38:07]MH_I2C_Read... [12:38:07]*** Stop cut motor [12:38:07]*** Cut end [12:38:07]Read from MH i2c: 01 07 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [12:38:07]process_action close_receipt done [12:38:07]requested_data is exist [12:38:07]produce_requested_data [12:38:07]requested_item fm.sn is exist - process it [12:38:07]wFMCommunicate request_size=4 [12:38:07]MH_SAM_APDU [12:38:07]CAPDU: 80 11 00 00 [12:38:07]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 17 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [12:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:38:07]wFMCommunicate OK [12:38:07]requested_item fd.num is exist - process it [12:38:07]SAM_PROTO_GetFieldsCounters [12:38:07]wFMCommunicate request_size=4 [12:38:07]MH_SAM_APDU [12:38:07]CAPDU: 80 13 00 00 [12:38:07]Write to MH i2c: E2 08 00 25 02 80 13 00 00 00 00 00 00 A3 [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 62 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 62 00 25 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [12:38: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:07]wFMCommunicate OK [12:38:07]SAM_PROTO_GetFieldsCounters done [12:38:07]requested_item shift.num is exist - process it [12:38:07]requested_item shift.opened is exist - process it [12:38:07]req_shift_opened [12:38:07]FM_GetShiftState [12:38:07]SAM_PROTO_GetShiftState [12:38:07]wFMCommunicate request_size=4 [12:38:07]MH_SAM_APDU [12:38:07]CAPDU: 80 13 01 00 [12:38:07]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [12:38:07]Write i2c OK [12:38:07]MH_I2C_Read... [12:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:07]Read from MH i2c: E2 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 0E 00 [12:38:07]MH_I2C_Read... [12:38:07]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EF [12:38:07]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:38:07]wFMCommunicate OK [12:38:07]SAM_PROTO_GetShiftState done [12:38:07]FM_GetShiftState done [12:38:07]req_shift_opened done [12:38:07]requested_item shift.open_date is exist - process it [12:38:07]req_shift_open_date [12:38:07]req_shift_open_date done [12:38:07]produce_requested_data done [12:38:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111340,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:38:07]process_action_free close_receipt [12:38:07]json_value_free [12:38:07]json_value_free done [12:38:07]process_json_proto returns [12:38:07]Send response to host [12:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111340,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:38:07]free response buf [12:38:07]execute_script done [12:38:07]execute_script returns [12:38:07]free content buf [12:38:07]Sock 10.Close socket [12:38:07]Sock 10.Thread stoped [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:35]accept exits with 7 [12:42:35]New connection [12:42:35]New thread 3067321700 created [12:42:35]Thread 3067465060 joined [12:42:35]Waiting for new connection... [12:42:35] Sock 7.Parse request [12:42:35]Sock 7.Check first char [12:42:35]Sock 7.First char is OK [12:42:35]request: POST /json_proto HTTP/1.0 [12:42:35]Method: POST [12:42:35]URL: /json_proto [12:42:35]Method is POST - this is cgi request [12:42:35]url: /json_proto [12:42:35]query_string will be loaded in cgi processing [12:42:35]execute_cgi json_proto POST (null) [12:42:35]execute_cgi path=json_proto method=POST [12:42:35]POST find Content-Length [12:42:35]Host: 172.17.59.68:8080 [12:42:35]Content-Length: 679 [12:42:35]Content-Type: application/json [12:42:35] [12:42:35]POST finish read [12:42:35]Found Content-Length = 679 [12:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:35]execute_script... [12: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)319915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:35]POST & json_proto [12:42:35]process_json_proto [12:42:35]json parsed OK: [12:42:35]protocol is kg_v1.0 [12:42:35]action value=close_receipt [12:42:35]process_action close_receipt [12:42:35]cmd_close_receipt [12:42:35]MH_GetDate [12:42:35]Write to MH i2c: F0 00 00 27 02 18 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: F0 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: F0 09 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: F0 09 00 27 02 00 3C D2 72 66 BC EC 60 65 74 [12:42:35]GetLastDocTimeStamp 1718800684 [12:42:35]current date 1718800956 [12:42:35]FM_GetShiftState [12:42:35]SAM_PROTO_GetShiftState [12:42:35]wFMCommunicate request_size=4 [12:42:35]MH_SAM_APDU [12:42:35]CAPDU: 80 13 01 00 [12:42:35]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:35]Read from MH i2c: E2 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 0E 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F1 [12:42:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:42:35]wFMCommunicate OK [12:42:35]SAM_PROTO_GetShiftState done [12:42:35]FM_GetShiftState done [12:42:35]opened in 1718760753 [12:42:35]opened+sec_in_day 1718847153 [12:42:35]quantity*price = 100018 [12:42:35]sum+1 = 100020 [12:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 90 19.06.2024 12:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111341 ФПД: 117736998149737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111341&fm=117736998149737&tin=02508201610067®Number=0000000000092771&sum=100000 [12:42:36]StoreToDocumentArchive [12:42:36]shift 388 fd 111341 [12:42:36]save to /storage/0388/doc_00111341 [12:42:36]save last doc name /storage/0388/doc_00111341 to /storage/kkm_last_doc_name [12:42:36]save OK [12:42:36]Clear old archive folders... [12:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:42:36]tlvbuf is 00F413E0 [12:42:36]SAM_PROTO_ClearQueue [12:42:36]wFMCommunicate request_size=4 [12:42:36]MH_SAM_APDU [12:42:36]CAPDU: 80 09 00 00 [12:42:36]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:36]Read from MH i2c: E2 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: E2 03 00 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [12:42:36]RAPDU: 90 00 [12:42:36]wFMCommunicate OK [12:42:36]SAM_PROTO_ClearQueue done [12:42:36]KKMCreateOFDPacket [12:42:36]OFDProtocolAddRootSTLVToBuf [12:42:36]FM_MakeSignedData [12:42:36]FM_MakeSignedData [12:42:36]SAM_PROTO_SignData [12:42:36]wFMCommunicate request_size=4 [12:42:36]MH_SAM_APDU [12:42:36]CAPDU: 80 0D 01 02 [12:42:36]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:36]Read from MH i2c: E2 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: E2 03 00 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [12:42:36]RAPDU: 90 00 [12:42:36]wFMCommunicate OK [12:42:36]wFMCommunicate request_size=255 [12:42:36]MH_SAM_APDU [12:42:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3C D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B2 01 00 35 04 06 00 6B 14 C7 F3 [12:42:36]Write to MH i2c: E2 02 01 37 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3C D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B2 01 00 35 04 06 00 6B 14 C7 F3 00 00 B5 [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:37]Read from MH i2c: E2 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 03 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [12:42:37]RAPDU: 90 00 [12:42:37]wFMCommunicate OK [12:42:37]wFMCommunicate request_size=7 [12:42:37]MH_SAM_APDU [12:42:37]CAPDU: 80 0D 02 02 02 9E 69 [12:42:37]Write to MH i2c: E2 0A 00 38 02 80 0D 02 02 02 00 9E 69 00 00 BF [12:42:37]Write i2c OK [12:42:37]MH_I2C_Read... [12:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:37]Read from MH i2c: E2 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 03 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [12:42:37]RAPDU: 90 00 [12:42:37]wFMCommunicate OK [12:42:37]wFMCommunicate request_size=4 [12:42:37]MH_SAM_APDU [12:42:37]CAPDU: 80 0D 03 02 [12:42:37]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [12:42:37]Write i2c OK [12:42:37]MH_I2C_Read... [12:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:37]Read from MH i2c: E2 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 0B 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 0B 00 39 02 00 EF 8A 66 79 8E D0 32 21 90 00 C0 [12:42:37]RAPDU: EF 8A 66 79 8E D0 32 21 90 00 [12:42:37]wFMCommunicate OK [12:42:37]SAM_PROTO_SignData done [12:42:37]FM_MakeSignedData done [12:42:37]CreateOFDProtocolMessage [12:42:37]wFMCommunicate request_size=4 [12:42:37]MH_SAM_APDU [12:42:37]CAPDU: 80 11 00 00 [12:42:37]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [12:42:37]Write i2c OK [12:42:37]MH_I2C_Read... [12:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:37]Read from MH i2c: E2 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 17 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [12:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:42:37]wFMCommunicate OK [12:42:37]CreateOFDProtocolMessage done [12:42:37]OFDSenderStorePacket 111341 [12:42:37]StoreOFDPacket docnum=111341 [12:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4E 73 04 01 83 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3C D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B2 01 00 35 04 06 00 6B 14 C7 F3 9E 69 EF 8A 66 79 8E D0 32 21 [12:42:37]CheckFolder [12:42:37]dirname=/storage/ofd_packets [12:42:37]CheckFolder done [12:42:37]ProducePacketName [12:42:37]name=ofd_packets/00111341 [12:42:37]NVStorageSaveData ofd_packets/00111341 [12:42:37]File name is /storage/ofd_packets/00111341 [12:42:37]Write 298 bytes [12:42:37]NVStorageSaveData done [12:42:37]OFDSenderStorePacket done [12:42:37]KKMCreateOFDPacket done [12:42:37]NVStorageSaveData kkm_last_timestamp [12:42:37]File name is /storage/kkm_last_timestamp [12:42:37]Write 4 bytes [12:42:37]NVStorageSaveData done [12:42:37]ExternCall_PrintAddStr [12:42:37]wPrintStart [12:42:37]Write to MH i2c: 01 00 00 3B 02 3D [12:42:37]Write i2c OK [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: 01 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: 01 07 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [12:42:37]RasterBufferAndPrint [12:42:37]line Счет N : (1)319915 [12:42:37]line ИНН: 02508201610067 [12:42:37]line Контрольно-Кассовый Чек [12:42:37]line ПРОДАЖА [12:42:37]line ТРК (МРК, ГНК) : 22 [12:42:37]line Товар: 2710194210 [12:42:37]line ДТ-К-5 [12:42:37]line 13.720 * 72.90 [12:42:37]line = 1000.19 [12:42:37]line НДС 12% НСП 1% [12:42:37]line > о реализуемом товаре [12:42:37]line ОКРУГЛЕНИЕ: -0.19 [12:42:37]line ИТОГО: 1000.00 [12:42:37]line Внесено: 1000.00 [12:42:37]line СДАЧА: 0.00 [12:42:37]line НСП 1% : 8.85 [12:42:37]line НДС 12% : 106.21 [12:42:37]line Наличными: 1000.00 [12:42:37]line Безнал.: 0.00 [12:42:37]line Место: АЗС № 65 "Партнер Нефть" [12:42:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:42:37]line СНО: Общий режим [12:42:37]line Чек 90 19.06.2024 12:42 [12:42:37]line Смена: 388 ФФД: 1.0 [12:42:37]line ЗНМ: 0300000198 [12:42:37]line РНМ: 0000000000092771 [12:42:37]line Версия ККМ: 001 [12:42:37]line ФМ: 0000000000875083 [12:42:37]line ФД: 111341 [12:42:37]line ФПД: 117736998149737 [12:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111341&fm=117736998149737&tin=02508201610067®Number=0000000000092771&sum=100000 [12:42:37]OFD Sender: Processing packet 111341 [packets to send 38, broken 37] [12:42:37]ProducePacketName [12:42:37]name=ofd_packets/00111341 [12:42:37]OFD Sender: To server: pG, [12:42:37]CommunicateWithHost lk.salyk.kg:30040 [12:42:37]ConnectInit lk.salyk.kg [12:42:37]written 0, free lines is 4095 [12:42:37]Connected sock=10 [12:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4E 73 04 01 83 18 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 3C D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B2 01 00 35 04 06 00 6B 14 C7 F3 9E 69 EF 8A 66 79 8E D0 32 21 [12:42:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F8 F9 47 00 24 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 ED B2 01 00 F4 03 04 00 A6 69 72 66 B6 04 01 00 00 24 D3 CB 7D 68 70 26 E9 [12:42:37]CommunicateWithHost err = 0 [12:42:37]CheckOFDResponse [12:42:37]1017 (14) - 77093643461234 [12:42:37]1041 (16) - 0000000000875083 [12:42:37]1040 (4) - 111341 [12:42:37]1012 (4) - 19.06.2024 05:16 [12:42:37]1206 (1) - 0 [12:42:37]OFD Sender: Remove packet 111341 [12:42:37]ProducePacketName [12:42:37]name=ofd_packets/00111341 [12:42:37]NVStorageDeleteData [12:42:38]Write to MH i2c: 01 00 00 66 02 68 [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: 01 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: 01 07 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 CF 0C 4A [12:42:38]RasterBufferAndPrint [12:42:38]line [12:42:38]line [12:42:38]line [12:42:38]line [12:42:38]line [12:42:38]written 0, free lines is 3286 [12:42:38]MH_Cut [12:42:38]Write to MH i2c: D1 01 00 6D 02 01 41 [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: D1 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: D1 01 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: D1 01 00 6D 02 00 40 [12:42:38]Write to MH i2c: 01 00 00 6E 02 70 [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]OFD Sender: No OFD packet to send [12:42:38]*** Cut start [12:42:38]*** Partial cut [12:42:38]*** CUTSNS_PIN = 1 [12:42:38]*** CUTSNS_PIN = 0 [12:42:39]*** Brake cut motor [12:42:39]Read from MH i2c: 01 [12:42:39]MH_I2C_Read... [12:42:39]*** Stop cut motor [12:42:39]*** Cut end [12:42:39]Read from MH i2c: 01 07 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [12:42:39]process_action close_receipt done [12:42:39]requested_data is exist [12:42:39]produce_requested_data [12:42:39]requested_item fm.sn is exist - process it [12:42:39]wFMCommunicate request_size=4 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 11 00 00 [12:42:39]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 17 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [12:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:42:39]wFMCommunicate OK [12:42:39]requested_item fd.num is exist - process it [12:42:39]SAM_PROTO_GetFieldsCounters [12:42:39]wFMCommunicate request_size=4 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 13 00 00 [12:42:39]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 62 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 62 00 70 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 ED B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [12:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 ED B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:39]wFMCommunicate OK [12:42:39]SAM_PROTO_GetFieldsCounters done [12:42:39]requested_item shift.num is exist - process it [12:42:39]requested_item shift.opened is exist - process it [12:42:39]req_shift_opened [12:42:39]FM_GetShiftState [12:42:39]SAM_PROTO_GetShiftState [12:42:39]wFMCommunicate request_size=4 [12:42:39]MH_SAM_APDU [12:42:39]CAPDU: 80 13 01 00 [12:42:39]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [12:42:39]Write i2c OK [12:42:39]MH_I2C_Read... [12:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:39]Read from MH i2c: E2 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 0E 00 [12:42:39]MH_I2C_Read... [12:42:39]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3A [12:42:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:42:39]wFMCommunicate OK [12:42:39]SAM_PROTO_GetShiftState done [12:42:39]FM_GetShiftState done [12:42:39]req_shift_opened done [12:42:39]requested_item shift.open_date is exist - process it [12:42:39]req_shift_open_date [12:42:39]req_shift_open_date done [12:42:39]produce_requested_data done [12:42:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111341,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:42:39]process_action_free close_receipt [12:42:39]json_value_free [12:42:39]json_value_free done [12:42:39]process_json_proto returns [12:42:39]Send response to host [12:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111341,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:42:39]free response buf [12:42:39]execute_script done [12:42:39]execute_script returns [12:42:39]free content buf [12:42:39]Sock 7.Close socket [12:42:39]Sock 7.Thread stoped [12:42:40]accept exits with 9 [12:42:40]New connection [12:42:40]New thread 3067465060 created [12:42:40]Thread 3067321700 joined [12:42:40]Waiting for new connection... [12:42:40] Sock 9.Parse request [12:42:40]Sock 9.Check first char [12:42:40]Sock 9.First char is OK [12:42:40]request: POST /json_proto HTTP/1.0 [12:42:40]Method: POST [12:42:40]URL: /json_proto [12:42:40]Method is POST - this is cgi request [12:42:40]url: /json_proto [12:42:40]query_string will be loaded in cgi processing [12:42:40]execute_cgi json_proto POST (null) [12:42:40]execute_cgi path=json_proto method=POST [12:42:40]POST find Content-Length [12:42:40]Host: 172.17.59.68:8080 [12:42:40]Content-Length: 682 [12:42:40]Content-Type: application/json [12:42:40] [12:42:40]POST finish read [12:42:40]Found Content-Length = 682 [12:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.070, "sum" : 2660.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2660.00, "total" : 2660.00, "payments": [ { "type": 0, "sum" : 2660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:40]execute_script... [12:42:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 40.070, "sum" : 2660.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2660.00, "total" : 2660.00, "payments": [ { "type": 0, "sum" : 2660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:40]POST & json_proto [12:42:40]process_json_proto [12:42:40]json parsed OK: [12:42:40]protocol is kg_v1.0 [12:42:40]action value=close_receipt [12:42:40]process_action close_receipt [12:42:40]cmd_close_receipt [12:42:40]MH_GetDate [12:42:40]Write to MH i2c: F0 00 00 72 02 63 [12:42:40]Write i2c OK [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: F0 [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: F0 09 00 [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: F0 09 00 72 02 00 41 D2 72 66 BC EC 60 65 C4 [12:42:40]GetLastDocTimeStamp 1718800956 [12:42:40]current date 1718800961 [12:42:40]FM_GetShiftState [12:42:40]SAM_PROTO_GetShiftState [12:42:40]wFMCommunicate request_size=4 [12:42:40]MH_SAM_APDU [12:42:40]CAPDU: 80 13 01 00 [12:42:40]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [12:42:40]Write i2c OK [12:42:40]MH_I2C_Read... [12:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:40]Read from MH i2c: E2 [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: E2 0E 00 [12:42:40]MH_I2C_Read... [12:42:40]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3C [12:42:40]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:42:40]wFMCommunicate OK [12:42:40]SAM_PROTO_GetShiftState done [12:42:40]FM_GetShiftState done [12:42:40]opened in 1718760753 [12:42:40]opened+sec_in_day 1718847153 [12:42:40]quantity*price = 266064 [12:42:40]sum+1 = 266066 [12:42:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 2660.00 Внесено: 2660.00 СДАЧА: 0.00 НСП 1% : 23.55 НДС 12% : 282.55 Наличными: 2660.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 91 19.06.2024 12:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111342 ФПД: 126858275228692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124241&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111342&fm=126858275228692&tin=02508201610067®Number=0000000000092771&sum=266000 [12:42:42]StoreToDocumentArchive [12:42:42]shift 388 fd 111342 [12:42:42]save to /storage/0388/doc_00111342 [12:42:42]save last doc name /storage/0388/doc_00111342 to /storage/kkm_last_doc_name [12:42:42]save OK [12:42:42]Clear old archive folders... [12:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:42]tlvbuf is 00ED35D0 [12:42:42]SAM_PROTO_ClearQueue [12:42:42]wFMCommunicate request_size=4 [12:42:42]MH_SAM_APDU [12:42:42]CAPDU: 80 09 00 00 [12:42:42]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:42]Read from MH i2c: E2 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 03 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [12:42:42]RAPDU: 90 00 [12:42:42]wFMCommunicate OK [12:42:42]SAM_PROTO_ClearQueue done [12:42:42]KKMCreateOFDPacket [12:42:42]OFDProtocolAddRootSTLVToBuf [12:42:42]FM_MakeSignedData [12:42:42]FM_MakeSignedData [12:42:42]SAM_PROTO_SignData [12:42:42]wFMCommunicate request_size=4 [12:42:42]MH_SAM_APDU [12:42:42]CAPDU: 80 0D 01 02 [12:42:42]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:42]Read from MH i2c: E2 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 03 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [12:42:42]RAPDU: 90 00 [12:42:42]wFMCommunicate OK [12:42:42]wFMCommunicate request_size=255 [12:42:42]MH_SAM_APDU [12:42: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 86 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 51 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 6E 00 00 00 00 07 04 06 00 10 0F 04 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 41 D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B2 01 00 35 04 06 00 73 [12:42:42]Write to MH i2c: E2 02 01 82 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 86 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 51 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 6E 00 00 00 00 07 04 06 00 10 0F 04 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 41 D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B2 01 00 35 04 06 00 73 00 00 C3 [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:42]Read from MH i2c: E2 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 03 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [12:42:42]RAPDU: 90 00 [12:42:42]wFMCommunicate OK [12:42:42]wFMCommunicate request_size=10 [12:42:42]MH_SAM_APDU [12:42:42]CAPDU: 80 0D 02 02 05 60 7E 6E 8C 14 [12:42:42]Write to MH i2c: E2 0D 00 83 02 80 0D 02 02 05 00 60 7E 6E 8C 14 00 00 F5 [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:42]Read from MH i2c: E2 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 03 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [12:42:42]RAPDU: 90 00 [12:42:42]wFMCommunicate OK [12:42:42]wFMCommunicate request_size=4 [12:42:42]MH_SAM_APDU [12:42:42]CAPDU: 80 0D 03 02 [12:42:42]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:42]Read from MH i2c: E2 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 0B 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 0B 00 84 02 00 4B 9E 82 C0 AF CB AD 20 90 00 74 [12:42:42]RAPDU: 4B 9E 82 C0 AF CB AD 20 90 00 [12:42:42]wFMCommunicate OK [12:42:42]SAM_PROTO_SignData done [12:42:42]FM_MakeSignedData done [12:42:42]CreateOFDProtocolMessage [12:42:42]wFMCommunicate request_size=4 [12:42:42]MH_SAM_APDU [12:42:42]CAPDU: 80 11 00 00 [12:42:42]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:42]Read from MH i2c: E2 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 17 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [12:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:42:42]wFMCommunicate OK [12:42:42]CreateOFDProtocolMessage done [12:42:42]OFDSenderStorePacket 111342 [12:42:42]StoreOFDPacket docnum=111342 [12:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 5C 07 01 AF 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 86 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 51 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 6E 00 00 00 00 07 04 06 00 10 0F 04 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 41 D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B2 01 00 35 04 06 00 73 60 7E 6E 8C 14 4B 9E 82 C0 AF CB AD 20 [12:42:42]CheckFolder [12:42:42]dirname=/storage/ofd_packets [12:42:42]CheckFolder done [12:42:42]ProducePacketName [12:42:42]name=ofd_packets/00111342 [12:42:42]NVStorageSaveData ofd_packets/00111342 [12:42:42]File name is /storage/ofd_packets/00111342 [12:42:42]Write 301 bytes [12:42:42]NVStorageSaveData done [12:42:42]OFDSenderStorePacket done [12:42:42]KKMCreateOFDPacket done [12:42:42]NVStorageSaveData kkm_last_timestamp [12:42:42]File name is /storage/kkm_last_timestamp [12:42:42]Write 4 bytes [12:42:42]NVStorageSaveData done [12:42:42]ExternCall_PrintAddStr [12:42:42]wPrintStart [12:42:42]Write to MH i2c: 01 00 00 86 02 88 [12:42:42]Write i2c OK [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: 01 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: 01 07 00 [12:42:42]MH_I2C_Read... [12:42:42]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [12:42:42]RasterBufferAndPrint [12:42:42]line Счет N : (1)319914 [12:42:42]line ИНН: 02508201610067 [12:42:42]line Контрольно-Кассовый Чек [12:42:42]line ПРОДАЖА [12:42:42]line ТРК (МРК, ГНК) : 11 [12:42:42]line Товар: 2710124130 [12:42:42]line Аи-92-К-5 [12:42:42]line 40.070 * 66.40 [12:42:42]line = 2660.65 [12:42:42]line НДС 12% НСП 1% [12:42:42]line > о реализуемом товаре [12:42:42]line ОКРУГЛЕНИЕ: -0.65 [12:42:42]line ИТОГО: 2660.00 [12:42:42]line Внесено: 2660.00 [12:42:42]line СДАЧА: 0.00 [12:42:42]line НСП 1% : 23.55 [12:42:42]line НДС 12% : 282.55 [12:42:42]line Наличными: 2660.00 [12:42:42]line Безнал.: 0.00 [12:42:42]line Место: АЗС № 65 "Партнер Нефть" [12:42:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:42:42]line СНО: Общий режим [12:42:42]line Чек 91 19.06.2024 12:42 [12:42:42]line Смена: 388 ФФД: 1.0 [12:42:42]line ЗНМ: 0300000198 [12:42:42]line РНМ: 0000000000092771 [12:42:42]line Версия ККМ: 001 [12:42:42]line ФМ: 0000000000875083 [12:42:42]line ФД: 111342 [12:42:42]line ФПД: 126858275228692 [12:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124241&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111342&fm=126858275228692&tin=02508201610067®Number=0000000000092771&sum=266000 [12:42:43]written 0, free lines is 4095 [12:42:43]OFD Sender: Processing packet 111342 [packets to send 38, broken 37] [12:42:43]ProducePacketName [12:42:43]name=ofd_packets/00111342 [12:42:43]OFD Sender: To server: pG, [12:42:43]CommunicateWithHost lk.salyk.kg:30040 [12:42:43]ConnectInit lk.salyk.kg [12:42:43]Write to MH i2c: 01 00 00 B1 02 B3 [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: 01 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: 01 07 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 D8 0C 9E [12:42:43]RasterBufferAndPrint [12:42:43]line [12:42:43]line [12:42:43]line [12:42:43]line [12:42:43]line [12:42:43]written 0, free lines is 3299 [12:42:43]MH_Cut [12:42:43]Write to MH i2c: D1 01 00 B8 02 01 8C [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: D1 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: D1 01 00 [12:42:43]MH_I2C_Read... [12:42:43]Read from MH i2c: D1 01 00 B8 02 00 8B [12:42:43]Write to MH i2c: 01 00 00 B9 02 BB [12:42:43]Write i2c OK [12:42:43]MH_I2C_Read... [12:42:43]Connected sock=10 [12:42:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F2 5C 07 01 AF 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 86 9C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 51 0F 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0F 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 6E 00 00 00 00 07 04 06 00 10 0F 04 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 41 D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EE B2 01 00 35 04 06 00 73 60 7E 6E 8C 14 4B 9E 82 C0 AF CB AD 20 [12:42:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7B 61 47 00 F9 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 35 30 38 33 10 04 04 00 EE B2 01 00 F4 03 04 00 AB 69 72 66 B6 04 01 00 00 6E 0D 97 9B 4E 68 14 6C [12:42:43]CommunicateWithHost err = 0 [12:42:43]CheckOFDResponse [12:42:43]1017 (14) - 77093643461234 [12:42:43]1041 (16) - 0000000000875083 [12:42:43]1040 (4) - 111342 [12:42:43]1012 (4) - 19.06.2024 05:16 [12:42:43]1206 (1) - 0 [12:42:43]OFD Sender: Remove packet 111342 [12:42:43]ProducePacketName [12:42:43]name=ofd_packets/00111342 [12:42:43]NVStorageDeleteData [12:42:44]*** Cut start [12:42:44]*** Partial cut [12:42:44]*** CUTSNS_PIN = 1 [12:42:44]*** CUTSNS_PIN = 0 [12:42:44]*** Brake cut motor [12:42:44]OFD Sender: No OFD packet to send [12:42:44]Read from MH i2c: 01 [12:42:44]MH_I2C_Read... [12:42:44]*** Stop cut motor [12:42:44]*** Cut end [12:42:44]Read from MH i2c: 01 07 00 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [12:42:44]process_action close_receipt done [12:42:44]requested_data is exist [12:42:44]produce_requested_data [12:42:44]requested_item fm.sn is exist - process it [12:42:44]wFMCommunicate request_size=4 [12:42:44]MH_SAM_APDU [12:42:44]CAPDU: 80 11 00 00 [12:42:44]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [12:42:44]Write i2c OK [12:42:44]MH_I2C_Read... [12:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:44]Read from MH i2c: E2 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: E2 17 00 [12:42:44]MH_I2C_Read... [12:42:44]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [12:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:42:44]wFMCommunicate OK [12:42:44]requested_item fd.num is exist - process it [12:42:44]SAM_PROTO_GetFieldsCounters [12:42:44]wFMCommunicate request_size=4 [12:42:44]MH_SAM_APDU [12:42:44]CAPDU: 80 13 00 00 [12:42:44]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [12:42:44]Write i2c OK [12:42:44]MH_I2C_Read... [12:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 62 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 62 00 BB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [12:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:45]wFMCommunicate OK [12:42:45]SAM_PROTO_GetFieldsCounters done [12:42:45]requested_item shift.num is exist - process it [12:42:45]requested_item shift.opened is exist - process it [12:42:45]req_shift_opened [12:42:45]FM_GetShiftState [12:42:45]SAM_PROTO_GetShiftState [12:42:45]wFMCommunicate request_size=4 [12:42:45]MH_SAM_APDU [12:42:45]CAPDU: 80 13 01 00 [12:42:45]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [12:42:45]Write i2c OK [12:42:45]MH_I2C_Read... [12:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:45]Read from MH i2c: E2 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 0E 00 [12:42:45]MH_I2C_Read... [12:42:45]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 31 35 72 66 00 00 00 00 90 00 85 [12:42:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:42:45]wFMCommunicate OK [12:42:45]SAM_PROTO_GetShiftState done [12:42:45]FM_GetShiftState done [12:42:45]req_shift_opened done [12:42:45]requested_item shift.open_date is exist - process it [12:42:45]req_shift_open_date [12:42:45]req_shift_open_date done [12:42:45]produce_requested_data done [12:42:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111342,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:42:45]process_action_free close_receipt [12:42:45]json_value_free [12:42:45]json_value_free done [12:42:45]process_json_proto returns [12:42:45]Send response to host [12:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111342,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:42:45]free response buf [12:42:45]execute_script done [12:42:45]execute_script returns [12:42:45]free content buf [12:42:45]Sock 9.Close socket [12:42:45]Sock 9.Thread stoped [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:16]accept exits with 7 [12:44:16]New connection [12:44:16]New thread 3067321700 created [12:44:16]Thread 3067465060 joined [12:44:16]Waiting for new connection... [12:44:16] Sock 7.Parse request [12:44:16]Sock 7.Check first char [12:44:16]Sock 7.First char is OK [12:44:16]request: POST /json_proto HTTP/1.0 [12:44:16]Method: POST [12:44:16]URL: /json_proto [12:44:16]Method is POST - this is cgi request [12:44:16]url: /json_proto [12:44:16]query_string will be loaded in cgi processing [12:44:16]execute_cgi json_proto POST (null) [12:44:16]execute_cgi path=json_proto method=POST [12:44:16]POST find Content-Length [12:44:16]Host: 172.17.59.68:8080 [12:44:16]Content-Length: 677 [12:44:16]Content-Type: application/json [12:44:16] [12:44:16]POST finish read [12:44:16]Found Content-Length = 677 [12:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:16]execute_script... [12:44: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)319916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:16]POST & json_proto [12:44:16]process_json_proto [12:44:16]json parsed OK: [12:44:16]protocol is kg_v1.0 [12:44:16]action value=close_receipt [12:44:16]process_action close_receipt [12:44:16]cmd_close_receipt [12:44:16]MH_GetDate [12:44:16]Write to MH i2c: F0 00 00 BD 02 AE [12:44:16]Write i2c OK [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: F0 [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: F0 09 00 [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: F0 09 00 BD 02 00 A1 D2 72 66 BC EC 60 65 6F [12:44:16]GetLastDocTimeStamp 1718800961 [12:44:16]current date 1718801057 [12:44:16]FM_GetShiftState [12:44:16]SAM_PROTO_GetShiftState [12:44:16]wFMCommunicate request_size=4 [12:44:16]MH_SAM_APDU [12:44:16]CAPDU: 80 13 01 00 [12:44:16]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [12:44:16]Write i2c OK [12:44:16]MH_I2C_Read... [12:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:16]Read from MH i2c: E2 [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: E2 0E 00 [12:44:16]MH_I2C_Read... [12:44:16]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 31 35 72 66 00 00 00 00 90 00 87 [12:44:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:44:16]wFMCommunicate OK [12:44:16]SAM_PROTO_GetShiftState done [12:44:16]FM_GetShiftState done [12:44:16]opened in 1718760753 [12:44:16]opened+sec_in_day 1718847153 [12:44:16]quantity*price = 50065 [12:44:16]sum+1 = 50067 [12:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 92 19.06.2024 12:44 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111343 ФПД: 218914601639697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124417&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111343&fm=218914601639697&tin=02508201610067®Number=0000000000092771&sum=50000 [12:44:18]StoreToDocumentArchive [12:44:18]shift 388 fd 111343 [12:44:18]save to /storage/0388/doc_00111343 [12:44:18]save last doc name /storage/0388/doc_00111343 to /storage/kkm_last_doc_name [12:44:18]save OK [12:44:18]Clear old archive folders... [12:44:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:18]tlvbuf is 00F3F320 [12:44:18]SAM_PROTO_ClearQueue [12:44:18]wFMCommunicate request_size=4 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 09 00 00 [12:44:18]Write to MH i2c: E2 08 00 CB 02 80 09 00 00 00 00 00 00 3F [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [12:44:18]RAPDU: 90 00 [12:44:18]wFMCommunicate OK [12:44:18]SAM_PROTO_ClearQueue done [12:44:18]KKMCreateOFDPacket [12:44:18]OFDProtocolAddRootSTLVToBuf [12:44:18]FM_MakeSignedData [12:44:18]FM_MakeSignedData [12:44:18]SAM_PROTO_SignData [12:44:18]wFMCommunicate request_size=4 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 0D 01 02 [12:44:18]Write to MH i2c: E2 08 00 CC 02 80 0D 01 02 00 00 00 00 47 [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [12:44:18]RAPDU: 90 00 [12:44:18]wFMCommunicate OK [12:44:18]wFMCommunicate request_size=255 [12:44:18]MH_SAM_APDU [12:44: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 A1 D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B2 01 00 35 04 06 00 C7 [12:44:18]Write to MH i2c: E2 02 01 CD 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 A1 D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B2 01 00 35 04 06 00 C7 00 00 90 [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [12:44:18]RAPDU: 90 00 [12:44:18]wFMCommunicate OK [12:44:18]wFMCommunicate request_size=10 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 0D 02 02 05 1A 07 11 1F 11 [12:44:18]Write to MH i2c: E2 0D 00 CE 02 80 0D 02 02 05 00 1A 07 11 1F 11 00 00 B6 [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [12:44:18]RAPDU: 90 00 [12:44:18]wFMCommunicate OK [12:44:18]wFMCommunicate request_size=4 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 0D 03 02 [12:44:18]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 0B 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 0B 00 CF 02 00 4E 99 3F A0 AB CD 11 84 90 00 20 [12:44:18]RAPDU: 4E 99 3F A0 AB CD 11 84 90 00 [12:44:18]wFMCommunicate OK [12:44:18]SAM_PROTO_SignData done [12:44:18]FM_MakeSignedData done [12:44:18]CreateOFDProtocolMessage [12:44:18]wFMCommunicate request_size=4 [12:44:18]MH_SAM_APDU [12:44:18]CAPDU: 80 11 00 00 [12:44:18]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:18]Read from MH i2c: E2 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 17 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [12:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:44:18]wFMCommunicate OK [12:44:18]CreateOFDProtocolMessage done [12:44:18]OFDSenderStorePacket 111343 [12:44:18]StoreOFDPacket docnum=111343 [12:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AD 48 07 01 B9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 A1 D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B2 01 00 35 04 06 00 C7 1A 07 11 1F 11 4E 99 3F A0 AB CD 11 84 [12:44:18]CheckFolder [12:44:18]dirname=/storage/ofd_packets [12:44:18]CheckFolder done [12:44:18]ProducePacketName [12:44:18]name=ofd_packets/00111343 [12:44:18]NVStorageSaveData ofd_packets/00111343 [12:44:18]File name is /storage/ofd_packets/00111343 [12:44:18]Write 301 bytes [12:44:18]NVStorageSaveData done [12:44:18]OFDSenderStorePacket done [12:44:18]KKMCreateOFDPacket done [12:44:18]NVStorageSaveData kkm_last_timestamp [12:44:18]File name is /storage/kkm_last_timestamp [12:44:18]Write 4 bytes [12:44:18]NVStorageSaveData done [12:44:18]ExternCall_PrintAddStr [12:44:18]wPrintStart [12:44:18]Write to MH i2c: 01 00 00 D1 02 D3 [12:44:18]Write i2c OK [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: 01 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: 01 07 00 [12:44:18]MH_I2C_Read... [12:44:18]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [12:44:18]RasterBufferAndPrint [12:44:18]line Счет N : (1)319916 [12:44:18]line ИНН: 02508201610067 [12:44:18]line Контрольно-Кассовый Чек [12:44:18]line ПРОДАЖА [12:44:18]line ТРК (МРК, ГНК) : 11 [12:44:18]line Товар: 2710124130 [12:44:18]line Аи-92-К-5 [12:44:18]line 7.540 * 66.40 [12:44:18]line = 500.66 [12:44:18]line НДС 12% НСП 1% [12:44:18]line > о реализуемом товаре [12:44:18]line ОКРУГЛЕНИЕ: -0.66 [12:44:18]line ИТОГО: 500.00 [12:44:18]line Внесено: 500.00 [12:44:18]line СДАЧА: 0.00 [12:44:18]line НСП 1% : 4.43 [12:44:18]line НДС 12% : 53.17 [12:44:18]line Наличными: 500.00 [12:44:18]line Безнал.: 0.00 [12:44:18]line Место: АЗС № 65 "Партнер Нефть" [12:44:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:44:18]line СНО: Общий режим [12:44:18]line Чек 92 19.06.2024 12:44 [12:44:18]line Смена: 388 ФФД: 1.0 [12:44:18]line ЗНМ: 0300000198 [12:44:18]line РНМ: 0000000000092771 [12:44:18]line Версия ККМ: 001 [12:44:18]line ФМ: 0000000000875083 [12:44:18]line ФД: 111343 [12:44:18]line ФПД: 218914601639697 [12:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124417&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111343&fm=218914601639697&tin=02508201610067®Number=0000000000092771&sum=50000 [12:44:18]OFD Sender: Processing packet 111343 [packets to send 38, broken 37] [12:44:18]ProducePacketName [12:44:18]name=ofd_packets/00111343 [12:44:18]OFD Sender: To server: pG, [12:44:18]CommunicateWithHost lk.salyk.kg:30040 [12:44:18]ConnectInit lk.salyk.kg [12:44:18]written 0, free lines is 4095 [12:44:19]Connected sock=10 [12:44:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AD 48 07 01 B9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 A1 D2 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 EF B2 01 00 35 04 06 00 C7 1A 07 11 1F 11 4E 99 3F A0 AB CD 11 84 [12:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C5 19 47 00 70 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 35 30 38 33 10 04 04 00 EF B2 01 00 F4 03 04 00 0B 6A 72 66 B6 04 01 00 00 D1 DF 99 F7 67 F5 EA A3 [12:44:19]CommunicateWithHost err = 0 [12:44:19]CheckOFDResponse [12:44:19]1017 (14) - 77093643461234 [12:44:19]1041 (16) - 0000000000875083 [12:44:19]1040 (4) - 111343 [12:44:19]1012 (4) - 19.06.2024 05:18 [12:44:19]1206 (1) - 0 [12:44:19]OFD Sender: Remove packet 111343 [12:44:19]ProducePacketName [12:44:19]name=ofd_packets/00111343 [12:44:19]NVStorageDeleteData [12:44:19]Write to MH i2c: 01 00 00 FC 02 FE [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: 01 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: 01 07 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 E0 0C F1 [12:44:19]RasterBufferAndPrint [12:44:19]line [12:44:19]line [12:44:19]line [12:44:19]line [12:44:19]line [12:44:19]written 0, free lines is 3302 [12:44:19]MH_Cut [12:44:19]Write to MH i2c: D1 01 00 03 03 01 D8 [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: D1 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: D1 01 00 [12:44:19]MH_I2C_Read... [12:44:19]Read from MH i2c: D1 01 00 03 03 00 D7 [12:44:19]Write to MH i2c: 01 00 00 04 03 07 [12:44:19]Write i2c OK [12:44:19]MH_I2C_Read... [12:44:19]OFD Sender: No OFD packet to send [12:44:20]*** Cut start [12:44:20]*** Partial cut [12:44:20]*** CUTSNS_PIN = 1 [12:44:20]*** CUTSNS_PIN = 0 [12:44:20]*** Brake cut motor [12:44:20]Read from MH i2c: 01 [12:44:20]MH_I2C_Read... [12:44:20]*** Stop cut motor [12:44:20]*** Cut end [12:44:20]Read from MH i2c: 01 07 00 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [12:44:20]process_action close_receipt done [12:44:20]requested_data is exist [12:44:20]produce_requested_data [12:44:20]requested_item fm.sn is exist - process it [12:44:20]wFMCommunicate request_size=4 [12:44:20]MH_SAM_APDU [12:44:20]CAPDU: 80 11 00 00 [12:44:20]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:20]Read from MH i2c: E2 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 17 00 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D4 [12:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:44:20]wFMCommunicate OK [12:44:20]requested_item fd.num is exist - process it [12:44:20]SAM_PROTO_GetFieldsCounters [12:44:20]wFMCommunicate request_size=4 [12:44:20]MH_SAM_APDU [12:44:20]CAPDU: 80 13 00 00 [12:44:20]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:20]Read from MH i2c: E2 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 62 00 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 62 00 06 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [12:44: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 EF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:20]wFMCommunicate OK [12:44:20]SAM_PROTO_GetFieldsCounters done [12:44:20]requested_item shift.num is exist - process it [12:44:20]requested_item shift.opened is exist - process it [12:44:20]req_shift_opened [12:44:20]FM_GetShiftState [12:44:20]SAM_PROTO_GetShiftState [12:44:20]wFMCommunicate request_size=4 [12:44:20]MH_SAM_APDU [12:44:20]CAPDU: 80 13 01 00 [12:44:20]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [12:44:20]Write i2c OK [12:44:20]MH_I2C_Read... [12:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:20]Read from MH i2c: E2 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 0E 00 [12:44:20]MH_I2C_Read... [12:44:20]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D1 [12:44:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:44:20]wFMCommunicate OK [12:44:20]SAM_PROTO_GetShiftState done [12:44:20]FM_GetShiftState done [12:44:20]req_shift_opened done [12:44:20]requested_item shift.open_date is exist - process it [12:44:20]req_shift_open_date [12:44:20]req_shift_open_date done [12:44:20]produce_requested_data done [12:44:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111343,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:44:20]process_action_free close_receipt [12:44:20]json_value_free [12:44:20]json_value_free done [12:44:20]process_json_proto returns [12:44:20]Send response to host [12:44:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111343,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:44:20]free response buf [12:44:20]execute_script done [12:44:20]execute_script returns [12:44:20]free content buf [12:44:20]Sock 7.Close socket [12:44:20]Sock 7.Thread stoped [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:43]accept exits with 9 [12:49:43]New connection [12:49:43]New thread 3067465060 created [12:49:43]Thread 3067321700 joined [12:49:43]Waiting for new connection... [12:49:43] Sock 9.Parse request [12:49:43]Sock 9.Check first char [12:49:43]Sock 9.First char is OK [12:49:43]request: POST /json_proto HTTP/1.0 [12:49:43]Method: POST [12:49:43]URL: /json_proto [12:49:43]Method is POST - this is cgi request [12:49:43]url: /json_proto [12:49:43]query_string will be loaded in cgi processing [12:49:43]execute_cgi json_proto POST (null) [12:49:43]execute_cgi path=json_proto method=POST [12:49:43]POST find Content-Length [12:49:43]Host: 172.17.59.68:8080 [12:49:43]Content-Length: 805 [12:49:43]Content-Type: application/json [12:49:43] [12:49:43]POST finish read [12:49:43]Found Content-Length = 805 [12:49:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.960, "sum" : 130.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:43]execute_script... [12:49:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.960, "sum" : 130.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 130.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:43]POST & json_proto [12:49:43]process_json_proto [12:49:43]json parsed OK: [12:49:43]protocol is kg_v1.0 [12:49:43]action value=close_receipt [12:49:43]process_action close_receipt [12:49:43]cmd_close_receipt [12:49:43]MH_GetDate [12:49:43]Write to MH i2c: F0 00 00 08 03 FA [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: F0 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: F0 09 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: F0 09 00 08 03 00 E8 D3 72 66 BC EC 60 65 03 [12:49:43]GetLastDocTimeStamp 1718801057 [12:49:43]current date 1718801384 [12:49:43]FM_GetShiftState [12:49:43]SAM_PROTO_GetShiftState [12:49:43]wFMCommunicate request_size=4 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 13 01 00 [12:49:43]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0E 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D3 [12:49:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:49:43]wFMCommunicate OK [12:49:43]SAM_PROTO_GetShiftState done [12:49:43]FM_GetShiftState done [12:49:43]opened in 1718760753 [12:49:43]opened+sec_in_day 1718847153 [12:49:43]quantity*price = 13014 [12:49:43]sum+1 = 13015 [12:49:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.14 НСП 1% : 1.15 НДС 12% : 13.82 Наличными: 0.00 Безнал.: 130.14 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 93 19.06.2024 12:49 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111344 ФПД: 58975175482181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124944&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111344&fm=58975175482181&tin=02508201610067®Number=0000000000092771&sum=13014 [12:49:44]StoreToDocumentArchive [12:49:44]shift 388 fd 111344 [12:49:44]save to /storage/0388/doc_00111344 [12:49:44]save last doc name /storage/0388/doc_00111344 to /storage/kkm_last_doc_name [12:49:44]save OK [12:49:44]Clear old archive folders... [12:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:44]tlvbuf is 00F3B7C0 [12:49:44]SAM_PROTO_ClearQueue [12:49:44]wFMCommunicate request_size=4 [12:49:44]MH_SAM_APDU [12:49:44]CAPDU: 80 09 00 00 [12:49:44]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:45]OFD Sender: No OFD packet to send [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [12:49:45]RAPDU: 90 00 [12:49:45]wFMCommunicate OK [12:49:45]SAM_PROTO_ClearQueue done [12:49:45]KKMCreateOFDPacket [12:49:45]OFDProtocolAddRootSTLVToBuf [12:49:45]FM_MakeSignedData [12:49:45]FM_MakeSignedData [12:49:45]SAM_PROTO_SignData [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 0D 01 02 [12:49:45]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [12:49:45]RAPDU: 90 00 [12:49:45]wFMCommunicate OK [12:49:45]wFMCommunicate request_size=255 [12:49:45]MH_SAM_APDU [12:49: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 A8 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E8 D3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B2 01 00 35 04 06 00 35 [12:49:45]Write to MH i2c: E2 02 01 18 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 A8 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E8 D3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B2 01 00 35 04 06 00 35 00 00 98 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [12:49:45]RAPDU: 90 00 [12:49:45]wFMCommunicate OK [12:49:45]wFMCommunicate request_size=10 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 0D 02 02 05 A3 3A 62 9B 45 [12:49:45]Write to MH i2c: E2 0D 00 19 03 80 0D 02 02 05 00 A3 3A 62 9B 45 00 00 BF [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [12:49:45]RAPDU: 90 00 [12:49:45]wFMCommunicate OK [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 0D 03 02 [12:49:45]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 0B 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 0B 00 1A 03 00 B7 8C C4 98 34 44 48 82 90 00 7A [12:49:45]RAPDU: B7 8C C4 98 34 44 48 82 90 00 [12:49:45]wFMCommunicate OK [12:49:45]SAM_PROTO_SignData done [12:49:45]FM_MakeSignedData done [12:49:45]CreateOFDProtocolMessage [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 11 00 00 [12:49:45]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [12:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:49:45]wFMCommunicate OK [12:49:45]CreateOFDProtocolMessage done [12:49:45]OFDSenderStorePacket 111344 [12:49:45]StoreOFDPacket docnum=111344 [12:49:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 1E 07 01 57 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 A8 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E8 D3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B2 01 00 35 04 06 00 35 A3 3A 62 9B 45 B7 8C C4 98 34 44 48 82 [12:49:45]CheckFolder [12:49:45]dirname=/storage/ofd_packets [12:49:45]CheckFolder done [12:49:45]ProducePacketName [12:49:45]name=ofd_packets/00111344 [12:49:45]NVStorageSaveData ofd_packets/00111344 [12:49:45]File name is /storage/ofd_packets/00111344 [12:49:45]Write 301 bytes [12:49:45]NVStorageSaveData done [12:49:45]OFDSenderStorePacket done [12:49:45]KKMCreateOFDPacket done [12:49:45]NVStorageSaveData kkm_last_timestamp [12:49:45]File name is /storage/kkm_last_timestamp [12:49:45]Write 4 bytes [12:49:45]NVStorageSaveData done [12:49:45]ExternCall_PrintAddStr [12:49:45]wPrintStart [12:49:45]Write to MH i2c: 01 00 00 1C 03 1F [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 07 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [12:49:45]RasterBufferAndPrint [12:49:45]line Счет N : (1)319917 [12:49:45]line ИНН: 02508201610067 [12:49:45]line Контрольно-Кассовый Чек [12:49:45]line ПРОДАЖА [12:49:45]line ТРК (МРК, ГНК) : 11 [12:49:45]line Товар: 2710124130 [12:49:45]line Аи-92-К-5 [12:49:45]line 1.960 * 66.40 [12:49:45]line = 130.14 [12:49:45]line НДС 12% НСП 1% [12:49:45]line > о реализуемом товаре [12:49:45]line ИТОГО: 130.14 [12:49:45]line НСП 1% : 1.15 [12:49:45]line НДС 12% : 13.82 [12:49:45]line Наличными: 0.00 [12:49:45]line Безнал.: 130.14 [12:49:45]line Место: АЗС № 65 "Партнер Нефть" [12:49:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:49:45]line СНО: Общий режим [12:49:45]line Чек 93 19.06.2024 12:49 [12:49:45]line Смена: 388 ФФД: 1.0 [12:49:45]line ЗНМ: 0300000198 [12:49:45]line РНМ: 0000000000092771 [12:49:45]line Версия ККМ: 001 [12:49:45]line Платежная система: О! деньги [12:49:45]line ФМ: 0000000000875083 [12:49:45]line ФД: 111344 [12:49:45]line ФПД: 58975175482181 [12:49:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T124944&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111344&fm=58975175482181&tin=02508201610067®Number=0000000000092771&sum=13014 [12:49:45]OFD Sender: Processing packet 111344 [packets to send 38, broken 37] [12:49:45]ProducePacketName [12:49:45]name=ofd_packets/00111344 [12:49:45]OFD Sender: To server: pG, [12:49:45]CommunicateWithHost lk.salyk.kg:30040 [12:49:45]ConnectInit lk.salyk.kg [12:49:45]written 0, free lines is 4095 [12:49:45]Connected sock=10 [12:49:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 FD 1E 07 01 57 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 A8 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 D6 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D6 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D6 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E8 D3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F0 B2 01 00 35 04 06 00 35 A3 3A 62 9B 45 B7 8C C4 98 34 44 48 82 [12:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DE 98 47 00 08 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 35 30 38 33 10 04 04 00 F0 B2 01 00 F4 03 04 00 52 6B 72 66 B6 04 01 00 00 DA 47 6D A8 CA 4B C7 A1 [12:49:46]CommunicateWithHost err = 0 [12:49:46]CheckOFDResponse [12:49:46]1017 (14) - 77093643461234 [12:49:46]1041 (16) - 0000000000875083 [12:49:46]1040 (4) - 111344 [12:49:46]1012 (4) - 19.06.2024 05:23 [12:49:46]1206 (1) - 0 [12:49:46]OFD Sender: Remove packet 111344 [12:49:46]ProducePacketName [12:49:46]name=ofd_packets/00111344 [12:49:46]NVStorageDeleteData [12:49:46]Write to MH i2c: 01 00 00 46 03 49 [12:49:46]Write i2c OK [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: 01 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: 01 07 00 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 DD 0C 39 [12:49:46]RasterBufferAndPrint [12:49:46]line [12:49:46]line [12:49:46]line [12:49:46]line [12:49:46]line [12:49:46]written 0, free lines is 3299 [12:49:46]MH_Cut [12:49:46]Write to MH i2c: D1 01 00 4D 03 01 22 [12:49:46]Write i2c OK [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: D1 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: D1 01 00 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: D1 01 00 4D 03 00 21 [12:49:46]Write to MH i2c: 01 00 00 4E 03 51 [12:49:46]Write i2c OK [12:49:46]MH_I2C_Read... [12:49:46]OFD Sender: No OFD packet to send [12:49:47]*** Cut start [12:49:47]*** Partial cut [12:49:47]*** CUTSNS_PIN = 1 [12:49:47]*** CUTSNS_PIN = 0 [12:49:47]*** Brake cut motor [12:49:47]Read from MH i2c: 01 [12:49:47]MH_I2C_Read... [12:49:47]*** Stop cut motor [12:49:47]*** Cut end [12:49:47]Read from MH i2c: 01 07 00 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [12:49:47]process_action close_receipt done [12:49:47]requested_data is exist [12:49:47]produce_requested_data [12:49:47]requested_item fm.sn is exist - process it [12:49:47]wFMCommunicate request_size=4 [12:49:47]MH_SAM_APDU [12:49:47]CAPDU: 80 11 00 00 [12:49:47]Write to MH i2c: E2 08 00 4F 03 80 11 00 00 00 00 00 00 CC [12:49:47]Write i2c OK [12:49:47]MH_I2C_Read... [12:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:47]Read from MH i2c: E2 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 17 00 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 17 00 4F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [12:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:49:47]wFMCommunicate OK [12:49:47]requested_item fd.num is exist - process it [12:49:47]SAM_PROTO_GetFieldsCounters [12:49:47]wFMCommunicate request_size=4 [12:49:47]MH_SAM_APDU [12:49:47]CAPDU: 80 13 00 00 [12:49:47]Write to MH i2c: E2 08 00 50 03 80 13 00 00 00 00 00 00 CF [12:49:47]Write i2c OK [12:49:47]MH_I2C_Read... [12:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:47]Read from MH i2c: E2 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 62 00 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 62 00 50 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [12:49: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F0 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:47]wFMCommunicate OK [12:49:47]SAM_PROTO_GetFieldsCounters done [12:49:47]requested_item shift.num is exist - process it [12:49:47]requested_item shift.opened is exist - process it [12:49:47]req_shift_opened [12:49:47]FM_GetShiftState [12:49:47]SAM_PROTO_GetShiftState [12:49:47]wFMCommunicate request_size=4 [12:49:47]MH_SAM_APDU [12:49:47]CAPDU: 80 13 01 00 [12:49:47]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [12:49:47]Write i2c OK [12:49:47]MH_I2C_Read... [12:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:47]Read from MH i2c: E2 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 0E 00 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1B [12:49:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:49:47]wFMCommunicate OK [12:49:47]SAM_PROTO_GetShiftState done [12:49:47]FM_GetShiftState done [12:49:47]req_shift_opened done [12:49:47]requested_item shift.open_date is exist - process it [12:49:47]req_shift_open_date [12:49:47]req_shift_open_date done [12:49:47]produce_requested_data done [12:49:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111344,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:49:47]process_action_free close_receipt [12:49:47]json_value_free [12:49:47]json_value_free done [12:49:47]process_json_proto returns [12:49:47]Send response to host [12:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111344,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:49:47]free response buf [12:49:47]execute_script done [12:49:47]execute_script returns [12:49:47]free content buf [12:49:47]Sock 9.Close socket [12:49:47]Sock 9.Thread stoped [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:37]accept exits with 7 [12:50:37]New connection [12:50:37]New thread 3067321700 created [12:50:37]Thread 3067465060 joined [12:50:37]Waiting for new connection... [12:50:37] Sock 7.Parse request [12:50:37]Sock 7.Check first char [12:50:37]Sock 7.First char is OK [12:50:37]request: POST /json_proto HTTP/1.0 [12:50:37]Method: POST [12:50:37]URL: /json_proto [12:50:37]Method is POST - this is cgi request [12:50:37]url: /json_proto [12:50:37]query_string will be loaded in cgi processing [12:50:37]execute_cgi json_proto POST (null) [12:50:37]execute_cgi path=json_proto method=POST [12:50:37]POST find Content-Length [12:50:37]Host: 172.17.59.68:8080 [12:50:37]Content-Length: 677 [12:50:37]Content-Type: application/json [12:50:37] [12:50:37]POST finish read [12:50:37]Found Content-Length = 677 [12:50:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:37]execute_script... [12:50: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)319919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:37]POST & json_proto [12:50:37]process_json_proto [12:50:37]json parsed OK: [12:50:37]protocol is kg_v1.0 [12:50:37]action value=close_receipt [12:50:37]process_action close_receipt [12:50:37]cmd_close_receipt [12:50:37]MH_GetDate [12:50:37]Write to MH i2c: F0 00 00 52 03 44 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: F0 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: F0 09 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: F0 09 00 52 03 00 1E D4 72 66 BC EC 60 65 84 [12:50:37]GetLastDocTimeStamp 1718801384 [12:50:37]current date 1718801438 [12:50:37]FM_GetShiftState [12:50:37]SAM_PROTO_GetShiftState [12:50:37]wFMCommunicate request_size=4 [12:50:37]MH_SAM_APDU [12:50:37]CAPDU: 80 13 01 00 [12:50:37]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [12:50:37]Write i2c OK [12:50:37]MH_I2C_Read... [12:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:37]Read from MH i2c: E2 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 0E 00 [12:50:37]MH_I2C_Read... [12:50:37]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1D [12:50:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:50:37]wFMCommunicate OK [12:50:37]SAM_PROTO_GetShiftState done [12:50:37]FM_GetShiftState done [12:50:37]opened in 1718760753 [12:50:37]opened+sec_in_day 1718847153 [12:50:37]quantity*price = 50065 [12:50:37]sum+1 = 50067 [12:50:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 94 19.06.2024 12:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111345 ФПД: 159114755675003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125038&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111345&fm=159114755675003&tin=02508201610067®Number=0000000000092771&sum=50000 [12:50:38]StoreToDocumentArchive [12:50:38]shift 388 fd 111345 [12:50:38]save to /storage/0388/doc_00111345 [12:50:38]save last doc name /storage/0388/doc_00111345 to /storage/kkm_last_doc_name [12:50:38]save OK [12:50:38]Clear old archive folders... [12:50:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:38]tlvbuf is 00EBDD20 [12:50:38]SAM_PROTO_ClearQueue [12:50:38]wFMCommunicate request_size=4 [12:50:38]MH_SAM_APDU [12:50:38]CAPDU: 80 09 00 00 [12:50:38]Write to MH i2c: E2 08 00 60 03 80 09 00 00 00 00 00 00 D5 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:38]Read from MH i2c: E2 03 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [12:50:38]RAPDU: 90 00 [12:50:38]wFMCommunicate OK [12:50:38]SAM_PROTO_ClearQueue done [12:50:38]KKMCreateOFDPacket [12:50:38]OFDProtocolAddRootSTLVToBuf [12:50:38]FM_MakeSignedData [12:50:38]FM_MakeSignedData [12:50:38]SAM_PROTO_SignData [12:50:38]wFMCommunicate request_size=4 [12:50:38]MH_SAM_APDU [12:50:38]CAPDU: 80 0D 01 02 [12:50:38]Write to MH i2c: E2 08 00 61 03 80 0D 01 02 00 00 00 00 DD [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:38]Read from MH i2c: E2 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 [12:50:38]MH_I2C_Read... [12:50:38]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [12:50:38]RAPDU: 90 00 [12:50:38]wFMCommunicate OK [12:50:38]wFMCommunicate request_size=255 [12:50:38]MH_SAM_APDU [12:50: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 1E D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B2 01 00 35 04 06 00 90 [12:50:38]Write to MH i2c: E2 02 01 62 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 1E D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B2 01 00 35 04 06 00 90 00 00 72 [12:50:38]Write i2c OK [12:50:38]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 03 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [12:50:39]RAPDU: 90 00 [12:50:39]wFMCommunicate OK [12:50:39]wFMCommunicate request_size=10 [12:50:39]MH_SAM_APDU [12:50:39]CAPDU: 80 0D 02 02 05 B6 CA 7D 93 7B [12:50:39]Write to MH i2c: E2 0D 00 63 03 80 0D 02 02 05 00 B6 CA 7D 93 7B 00 00 F5 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 03 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [12:50:39]RAPDU: 90 00 [12:50:39]wFMCommunicate OK [12:50:39]wFMCommunicate request_size=4 [12:50:39]MH_SAM_APDU [12:50:39]CAPDU: 80 0D 03 02 [12:50:39]Write to MH i2c: E2 08 00 64 03 80 0D 03 02 00 00 00 00 E2 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 0B 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 0B 00 64 03 00 53 5C C3 F3 90 BB 56 BD 90 00 A6 [12:50:39]RAPDU: 53 5C C3 F3 90 BB 56 BD 90 00 [12:50:39]wFMCommunicate OK [12:50:39]SAM_PROTO_SignData done [12:50:39]FM_MakeSignedData done [12:50:39]CreateOFDProtocolMessage [12:50:39]wFMCommunicate request_size=4 [12:50:39]MH_SAM_APDU [12:50:39]CAPDU: 80 11 00 00 [12:50:39]Write to MH i2c: E2 08 00 65 03 80 11 00 00 00 00 00 00 E2 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:39]Read from MH i2c: E2 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 17 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: E2 17 00 65 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [12:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:39]wFMCommunicate OK [12:50:39]CreateOFDProtocolMessage done [12:50:39]OFDSenderStorePacket 111345 [12:50:39]StoreOFDPacket docnum=111345 [12:50:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 88 9D 07 01 80 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 1E D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B2 01 00 35 04 06 00 90 B6 CA 7D 93 7B 53 5C C3 F3 90 BB 56 BD [12:50:39]CheckFolder [12:50:39]dirname=/storage/ofd_packets [12:50:39]CheckFolder done [12:50:39]ProducePacketName [12:50:39]name=ofd_packets/00111345 [12:50:39]NVStorageSaveData ofd_packets/00111345 [12:50:39]File name is /storage/ofd_packets/00111345 [12:50:39]Write 301 bytes [12:50:39]NVStorageSaveData done [12:50:39]OFDSenderStorePacket done [12:50:39]KKMCreateOFDPacket done [12:50:39]NVStorageSaveData kkm_last_timestamp [12:50:39]File name is /storage/kkm_last_timestamp [12:50:39]Write 4 bytes [12:50:39]NVStorageSaveData done [12:50:39]ExternCall_PrintAddStr [12:50:39]wPrintStart [12:50:39]Write to MH i2c: 01 00 00 66 03 69 [12:50:39]Write i2c OK [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: 01 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: 01 07 00 [12:50:39]MH_I2C_Read... [12:50:39]Read from MH i2c: 01 07 00 66 03 00 00 00 00 00 FF 0F 7E [12:50:39]RasterBufferAndPrint [12:50:39]line Счет N : (1)319919 [12:50:39]line ИНН: 02508201610067 [12:50:39]line Контрольно-Кассовый Чек [12:50:39]line ПРОДАЖА [12:50:39]line ТРК (МРК, ГНК) : 11 [12:50:39]line Товар: 2710124130 [12:50:39]line Аи-92-К-5 [12:50:39]line 7.540 * 66.40 [12:50:39]line = 500.66 [12:50:39]line НДС 12% НСП 1% [12:50:39]line > о реализуемом товаре [12:50:39]line ОКРУГЛЕНИЕ: -0.66 [12:50:39]line ИТОГО: 500.00 [12:50:39]line Внесено: 500.00 [12:50:39]line СДАЧА: 0.00 [12:50:39]line НСП 1% : 4.43 [12:50:39]line НДС 12% : 53.17 [12:50:39]line Наличными: 500.00 [12:50:39]line Безнал.: 0.00 [12:50:39]line Место: АЗС № 65 "Партнер Нефть" [12:50:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:50:39]line СНО: Общий режим [12:50:39]line Чек 94 19.06.2024 12:50 [12:50:39]line Смена: 388 ФФД: 1.0 [12:50:39]line ЗНМ: 0300000198 [12:50:39]line РНМ: 0000000000092771 [12:50:39]line Версия ККМ: 001 [12:50:39]line ФМ: 0000000000875083 [12:50:39]line ФД: 111345 [12:50:39]line ФПД: 159114755675003 [12:50:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125038&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111345&fm=159114755675003&tin=02508201610067®Number=0000000000092771&sum=50000 [12:50:39]OFD Sender: Processing packet 111345 [packets to send 38, broken 37] [12:50:39]ProducePacketName [12:50:39]name=ofd_packets/00111345 [12:50:39]OFD Sender: To server: pG, [12:50:39]CommunicateWithHost lk.salyk.kg:30040 [12:50:39]ConnectInit lk.salyk.kg [12:50:39]written 0, free lines is 4095 [12:50:39]Connected sock=10 [12:50:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 88 9D 07 01 80 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 1E D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F1 B2 01 00 35 04 06 00 90 B6 CA 7D 93 7B 53 5C C3 F3 90 BB 56 BD [12:50:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B2 3D 47 00 16 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 35 30 38 33 10 04 04 00 F1 B2 01 00 F4 03 04 00 87 6B 72 66 B6 04 01 00 00 9D 96 92 10 B7 FA 59 14 [12:50:39]CommunicateWithHost err = 0 [12:50:39]CheckOFDResponse [12:50:39]1017 (14) - 77093643461234 [12:50:39]1041 (16) - 0000000000875083 [12:50:39]1040 (4) - 111345 [12:50:39]1012 (4) - 19.06.2024 05:24 [12:50:39]1206 (1) - 0 [12:50:39]OFD Sender: Remove packet 111345 [12:50:39]ProducePacketName [12:50:39]name=ofd_packets/00111345 [12:50:39]NVStorageDeleteData [12:50:40]Write to MH i2c: 01 00 00 91 03 94 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 07 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 E4 0C 8B [12:50:40]RasterBufferAndPrint [12:50:40]line [12:50:40]line [12:50:40]line [12:50:40]line [12:50:40]line [12:50:40]written 0, free lines is 3306 [12:50:40]MH_Cut [12:50:40]Write to MH i2c: D1 01 00 98 03 01 6D [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: D1 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: D1 01 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: D1 01 00 98 03 00 6C [12:50:40]Write to MH i2c: 01 00 00 99 03 9C [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]OFD Sender: No OFD packet to send [12:50:40]*** Cut start [12:50:40]*** Partial cut [12:50:40]*** CUTSNS_PIN = 1 [12:50:40]*** CUTSNS_PIN = 0 [12:50:41]*** Brake cut motor [12:50:41]Read from MH i2c: 01 [12:50:41]MH_I2C_Read... [12:50:41]*** Stop cut motor [12:50:41]*** Cut end [12:50:41]Read from MH i2c: 01 07 00 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [12:50:41]process_action close_receipt done [12:50:41]requested_data is exist [12:50:41]produce_requested_data [12:50:41]requested_item fm.sn is exist - process it [12:50:41]wFMCommunicate request_size=4 [12:50:41]MH_SAM_APDU [12:50:41]CAPDU: 80 11 00 00 [12:50:41]Write to MH i2c: E2 08 00 9A 03 80 11 00 00 00 00 00 00 17 [12:50:41]Write i2c OK [12:50:41]MH_I2C_Read... [12:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:41]Read from MH i2c: E2 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 17 00 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 17 00 9A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [12:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:41]wFMCommunicate OK [12:50:41]requested_item fd.num is exist - process it [12:50:41]SAM_PROTO_GetFieldsCounters [12:50:41]wFMCommunicate request_size=4 [12:50:41]MH_SAM_APDU [12:50:41]CAPDU: 80 13 00 00 [12:50:41]Write to MH i2c: E2 08 00 9B 03 80 13 00 00 00 00 00 00 1A [12:50:41]Write i2c OK [12:50:41]MH_I2C_Read... [12:50:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:41]Read from MH i2c: E2 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 62 00 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 62 00 9B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [12:50: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F1 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:41]wFMCommunicate OK [12:50:41]SAM_PROTO_GetFieldsCounters done [12:50:41]requested_item shift.num is exist - process it [12:50:41]requested_item shift.opened is exist - process it [12:50:41]req_shift_opened [12:50:41]FM_GetShiftState [12:50:41]SAM_PROTO_GetShiftState [12:50:41]wFMCommunicate request_size=4 [12:50:41]MH_SAM_APDU [12:50:41]CAPDU: 80 13 01 00 [12:50:41]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [12:50:41]Write i2c OK [12:50:41]MH_I2C_Read... [12:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:41]Read from MH i2c: E2 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 0E 00 [12:50:41]MH_I2C_Read... [12:50:41]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 31 35 72 66 00 00 00 00 90 00 66 [12:50:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:50:41]wFMCommunicate OK [12:50:41]SAM_PROTO_GetShiftState done [12:50:41]FM_GetShiftState done [12:50:41]req_shift_opened done [12:50:41]requested_item shift.open_date is exist - process it [12:50:41]req_shift_open_date [12:50:41]req_shift_open_date done [12:50:41]produce_requested_data done [12:50:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111345,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:50:41]process_action_free close_receipt [12:50:41]json_value_free [12:50:41]json_value_free done [12:50:41]process_json_proto returns [12:50:41]Send response to host [12:50:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111345,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:50:41]free response buf [12:50:41]execute_script done [12:50:41]execute_script returns [12:50:41]free content buf [12:50:41]Sock 7.Close socket [12:50:41]Sock 7.Thread stoped [12:50:45]OFD Sender: No OFD packet to send [12:50:49]accept exits with 9 [12:50:49]New connection [12:50:49]New thread 3067465060 created [12:50:49]Thread 3067321700 joined [12:50:49]Waiting for new connection... [12:50:49] Sock 9.Parse request [12:50:49]Sock 9.Check first char [12:50:49]Sock 9.First char is OK [12:50:49]request: POST /json_proto HTTP/1.0 [12:50:49]Method: POST [12:50:49]URL: /json_proto [12:50:49]Method is POST - this is cgi request [12:50:49]url: /json_proto [12:50:49]query_string will be loaded in cgi processing [12:50:49]execute_cgi json_proto POST (null) [12:50:49]execute_cgi path=json_proto method=POST [12:50:49]POST find Content-Length [12:50:49]Host: 172.17.59.68:8080 [12:50:49]Content-Length: 805 [12:50:49]Content-Type: application/json [12:50:49] [12:50:49]POST finish read [12:50:49]Found Content-Length = 805 [12:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:49]execute_script... [12:50: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)319918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:49]POST & json_proto [12:50:49]process_json_proto [12:50:49]json parsed OK: [12:50:49]protocol is kg_v1.0 [12:50:49]action value=close_receipt [12:50:49]process_action close_receipt [12:50:49]cmd_close_receipt [12:50:49]MH_GetDate [12:50:49]Write to MH i2c: F0 00 00 9D 03 8F [12:50:49]Write i2c OK [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: F0 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: F0 09 00 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: F0 09 00 9D 03 00 2A D4 72 66 BC EC 60 65 DB [12:50:49]GetLastDocTimeStamp 1718801438 [12:50:49]current date 1718801450 [12:50:49]FM_GetShiftState [12:50:49]SAM_PROTO_GetShiftState [12:50:49]wFMCommunicate request_size=4 [12:50:49]MH_SAM_APDU [12:50:49]CAPDU: 80 13 01 00 [12:50:49]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [12:50:49]Write i2c OK [12:50:49]MH_I2C_Read... [12:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:49]Read from MH i2c: E2 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: E2 0E 00 [12:50:49]MH_I2C_Read... [12:50:49]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 31 35 72 66 00 00 00 00 90 00 68 [12:50:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:50:49]wFMCommunicate OK [12:50:49]SAM_PROTO_GetShiftState done [12:50:49]FM_GetShiftState done [12:50:49]opened in 1718760753 [12:50:49]opened+sec_in_day 1718847153 [12:50:49]quantity*price = 150028 [12:50:49]sum+1 = 150029 [12:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 95 19.06.2024 12:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111346 ФПД: 266907444622937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125050&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111346&fm=266907444622937&tin=02508201610067®Number=0000000000092771&sum=150028 [12:50:50]StoreToDocumentArchive [12:50:50]shift 388 fd 111346 [12:50:50]save to /storage/0388/doc_00111346 [12:50:50]save last doc name /storage/0388/doc_00111346 to /storage/kkm_last_doc_name [12:50:50]save OK [12:50:50]Clear old archive folders... [12:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:50:50]tlvbuf is 00F3BAE0 [12:50:50]SAM_PROTO_ClearQueue [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 09 00 00 [12:50:50]Write to MH i2c: E2 08 00 AB 03 80 09 00 00 00 00 00 00 20 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [12:50:50]RAPDU: 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_ClearQueue done [12:50:50]KKMCreateOFDPacket [12:50:50]OFDProtocolAddRootSTLVToBuf [12:50:50]FM_MakeSignedData [12:50:50]FM_MakeSignedData [12:50:50]SAM_PROTO_SignData [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 0D 01 02 [12:50:50]Write to MH i2c: E2 08 00 AC 03 80 0D 01 02 00 00 00 00 28 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [12:50:50]RAPDU: 90 00 [12:50:50]wFMCommunicate OK [12:50:50]wFMCommunicate request_size=255 [12:50:50]MH_SAM_APDU [12:50: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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 2A D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B2 01 00 35 04 06 00 F2 C0 3B 6C [12:50:50]Write to MH i2c: E2 02 01 AD 03 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 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 2A D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B2 01 00 35 04 06 00 F2 C0 3B 6C 00 00 3E [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [12:50:50]RAPDU: 90 00 [12:50:50]wFMCommunicate OK [12:50:50]wFMCommunicate request_size=7 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 0D 02 02 02 B6 59 [12:50:50]Write to MH i2c: E2 0A 00 AE 03 80 0D 02 02 02 00 B6 59 00 00 3E [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [12:50:50]RAPDU: 90 00 [12:50:50]wFMCommunicate OK [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 0D 03 02 [12:50:50]Write to MH i2c: E2 08 00 AF 03 80 0D 03 02 00 00 00 00 2D [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0B 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0B 00 AF 03 00 03 16 BB B6 BC C5 43 DA 90 00 56 [12:50:50]RAPDU: 03 16 BB B6 BC C5 43 DA 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_SignData done [12:50:50]FM_MakeSignedData done [12:50:50]CreateOFDProtocolMessage [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 11 00 00 [12:50:50]Write to MH i2c: E2 08 00 B0 03 80 11 00 00 00 00 00 00 2D [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 17 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 17 00 B0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [12:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:50]wFMCommunicate OK [12:50:50]CreateOFDProtocolMessage done [12:50:50]OFDSenderStorePacket 111346 [12:50:50]StoreOFDPacket docnum=111346 [12:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 14 25 04 01 DF 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 2A D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B2 01 00 35 04 06 00 F2 C0 3B 6C B6 59 03 16 BB B6 BC C5 43 DA [12:50:50]CheckFolder [12:50:50]dirname=/storage/ofd_packets [12:50:50]CheckFolder done [12:50:50]ProducePacketName [12:50:50]name=ofd_packets/00111346 [12:50:50]NVStorageSaveData ofd_packets/00111346 [12:50:50]File name is /storage/ofd_packets/00111346 [12:50:50]Write 298 bytes [12:50:50]NVStorageSaveData done [12:50:50]OFDSenderStorePacket done [12:50:50]KKMCreateOFDPacket done [12:50:51]NVStorageSaveData kkm_last_timestamp [12:50:51]File name is /storage/kkm_last_timestamp [12:50:51]Write 4 bytes [12:50:51]NVStorageSaveData done [12:50:51]ExternCall_PrintAddStr [12:50:51]wPrintStart [12:50:51]Write to MH i2c: 01 00 00 B1 03 B4 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: 01 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: 01 07 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [12:50:51]RasterBufferAndPrint [12:50:51]line Счет N : (1)319918 [12:50:51]line ИНН: 02508201610067 [12:50:51]line Контрольно-Кассовый Чек [12:50:51]line ПРОДАЖА [12:50:51]line ТРК (МРК, ГНК) : 22 [12:50:51]line Товар: 2710194210 [12:50:51]line ДТ-К-5 [12:50:51]line 20.580 * 72.90 [12:50:51]line = 1500.28 [12:50:51]line НДС 12% НСП 1% [12:50:51]line > о реализуемом товаре [12:50:51]line ИТОГО: 1500.28 [12:50:51]line НСП 1% : 13.28 [12:50:51]line НДС 12% : 159.32 [12:50:51]line Наличными: 0.00 [12:50:51]line Безнал.: 1500.28 [12:50:51]line Место: АЗС № 65 "Партнер Нефть" [12:50:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:50:51]line СНО: Общий режим [12:50:51]line Чек 95 19.06.2024 12:50 [12:50:51]line Смена: 388 ФФД: 1.0 [12:50:51]line ЗНМ: 0300000198 [12:50:51]line РНМ: 0000000000092771 [12:50:51]line Версия ККМ: 001 [12:50:51]line Платежная система: О! деньги [12:50:51]OFD Sender: Processing packet 111346 [packets to send 38, broken 37] [12:50:51]ProducePacketName [12:50:51]name=ofd_packets/00111346 [12:50:51]OFD Sender: To server: pG, [12:50:51]CommunicateWithHost lk.salyk.kg:30040 [12:50:51]ConnectInit lk.salyk.kg [12:50:51]line ФМ: 0000000000875083 [12:50:51]line ФД: 111346 [12:50:51]line ФПД: 266907444622937 [12:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125050&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111346&fm=266907444622937&tin=02508201610067®Number=0000000000092771&sum=150028 [12:50:51]Connected sock=11 [12:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 14 25 04 01 DF 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 2A D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F2 B2 01 00 35 04 06 00 F2 C0 3B 6C B6 59 03 16 BB B6 BC C5 43 DA [12:50:51]written 0, free lines is 4095 [12:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 21 15 47 00 36 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 35 30 38 33 10 04 04 00 F2 B2 01 00 F4 03 04 00 93 6B 72 66 B6 04 01 00 00 FA D4 E8 D5 5C E8 1B 8E [12:50:51]CommunicateWithHost err = 0 [12:50:51]CheckOFDResponse [12:50:51]1017 (14) - 77093643461234 [12:50:51]1041 (16) - 0000000000875083 [12:50:51]1040 (4) - 111346 [12:50:51]1012 (4) - 19.06.2024 05:24 [12:50:51]1206 (1) - 0 [12:50:51]OFD Sender: Remove packet 111346 [12:50:51]ProducePacketName [12:50:51]name=ofd_packets/00111346 [12:50:51]NVStorageDeleteData [12:50:51]Write to MH i2c: 01 00 00 DB 03 DE [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: 01 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: 01 07 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 EF 0C E0 [12:50:51]RasterBufferAndPrint [12:50:51]line [12:50:51]line [12:50:51]line [12:50:51]line [12:50:51]line [12:50:51]written 0, free lines is 3316 [12:50:51]MH_Cut [12:50:51]Write to MH i2c: D1 01 00 E2 03 01 B7 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: D1 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: D1 01 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: D1 01 00 E2 03 00 B6 [12:50:51]Write to MH i2c: 01 00 00 E3 03 E6 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:52]OFD Sender: No OFD packet to send [12:50:52]*** Cut start [12:50:52]*** Partial cut [12:50:52]*** CUTSNS_PIN = 1 [12:50:52]*** CUTSNS_PIN = 0 [12:50:52]*** Brake cut motor [12:50:53]Read from MH i2c: 01 [12:50:53]MH_I2C_Read... [12:50:53]*** Stop cut motor [12:50:53]*** Cut end [12:50:53]Read from MH i2c: 01 07 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: 01 07 00 E3 03 00 00 00 00 00 FF 0F FB [12:50:53]process_action close_receipt done [12:50:53]requested_data is exist [12:50:53]produce_requested_data [12:50:53]requested_item fm.sn is exist - process it [12:50:53]wFMCommunicate request_size=4 [12:50:53]MH_SAM_APDU [12:50:53]CAPDU: 80 11 00 00 [12:50:53]Write to MH i2c: E2 08 00 E4 03 80 11 00 00 00 00 00 00 61 [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:53]Read from MH i2c: E2 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 17 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 17 00 E4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [12:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:50:53]wFMCommunicate OK [12:50:53]requested_item fd.num is exist - process it [12:50:53]SAM_PROTO_GetFieldsCounters [12:50:53]wFMCommunicate request_size=4 [12:50:53]MH_SAM_APDU [12:50:53]CAPDU: 80 13 00 00 [12:50:53]Write to MH i2c: E2 08 00 E5 03 80 13 00 00 00 00 00 00 64 [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:53]Read from MH i2c: E2 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 62 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 62 00 E5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [12:50: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F2 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:53]wFMCommunicate OK [12:50:53]SAM_PROTO_GetFieldsCounters done [12:50:53]requested_item shift.num is exist - process it [12:50:53]requested_item shift.opened is exist - process it [12:50:53]req_shift_opened [12:50:53]FM_GetShiftState [12:50:53]SAM_PROTO_GetShiftState [12:50:53]wFMCommunicate request_size=4 [12:50:53]MH_SAM_APDU [12:50:53]CAPDU: 80 13 01 00 [12:50:53]Write to MH i2c: E2 08 00 E6 03 80 13 01 00 00 00 00 00 66 [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 [12:50:53]MH_I2C_Read... [12:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:53]Read from MH i2c: E2 0E 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: E2 0E 00 E6 03 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B0 [12:50:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:50:53]wFMCommunicate OK [12:50:53]SAM_PROTO_GetShiftState done [12:50:53]FM_GetShiftState done [12:50:53]req_shift_opened done [12:50:53]requested_item shift.open_date is exist - process it [12:50:53]req_shift_open_date [12:50:53]req_shift_open_date done [12:50:53]produce_requested_data done [12:50:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111346,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:50:53]process_action_free close_receipt [12:50:53]json_value_free [12:50:53]json_value_free done [12:50:53]process_json_proto returns [12:50:53]Send response to host [12:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111346,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:50:53]free response buf [12:50:53]execute_script done [12:50:53]execute_script returns [12:50:53]free content buf [12:50:53]Sock 9.Close socket [12:50:53]Sock 9.Thread stoped [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:37]accept exits with 7 [12:51:37]New connection [12:51:37]New thread 3067321700 created [12:51:37]Thread 3067465060 joined [12:51:37]Waiting for new connection... [12:51:37] Sock 7.Parse request [12:51:37]Sock 7.Check first char [12:51:37]Sock 7.First char is OK [12:51:37]request: POST /json_proto HTTP/1.0 [12:51:37]Method: POST [12:51:37]URL: /json_proto [12:51:37]Method is POST - this is cgi request [12:51:37]url: /json_proto [12:51:37]query_string will be loaded in cgi processing [12:51:37]execute_cgi json_proto POST (null) [12:51:37]execute_cgi path=json_proto method=POST [12:51:37]POST find Content-Length [12:51:37]Host: 172.17.59.68:8080 [12:51:37]Content-Length: 677 [12:51:37]Content-Type: application/json [12:51:37] [12:51:37]POST finish read [12:51:37]Found Content-Length = 677 [12:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [12:51:37]execute_script... [12:51: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)319920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [12:51:37]POST & json_proto [12:51:37]process_json_proto [12:51:37]json parsed OK: [12:51:37]protocol is kg_v1.0 [12:51:37]action value=close_receipt [12:51:37]process_action close_receipt [12:51:37]cmd_close_receipt [12:51:37]MH_GetDate [12:51:37]Write to MH i2c: F0 00 00 E7 03 D9 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: F0 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: F0 09 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: F0 09 00 E7 03 00 5A D4 72 66 BC EC 60 65 55 [12:51:37]GetLastDocTimeStamp 1718801450 [12:51:37]current date 1718801498 [12:51:37]FM_GetShiftState [12:51:37]SAM_PROTO_GetShiftState [12:51:37]wFMCommunicate request_size=4 [12:51:37]MH_SAM_APDU [12:51:37]CAPDU: 80 13 01 00 [12:51:37]Write to MH i2c: E2 08 00 E8 03 80 13 01 00 00 00 00 00 68 [12:51:37]Write i2c OK [12:51:37]MH_I2C_Read... [12:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:37]Read from MH i2c: E2 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 0E 00 [12:51:37]MH_I2C_Read... [12:51:37]Read from MH i2c: E2 0E 00 E8 03 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B2 [12:51:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:51:37]wFMCommunicate OK [12:51:37]SAM_PROTO_GetShiftState done [12:51:37]FM_GetShiftState done [12:51:37]opened in 1718760753 [12:51:37]opened+sec_in_day 1718847153 [12:51:37]quantity*price = 35059 [12:51:37]sum+1 = 35060 [12:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 96 19.06.2024 12:51 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111347 ФПД: 61234140085876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125138&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111347&fm=61234140085876&tin=02508201610067®Number=0000000000092771&sum=35000 [12:51:38]StoreToDocumentArchive [12:51:38]shift 388 fd 111347 [12:51:38]save to /storage/0388/doc_00111347 [12:51:38]save last doc name /storage/0388/doc_00111347 to /storage/kkm_last_doc_name [12:51:38]save OK [12:51:38]Clear old archive folders... [12:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:38]tlvbuf is B6FD26E0 [12:51:38]SAM_PROTO_ClearQueue [12:51:38]wFMCommunicate request_size=4 [12:51:38]MH_SAM_APDU [12:51:38]CAPDU: 80 09 00 00 [12:51:38]Write to MH i2c: E2 08 00 F5 03 80 09 00 00 00 00 00 00 6A [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:38]Read from MH i2c: E2 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 03 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [12:51:38]RAPDU: 90 00 [12:51:38]wFMCommunicate OK [12:51:38]SAM_PROTO_ClearQueue done [12:51:38]KKMCreateOFDPacket [12:51:38]OFDProtocolAddRootSTLVToBuf [12:51:38]FM_MakeSignedData [12:51:38]FM_MakeSignedData [12:51:38]SAM_PROTO_SignData [12:51:38]wFMCommunicate request_size=4 [12:51:38]MH_SAM_APDU [12:51:38]CAPDU: 80 0D 01 02 [12:51:38]Write to MH i2c: E2 08 00 F6 03 80 0D 01 02 00 00 00 00 72 [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 [12:51:38]MH_I2C_Read... [12:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:38]Read from MH i2c: E2 03 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [12:51:38]RAPDU: 90 00 [12:51:38]wFMCommunicate OK [12:51:38]wFMCommunicate request_size=255 [12:51:38]MH_SAM_APDU [12:51: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 60 00 00 00 F4 03 04 00 5A D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B2 01 00 35 04 06 00 37 [12:51:38]Write to MH i2c: E2 02 01 F7 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 60 00 00 00 F4 03 04 00 5A D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B2 01 00 35 04 06 00 37 00 00 CC [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:38]Read from MH i2c: E2 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 03 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [12:51:38]RAPDU: 90 00 [12:51:38]wFMCommunicate OK [12:51:38]wFMCommunicate request_size=10 [12:51:38]MH_SAM_APDU [12:51:38]CAPDU: 80 0D 02 02 05 B1 2F 2A FE 74 [12:51:38]Write to MH i2c: E2 0D 00 F8 03 80 0D 02 02 05 00 B1 2F 2A FE 74 00 00 FB [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:38]Read from MH i2c: E2 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 03 00 [12:51:38]MH_I2C_Read... [12:51:38]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [12:51:38]RAPDU: 90 00 [12:51:38]wFMCommunicate OK [12:51:38]wFMCommunicate request_size=4 [12:51:38]MH_SAM_APDU [12:51:38]CAPDU: 80 0D 03 02 [12:51:38]Write to MH i2c: E2 08 00 F9 03 80 0D 03 02 00 00 00 00 77 [12:51:38]Write i2c OK [12:51:38]MH_I2C_Read... [12:51:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 0B 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 0B 00 F9 03 00 55 74 CE 4F C7 71 11 58 90 00 FF [12:51:39]RAPDU: 55 74 CE 4F C7 71 11 58 90 00 [12:51:39]wFMCommunicate OK [12:51:39]SAM_PROTO_SignData done [12:51:39]FM_MakeSignedData done [12:51:39]CreateOFDProtocolMessage [12:51:39]wFMCommunicate request_size=4 [12:51:39]MH_SAM_APDU [12:51:39]CAPDU: 80 11 00 00 [12:51:39]Write to MH i2c: E2 08 00 FA 03 80 11 00 00 00 00 00 00 77 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:39]Read from MH i2c: E2 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 17 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: E2 17 00 FA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C9 [12:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:51:39]wFMCommunicate OK [12:51:39]CreateOFDProtocolMessage done [12:51:39]OFDSenderStorePacket 111347 [12:51:39]StoreOFDPacket docnum=111347 [12:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 ED 54 07 01 6E 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 60 00 00 00 F4 03 04 00 5A D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B2 01 00 35 04 06 00 37 B1 2F 2A FE 74 55 74 CE 4F C7 71 11 58 [12:51:39]CheckFolder [12:51:39]dirname=/storage/ofd_packets [12:51:39]CheckFolder done [12:51:39]ProducePacketName [12:51:39]name=ofd_packets/00111347 [12:51:39]NVStorageSaveData ofd_packets/00111347 [12:51:39]File name is /storage/ofd_packets/00111347 [12:51:39]Write 301 bytes [12:51:39]NVStorageSaveData done [12:51:39]OFDSenderStorePacket done [12:51:39]KKMCreateOFDPacket done [12:51:39]NVStorageSaveData kkm_last_timestamp [12:51:39]File name is /storage/kkm_last_timestamp [12:51:39]Write 4 bytes [12:51:39]NVStorageSaveData done [12:51:39]ExternCall_PrintAddStr [12:51:39]wPrintStart [12:51:39]Write to MH i2c: 01 00 00 FB 03 FE [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: 01 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: 01 07 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: 01 07 00 FB 03 00 00 00 00 00 FF 0F 13 [12:51:39]RasterBufferAndPrint [12:51:39]line Счет N : (1)319920 [12:51:39]line ИНН: 02508201610067 [12:51:39]line Контрольно-Кассовый Чек [12:51:39]line ПРОДАЖА [12:51:39]line ТРК (МРК, ГНК) : 11 [12:51:39]line Товар: 2710124130 [12:51:39]line Аи-92-К-5 [12:51:39]line 5.280 * 66.40 [12:51:39]line = 350.59 [12:51:39]line НДС 12% НСП 1% [12:51:39]line > о реализуемом товаре [12:51:39]line ОКРУГЛЕНИЕ: -0.59 [12:51:39]line ИТОГО: 350.00 [12:51:39]line Внесено: 350.00 [12:51:39]line СДАЧА: 0.00 [12:51:39]line НСП 1% : 3.10 [12:51:39]line НДС 12% : 37.23 [12:51:39]line Наличными: 350.00 [12:51:39]line Безнал.: 0.00 [12:51:39]line Место: АЗС № 65 "Партнер Нефть" [12:51:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:51:39]line СНО: Общий режим [12:51:39]line Чек 96 19.06.2024 12:51 [12:51:39]line Смена: 388 ФФД: 1.0 [12:51:39]line ЗНМ: 0300000198 [12:51:39]line РНМ: 0000000000092771 [12:51:39]line Версия ККМ: 001 [12:51:39]line ФМ: 0000000000875083 [12:51:39]line ФД: 111347 [12:51:39]line ФПД: 61234140085876 [12:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125138&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111347&fm=61234140085876&tin=02508201610067®Number=0000000000092771&sum=35000 [12:51:39]OFD Sender: Processing packet 111347 [packets to send 38, broken 37] [12:51:39]ProducePacketName [12:51:39]name=ofd_packets/00111347 [12:51:39]OFD Sender: To server: pG, [12:51:39]CommunicateWithHost lk.salyk.kg:30040 [12:51:39]ConnectInit lk.salyk.kg [12:51:39]written 0, free lines is 4095 [12:51:39]Connected sock=10 [12:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 ED 54 07 01 6E 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 60 00 00 00 F4 03 04 00 5A D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F3 B2 01 00 35 04 06 00 37 B1 2F 2A FE 74 55 74 CE 4F C7 71 11 58 [12:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C7 50 47 00 03 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 35 30 38 33 10 04 04 00 F3 B2 01 00 F4 03 04 00 C3 6B 72 66 B6 04 01 00 00 3B D8 19 C2 50 34 AF 52 [12:51:39]CommunicateWithHost err = 0 [12:51:39]CheckOFDResponse [12:51:39]1017 (14) - 77093643461234 [12:51:39]1041 (16) - 0000000000875083 [12:51:39]1040 (4) - 111347 [12:51:39]1012 (4) - 19.06.2024 05:25 [12:51:39]1206 (1) - 0 [12:51:39]OFD Sender: Remove packet 111347 [12:51:39]ProducePacketName [12:51:39]name=ofd_packets/00111347 [12:51:39]NVStorageDeleteData [12:51:39]Write to MH i2c: 01 00 00 26 04 2A [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: 01 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: 01 07 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 E5 0C 22 [12:51:39]RasterBufferAndPrint [12:51:39]line [12:51:39]line [12:51:39]line [12:51:39]line [12:51:39]line [12:51:39]written 0, free lines is 3307 [12:51:39]MH_Cut [12:51:39]Write to MH i2c: D1 01 00 2D 04 01 03 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: D1 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: D1 01 00 [12:51:39]MH_I2C_Read... [12:51:39]Read from MH i2c: D1 01 00 2D 04 00 02 [12:51:39]Write to MH i2c: 01 00 00 2E 04 32 [12:51:39]Write i2c OK [12:51:39]MH_I2C_Read... [12:51:40]OFD Sender: No OFD packet to send [12:51:40]*** Cut start [12:51:40]*** Partial cut [12:51:40]*** CUTSNS_PIN = 1 [12:51:40]*** CUTSNS_PIN = 0 [12:51:40]*** Brake cut motor [12:51:41]Read from MH i2c: 01 [12:51:41]MH_I2C_Read... [12:51:41]*** Stop cut motor [12:51:41]*** Cut end [12:51:41]Read from MH i2c: 01 07 00 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [12:51:41]process_action close_receipt done [12:51:41]requested_data is exist [12:51:41]produce_requested_data [12:51:41]requested_item fm.sn is exist - process it [12:51:41]wFMCommunicate request_size=4 [12:51:41]MH_SAM_APDU [12:51:41]CAPDU: 80 11 00 00 [12:51:41]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:41]Read from MH i2c: E2 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: E2 17 00 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: E2 17 00 2F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [12:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:51:41]wFMCommunicate OK [12:51:41]requested_item fd.num is exist - process it [12:51:41]SAM_PROTO_GetFieldsCounters [12:51:41]wFMCommunicate request_size=4 [12:51:41]MH_SAM_APDU [12:51:41]CAPDU: 80 13 00 00 [12:51:41]Write to MH i2c: E2 08 00 30 04 80 13 00 00 00 00 00 00 B0 [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:41]Read from MH i2c: E2 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: E2 62 00 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: E2 62 00 30 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [12:51: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F3 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:41]wFMCommunicate OK [12:51:41]SAM_PROTO_GetFieldsCounters done [12:51:41]requested_item shift.num is exist - process it [12:51:41]requested_item shift.opened is exist - process it [12:51:41]req_shift_opened [12:51:41]FM_GetShiftState [12:51:41]SAM_PROTO_GetShiftState [12:51:41]wFMCommunicate request_size=4 [12:51:41]MH_SAM_APDU [12:51:41]CAPDU: 80 13 01 00 [12:51:41]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [12:51:41]Write i2c OK [12:51:41]MH_I2C_Read... [12:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:41]Read from MH i2c: E2 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: E2 0E 00 [12:51:41]MH_I2C_Read... [12:51:41]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FC [12:51:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:51:41]wFMCommunicate OK [12:51:41]SAM_PROTO_GetShiftState done [12:51:41]FM_GetShiftState done [12:51:41]req_shift_opened done [12:51:41]requested_item shift.open_date is exist - process it [12:51:41]req_shift_open_date [12:51:41]req_shift_open_date done [12:51:41]produce_requested_data done [12:51:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111347,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:51:41]process_action_free close_receipt [12:51:41]json_value_free [12:51:41]json_value_free done [12:51:41]process_json_proto returns [12:51:41]Send response to host [12:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111347,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:51:41]free response buf [12:51:41]execute_script done [12:51:41]execute_script returns [12:51:41]free content buf [12:51:41]Sock 7.Close socket [12:51:41]Sock 7.Thread stoped [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]accept exits with 9 [12:52:20]New connection [12:52:20]New thread 3067465060 created [12:52:20]Thread 3067321700 joined [12:52:20]Waiting for new connection... [12:52:20] Sock 9.Parse request [12:52:20]Sock 9.Check first char [12:52:20]Sock 9.First char is OK [12:52:20]request: POST /json_proto HTTP/1.0 [12:52:20]Method: POST [12:52:20]URL: /json_proto [12:52:20]Method is POST - this is cgi request [12:52:20]url: /json_proto [12:52:20]query_string will be loaded in cgi processing [12:52:20]execute_cgi json_proto POST (null) [12:52:20]execute_cgi path=json_proto method=POST [12:52:20]POST find Content-Length [12:52:20]Host: 172.17.59.68:8080 [12:52:20]Content-Length: 674 [12:52:20]Content-Type: application/json [12:52:20] [12:52:20]POST finish read [12:52:20]Found Content-Length = 674 [12:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:20]execute_script... [12:52:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:20]POST & json_proto [12:52:20]process_json_proto [12:52:20]json parsed OK: [12:52:20]protocol is kg_v1.0 [12:52:20]action value=close_receipt [12:52:20]process_action close_receipt [12:52:20]cmd_close_receipt [12:52:20]MH_GetDate [12:52:20]Write to MH i2c: F0 00 00 32 04 25 [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: F0 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: F0 09 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: F0 09 00 32 04 00 85 D4 72 66 BC EC 60 65 CC [12:52:20]GetLastDocTimeStamp 1718801498 [12:52:20]current date 1718801541 [12:52:20]FM_GetShiftState [12:52:20]SAM_PROTO_GetShiftState [12:52:20]wFMCommunicate request_size=4 [12:52:20]MH_SAM_APDU [12:52:20]CAPDU: 80 13 01 00 [12:52:20]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [12:52:20]Write i2c OK [12:52:20]MH_I2C_Read... [12:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:20]Read from MH i2c: E2 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 0E 00 [12:52:20]MH_I2C_Read... [12:52:20]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FE [12:52:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:52:20]wFMCommunicate OK [12:52:20]SAM_PROTO_GetShiftState done [12:52:20]FM_GetShiftState done [12:52:20]opened in 1718760753 [12:52:20]opened+sec_in_day 1718847153 [12:52:20]quantity*price = 50009 [12:52:20]sum+1 = 50010 [12:52:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 97 19.06.2024 12:52 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111348 ФПД: 183197513942730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125221&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111348&fm=183197513942730&tin=02508201610067®Number=0000000000092771&sum=50000 [12:52:21]StoreToDocumentArchive [12:52:21]shift 388 fd 111348 [12:52:21]save to /storage/0388/doc_00111348 [12:52:21]save last doc name /storage/0388/doc_00111348 to /storage/kkm_last_doc_name [12:52:21]save OK [12:52:21]Clear old archive folders... [12:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:52:21]tlvbuf is 00EBED30 [12:52:21]SAM_PROTO_ClearQueue [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 09 00 00 [12:52:21]Write to MH i2c: E2 08 00 40 04 80 09 00 00 00 00 00 00 B6 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 03 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [12:52:21]RAPDU: 90 00 [12:52:21]wFMCommunicate OK [12:52:21]SAM_PROTO_ClearQueue done [12:52:21]KKMCreateOFDPacket [12:52:21]OFDProtocolAddRootSTLVToBuf [12:52:21]FM_MakeSignedData [12:52:21]FM_MakeSignedData [12:52:21]SAM_PROTO_SignData [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 0D 01 02 [12:52:21]Write to MH i2c: E2 08 00 41 04 80 0D 01 02 00 00 00 00 BE [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 03 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [12:52:21]RAPDU: 90 00 [12:52:21]wFMCommunicate OK [12:52:21]wFMCommunicate request_size=255 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 85 D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B2 01 00 35 04 06 00 A6 9D FE BE [12:52:21]Write to MH i2c: E2 02 01 42 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 85 D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B2 01 00 35 04 06 00 A6 9D FE BE 00 00 25 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 03 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [12:52:21]RAPDU: 90 00 [12:52:21]wFMCommunicate OK [12:52:21]wFMCommunicate request_size=7 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 0D 02 02 02 06 CA [12:52:21]Write to MH i2c: E2 0A 00 43 04 80 0D 02 02 02 00 06 CA 00 00 95 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 03 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [12:52:21]RAPDU: 90 00 [12:52:21]wFMCommunicate OK [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 0D 03 02 [12:52:21]Write to MH i2c: E2 08 00 44 04 80 0D 03 02 00 00 00 00 C3 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 0B 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 0B 00 44 04 00 C9 61 CE B5 10 02 34 E2 90 00 99 [12:52:21]RAPDU: C9 61 CE B5 10 02 34 E2 90 00 [12:52:21]wFMCommunicate OK [12:52:21]SAM_PROTO_SignData done [12:52:21]FM_MakeSignedData done [12:52:21]CreateOFDProtocolMessage [12:52:21]wFMCommunicate request_size=4 [12:52:21]MH_SAM_APDU [12:52:21]CAPDU: 80 11 00 00 [12:52:21]Write to MH i2c: E2 08 00 45 04 80 11 00 00 00 00 00 00 C3 [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:21]Read from MH i2c: E2 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 17 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: E2 17 00 45 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [12:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:52:21]wFMCommunicate OK [12:52:21]CreateOFDProtocolMessage done [12:52:21]OFDSenderStorePacket 111348 [12:52:21]StoreOFDPacket docnum=111348 [12:52:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 15 E1 04 01 A6 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 85 D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B2 01 00 35 04 06 00 A6 9D FE BE 06 CA C9 61 CE B5 10 02 34 E2 [12:52:21]CheckFolder [12:52:21]dirname=/storage/ofd_packets [12:52:21]CheckFolder done [12:52:21]ProducePacketName [12:52:21]name=ofd_packets/00111348 [12:52:21]NVStorageSaveData ofd_packets/00111348 [12:52:21]File name is /storage/ofd_packets/00111348 [12:52:21]Write 298 bytes [12:52:21]NVStorageSaveData done [12:52:21]OFDSenderStorePacket done [12:52:21]KKMCreateOFDPacket done [12:52:21]NVStorageSaveData kkm_last_timestamp [12:52:21]File name is /storage/kkm_last_timestamp [12:52:21]Write 4 bytes [12:52:21]NVStorageSaveData done [12:52:21]ExternCall_PrintAddStr [12:52:21]wPrintStart [12:52:21]Write to MH i2c: 01 00 00 46 04 4A [12:52:21]Write i2c OK [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: 01 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: 01 07 00 [12:52:21]MH_I2C_Read... [12:52:21]Read from MH i2c: 01 07 00 46 04 00 00 00 00 00 FF 0F 5F [12:52:21]RasterBufferAndPrint [12:52:21]line Счет N : (1)319921 [12:52:21]line ИНН: 02508201610067 [12:52:21]line Контрольно-Кассовый Чек [12:52:21]line ПРОДАЖА [12:52:21]line ТРК (МРК, ГНК) : 22 [12:52:21]line Товар: 2710194210 [12:52:21]line ДТ-К-5 [12:52:21]line 6.860 * 72.90 [12:52:21]line = 500.09 [12:52:21]line НДС 12% НСП 1% [12:52:21]line > о реализуемом товаре [12:52:21]line ОКРУГЛЕНИЕ: -0.09 [12:52:21]line ИТОГО: 500.00 [12:52:21]line Внесено: 500.00 [12:52:21]line СДАЧА: 0.00 [12:52:21]line НСП 1% : 4.43 [12:52:21]line НДС 12% : 53.11 [12:52:21]line Наличными: 500.00 [12:52:21]line Безнал.: 0.00 [12:52:21]line Место: АЗС № 65 "Партнер Нефть" [12:52:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:52:21]line СНО: Общий режим [12:52:21]line Чек 97 19.06.2024 12:52 [12:52:21]line Смена: 388 ФФД: 1.0 [12:52:21]line ЗНМ: 0300000198 [12:52:21]line РНМ: 0000000000092771 [12:52:21]line Версия ККМ: 001 [12:52:21]line ФМ: 0000000000875083 [12:52:21]line ФД: 111348 [12:52:21]line ФПД: 183197513942730 [12:52:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125221&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111348&fm=183197513942730&tin=02508201610067®Number=0000000000092771&sum=50000 [12:52:22]OFD Sender: Processing packet 111348 [packets to send 38, broken 37] [12:52:22]ProducePacketName [12:52:22]name=ofd_packets/00111348 [12:52:22]OFD Sender: To server: pG, [12:52:22]CommunicateWithHost lk.salyk.kg:30040 [12:52:22]ConnectInit lk.salyk.kg [12:52:22]written 0, free lines is 4095 [12:52:22]Connected sock=10 [12:52:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 15 E1 04 01 A6 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 85 D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F4 B2 01 00 35 04 06 00 A6 9D FE BE 06 CA C9 61 CE B5 10 02 34 E2 [12:52:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 92 1D 47 00 92 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 35 30 38 33 10 04 04 00 F4 B2 01 00 F4 03 04 00 EE 6B 72 66 B6 04 01 00 00 D7 3A FA 2B 49 C0 97 4F [12:52:22]CommunicateWithHost err = 0 [12:52:22]CheckOFDResponse [12:52:22]1017 (14) - 77093643461234 [12:52:22]1041 (16) - 0000000000875083 [12:52:22]1040 (4) - 111348 [12:52:22]1012 (4) - 19.06.2024 05:26 [12:52:22]1206 (1) - 0 [12:52:22]OFD Sender: Remove packet 111348 [12:52:22]ProducePacketName [12:52:22]name=ofd_packets/00111348 [12:52:22]NVStorageDeleteData [12:52:22]Write to MH i2c: 01 00 00 71 04 75 [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: 01 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: 01 07 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 E4 0C 6C [12:52:22]RasterBufferAndPrint [12:52:22]line [12:52:22]line [12:52:22]line [12:52:22]line [12:52:22]line [12:52:22]written 0, free lines is 3306 [12:52:22]MH_Cut [12:52:22]Write to MH i2c: D1 01 00 78 04 01 4E [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: D1 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: D1 01 00 [12:52:22]MH_I2C_Read... [12:52:22]Read from MH i2c: D1 01 00 78 04 00 4D [12:52:22]Write to MH i2c: 01 00 00 79 04 7D [12:52:22]Write i2c OK [12:52:22]MH_I2C_Read... [12:52:23]OFD Sender: No OFD packet to send [12:52:23]*** Cut start [12:52:23]*** Partial cut [12:52:23]*** CUTSNS_PIN = 1 [12:52:23]*** CUTSNS_PIN = 0 [12:52:23]*** Brake cut motor [12:52:24]Read from MH i2c: 01 [12:52:24]MH_I2C_Read... [12:52:24]*** Stop cut motor [12:52:24]*** Cut end [12:52:24]Read from MH i2c: 01 07 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 FF 0F 92 [12:52:24]process_action close_receipt done [12:52:24]requested_data is exist [12:52:24]produce_requested_data [12:52:24]requested_item fm.sn is exist - process it [12:52:24]wFMCommunicate request_size=4 [12:52:24]MH_SAM_APDU [12:52:24]CAPDU: 80 11 00 00 [12:52:24]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:24]Read from MH i2c: E2 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 17 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 17 00 7A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4A [12:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:52:24]wFMCommunicate OK [12:52:24]requested_item fd.num is exist - process it [12:52:24]SAM_PROTO_GetFieldsCounters [12:52:24]wFMCommunicate request_size=4 [12:52:24]MH_SAM_APDU [12:52:24]CAPDU: 80 13 00 00 [12:52:24]Write to MH i2c: E2 08 00 7B 04 80 13 00 00 00 00 00 00 FB [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:24]Read from MH i2c: E2 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 62 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 62 00 7B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [12:52: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F4 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:24]wFMCommunicate OK [12:52:24]SAM_PROTO_GetFieldsCounters done [12:52:24]requested_item shift.num is exist - process it [12:52:24]requested_item shift.opened is exist - process it [12:52:24]req_shift_opened [12:52:24]FM_GetShiftState [12:52:24]SAM_PROTO_GetShiftState [12:52:24]wFMCommunicate request_size=4 [12:52:24]MH_SAM_APDU [12:52:24]CAPDU: 80 13 01 00 [12:52:24]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:24]Read from MH i2c: E2 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 0E 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 31 35 72 66 00 00 00 00 90 00 47 [12:52:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:52:24]wFMCommunicate OK [12:52:24]SAM_PROTO_GetShiftState done [12:52:24]FM_GetShiftState done [12:52:24]req_shift_opened done [12:52:24]requested_item shift.open_date is exist - process it [12:52:24]req_shift_open_date [12:52:24]req_shift_open_date done [12:52:24]produce_requested_data done [12:52:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111348,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:52:24]process_action_free close_receipt [12:52:24]json_value_free [12:52:24]json_value_free done [12:52:24]process_json_proto returns [12:52:24]Send response to host [12:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111348,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:52:24]free response buf [12:52:24]execute_script done [12:52:24]execute_script returns [12:52:24]free content buf [12:52:24]Sock 9.Close socket [12:52:24]Sock 9.Thread stoped [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:52:59]accept exits with 7 [12:52:59]New connection [12:52:59]New thread 3067321700 created [12:52:59]Thread 3067465060 joined [12:52:59]Waiting for new connection... [12:52:59] Sock 7.Parse request [12:52:59]Sock 7.Check first char [12:52:59]Sock 7.First char is OK [12:52:59]request: POST /json_proto HTTP/1.0 [12:52:59]Method: POST [12:52:59]URL: /json_proto [12:52:59]Method is POST - this is cgi request [12:52:59]url: /json_proto [12:52:59]query_string will be loaded in cgi processing [12:52:59]execute_cgi json_proto POST (null) [12:52:59]execute_cgi path=json_proto method=POST [12:52:59]POST find Content-Length [12:52:59]Host: 172.17.59.68:8080 [12:52:59]Content-Length: 677 [12:52:59]Content-Type: application/json [12:52:59] [12:52:59]POST finish read [12:52:59]Found Content-Length = 677 [12:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:59]execute_script... [12:52: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)319922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:59]POST & json_proto [12:52:59]process_json_proto [12:52:59]json parsed OK: [12:52:59]protocol is kg_v1.0 [12:52:59]action value=close_receipt [12:52:59]process_action close_receipt [12:52:59]cmd_close_receipt [12:52:59]MH_GetDate [12:52:59]Write to MH i2c: F0 00 00 7D 04 70 [12:52:59]Write i2c OK [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 09 00 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 09 00 7D 04 00 AD D4 72 66 BC EC 60 65 3F [12:52:59]GetLastDocTimeStamp 1718801541 [12:52:59]current date 1718801581 [12:52:59]FM_GetShiftState [12:52:59]SAM_PROTO_GetShiftState [12:52:59]wFMCommunicate request_size=4 [12:52:59]MH_SAM_APDU [12:52:59]CAPDU: 80 13 01 00 [12:52:59]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [12:52:59]Write i2c OK [12:52:59]MH_I2C_Read... [12:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:59]Read from MH i2c: E2 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: E2 0E 00 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 31 35 72 66 00 00 00 00 90 00 49 [12:52:59]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:52:59]wFMCommunicate OK [12:52:59]SAM_PROTO_GetShiftState done [12:52:59]FM_GetShiftState done [12:52:59]opened in 1718760753 [12:52:59]opened+sec_in_day 1718847153 [12:52:59]quantity*price = 50065 [12:52:59]sum+1 = 50067 [12:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 98 19.06.2024 12:53 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111349 ФПД: 106252596478342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125301&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111349&fm=106252596478342&tin=02508201610067®Number=0000000000092771&sum=50000 [12:53:01]StoreToDocumentArchive [12:53:01]shift 388 fd 111349 [12:53:01]save to /storage/0388/doc_00111349 [12:53:01]save last doc name /storage/0388/doc_00111349 to /storage/kkm_last_doc_name [12:53:01]save OK [12:53:01]Clear old archive folders... [12:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:01]tlvbuf is 00F3B6A0 [12:53:01]SAM_PROTO_ClearQueue [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 09 00 00 [12:53:01]Write to MH i2c: E2 08 00 8B 04 80 09 00 00 00 00 00 00 01 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:01]Read from MH i2c: E2 03 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [12:53:01]RAPDU: 90 00 [12:53:01]wFMCommunicate OK [12:53:01]SAM_PROTO_ClearQueue done [12:53:01]KKMCreateOFDPacket [12:53:01]OFDProtocolAddRootSTLVToBuf [12:53:01]FM_MakeSignedData [12:53:01]FM_MakeSignedData [12:53:01]SAM_PROTO_SignData [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 0D 01 02 [12:53:01]Write to MH i2c: E2 08 00 8C 04 80 0D 01 02 00 00 00 00 09 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [12:53:01]RAPDU: 90 00 [12:53:01]wFMCommunicate OK [12:53:01]wFMCommunicate request_size=255 [12:53:01]MH_SAM_APDU [12:53: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 AD D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B2 01 00 35 04 06 00 60 [12:53:01]Write to MH i2c: E2 02 01 8D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 AD D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B2 01 00 35 04 06 00 60 00 00 05 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [12:53:01]RAPDU: 90 00 [12:53:01]wFMCommunicate OK [12:53:01]wFMCommunicate request_size=10 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 0D 02 02 05 A2 DC 45 01 86 [12:53:01]Write to MH i2c: E2 0D 00 8E 04 80 0D 02 02 05 00 A2 DC 45 01 86 00 00 60 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [12:53:01]RAPDU: 90 00 [12:53:01]wFMCommunicate OK [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 0D 03 02 [12:53:01]Write to MH i2c: E2 08 00 8F 04 80 0D 03 02 00 00 00 00 0E [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 0B 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 0B 00 8F 04 00 C7 2C F4 32 CA 05 B6 82 90 00 2F [12:53:01]RAPDU: C7 2C F4 32 CA 05 B6 82 90 00 [12:53:01]wFMCommunicate OK [12:53:01]SAM_PROTO_SignData done [12:53:01]FM_MakeSignedData done [12:53:01]CreateOFDProtocolMessage [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 11 00 00 [12:53:01]Write to MH i2c: E2 08 00 90 04 80 11 00 00 00 00 00 00 0E [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 17 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 17 00 90 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 60 [12:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:53:01]wFMCommunicate OK [12:53:01]CreateOFDProtocolMessage done [12:53:01]OFDSenderStorePacket 111349 [12:53:01]StoreOFDPacket docnum=111349 [12:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 88 3E 07 01 63 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 AD D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B2 01 00 35 04 06 00 60 A2 DC 45 01 86 C7 2C F4 32 CA 05 B6 82 [12:53:01]CheckFolder [12:53:01]dirname=/storage/ofd_packets [12:53:01]CheckFolder done [12:53:01]ProducePacketName [12:53:01]name=ofd_packets/00111349 [12:53:01]NVStorageSaveData ofd_packets/00111349 [12:53:01]File name is /storage/ofd_packets/00111349 [12:53:01]Write 301 bytes [12:53:01]NVStorageSaveData done [12:53:01]OFDSenderStorePacket done [12:53:01]KKMCreateOFDPacket done [12:53:01]NVStorageSaveData kkm_last_timestamp [12:53:01]File name is /storage/kkm_last_timestamp [12:53:01]Write 4 bytes [12:53:01]NVStorageSaveData done [12:53:01]ExternCall_PrintAddStr [12:53:01]wPrintStart [12:53:01]Write to MH i2c: 01 00 00 91 04 95 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 07 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 07 00 91 04 00 00 00 00 00 FF 0F AA [12:53:01]RasterBufferAndPrint [12:53:01]line Счет N : (1)319922 [12:53:01]line ИНН: 02508201610067 [12:53:01]line Контрольно-Кассовый Чек [12:53:01]line ПРОДАЖА [12:53:01]line ТРК (МРК, ГНК) : 11 [12:53:01]line Товар: 2710124130 [12:53:01]line Аи-92-К-5 [12:53:01]line 7.540 * 66.40 [12:53:01]line = 500.66 [12:53:01]line НДС 12% НСП 1% [12:53:01]line > о реализуемом товаре [12:53:01]line ОКРУГЛЕНИЕ: -0.66 [12:53:01]line ИТОГО: 500.00 [12:53:01]line Внесено: 500.00 [12:53:01]line СДАЧА: 0.00 [12:53:01]line НСП 1% : 4.43 [12:53:01]line НДС 12% : 53.17 [12:53:01]line Наличными: 500.00 [12:53:01]line Безнал.: 0.00 [12:53:01]line Место: АЗС № 65 "Партнер Нефть" [12:53:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:53:01]line СНО: Общий режим [12:53:01]line Чек 98 19.06.2024 12:53 [12:53:01]line Смена: 388 ФФД: 1.0 [12:53:01]line ЗНМ: 0300000198 [12:53:01]line РНМ: 0000000000092771 [12:53:01]line Версия ККМ: 001 [12:53:01]line ФМ: 0000000000875083 [12:53:01]line ФД: 111349 [12:53:01]line ФПД: 106252596478342 [12:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125301&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111349&fm=106252596478342&tin=02508201610067®Number=0000000000092771&sum=50000 [12:53:01]OFD Sender: Processing packet 111349 [packets to send 38, broken 37] [12:53:01]ProducePacketName [12:53:01]name=ofd_packets/00111349 [12:53:01]OFD Sender: To server: pG, [12:53:01]CommunicateWithHost lk.salyk.kg:30040 [12:53:01]ConnectInit lk.salyk.kg [12:53:01]written 0, free lines is 4095 [12:53:02]Connected sock=10 [12:53:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 88 3E 07 01 63 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 AD D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B2 01 00 35 04 06 00 60 A2 DC 45 01 86 C7 2C F4 32 CA 05 B6 82 [12:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CA 91 47 00 31 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F5 B2 01 00 F4 03 04 00 16 6C 72 66 B6 04 01 00 00 75 4A 13 C0 C8 46 FF 86 [12:53:02]CommunicateWithHost err = 0 [12:53:02]CheckOFDResponse [12:53:02]1017 (14) - 77093643461234 [12:53:02]1041 (16) - 0000000000875083 [12:53:02]1040 (4) - 111349 [12:53:02]1012 (4) - 19.06.2024 05:26 [12:53:02]1206 (1) - 0 [12:53:02]OFD Sender: Remove packet 111349 [12:53:02]ProducePacketName [12:53:02]name=ofd_packets/00111349 [12:53:02]NVStorageDeleteData [12:53:02]Write to MH i2c: 01 00 00 BC 04 C0 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 07 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 EE 0C C1 [12:53:02]RasterBufferAndPrint [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]written 0, free lines is 3314 [12:53:02]MH_Cut [12:53:02]Write to MH i2c: D1 01 00 C3 04 01 99 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 01 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 01 00 C3 04 00 98 [12:53:02]Write to MH i2c: 01 00 00 C4 04 C8 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]OFD Sender: No OFD packet to send [12:53:03]*** Cut start [12:53:03]*** Partial cut [12:53:03]*** CUTSNS_PIN = 1 [12:53:03]*** CUTSNS_PIN = 0 [12:53:03]*** Brake cut motor [12:53:03]Read from MH i2c: 01 [12:53:03]MH_I2C_Read... [12:53:03]*** Stop cut motor [12:53:03]*** Cut end [12:53:03]Read from MH i2c: 01 07 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [12:53:03]process_action close_receipt done [12:53:03]requested_data is exist [12:53:03]produce_requested_data [12:53:03]requested_item fm.sn is exist - process it [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 11 00 00 [12:53:03]Write to MH i2c: E2 08 00 C5 04 80 11 00 00 00 00 00 00 43 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 17 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 17 00 C5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [12:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:53:03]wFMCommunicate OK [12:53:03]requested_item fd.num is exist - process it [12:53:03]SAM_PROTO_GetFieldsCounters [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 13 00 00 [12:53:03]Write to MH i2c: E2 08 00 C6 04 80 13 00 00 00 00 00 00 46 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 62 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 62 00 C6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [12:53: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F5 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:03]wFMCommunicate OK [12:53:03]SAM_PROTO_GetFieldsCounters done [12:53:03]requested_item shift.num is exist - process it [12:53:03]requested_item shift.opened is exist - process it [12:53:03]req_shift_opened [12:53:03]FM_GetShiftState [12:53:03]SAM_PROTO_GetShiftState [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 13 01 00 [12:53:03]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 31 35 72 66 00 00 00 00 90 00 92 [12:53:04]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:53:04]wFMCommunicate OK [12:53:04]SAM_PROTO_GetShiftState done [12:53:04]FM_GetShiftState done [12:53:04]req_shift_opened done [12:53:04]requested_item shift.open_date is exist - process it [12:53:04]req_shift_open_date [12:53:04]req_shift_open_date done [12:53:04]produce_requested_data done [12:53:04]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111349,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:53:04]process_action_free close_receipt [12:53:04]json_value_free [12:53:04]json_value_free done [12:53:04]process_json_proto returns [12:53:04]Send response to host [12:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111349,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:53:04]free response buf [12:53:04]execute_script done [12:53:04]execute_script returns [12:53:04]free content buf [12:53:04]Sock 7.Close socket [12:53:04]Sock 7.Thread stoped [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]accept exits with 9 [12:54:22]New connection [12:54:22]New thread 3067465060 created [12:54:22]Thread 3067321700 joined [12:54:22]Waiting for new connection... [12:54:22] Sock 9.Parse request [12:54:22]Sock 9.Check first char [12:54:22]Sock 9.First char is OK [12:54:22]request: POST /json_proto HTTP/1.0 [12:54:22]Method: POST [12:54:22]URL: /json_proto [12:54:22]Method is POST - this is cgi request [12:54:22]url: /json_proto [12:54:22]query_string will be loaded in cgi processing [12:54:22]execute_cgi json_proto POST (null) [12:54:22]execute_cgi path=json_proto method=POST [12:54:22]POST find Content-Length [12:54:22]Host: 172.17.59.68:8080 [12:54:22]Content-Length: 674 [12:54:22]Content-Type: application/json [12:54:22] [12:54:22]POST finish read [12:54:22]Found Content-Length = 674 [12:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:54:22]execute_script... [12:54: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)319923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:54:22]POST & json_proto [12:54:22]process_json_proto [12:54:22]json parsed OK: [12:54:22]protocol is kg_v1.0 [12:54:22]action value=close_receipt [12:54:22]process_action close_receipt [12:54:22]cmd_close_receipt [12:54:22]MH_GetDate [12:54:22]Write to MH i2c: F0 00 00 C8 04 BB [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: F0 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: F0 09 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: F0 09 00 C8 04 00 FF D4 72 66 BC EC 60 65 DC [12:54:22]GetLastDocTimeStamp 1718801581 [12:54:22]current date 1718801663 [12:54:22]FM_GetShiftState [12:54:22]SAM_PROTO_GetShiftState [12:54:22]wFMCommunicate request_size=4 [12:54:22]MH_SAM_APDU [12:54:22]CAPDU: 80 13 01 00 [12:54:22]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [12:54:22]Write i2c OK [12:54:22]MH_I2C_Read... [12:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:22]Read from MH i2c: E2 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 0E 00 [12:54:22]MH_I2C_Read... [12:54:22]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 31 35 72 66 00 00 00 00 90 00 94 [12:54:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:54:22]wFMCommunicate OK [12:54:22]SAM_PROTO_GetShiftState done [12:54:22]FM_GetShiftState done [12:54:22]opened in 1718760753 [12:54:22]opened+sec_in_day 1718847153 [12:54:22]quantity*price = 20047 [12:54:22]sum+1 = 20049 [12:54:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 99 19.06.2024 12:54 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111350 ФПД: 160986934756286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125423&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111350&fm=160986934756286&tin=02508201610067®Number=0000000000092771&sum=20000 [12:54:23]StoreToDocumentArchive [12:54:23]shift 388 fd 111350 [12:54:23]save to /storage/0388/doc_00111350 [12:54:23]save last doc name /storage/0388/doc_00111350 to /storage/kkm_last_doc_name [12:54:23]save OK [12:54:23]Clear old archive folders... [12:54:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:54:23]tlvbuf is 00F3E340 [12:54:23]SAM_PROTO_ClearQueue [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 09 00 00 [12:54:23]Write to MH i2c: E2 08 00 D6 04 80 09 00 00 00 00 00 00 4C [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [12:54:23]RAPDU: 90 00 [12:54:23]wFMCommunicate OK [12:54:23]SAM_PROTO_ClearQueue done [12:54:23]KKMCreateOFDPacket [12:54:23]OFDProtocolAddRootSTLVToBuf [12:54:23]FM_MakeSignedData [12:54:23]FM_MakeSignedData [12:54:23]SAM_PROTO_SignData [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 0D 01 02 [12:54:23]Write to MH i2c: E2 08 00 D7 04 80 0D 01 02 00 00 00 00 54 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [12:54:23]RAPDU: 90 00 [12:54:23]wFMCommunicate OK [12:54:23]wFMCommunicate request_size=255 [12:54:23]MH_SAM_APDU [12:54: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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FF D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B2 01 00 35 04 06 00 92 6A B1 0F [12:54:23]Write to MH i2c: E2 02 01 D8 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FF D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B2 01 00 35 04 06 00 92 6A B1 0F 00 00 8B [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [12:54:23]RAPDU: 90 00 [12:54:23]wFMCommunicate OK [12:54:23]wFMCommunicate request_size=7 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 0D 02 02 02 43 BE [12:54:23]Write to MH i2c: E2 0A 00 D9 04 80 0D 02 02 02 00 43 BE 00 00 5C [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [12:54:23]RAPDU: 90 00 [12:54:23]wFMCommunicate OK [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 0D 03 02 [12:54:23]Write to MH i2c: E2 08 00 DA 04 80 0D 03 02 00 00 00 00 59 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 0B 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 0B 00 DA 04 00 47 DC DD 21 74 AE BB 61 90 00 B9 [12:54:23]RAPDU: 47 DC DD 21 74 AE BB 61 90 00 [12:54:23]wFMCommunicate OK [12:54:23]SAM_PROTO_SignData done [12:54:23]FM_MakeSignedData done [12:54:23]CreateOFDProtocolMessage [12:54:23]wFMCommunicate request_size=4 [12:54:23]MH_SAM_APDU [12:54:23]CAPDU: 80 11 00 00 [12:54:23]Write to MH i2c: E2 08 00 DB 04 80 11 00 00 00 00 00 00 59 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:23]Read from MH i2c: E2 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 17 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: E2 17 00 DB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AB [12:54:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:54:23]wFMCommunicate OK [12:54:23]CreateOFDProtocolMessage done [12:54:23]OFDSenderStorePacket 111350 [12:54:23]StoreOFDPacket docnum=111350 [12:54:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 3C 26 04 01 53 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FF D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B2 01 00 35 04 06 00 92 6A B1 0F 43 BE 47 DC DD 21 74 AE BB 61 [12:54:23]CheckFolder [12:54:23]dirname=/storage/ofd_packets [12:54:23]CheckFolder done [12:54:23]ProducePacketName [12:54:23]name=ofd_packets/00111350 [12:54:23]NVStorageSaveData ofd_packets/00111350 [12:54:23]File name is /storage/ofd_packets/00111350 [12:54:23]Write 298 bytes [12:54:23]NVStorageSaveData done [12:54:23]OFDSenderStorePacket done [12:54:23]KKMCreateOFDPacket done [12:54:23]NVStorageSaveData kkm_last_timestamp [12:54:23]File name is /storage/kkm_last_timestamp [12:54:23]Write 4 bytes [12:54:23]NVStorageSaveData done [12:54:23]ExternCall_PrintAddStr [12:54:23]wPrintStart [12:54:23]Write to MH i2c: 01 00 00 DC 04 E0 [12:54:23]Write i2c OK [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: 01 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: 01 07 00 [12:54:23]MH_I2C_Read... [12:54:23]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 FF 0F F5 [12:54:23]RasterBufferAndPrint [12:54:23]line Счет N : (1)319923 [12:54:23]line ИНН: 02508201610067 [12:54:23]line Контрольно-Кассовый Чек [12:54:23]line ПРОДАЖА [12:54:23]line ТРК (МРК, ГНК) : 22 [12:54:23]line Товар: 2710194210 [12:54:23]line ДТ-К-5 [12:54:23]line 2.750 * 72.90 [12:54:23]line = 200.48 [12:54:23]line НДС 12% НСП 1% [12:54:23]line > о реализуемом товаре [12:54:23]line ОКРУГЛЕНИЕ: -0.48 [12:54:23]line ИТОГО: 200.00 [12:54:23]line Внесено: 200.00 [12:54:23]line СДАЧА: 0.00 [12:54:23]line НСП 1% : 1.77 [12:54:23]line НДС 12% : 21.29 [12:54:23]line Наличными: 200.00 [12:54:23]line Безнал.: 0.00 [12:54:23]line Место: АЗС № 65 "Партнер Нефть" [12:54:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [12:54:23]line СНО: Общий режим [12:54:23]line Чек 99 19.06.2024 12:54 [12:54:23]line Смена: 388 ФФД: 1.0 [12:54:23]line ЗНМ: 0300000198 [12:54:23]line РНМ: 0000000000092771 [12:54:23]line Версия ККМ: 001 [12:54:23]line ФМ: 0000000000875083 [12:54:23]line ФД: 111350 [12:54:23]line ФПД: 160986934756286 [12:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T125423&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111350&fm=160986934756286&tin=02508201610067®Number=0000000000092771&sum=20000 [12:54:24]OFD Sender: Processing packet 111350 [packets to send 38, broken 37] [12:54:24]ProducePacketName [12:54:24]name=ofd_packets/00111350 [12:54:24]OFD Sender: To server: pG, [12:54:24]CommunicateWithHost lk.salyk.kg:30040 [12:54:24]ConnectInit lk.salyk.kg [12:54:24]written 0, free lines is 4095 [12:54:24]Connected sock=10 [12:54:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 3C 26 04 01 53 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FF D4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F6 B2 01 00 35 04 06 00 92 6A B1 0F 43 BE 47 DC DD 21 74 AE BB 61 [12:54:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DE 2A 47 00 E3 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 35 30 38 33 10 04 04 00 F6 B2 01 00 F4 03 04 00 68 6C 72 66 B6 04 01 00 00 E3 17 6B E0 F1 83 E7 76 [12:54:24]CommunicateWithHost err = 0 [12:54:24]CheckOFDResponse [12:54:24]1017 (14) - 77093643461234 [12:54:24]1041 (16) - 0000000000875083 [12:54:24]1040 (4) - 111350 [12:54:24]1012 (4) - 19.06.2024 05:28 [12:54:24]1206 (1) - 0 [12:54:24]OFD Sender: Remove packet 111350 [12:54:24]ProducePacketName [12:54:24]name=ofd_packets/00111350 [12:54:24]NVStorageDeleteData [12:54:24]Write to MH i2c: 01 00 00 07 05 0C [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 DD 0C FC [12:54:24]RasterBufferAndPrint [12:54:24]line [12:54:24]line [12:54:24]line [12:54:24]line [12:54:24]line [12:54:24]written 0, free lines is 3299 [12:54:24]MH_Cut [12:54:24]Write to MH i2c: D1 01 00 0E 05 01 E5 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: D1 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: D1 01 00 [12:54:24]MH_I2C_Read... [12:54:24]Read from MH i2c: D1 01 00 0E 05 00 E4 [12:54:24]Write to MH i2c: 01 00 00 0F 05 14 [12:54:24]Write i2c OK [12:54:24]MH_I2C_Read... [12:54:25]OFD Sender: No OFD packet to send [12:54:25]*** Cut start [12:54:25]*** Partial cut [12:54:25]*** CUTSNS_PIN = 1 [12:54:25]*** CUTSNS_PIN = 0 [12:54:25]*** Brake cut motor [12:54:26]Read from MH i2c: 01 [12:54:26]MH_I2C_Read... [12:54:26]*** Stop cut motor [12:54:26]*** Cut end [12:54:26]Read from MH i2c: 01 07 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 FF 0F 29 [12:54:26]process_action close_receipt done [12:54:26]requested_data is exist [12:54:26]produce_requested_data [12:54:26]requested_item fm.sn is exist - process it [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 11 00 00 [12:54:26]Write to MH i2c: E2 08 00 10 05 80 11 00 00 00 00 00 00 8F [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 17 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 17 00 10 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E1 [12:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [12:54:26]wFMCommunicate OK [12:54:26]requested_item fd.num is exist - process it [12:54:26]SAM_PROTO_GetFieldsCounters [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 13 00 00 [12:54:26]Write to MH i2c: E2 08 00 11 05 80 13 00 00 00 00 00 00 92 [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 62 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 62 00 11 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [12:54: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F6 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:26]wFMCommunicate OK [12:54:26]SAM_PROTO_GetFieldsCounters done [12:54:26]requested_item shift.num is exist - process it [12:54:26]requested_item shift.opened is exist - process it [12:54:26]req_shift_opened [12:54:26]FM_GetShiftState [12:54:26]SAM_PROTO_GetShiftState [12:54:26]wFMCommunicate request_size=4 [12:54:26]MH_SAM_APDU [12:54:26]CAPDU: 80 13 01 00 [12:54:26]Write to MH i2c: E2 08 00 12 05 80 13 01 00 00 00 00 00 94 [12:54:26]Write i2c OK [12:54:26]MH_I2C_Read... [12:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:26]Read from MH i2c: E2 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 0E 00 [12:54:26]MH_I2C_Read... [12:54:26]Read from MH i2c: E2 0E 00 12 05 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DE [12:54:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [12:54:26]wFMCommunicate OK [12:54:26]SAM_PROTO_GetShiftState done [12:54:26]FM_GetShiftState done [12:54:26]req_shift_opened done [12:54:26]requested_item shift.open_date is exist - process it [12:54:26]req_shift_open_date [12:54:26]req_shift_open_date done [12:54:26]produce_requested_data done [12:54:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111350,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [12:54:26]process_action_free close_receipt [12:54:26]json_value_free [12:54:26]json_value_free done [12:54:26]process_json_proto returns [12:54:26]Send response to host [12:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111350,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [12:54:26]free response buf [12:54:26]execute_script done [12:54:26]execute_script returns [12:54:26]free content buf [12:54:26]Sock 9.Close socket [12:54:26]Sock 9.Thread stoped [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:07:56]accept exits with 7 [13:07:56]New connection [13:07:56]New thread 3067321700 created [13:07:56]Thread 3067465060 joined [13:07:56]Waiting for new connection... [13:07:56] Sock 7.Parse request [13:07:56]Sock 7.Check first char [13:07:56]Sock 7.First char is OK [13:07:56]request: POST /json_proto HTTP/1.0 [13:07:56]Method: POST [13:07:56]URL: /json_proto [13:07:56]Method is POST - this is cgi request [13:07:56]url: /json_proto [13:07:56]query_string will be loaded in cgi processing [13:07:56]execute_cgi json_proto POST (null) [13:07:56]execute_cgi path=json_proto method=POST [13:07:56]POST find Content-Length [13:07:56]Host: 172.17.59.68:8080 [13:07:56]Content-Length: 682 [13:07:56]Content-Type: application/json [13:07:56] [13:07:56]POST finish read [13:07:56]Found Content-Length = 682 [13:07:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:56]execute_script... [13:07:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:56]POST & json_proto [13:07:56]process_json_proto [13:07:56]json parsed OK: [13:07:56]protocol is kg_v1.0 [13:07:56]action value=close_receipt [13:07:56]process_action close_receipt [13:07:56]cmd_close_receipt [13:07:56]MH_GetDate [13:07:56]Write to MH i2c: F0 00 00 13 05 07 [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: F0 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: F0 09 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: F0 09 00 13 05 00 2D D8 72 66 BC EC 60 65 5A [13:07:56]GetLastDocTimeStamp 1718801663 [13:07:56]current date 1718802477 [13:07:56]FM_GetShiftState [13:07:56]SAM_PROTO_GetShiftState [13:07:56]wFMCommunicate request_size=4 [13:07:56]MH_SAM_APDU [13:07:56]CAPDU: 80 13 01 00 [13:07:56]Write to MH i2c: E2 08 00 14 05 80 13 01 00 00 00 00 00 96 [13:07:56]Write i2c OK [13:07:56]MH_I2C_Read... [13:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:56]Read from MH i2c: E2 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 0E 00 [13:07:56]MH_I2C_Read... [13:07:56]Read from MH i2c: E2 0E 00 14 05 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E0 [13:07:56]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:07:56]wFMCommunicate OK [13:07:56]SAM_PROTO_GetShiftState done [13:07:56]FM_GetShiftState done [13:07:56]opened in 1718760753 [13:07:56]opened+sec_in_day 1718847153 [13:07:56]quantity*price = 150064 [13:07:56]sum+1 = 150065 [13:07:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 100 19.06.2024 13:07 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111351 ФПД: 25276873006244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T130757&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111351&fm=25276873006244&tin=02508201610067®Number=0000000000092771&sum=150000 [13:07:57]StoreToDocumentArchive [13:07:57]shift 388 fd 111351 [13:07:57]save to /storage/0388/doc_00111351 [13:07:57]save last doc name /storage/0388/doc_00111351 to /storage/kkm_last_doc_name [13:07:57]save OK [13:07:57]Clear old archive folders... [13:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:57]tlvbuf is 00EBD1B0 [13:07:57]SAM_PROTO_ClearQueue [13:07:57]wFMCommunicate request_size=4 [13:07:57]MH_SAM_APDU [13:07:57]CAPDU: 80 09 00 00 [13:07:57]Write to MH i2c: E2 08 00 21 05 80 09 00 00 00 00 00 00 98 [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 03 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [13:07:57]RAPDU: 90 00 [13:07:57]wFMCommunicate OK [13:07:57]SAM_PROTO_ClearQueue done [13:07:57]KKMCreateOFDPacket [13:07:57]OFDProtocolAddRootSTLVToBuf [13:07:57]FM_MakeSignedData [13:07:57]FM_MakeSignedData [13:07:57]SAM_PROTO_SignData [13:07:57]wFMCommunicate request_size=4 [13:07:57]MH_SAM_APDU [13:07:57]CAPDU: 80 0D 01 02 [13:07:57]Write to MH i2c: E2 08 00 22 05 80 0D 01 02 00 00 00 00 A0 [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 03 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [13:07:57]RAPDU: 90 00 [13:07:57]wFMCommunicate OK [13:07:57]wFMCommunicate request_size=255 [13:07:57]MH_SAM_APDU [13:07:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 64 00 00 00 F4 03 04 00 2D D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B2 01 00 35 04 06 00 16 [13:07:57]Write to MH i2c: E2 02 01 23 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 64 00 00 00 F4 03 04 00 2D D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B2 01 00 35 04 06 00 16 00 00 7E [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 03 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [13:07:57]RAPDU: 90 00 [13:07:57]wFMCommunicate OK [13:07:57]wFMCommunicate request_size=10 [13:07:57]MH_SAM_APDU [13:07:57]CAPDU: 80 0D 02 02 05 FD 3B 09 5C A4 [13:07:57]Write to MH i2c: E2 0D 00 24 05 80 0D 02 02 05 00 FD 3B 09 5C A4 00 00 EE [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 03 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [13:07:57]RAPDU: 90 00 [13:07:57]wFMCommunicate OK [13:07:57]wFMCommunicate request_size=4 [13:07:57]MH_SAM_APDU [13:07:57]CAPDU: 80 0D 03 02 [13:07:57]Write to MH i2c: E2 08 00 25 05 80 0D 03 02 00 00 00 00 A5 [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 0B 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 0B 00 25 05 00 E6 54 C8 AD 4F E7 DF CC 90 00 36 [13:07:57]RAPDU: E6 54 C8 AD 4F E7 DF CC 90 00 [13:07:57]wFMCommunicate OK [13:07:57]SAM_PROTO_SignData done [13:07:57]FM_MakeSignedData done [13:07:57]CreateOFDProtocolMessage [13:07:57]wFMCommunicate request_size=4 [13:07:57]MH_SAM_APDU [13:07:57]CAPDU: 80 11 00 00 [13:07:57]Write to MH i2c: E2 08 00 26 05 80 11 00 00 00 00 00 00 A5 [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:57]Read from MH i2c: E2 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 17 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: E2 17 00 26 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [13:07:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:07:57]wFMCommunicate OK [13:07:57]CreateOFDProtocolMessage done [13:07:57]OFDSenderStorePacket 111351 [13:07:57]StoreOFDPacket docnum=111351 [13:07:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 83 F5 07 01 02 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 64 00 00 00 F4 03 04 00 2D D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B2 01 00 35 04 06 00 16 FD 3B 09 5C A4 E6 54 C8 AD 4F E7 DF CC [13:07:57]CheckFolder [13:07:57]dirname=/storage/ofd_packets [13:07:57]CheckFolder done [13:07:57]ProducePacketName [13:07:57]name=ofd_packets/00111351 [13:07:57]NVStorageSaveData ofd_packets/00111351 [13:07:57]File name is /storage/ofd_packets/00111351 [13:07:57]Write 301 bytes [13:07:57]NVStorageSaveData done [13:07:57]OFDSenderStorePacket done [13:07:57]KKMCreateOFDPacket done [13:07:57]NVStorageSaveData kkm_last_timestamp [13:07:57]File name is /storage/kkm_last_timestamp [13:07:57]Write 4 bytes [13:07:57]NVStorageSaveData done [13:07:57]ExternCall_PrintAddStr [13:07:57]wPrintStart [13:07:57]Write to MH i2c: 01 00 00 27 05 2C [13:07:57]Write i2c OK [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 07 00 [13:07:57]MH_I2C_Read... [13:07:57]Read from MH i2c: 01 07 00 27 05 00 00 00 00 00 FF 0F 41 [13:07:57]RasterBufferAndPrint [13:07:57]line Счет N : (1)319924 [13:07:57]line ИНН: 02508201610067 [13:07:57]line Контрольно-Кассовый Чек [13:07:57]line ПРОДАЖА [13:07:57]line ТРК (МРК, ГНК) : 11 [13:07:57]line Товар: 2710124130 [13:07:57]line Аи-92-К-5 [13:07:57]line 22.600 * 66.40 [13:07:57]line = 1500.64 [13:07:57]line НДС 12% НСП 1% [13:07:57]line > о реализуемом товаре [13:07:57]line ОКРУГЛЕНИЕ: -0.64 [13:07:57]line ИТОГО: 1500.00 [13:07:57]line Внесено: 1500.00 [13:07:57]line СДАЧА: 0.00 [13:07:57]line НСП 1% : 13.28 [13:07:57]line НДС 12% : 159.36 [13:07:57]line Наличными: 1500.00 [13:07:57]line Безнал.: 0.00 [13:07:57]line Место: АЗС № 65 "Партнер Нефть" [13:07:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:07:57]line СНО: Общий режим [13:07:57]line Чек 100 19.06.2024 13:07 [13:07:57]line Смена: 388 ФФД: 1.0 [13:07:57]line ЗНМ: 0300000198 [13:07:57]line РНМ: 0000000000092771 [13:07:57]line Версия ККМ: 001 [13:07:57]line ФМ: 0000000000875083 [13:07:57]line ФД: 111351 [13:07:57]line ФПД: 25276873006244 [13:07:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T130757&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111351&fm=25276873006244&tin=02508201610067®Number=0000000000092771&sum=150000 [13:07:58]OFD Sender: Processing packet 111351 [packets to send 38, broken 37] [13:07:58]ProducePacketName [13:07:58]name=ofd_packets/00111351 [13:07:58]OFD Sender: To server: pG, [13:07:58]CommunicateWithHost lk.salyk.kg:30040 [13:07:58]ConnectInit lk.salyk.kg [13:07:58]written 0, free lines is 4095 [13:07:58]Connected sock=10 [13:07:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 83 F5 07 01 02 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 64 00 00 00 F4 03 04 00 2D D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F7 B2 01 00 35 04 06 00 16 FD 3B 09 5C A4 E6 54 C8 AD 4F E7 DF CC [13:07:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CF A8 47 00 F0 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 35 30 38 33 10 04 04 00 F7 B2 01 00 F4 03 04 00 96 6F 72 66 B6 04 01 00 00 E6 05 B5 FF 0F 96 1D 73 [13:07:58]CommunicateWithHost err = 0 [13:07:58]CheckOFDResponse [13:07:58]1017 (14) - 77093643461234 [13:07:58]1041 (16) - 0000000000875083 [13:07:58]1040 (4) - 111351 [13:07:58]1012 (4) - 19.06.2024 05:41 [13:07:58]1206 (1) - 0 [13:07:58]OFD Sender: Remove packet 111351 [13:07:58]ProducePacketName [13:07:58]name=ofd_packets/00111351 [13:07:58]NVStorageDeleteData [13:07:58]Write to MH i2c: 01 00 00 52 05 57 [13:07:58]Write i2c OK [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: 01 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: 01 07 00 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 E5 0C 4F [13:07:58]RasterBufferAndPrint [13:07:58]line [13:07:58]line [13:07:58]line [13:07:58]line [13:07:58]line [13:07:58]written 0, free lines is 3307 [13:07:58]MH_Cut [13:07:58]Write to MH i2c: D1 01 00 59 05 01 30 [13:07:58]Write i2c OK [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: D1 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: D1 01 00 [13:07:58]MH_I2C_Read... [13:07:58]Read from MH i2c: D1 01 00 59 05 00 2F [13:07:58]Write to MH i2c: 01 00 00 5A 05 5F [13:07:58]Write i2c OK [13:07:58]MH_I2C_Read... [13:07:59]OFD Sender: No OFD packet to send [13:07:59]*** Cut start [13:07:59]*** Partial cut [13:07:59]*** CUTSNS_PIN = 1 [13:07:59]*** CUTSNS_PIN = 0 [13:07:59]*** Brake cut motor [13:08:00]Read from MH i2c: 01 [13:08:00]MH_I2C_Read... [13:08:00]*** Stop cut motor [13:08:00]*** Cut end [13:08:00]Read from MH i2c: 01 07 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: 01 07 00 5A 05 00 00 00 00 00 FF 0F 74 [13:08:00]process_action close_receipt done [13:08:00]requested_data is exist [13:08:00]produce_requested_data [13:08:00]requested_item fm.sn is exist - process it [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 11 00 00 [13:08:00]Write to MH i2c: E2 08 00 5B 05 80 11 00 00 00 00 00 00 DA [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 17 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 17 00 5B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [13:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:08:00]wFMCommunicate OK [13:08:00]requested_item fd.num is exist - process it [13:08:00]SAM_PROTO_GetFieldsCounters [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 13 00 00 [13:08:00]Write to MH i2c: E2 08 00 5C 05 80 13 00 00 00 00 00 00 DD [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 62 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 62 00 5C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [13:08: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F7 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:00]wFMCommunicate OK [13:08:00]SAM_PROTO_GetFieldsCounters done [13:08:00]requested_item shift.num is exist - process it [13:08:00]requested_item shift.opened is exist - process it [13:08:00]req_shift_opened [13:08:00]FM_GetShiftState [13:08:00]SAM_PROTO_GetShiftState [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 13 01 00 [13:08:00]Write to MH i2c: E2 08 00 5D 05 80 13 01 00 00 00 00 00 DF [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 0E 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 0E 00 5D 05 00 09 00 01 31 35 72 66 00 00 00 00 90 00 29 [13:08:00]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:08:00]wFMCommunicate OK [13:08:00]SAM_PROTO_GetShiftState done [13:08:00]FM_GetShiftState done [13:08:00]req_shift_opened done [13:08:00]requested_item shift.open_date is exist - process it [13:08:00]req_shift_open_date [13:08:00]req_shift_open_date done [13:08:00]produce_requested_data done [13:08:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111351,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:08:00]process_action_free close_receipt [13:08:00]json_value_free [13:08:00]json_value_free done [13:08:00]process_json_proto returns [13:08:00]Send response to host [13:08:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111351,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:08:00]free response buf [13:08:00]execute_script done [13:08:00]execute_script returns [13:08:00]free content buf [13:08:00]Sock 7.Close socket [13:08:00]Sock 7.Thread stoped [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:53]accept exits with 9 [13:09:53]New connection [13:09:53]New thread 3067465060 created [13:09:53]Thread 3067321700 joined [13:09:53]Waiting for new connection... [13:09:53] Sock 9.Parse request [13:09:53]Sock 9.Check first char [13:09:53]Sock 9.First char is OK [13:09:53]request: POST /json_proto HTTP/1.0 [13:09:53]Method: POST [13:09:53]URL: /json_proto [13:09:53]Method is POST - this is cgi request [13:09:53]url: /json_proto [13:09:53]query_string will be loaded in cgi processing [13:09:53]execute_cgi json_proto POST (null) [13:09:53]execute_cgi path=json_proto method=POST [13:09:53]POST find Content-Length [13:09:53]Host: 172.17.59.68:8080 [13:09:53]Content-Length: 682 [13:09:53]Content-Type: application/json [13:09:53] [13:09:53]POST finish read [13:09:53]Found Content-Length = 682 [13:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:53]execute_script... [13:09: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)319925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:53]POST & json_proto [13:09:53]process_json_proto [13:09:53]json parsed OK: [13:09:53]protocol is kg_v1.0 [13:09:53]action value=close_receipt [13:09:53]process_action close_receipt [13:09:53]cmd_close_receipt [13:09:53]MH_GetDate [13:09:53]Write to MH i2c: F0 00 00 5E 05 52 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: F0 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: F0 09 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: F0 09 00 5E 05 00 A2 D8 72 66 BC EC 60 65 1A [13:09:53]GetLastDocTimeStamp 1718802477 [13:09:53]current date 1718802594 [13:09:53]FM_GetShiftState [13:09:53]SAM_PROTO_GetShiftState [13:09:53]wFMCommunicate request_size=4 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 13 01 00 [13:09:53]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 0E 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2B [13:09:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:09:53]wFMCommunicate OK [13:09:53]SAM_PROTO_GetShiftState done [13:09:53]FM_GetShiftState done [13:09:53]opened in 1718760753 [13:09:53]opened+sec_in_day 1718847153 [13:09:53]quantity*price = 100064 [13:09:53]sum+1 = 100066 [13:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 101 19.06.2024 13:09 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111352 ФПД: 86180326193852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T130954&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111352&fm=86180326193852&tin=02508201610067®Number=0000000000092771&sum=100000 [13:09:54]StoreToDocumentArchive [13:09:54]shift 388 fd 111352 [13:09:54]save to /storage/0388/doc_00111352 [13:09:54]save last doc name /storage/0388/doc_00111352 to /storage/kkm_last_doc_name [13:09:54]save OK [13:09:54]Clear old archive folders... [13:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:54]tlvbuf is 00ED2AB0 [13:09:54]SAM_PROTO_ClearQueue [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 09 00 00 [13:09:54]Write to MH i2c: E2 08 00 6C 05 80 09 00 00 00 00 00 00 E3 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [13:09:54]RAPDU: 90 00 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_ClearQueue done [13:09:54]KKMCreateOFDPacket [13:09:54]OFDProtocolAddRootSTLVToBuf [13:09:54]FM_MakeSignedData [13:09:54]FM_MakeSignedData [13:09:54]SAM_PROTO_SignData [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 0D 01 02 [13:09:54]Write to MH i2c: E2 08 00 6D 05 80 0D 01 02 00 00 00 00 EB [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [13:09:54]RAPDU: 90 00 [13:09:54]wFMCommunicate OK [13:09:54]wFMCommunicate request_size=255 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 A2 D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B2 01 00 35 04 06 00 4E [13:09:54]Write to MH i2c: E2 02 01 6E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 A2 D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B2 01 00 35 04 06 00 4E 00 00 24 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [13:09:54]RAPDU: 90 00 [13:09:54]wFMCommunicate OK [13:09:54]wFMCommunicate request_size=10 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 0D 02 02 05 61 6B BA BA BC [13:09:54]Write to MH i2c: E2 0D 00 6F 05 80 0D 02 02 05 00 61 6B BA BA BC 00 00 F4 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [13:09:54]RAPDU: 90 00 [13:09:54]wFMCommunicate OK [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 0D 03 02 [13:09:54]Write to MH i2c: E2 08 00 70 05 80 0D 03 02 00 00 00 00 F0 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0B 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 0B 00 70 05 00 77 A2 E5 67 0D 0B 22 59 90 00 E9 [13:09:54]RAPDU: 77 A2 E5 67 0D 0B 22 59 90 00 [13:09:54]wFMCommunicate OK [13:09:54]SAM_PROTO_SignData done [13:09:54]FM_MakeSignedData done [13:09:54]CreateOFDProtocolMessage [13:09:54]wFMCommunicate request_size=4 [13:09:54]MH_SAM_APDU [13:09:54]CAPDU: 80 11 00 00 [13:09:54]Write to MH i2c: E2 08 00 71 05 80 11 00 00 00 00 00 00 F0 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:54]Read from MH i2c: E2 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 17 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: E2 17 00 71 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 42 [13:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:09:54]wFMCommunicate OK [13:09:54]CreateOFDProtocolMessage done [13:09:54]OFDSenderStorePacket 111352 [13:09:54]StoreOFDPacket docnum=111352 [13:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 E4 07 01 99 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 A2 D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B2 01 00 35 04 06 00 4E 61 6B BA BA BC 77 A2 E5 67 0D 0B 22 59 [13:09:54]CheckFolder [13:09:54]dirname=/storage/ofd_packets [13:09:54]CheckFolder done [13:09:54]ProducePacketName [13:09:54]name=ofd_packets/00111352 [13:09:54]NVStorageSaveData ofd_packets/00111352 [13:09:54]File name is /storage/ofd_packets/00111352 [13:09:54]Write 301 bytes [13:09:54]NVStorageSaveData done [13:09:54]OFDSenderStorePacket done [13:09:54]KKMCreateOFDPacket done [13:09:54]NVStorageSaveData kkm_last_timestamp [13:09:54]File name is /storage/kkm_last_timestamp [13:09:54]Write 4 bytes [13:09:54]NVStorageSaveData done [13:09:54]ExternCall_PrintAddStr [13:09:54]wPrintStart [13:09:54]Write to MH i2c: 01 00 00 72 05 77 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 72 05 00 00 00 00 00 FF 0F 8C [13:09:54]RasterBufferAndPrint [13:09:54]line Счет N : (1)319925 [13:09:54]line ИНН: 02508201610067 [13:09:54]line Контрольно-Кассовый Чек [13:09:54]line ПРОДАЖА [13:09:54]line ТРК (МРК, ГНК) : 11 [13:09:54]line Товар: 2710124130 [13:09:54]line Аи-92-К-5 [13:09:54]line 15.070 * 66.40 [13:09:54]line = 1000.65 [13:09:54]line НДС 12% НСП 1% [13:09:54]line > о реализуемом товаре [13:09:54]line ОКРУГЛЕНИЕ: -0.65 [13:09:54]line ИТОГО: 1000.00 [13:09:54]line Внесено: 1000.00 [13:09:54]line СДАЧА: 0.00 [13:09:54]line НСП 1% : 8.85 [13:09:54]line НДС 12% : 106.26 [13:09:54]line Наличными: 1000.00 [13:09:54]line Безнал.: 0.00 [13:09:54]line Место: АЗС № 65 "Партнер Нефть" [13:09:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:09:54]line СНО: Общий режим [13:09:54]line Чек 101 19.06.2024 13:09 [13:09:54]line Смена: 388 ФФД: 1.0 [13:09:54]line ЗНМ: 0300000198 [13:09:54]line РНМ: 0000000000092771 [13:09:54]line Версия ККМ: 001 [13:09:54]line ФМ: 0000000000875083 [13:09:54]line ФД: 111352 [13:09:54]line ФПД: 86180326193852 [13:09:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T130954&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111352&fm=86180326193852&tin=02508201610067®Number=0000000000092771&sum=100000 [13:09:55]OFD Sender: Processing packet 111352 [packets to send 38, broken 37] [13:09:55]ProducePacketName [13:09:55]name=ofd_packets/00111352 [13:09:55]OFD Sender: To server: pG, [13:09:55]CommunicateWithHost lk.salyk.kg:30040 [13:09:55]ConnectInit lk.salyk.kg [13:09:55]written 0, free lines is 4095 [13:09:55]Connected sock=10 [13:09:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 E4 07 01 99 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 A2 D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B2 01 00 35 04 06 00 4E 61 6B BA BA BC 77 A2 E5 67 0D 0B 22 59 [13:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DB 86 47 00 3A D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F8 B2 01 00 F4 03 04 00 0B 70 72 66 B6 04 01 00 00 13 0E 3F A1 73 BF 3D CC [13:09:55]CommunicateWithHost err = 0 [13:09:55]CheckOFDResponse [13:09:55]1017 (14) - 77093643461234 [13:09:55]1041 (16) - 0000000000875083 [13:09:55]1040 (4) - 111352 [13:09:55]1012 (4) - 19.06.2024 05:43 [13:09:55]1206 (1) - 0 [13:09:55]OFD Sender: Remove packet 111352 [13:09:55]ProducePacketName [13:09:55]name=ofd_packets/00111352 [13:09:55]NVStorageDeleteData [13:09:55]Write to MH i2c: 01 00 00 9D 05 A2 [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: 01 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: 01 07 00 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 D4 0C 89 [13:09:55]RasterBufferAndPrint [13:09:55]line [13:09:55]line [13:09:55]line [13:09:55]line [13:09:55]line [13:09:55]written 0, free lines is 3294 [13:09:55]MH_Cut [13:09:55]Write to MH i2c: D1 01 00 A4 05 01 7B [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: D1 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: D1 01 00 [13:09:55]MH_I2C_Read... [13:09:55]Read from MH i2c: D1 01 00 A4 05 00 7A [13:09:55]Write to MH i2c: 01 00 00 A5 05 AA [13:09:55]Write i2c OK [13:09:55]MH_I2C_Read... [13:09:56]OFD Sender: No OFD packet to send [13:09:56]*** Cut start [13:09:56]*** Partial cut [13:09:56]*** CUTSNS_PIN = 1 [13:09:56]*** CUTSNS_PIN = 0 [13:09:56]*** Brake cut motor [13:09:57]Read from MH i2c: 01 [13:09:57]MH_I2C_Read... [13:09:57]*** Stop cut motor [13:09:57]*** Cut end [13:09:57]Read from MH i2c: 01 07 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 A5 05 00 00 00 00 00 FF 0F BF [13:09:57]process_action close_receipt done [13:09:57]requested_data is exist [13:09:57]produce_requested_data [13:09:57]requested_item fm.sn is exist - process it [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 11 00 00 [13:09:57]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [13:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:09:57]wFMCommunicate OK [13:09:57]requested_item fd.num is exist - process it [13:09:57]SAM_PROTO_GetFieldsCounters [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 13 00 00 [13:09:57]Write to MH i2c: E2 08 00 A7 05 80 13 00 00 00 00 00 00 28 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 62 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 62 00 A7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [13:09: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F8 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:57]wFMCommunicate OK [13:09:57]SAM_PROTO_GetFieldsCounters done [13:09:57]requested_item shift.num is exist - process it [13:09:57]requested_item shift.opened is exist - process it [13:09:57]req_shift_opened [13:09:57]FM_GetShiftState [13:09:57]SAM_PROTO_GetShiftState [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 13 01 00 [13:09:57]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 0E 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 31 35 72 66 00 00 00 00 90 00 74 [13:09:57]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:09:57]wFMCommunicate OK [13:09:57]SAM_PROTO_GetShiftState done [13:09:57]FM_GetShiftState done [13:09:57]req_shift_opened done [13:09:57]requested_item shift.open_date is exist - process it [13:09:57]req_shift_open_date [13:09:57]req_shift_open_date done [13:09:57]produce_requested_data done [13:09:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111352,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:09:57]process_action_free close_receipt [13:09:57]json_value_free [13:09:57]json_value_free done [13:09:57]process_json_proto returns [13:09:57]Send response to host [13:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111352,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:09:57]free response buf [13:09:57]execute_script done [13:09:57]execute_script returns [13:09:57]free content buf [13:09:57]Sock 9.Close socket [13:09:57]Sock 9.Thread stoped [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:30]accept exits with 7 [13:10:30]New connection [13:10:30]New thread 3067321700 created [13:10:30]Thread 3067465060 joined [13:10:30]Waiting for new connection... [13:10:30] Sock 7.Parse request [13:10:30]Sock 7.Check first char [13:10:30]Sock 7.First char is OK [13:10:30]request: POST /json_proto HTTP/1.0 [13:10:30]Method: POST [13:10:30]URL: /json_proto [13:10:30]Method is POST - this is cgi request [13:10:30]url: /json_proto [13:10:30]query_string will be loaded in cgi processing [13:10:30]execute_cgi json_proto POST (null) [13:10:30]execute_cgi path=json_proto method=POST [13:10:30]POST find Content-Length [13:10:30]Host: 172.17.59.68:8080 [13:10:30]Content-Length: 677 [13:10:30]Content-Type: application/json [13:10:30] [13:10:30]POST finish read [13:10:30]Found Content-Length = 677 [13:10:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:30]execute_script... [13:10: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)319926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:30]POST & json_proto [13:10:30]process_json_proto [13:10:30]json parsed OK: [13:10:30]protocol is kg_v1.0 [13:10:30]action value=close_receipt [13:10:30]process_action close_receipt [13:10:30]cmd_close_receipt [13:10:30]MH_GetDate [13:10:30]Write to MH i2c: F0 00 00 A9 05 9D [13:10:30]Write i2c OK [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: F0 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: F0 09 00 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: F0 09 00 A9 05 00 C7 D8 72 66 BC EC 60 65 8A [13:10:30]GetLastDocTimeStamp 1718802594 [13:10:30]current date 1718802631 [13:10:30]FM_GetShiftState [13:10:30]SAM_PROTO_GetShiftState [13:10:30]wFMCommunicate request_size=4 [13:10:30]MH_SAM_APDU [13:10:30]CAPDU: 80 13 01 00 [13:10:30]Write to MH i2c: E2 08 00 AA 05 80 13 01 00 00 00 00 00 2C [13:10:30]Write i2c OK [13:10:30]MH_I2C_Read... [13:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:30]Read from MH i2c: E2 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: E2 0E 00 [13:10:30]MH_I2C_Read... [13:10:30]Read from MH i2c: E2 0E 00 AA 05 00 09 00 01 31 35 72 66 00 00 00 00 90 00 76 [13:10:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:10:30]wFMCommunicate OK [13:10:30]SAM_PROTO_GetShiftState done [13:10:30]FM_GetShiftState done [13:10:30]opened in 1718760753 [13:10:30]opened+sec_in_day 1718847153 [13:10:30]quantity*price = 33532 [13:10:30]sum+1 = 33533 [13:10:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 335.00 Внесено: 335.00 СДАЧА: 0.00 НСП 1% : 2.97 НДС 12% : 35.61 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 102 19.06.2024 13:10 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111353 ФПД: 160406811370437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T131031&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111353&fm=160406811370437&tin=02508201610067®Number=0000000000092771&sum=33500 [13:10:31]StoreToDocumentArchive [13:10:31]shift 388 fd 111353 [13:10:31]save to /storage/0388/doc_00111353 [13:10:31]save last doc name /storage/0388/doc_00111353 to /storage/kkm_last_doc_name [13:10:31]save OK [13:10:31]Clear old archive folders... [13:10:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:31]tlvbuf is 00F3FB70 [13:10:31]SAM_PROTO_ClearQueue [13:10:31]wFMCommunicate request_size=4 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 09 00 00 [13:10:31]Write to MH i2c: E2 08 00 B7 05 80 09 00 00 00 00 00 00 2E [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [13:10:31]RAPDU: 90 00 [13:10:31]wFMCommunicate OK [13:10:31]SAM_PROTO_ClearQueue done [13:10:31]KKMCreateOFDPacket [13:10:31]OFDProtocolAddRootSTLVToBuf [13:10:31]FM_MakeSignedData [13:10:31]FM_MakeSignedData [13:10:31]SAM_PROTO_SignData [13:10:31]wFMCommunicate request_size=4 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 0D 01 02 [13:10:31]Write to MH i2c: E2 08 00 B8 05 80 0D 01 02 00 00 00 00 36 [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [13:10:31]RAPDU: 90 00 [13:10:31]wFMCommunicate OK [13:10:31]wFMCommunicate request_size=255 [13:10:31]MH_SAM_APDU [13:10: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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 C7 D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B2 01 00 35 04 06 00 91 [13:10:31]Write to MH i2c: E2 02 01 B9 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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 C7 D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B2 01 00 35 04 06 00 91 00 00 0F [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:31]Read from MH i2c: E2 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 [13:10:31]MH_I2C_Read... [13:10:31]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [13:10:31]RAPDU: 90 00 [13:10:31]wFMCommunicate OK [13:10:31]wFMCommunicate request_size=10 [13:10:31]MH_SAM_APDU [13:10:31]CAPDU: 80 0D 02 02 05 E3 9F 02 E3 C5 [13:10:31]Write to MH i2c: E2 0D 00 BA 05 80 0D 02 02 05 00 E3 9F 02 E3 C5 00 00 6F [13:10:31]Write i2c OK [13:10:31]MH_I2C_Read... [13:10:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:32]Read from MH i2c: E2 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 03 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [13:10:32]RAPDU: 90 00 [13:10:32]wFMCommunicate OK [13:10:32]wFMCommunicate request_size=4 [13:10:32]MH_SAM_APDU [13:10:32]CAPDU: 80 0D 03 02 [13:10:32]Write to MH i2c: E2 08 00 BB 05 80 0D 03 02 00 00 00 00 3B [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:32]Read from MH i2c: E2 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 0B 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 0B 00 BB 05 00 D5 1C C6 4E 9A FA E6 1D 90 00 D8 [13:10:32]RAPDU: D5 1C C6 4E 9A FA E6 1D 90 00 [13:10:32]wFMCommunicate OK [13:10:32]SAM_PROTO_SignData done [13:10:32]FM_MakeSignedData done [13:10:32]CreateOFDProtocolMessage [13:10:32]wFMCommunicate request_size=4 [13:10:32]MH_SAM_APDU [13:10:32]CAPDU: 80 11 00 00 [13:10:32]Write to MH i2c: E2 08 00 BC 05 80 11 00 00 00 00 00 00 3B [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:32]Read from MH i2c: E2 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 17 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: E2 17 00 BC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [13:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:10:32]wFMCommunicate OK [13:10:32]CreateOFDProtocolMessage done [13:10:32]OFDSenderStorePacket 111353 [13:10:32]StoreOFDPacket docnum=111353 [13:10:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 59 07 01 C4 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 C7 D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B2 01 00 35 04 06 00 91 E3 9F 02 E3 C5 D5 1C C6 4E 9A FA E6 1D [13:10:32]CheckFolder [13:10:32]dirname=/storage/ofd_packets [13:10:32]CheckFolder done [13:10:32]ProducePacketName [13:10:32]name=ofd_packets/00111353 [13:10:32]NVStorageSaveData ofd_packets/00111353 [13:10:32]File name is /storage/ofd_packets/00111353 [13:10:32]Write 301 bytes [13:10:32]NVStorageSaveData done [13:10:32]OFDSenderStorePacket done [13:10:32]KKMCreateOFDPacket done [13:10:32]NVStorageSaveData kkm_last_timestamp [13:10:32]File name is /storage/kkm_last_timestamp [13:10:32]Write 4 bytes [13:10:32]NVStorageSaveData done [13:10:32]ExternCall_PrintAddStr [13:10:32]wPrintStart [13:10:32]Write to MH i2c: 01 00 00 BD 05 C2 [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 07 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 07 00 BD 05 00 00 00 00 00 FF 0F D7 [13:10:32]RasterBufferAndPrint [13:10:32]line Счет N : (1)319926 [13:10:32]line ИНН: 02508201610067 [13:10:32]line Контрольно-Кассовый Чек [13:10:32]line ПРОДАЖА [13:10:32]line ТРК (МРК, ГНК) : 11 [13:10:32]line Товар: 2710124130 [13:10:32]line Аи-92-К-5 [13:10:32]line 5.050 * 66.40 [13:10:32]line = 335.32 [13:10:32]line НДС 12% НСП 1% [13:10:32]line > о реализуемом товаре [13:10:32]line ОКРУГЛЕНИЕ: -0.32 [13:10:32]line ИТОГО: 335.00 [13:10:32]line Внесено: 335.00 [13:10:32]line СДАЧА: 0.00 [13:10:32]line НСП 1% : 2.97 [13:10:32]line НДС 12% : 35.61 [13:10:32]line Наличными: 335.00 [13:10:32]line Безнал.: 0.00 [13:10:32]line Место: АЗС № 65 "Партнер Нефть" [13:10:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:10:32]line СНО: Общий режим [13:10:32]line Чек 102 19.06.2024 13:10 [13:10:32]line Смена: 388 ФФД: 1.0 [13:10:32]line ЗНМ: 0300000198 [13:10:32]line РНМ: 0000000000092771 [13:10:32]line Версия ККМ: 001 [13:10:32]line ФМ: 0000000000875083 [13:10:32]line ФД: 111353 [13:10:32]line ФПД: 160406811370437 [13:10:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T131031&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111353&fm=160406811370437&tin=02508201610067®Number=0000000000092771&sum=33500 [13:10:32]OFD Sender: Processing packet 111353 [packets to send 38, broken 37] [13:10:32]ProducePacketName [13:10:32]name=ofd_packets/00111353 [13:10:32]OFD Sender: To server: pG, [13:10:32]CommunicateWithHost lk.salyk.kg:30040 [13:10:32]ConnectInit lk.salyk.kg [13:10:32]written 0, free lines is 4095 [13:10:32]Connected sock=10 [13:10:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 59 07 01 C4 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 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 C7 D8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B2 01 00 35 04 06 00 91 E3 9F 02 E3 C5 D5 1C C6 4E 9A FA E6 1D [13:10:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 52 69 47 00 5A 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 F9 B2 01 00 F4 03 04 00 30 70 72 66 B6 04 01 00 00 8D 2C EC F3 35 97 84 46 [13:10:32]CommunicateWithHost err = 0 [13:10:32]CheckOFDResponse [13:10:32]1017 (14) - 77093643461234 [13:10:32]1041 (16) - 0000000000875083 [13:10:32]1040 (4) - 111353 [13:10:32]1012 (4) - 19.06.2024 05:44 [13:10:32]1206 (1) - 0 [13:10:32]OFD Sender: Remove packet 111353 [13:10:32]ProducePacketName [13:10:32]name=ofd_packets/00111353 [13:10:32]NVStorageDeleteData [13:10:32]Write to MH i2c: 01 00 00 E8 05 ED [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 07 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: 01 07 00 E8 05 00 00 00 00 00 D7 0C D7 [13:10:32]RasterBufferAndPrint [13:10:32]line [13:10:32]line [13:10:32]line [13:10:32]line [13:10:32]line [13:10:32]written 0, free lines is 3294 [13:10:32]MH_Cut [13:10:32]Write to MH i2c: D1 01 00 EF 05 01 C6 [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: D1 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: D1 01 00 [13:10:32]MH_I2C_Read... [13:10:32]Read from MH i2c: D1 01 00 EF 05 00 C5 [13:10:32]Write to MH i2c: 01 00 00 F0 05 F5 [13:10:32]Write i2c OK [13:10:32]MH_I2C_Read... [13:10:33]OFD Sender: No OFD packet to send [13:10:33]*** Cut start [13:10:33]*** Partial cut [13:10:33]*** CUTSNS_PIN = 1 [13:10:33]*** CUTSNS_PIN = 0 [13:10:33]*** Brake cut motor [13:10:34]Read from MH i2c: 01 [13:10:34]MH_I2C_Read... [13:10:34]*** Stop cut motor [13:10:34]*** Cut end [13:10:34]Read from MH i2c: 01 07 00 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 FF 0F 0A [13:10:34]process_action close_receipt done [13:10:34]requested_data is exist [13:10:34]produce_requested_data [13:10:34]requested_item fm.sn is exist - process it [13:10:34]wFMCommunicate request_size=4 [13:10:34]MH_SAM_APDU [13:10:34]CAPDU: 80 11 00 00 [13:10:34]Write to MH i2c: E2 08 00 F1 05 80 11 00 00 00 00 00 00 70 [13:10:34]Write i2c OK [13:10:34]MH_I2C_Read... [13:10:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:34]Read from MH i2c: E2 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: E2 17 00 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: E2 17 00 F1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C2 [13:10:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:10:34]wFMCommunicate OK [13:10:34]requested_item fd.num is exist - process it [13:10:34]SAM_PROTO_GetFieldsCounters [13:10:34]wFMCommunicate request_size=4 [13:10:34]MH_SAM_APDU [13:10:34]CAPDU: 80 13 00 00 [13:10:34]Write to MH i2c: E2 08 00 F2 05 80 13 00 00 00 00 00 00 73 [13:10:34]Write i2c OK [13:10:34]MH_I2C_Read... [13:10:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:34]Read from MH i2c: E2 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: E2 62 00 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: E2 62 00 F2 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [13:10: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 F9 B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:34]wFMCommunicate OK [13:10:34]SAM_PROTO_GetFieldsCounters done [13:10:34]requested_item shift.num is exist - process it [13:10:34]requested_item shift.opened is exist - process it [13:10:34]req_shift_opened [13:10:34]FM_GetShiftState [13:10:34]SAM_PROTO_GetShiftState [13:10:34]wFMCommunicate request_size=4 [13:10:34]MH_SAM_APDU [13:10:34]CAPDU: 80 13 01 00 [13:10:34]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [13:10:34]Write i2c OK [13:10:34]MH_I2C_Read... [13:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:34]Read from MH i2c: E2 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: E2 0E 00 [13:10:34]MH_I2C_Read... [13:10:34]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BF [13:10:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:10:34]wFMCommunicate OK [13:10:34]SAM_PROTO_GetShiftState done [13:10:34]FM_GetShiftState done [13:10:34]req_shift_opened done [13:10:34]requested_item shift.open_date is exist - process it [13:10:34]req_shift_open_date [13:10:34]req_shift_open_date done [13:10:34]produce_requested_data done [13:10:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111353,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:10:34]process_action_free close_receipt [13:10:34]json_value_free [13:10:34]json_value_free done [13:10:34]process_json_proto returns [13:10:34]Send response to host [13:10:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111353,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:10:34]free response buf [13:10:34]execute_script done [13:10:34]execute_script returns [13:10:34]free content buf [13:10:34]Sock 7.Close socket [13:10:34]Sock 7.Thread stoped [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]accept exits with 9 [13:13:08]New connection [13:13:08]New thread 3067465060 created [13:13:08]Thread 3067321700 joined [13:13:08]Waiting for new connection... [13:13:08] Sock 9.Parse request [13:13:08]Sock 9.Check first char [13:13:08]Sock 9.First char is OK [13:13:08]request: POST /json_proto HTTP/1.0 [13:13:08]Method: POST [13:13:08]URL: /json_proto [13:13:08]Method is POST - this is cgi request [13:13:08]url: /json_proto [13:13:08]query_string will be loaded in cgi processing [13:13:08]execute_cgi json_proto POST (null) [13:13:08]execute_cgi path=json_proto method=POST [13:13:08]POST find Content-Length [13:13:08]Host: 172.17.59.68:8080 [13:13:08]Content-Length: 679 [13:13:08]Content-Type: application/json [13:13:08] [13:13:08]POST finish read [13:13:08]Found Content-Length = 679 [13:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [13:13:08]execute_script... [13:13: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)319927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [13:13:08]POST & json_proto [13:13:08]process_json_proto [13:13:08]json parsed OK: [13:13:08]protocol is kg_v1.0 [13:13:08]action value=close_receipt [13:13:08]process_action close_receipt [13:13:08]cmd_close_receipt [13:13:08]MH_GetDate [13:13:08]Write to MH i2c: F0 00 00 F4 05 E8 [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: F0 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: F0 09 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: F0 09 00 F4 05 00 65 D9 72 66 BC EC 60 65 74 [13:13:08]GetLastDocTimeStamp 1718802631 [13:13:08]current date 1718802789 [13:13:08]FM_GetShiftState [13:13:08]SAM_PROTO_GetShiftState [13:13:08]wFMCommunicate request_size=4 [13:13:08]MH_SAM_APDU [13:13:08]CAPDU: 80 13 01 00 [13:13:08]Write to MH i2c: E2 08 00 F5 05 80 13 01 00 00 00 00 00 77 [13:13:08]Write i2c OK [13:13:08]MH_I2C_Read... [13:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:08]Read from MH i2c: E2 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 0E 00 [13:13:08]MH_I2C_Read... [13:13:08]Read from MH i2c: E2 0E 00 F5 05 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C1 [13:13:08]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:13:08]wFMCommunicate OK [13:13:08]SAM_PROTO_GetShiftState done [13:13:08]FM_GetShiftState done [13:13:08]opened in 1718760753 [13:13:08]opened+sec_in_day 1718847153 [13:13:08]quantity*price = 300056 [13:13:08]sum+1 = 300057 [13:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 103 19.06.2024 13:13 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111354 ФПД: 151636272930485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T131309&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111354&fm=151636272930485&tin=02508201610067®Number=0000000000092771&sum=300000 [13:13:09]StoreToDocumentArchive [13:13:09]shift 388 fd 111354 [13:13:09]save to /storage/0388/doc_00111354 [13:13:09]save last doc name /storage/0388/doc_00111354 to /storage/kkm_last_doc_name [13:13:09]save OK [13:13:09]Clear old archive folders... [13:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:13:09]tlvbuf is 00F3A1D0 [13:13:09]SAM_PROTO_ClearQueue [13:13:09]wFMCommunicate request_size=4 [13:13:09]MH_SAM_APDU [13:13:09]CAPDU: 80 09 00 00 [13:13:09]Write to MH i2c: E2 08 00 02 06 80 09 00 00 00 00 00 00 7A [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 [13:13:09]MH_I2C_Read... [13:13:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:09]Read from MH i2c: E2 03 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [13:13:09]RAPDU: 90 00 [13:13:09]wFMCommunicate OK [13:13:09]SAM_PROTO_ClearQueue done [13:13:09]KKMCreateOFDPacket [13:13:09]OFDProtocolAddRootSTLVToBuf [13:13:09]FM_MakeSignedData [13:13:09]FM_MakeSignedData [13:13:09]SAM_PROTO_SignData [13:13:09]wFMCommunicate request_size=4 [13:13:09]MH_SAM_APDU [13:13:09]CAPDU: 80 0D 01 02 [13:13:09]Write to MH i2c: E2 08 00 03 06 80 0D 01 02 00 00 00 00 82 [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:09]Read from MH i2c: E2 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 03 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [13:13:09]RAPDU: 90 00 [13:13:09]wFMCommunicate OK [13:13:09]wFMCommunicate request_size=255 [13:13:09]MH_SAM_APDU [13:13:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 67 00 00 00 F4 03 04 00 65 D9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B2 01 00 35 04 06 00 89 E9 92 2E [13:13:09]Write to MH i2c: E2 02 01 04 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 67 00 00 00 F4 03 04 00 65 D9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B2 01 00 35 04 06 00 89 E9 92 2E 00 00 B9 [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:09]Read from MH i2c: E2 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 03 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 03 00 04 06 00 90 00 7E [13:13:09]RAPDU: 90 00 [13:13:09]wFMCommunicate OK [13:13:09]wFMCommunicate request_size=7 [13:13:09]MH_SAM_APDU [13:13:09]CAPDU: 80 0D 02 02 02 DE B5 [13:13:09]Write to MH i2c: E2 0A 00 05 06 80 0D 02 02 02 00 DE B5 00 00 1C [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:09]Read from MH i2c: E2 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 03 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [13:13:09]RAPDU: 90 00 [13:13:09]wFMCommunicate OK [13:13:09]wFMCommunicate request_size=4 [13:13:09]MH_SAM_APDU [13:13:09]CAPDU: 80 0D 03 02 [13:13:09]Write to MH i2c: E2 08 00 06 06 80 0D 03 02 00 00 00 00 87 [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:09]Read from MH i2c: E2 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 0B 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 0B 00 06 06 00 DE 90 60 DC 58 D3 50 97 90 00 44 [13:13:09]RAPDU: DE 90 60 DC 58 D3 50 97 90 00 [13:13:09]wFMCommunicate OK [13:13:09]SAM_PROTO_SignData done [13:13:09]FM_MakeSignedData done [13:13:09]CreateOFDProtocolMessage [13:13:09]wFMCommunicate request_size=4 [13:13:09]MH_SAM_APDU [13:13:09]CAPDU: 80 11 00 00 [13:13:09]Write to MH i2c: E2 08 00 07 06 80 11 00 00 00 00 00 00 87 [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:09]Read from MH i2c: E2 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 17 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: E2 17 00 07 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D9 [13:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:09]wFMCommunicate OK [13:13:09]CreateOFDProtocolMessage done [13:13:09]OFDSenderStorePacket 111354 [13:13:09]StoreOFDPacket docnum=111354 [13:13:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9F 67 04 01 C6 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 67 00 00 00 F4 03 04 00 65 D9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B2 01 00 35 04 06 00 89 E9 92 2E DE B5 DE 90 60 DC 58 D3 50 97 [13:13:09]CheckFolder [13:13:09]dirname=/storage/ofd_packets [13:13:09]CheckFolder done [13:13:09]ProducePacketName [13:13:09]name=ofd_packets/00111354 [13:13:09]NVStorageSaveData ofd_packets/00111354 [13:13:09]File name is /storage/ofd_packets/00111354 [13:13:09]Write 298 bytes [13:13:09]NVStorageSaveData done [13:13:09]OFDSenderStorePacket done [13:13:09]KKMCreateOFDPacket done [13:13:09]NVStorageSaveData kkm_last_timestamp [13:13:09]File name is /storage/kkm_last_timestamp [13:13:09]Write 4 bytes [13:13:09]NVStorageSaveData done [13:13:09]ExternCall_PrintAddStr [13:13:09]wPrintStart [13:13:09]Write to MH i2c: 01 00 00 08 06 0E [13:13:09]Write i2c OK [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: 01 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: 01 07 00 [13:13:09]MH_I2C_Read... [13:13:09]Read from MH i2c: 01 07 00 08 06 00 00 00 00 00 FF 0F 23 [13:13:09]RasterBufferAndPrint [13:13:09]line Счет N : (1)319927 [13:13:09]line ИНН: 02508201610067 [13:13:09]line Контрольно-Кассовый Чек [13:13:09]line ПРОДАЖА [13:13:09]line ТРК (МРК, ГНК) : 22 [13:13:09]line Товар: 2710194210 [13:13:09]line ДТ-К-5 [13:13:09]line 41.160 * 72.90 [13:13:09]line = 3000.56 [13:13:09]line НДС 12% НСП 1% [13:13:09]line > о реализуемом товаре [13:13:09]line ОКРУГЛЕНИЕ: -0.56 [13:13:09]line ИТОГО: 3000.00 [13:13:09]line Внесено: 3000.00 [13:13:09]line СДАЧА: 0.00 [13:13:09]line НСП 1% : 26.55 [13:13:09]line НДС 12% : 318.64 [13:13:09]line Наличными: 3000.00 [13:13:09]line Безнал.: 0.00 [13:13:09]line Место: АЗС № 65 "Партнер Нефть" [13:13:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:13:09]line СНО: Общий режим [13:13:09]line Чек 103 19.06.2024 13:13 [13:13:09]line Смена: 388 ФФД: 1.0 [13:13:09]line ЗНМ: 0300000198 [13:13:09]line РНМ: 0000000000092771 [13:13:09]line Версия ККМ: 001 [13:13:09]line ФМ: 0000000000875083 [13:13:09]line ФД: 111354 [13:13:10]line ФПД: 151636272930485 [13:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T131309&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111354&fm=151636272930485&tin=02508201610067®Number=0000000000092771&sum=300000 [13:13:10]OFD Sender: Processing packet 111354 [packets to send 38, broken 37] [13:13:10]ProducePacketName [13:13:10]name=ofd_packets/00111354 [13:13:10]OFD Sender: To server: pG, [13:13:10]CommunicateWithHost lk.salyk.kg:30040 [13:13:10]ConnectInit lk.salyk.kg [13:13:10]written 0, free lines is 4095 [13:13:10]Connected sock=10 [13:13:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 9F 67 04 01 C6 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 67 00 00 00 F4 03 04 00 65 D9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FA B2 01 00 35 04 06 00 89 E9 92 2E DE B5 DE 90 60 DC 58 D3 50 97 [13:13:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AF 1F 47 00 BA 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 35 30 38 33 10 04 04 00 FA B2 01 00 F4 03 04 00 CE 70 72 66 B6 04 01 00 00 AC F4 46 C0 6E 2D 09 7A [13:13:10]CommunicateWithHost err = 0 [13:13:10]CheckOFDResponse [13:13:10]1017 (14) - 77093643461234 [13:13:10]1041 (16) - 0000000000875083 [13:13:10]1040 (4) - 111354 [13:13:10]1012 (4) - 19.06.2024 05:46 [13:13:10]1206 (1) - 0 [13:13:10]OFD Sender: Remove packet 111354 [13:13:10]ProducePacketName [13:13:10]name=ofd_packets/00111354 [13:13:10]NVStorageDeleteData [13:13:10]Write to MH i2c: 01 00 00 33 06 39 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: 01 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: 01 07 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: 01 07 00 33 06 00 00 00 00 00 E0 0C 2C [13:13:10]RasterBufferAndPrint [13:13:10]line [13:13:10]line [13:13:10]line [13:13:10]line [13:13:10]line [13:13:10]written 0, free lines is 3302 [13:13:10]MH_Cut [13:13:10]Write to MH i2c: D1 01 00 3A 06 01 12 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: D1 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: D1 01 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: D1 01 00 3A 06 00 11 [13:13:10]Write to MH i2c: 01 00 00 3B 06 41 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:11]OFD Sender: No OFD packet to send [13:13:11]*** Cut start [13:13:11]*** Partial cut [13:13:11]*** CUTSNS_PIN = 1 [13:13:11]*** CUTSNS_PIN = 0 [13:13:11]*** Brake cut motor [13:13:12]Read from MH i2c: 01 [13:13:12]MH_I2C_Read... [13:13:12]*** Stop cut motor [13:13:12]*** Cut end [13:13:12]Read from MH i2c: 01 07 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 07 00 3B 06 00 00 00 00 00 FF 0F 56 [13:13:12]process_action close_receipt done [13:13:12]requested_data is exist [13:13:12]produce_requested_data [13:13:12]requested_item fm.sn is exist - process it [13:13:12]wFMCommunicate request_size=4 [13:13:12]MH_SAM_APDU [13:13:12]CAPDU: 80 11 00 00 [13:13:12]Write to MH i2c: E2 08 00 3C 06 80 11 00 00 00 00 00 00 BC [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:12]Read from MH i2c: E2 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 17 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 17 00 3C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0E [13:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:13:12]wFMCommunicate OK [13:13:12]requested_item fd.num is exist - process it [13:13:12]SAM_PROTO_GetFieldsCounters [13:13:12]wFMCommunicate request_size=4 [13:13:12]MH_SAM_APDU [13:13:12]CAPDU: 80 13 00 00 [13:13:12]Write to MH i2c: E2 08 00 3D 06 80 13 00 00 00 00 00 00 BF [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:12]Read from MH i2c: E2 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 62 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 62 00 3D 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [13:13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FA B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:12]wFMCommunicate OK [13:13:12]SAM_PROTO_GetFieldsCounters done [13:13:12]requested_item shift.num is exist - process it [13:13:12]requested_item shift.opened is exist - process it [13:13:12]req_shift_opened [13:13:12]FM_GetShiftState [13:13:12]SAM_PROTO_GetShiftState [13:13:12]wFMCommunicate request_size=4 [13:13:12]MH_SAM_APDU [13:13:12]CAPDU: 80 13 01 00 [13:13:12]Write to MH i2c: E2 08 00 3E 06 80 13 01 00 00 00 00 00 C1 [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:12]Read from MH i2c: E2 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 0E 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 0E 00 3E 06 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0B [13:13:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:13:12]wFMCommunicate OK [13:13:12]SAM_PROTO_GetShiftState done [13:13:12]FM_GetShiftState done [13:13:12]req_shift_opened done [13:13:12]requested_item shift.open_date is exist - process it [13:13:12]req_shift_open_date [13:13:12]req_shift_open_date done [13:13:12]produce_requested_data done [13:13:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111354,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:13:12]process_action_free close_receipt [13:13:12]json_value_free [13:13:12]json_value_free done [13:13:12]process_json_proto returns [13:13:12]Send response to host [13:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111354,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:13:12]free response buf [13:13:12]execute_script done [13:13:12]execute_script returns [13:13:12]free content buf [13:13:12]Sock 9.Close socket [13:13:12]Sock 9.Thread stoped [13:13:16]OFD Sender: No OFD packet to send [13:13:21]OFD Sender: No OFD packet to send [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:14:01]OFD Sender: No OFD packet to send [13:14:06]OFD Sender: No OFD packet to send [13:14:11]OFD Sender: No OFD packet to send [13:14:16]OFD Sender: No OFD packet to send [13:14:21]OFD Sender: No OFD packet to send [13:14:26]OFD Sender: No OFD packet to send [13:14:31]OFD Sender: No OFD packet to send [13:14:36]OFD Sender: No OFD packet to send [13:14:41]OFD Sender: No OFD packet to send [13:14:46]OFD Sender: No OFD packet to send [13:14:51]OFD Sender: No OFD packet to send [13:14:56]OFD Sender: No OFD packet to send [13:15:01]OFD Sender: No OFD packet to send [13:15:06]OFD Sender: No OFD packet to send [13:15:11]OFD Sender: No OFD packet to send [13:15:16]OFD Sender: No OFD packet to send [13:15:21]OFD Sender: No OFD packet to send [13:15:26]OFD Sender: No OFD packet to send [13:15:31]OFD Sender: No OFD packet to send [13:15:36]OFD Sender: No OFD packet to send [13:15:41]OFD Sender: No OFD packet to send [13:15:46]OFD Sender: No OFD packet to send [13:15:51]OFD Sender: No OFD packet to send [13:15:56]OFD Sender: No OFD packet to send [13:16:01]OFD Sender: No OFD packet to send [13:16:06]OFD Sender: No OFD packet to send [13:16:11]OFD Sender: No OFD packet to send [13:16:16]OFD Sender: No OFD packet to send [13:16:21]OFD Sender: No OFD packet to send [13:16:26]OFD Sender: No OFD packet to send [13:16:31]OFD Sender: No OFD packet to send [13:16:36]OFD Sender: No OFD packet to send [13:16:41]OFD Sender: No OFD packet to send [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:20]accept exits with 7 [13:17:20]New connection [13:17:20]New thread 3067321700 created [13:17:20]Thread 3067465060 joined [13:17:20]Waiting for new connection... [13:17:20] Sock 7.Parse request [13:17:20]Sock 7.Check first char [13:17:20]Sock 7.First char is OK [13:17:20]request: POST /json_proto HTTP/1.0 [13:17:20]Method: POST [13:17:20]URL: /json_proto [13:17:20]Method is POST - this is cgi request [13:17:20]url: /json_proto [13:17:20]query_string will be loaded in cgi processing [13:17:20]execute_cgi json_proto POST (null) [13:17:20]execute_cgi path=json_proto method=POST [13:17:20]POST find Content-Length [13:17:20]Host: 172.17.59.68:8080 [13:17:20]Content-Length: 682 [13:17:20]Content-Type: application/json [13:17:20] [13:17:20]POST finish read [13:17:20]Found Content-Length = 682 [13:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20]execute_script... [13:17: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)319928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20]POST & json_proto [13:17:20]process_json_proto [13:17:20]json parsed OK: [13:17:20]protocol is kg_v1.0 [13:17:20]action value=close_receipt [13:17:20]process_action close_receipt [13:17:20]cmd_close_receipt [13:17:20]MH_GetDate [13:17:20]Write to MH i2c: F0 00 00 3F 06 34 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: F0 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: F0 09 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: F0 09 00 3F 06 00 62 DA 72 66 BC EC 60 65 BE [13:17:20]GetLastDocTimeStamp 1718802789 [13:17:20]current date 1718803042 [13:17:20]FM_GetShiftState [13:17:20]SAM_PROTO_GetShiftState [13:17:20]wFMCommunicate request_size=4 [13:17:20]MH_SAM_APDU [13:17:20]CAPDU: 80 13 01 00 [13:17:20]Write to MH i2c: E2 08 00 40 06 80 13 01 00 00 00 00 00 C3 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:20]Read from MH i2c: E2 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 0E 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: E2 0E 00 40 06 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0D [13:17:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:17:20]wFMCommunicate OK [13:17:20]SAM_PROTO_GetShiftState done [13:17:20]FM_GetShiftState done [13:17:20]opened in 1718760753 [13:17:20]opened+sec_in_day 1718847153 [13:17:20]quantity*price = 100064 [13:17:20]sum+1 = 100066 [13:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 104 19.06.2024 13:17 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111355 ФПД: 280256098013618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T131722&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111355&fm=280256098013618&tin=02508201610067®Number=0000000000092771&sum=100000 [13:17:21]StoreToDocumentArchive [13:17:21]shift 388 fd 111355 [13:17:21]save to /storage/0388/doc_00111355 [13:17:21]save last doc name /storage/0388/doc_00111355 to /storage/kkm_last_doc_name [13:17:21]save OK [13:17:21]Clear old archive folders... [13:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:21]tlvbuf is 00F3BB00 [13:17:21]SAM_PROTO_ClearQueue [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 09 00 00 [13:17:21]Write to MH i2c: E2 08 00 4D 06 80 09 00 00 00 00 00 00 C5 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:21]Read from MH i2c: E2 03 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [13:17:21]RAPDU: 90 00 [13:17:21]wFMCommunicate OK [13:17:21]SAM_PROTO_ClearQueue done [13:17:21]KKMCreateOFDPacket [13:17:21]OFDProtocolAddRootSTLVToBuf [13:17:21]FM_MakeSignedData [13:17:21]FM_MakeSignedData [13:17:21]SAM_PROTO_SignData [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 0D 01 02 [13:17:21]Write to MH i2c: E2 08 00 4E 06 80 0D 01 02 00 00 00 00 CD [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 03 00 4E 06 00 90 00 C8 [13:17:21]RAPDU: 90 00 [13:17:21]wFMCommunicate OK [13:17:21]wFMCommunicate request_size=255 [13:17:21]MH_SAM_APDU [13: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 62 DA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B2 01 00 35 04 06 00 FE [13:17:21]Write to MH i2c: E2 02 01 4F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 62 DA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B2 01 00 35 04 06 00 FE 00 00 7E [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 4F 06 00 90 00 C9 [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=10 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 02 02 05 E4 35 2B 11 B2 [13:17:22]Write to MH i2c: E2 0D 00 50 06 80 0D 02 02 05 00 E4 35 2B 11 B2 00 00 E1 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [13:17:22]RAPDU: 90 00 [13:17:22]wFMCommunicate OK [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 0D 03 02 [13:17:22]Write to MH i2c: E2 08 00 51 06 80 0D 03 02 00 00 00 00 D2 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0B 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 0B 00 51 06 00 7B 50 BB 40 53 48 05 FF 90 00 38 [13:17:22]RAPDU: 7B 50 BB 40 53 48 05 FF 90 00 [13:17:22]wFMCommunicate OK [13:17:22]SAM_PROTO_SignData done [13:17:22]FM_MakeSignedData done [13:17:22]CreateOFDProtocolMessage [13:17:22]wFMCommunicate request_size=4 [13:17:22]MH_SAM_APDU [13:17:22]CAPDU: 80 11 00 00 [13:17:22]Write to MH i2c: E2 08 00 52 06 80 11 00 00 00 00 00 00 D2 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:22]Read from MH i2c: E2 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 17 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: E2 17 00 52 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 24 [13:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:17:22]wFMCommunicate OK [13:17:22]CreateOFDProtocolMessage done [13:17:22]OFDSenderStorePacket 111355 [13:17:22]StoreOFDPacket docnum=111355 [13:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9B 7D 07 01 50 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 62 DA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B2 01 00 35 04 06 00 FE E4 35 2B 11 B2 7B 50 BB 40 53 48 05 FF [13:17:22]CheckFolder [13:17:22]dirname=/storage/ofd_packets [13:17:22]CheckFolder done [13:17:22]ProducePacketName [13:17:22]name=ofd_packets/00111355 [13:17:22]NVStorageSaveData ofd_packets/00111355 [13:17:22]File name is /storage/ofd_packets/00111355 [13:17:22]Write 301 bytes [13:17:22]NVStorageSaveData done [13:17:22]OFDSenderStorePacket done [13:17:22]KKMCreateOFDPacket done [13:17:22]NVStorageSaveData kkm_last_timestamp [13:17:22]File name is /storage/kkm_last_timestamp [13:17:22]Write 4 bytes [13:17:22]NVStorageSaveData done [13:17:22]ExternCall_PrintAddStr [13:17:22]wPrintStart [13:17:22]Write to MH i2c: 01 00 00 53 06 59 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 53 06 00 00 00 00 00 FF 0F 6E [13:17:22]RasterBufferAndPrint [13:17:22]line Счет N : (1)319928 [13:17:22]line ИНН: 02508201610067 [13:17:22]line Контрольно-Кассовый Чек [13:17:22]line ПРОДАЖА [13:17:22]line ТРК (МРК, ГНК) : 11 [13:17:22]line Товар: 2710124130 [13:17:22]line Аи-92-К-5 [13:17:22]line 15.070 * 66.40 [13:17:22]line = 1000.65 [13:17:22]line НДС 12% НСП 1% [13:17:22]line > о реализуемом товаре [13:17:22]line ОКРУГЛЕНИЕ: -0.65 [13:17:22]line ИТОГО: 1000.00 [13:17:22]line Внесено: 1000.00 [13:17:22]line СДАЧА: 0.00 [13:17:22]line НСП 1% : 8.85 [13:17:22]line НДС 12% : 106.26 [13:17:22]line Наличными: 1000.00 [13:17:22]line Безнал.: 0.00 [13:17:22]line Место: АЗС № 65 "Партнер Нефть" [13:17:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:17:22]line СНО: Общий режим [13:17:22]line Чек 104 19.06.2024 13:17 [13:17:22]line Смена: 388 ФФД: 1.0 [13:17:22]line ЗНМ: 0300000198 [13:17:22]line РНМ: 0000000000092771 [13:17:22]line Версия ККМ: 001 [13:17:22]line ФМ: 0000000000875083 [13:17:22]line ФД: 111355 [13:17:22]line ФПД: 280256098013618 [13:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T131722&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111355&fm=280256098013618&tin=02508201610067®Number=0000000000092771&sum=100000 [13:17:22]OFD Sender: Processing packet 111355 [packets to send 38, broken 37] [13:17:22]ProducePacketName [13:17:22]name=ofd_packets/00111355 [13:17:22]OFD Sender: To server: pG, [13:17:22]CommunicateWithHost lk.salyk.kg:30040 [13:17:22]ConnectInit lk.salyk.kg [13:17:22]written 0, free lines is 4095 [13:17:22]Connected sock=10 [13: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 35 30 38 33 0F 01 00 00 9B 7D 07 01 50 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 62 DA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B2 01 00 35 04 06 00 FE E4 35 2B 11 B2 7B 50 BB 40 53 48 05 FF [13:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 46 14 47 00 96 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FB B2 01 00 F4 03 04 00 CB 71 72 66 B6 04 01 00 00 61 AF 08 BA 1D 32 6F 28 [13:17:22]CommunicateWithHost err = 0 [13:17:22]CheckOFDResponse [13:17:22]1017 (14) - 77093643461234 [13:17:22]1041 (16) - 0000000000875083 [13:17:22]1040 (4) - 111355 [13:17:22]1012 (4) - 19.06.2024 05:51 [13:17:22]1206 (1) - 0 [13:17:22]OFD Sender: Remove packet 111355 [13:17:22]ProducePacketName [13:17:22]name=ofd_packets/00111355 [13:17:22]NVStorageDeleteData [13:17:22]Write to MH i2c: 01 00 00 7E 06 84 [13:17:22]Write i2c OK [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 [13:17:22]MH_I2C_Read... [13:17:22]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 EC 0C 83 [13:17:22]RasterBufferAndPrint [13:17:22]line [13:17:22]line [13:17:22]line [13:17:22]line [13:17:22]line [13:17:22]written 0, free lines is 3314 [13:17:23]MH_Cut [13:17:23]Write to MH i2c: D1 01 00 85 06 01 5D [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 01 00 [13:17:23]MH_I2C_Read... [13:17:23]Read from MH i2c: D1 01 00 85 06 00 5C [13:17:23]Write to MH i2c: 01 00 00 86 06 8C [13:17:23]Write i2c OK [13:17:23]MH_I2C_Read... [13:17:23]OFD Sender: No OFD packet to send [13:17:23]*** Cut start [13:17:23]*** Partial cut [13:17:23]*** CUTSNS_PIN = 1 [13:17:23]*** CUTSNS_PIN = 0 [13:17:23]*** Brake cut motor [13:17:24]Read from MH i2c: 01 [13:17:24]MH_I2C_Read... [13:17:24]*** Stop cut motor [13:17:24]*** Cut end [13:17:24]Read from MH i2c: 01 07 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [13:17:24]process_action close_receipt done [13:17:24]requested_data is exist [13:17:24]produce_requested_data [13:17:24]requested_item fm.sn is exist - process it [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 11 00 00 [13:17:24]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 17 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [13:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:17:24]wFMCommunicate OK [13:17:24]requested_item fd.num is exist - process it [13:17:24]SAM_PROTO_GetFieldsCounters [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 13 00 00 [13:17:24]Write to MH i2c: E2 08 00 88 06 80 13 00 00 00 00 00 00 0A [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 62 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 62 00 88 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FB B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:24]wFMCommunicate OK [13:17:24]SAM_PROTO_GetFieldsCounters done [13:17:24]requested_item shift.num is exist - process it [13:17:24]requested_item shift.opened is exist - process it [13:17:24]req_shift_opened [13:17:24]FM_GetShiftState [13:17:24]SAM_PROTO_GetShiftState [13:17:24]wFMCommunicate request_size=4 [13:17:24]MH_SAM_APDU [13:17:24]CAPDU: 80 13 01 00 [13:17:24]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [13:17:24]Write i2c OK [13:17:24]MH_I2C_Read... [13:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:24]Read from MH i2c: E2 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 0E 00 [13:17:24]MH_I2C_Read... [13:17:24]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 31 35 72 66 00 00 00 00 90 00 56 [13:17:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:17:24]wFMCommunicate OK [13:17:24]SAM_PROTO_GetShiftState done [13:17:24]FM_GetShiftState done [13:17:24]req_shift_opened done [13:17:24]requested_item shift.open_date is exist - process it [13:17:24]req_shift_open_date [13:17:24]req_shift_open_date done [13:17:24]produce_requested_data done [13:17:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111355,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:17:24]process_action_free close_receipt [13:17:24]json_value_free [13:17:24]json_value_free done [13:17:24]process_json_proto returns [13:17:24]Send response to host [13:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111355,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:17:24]free response buf [13:17:24]execute_script done [13:17:24]execute_script returns [13:17:24]free content buf [13:17:24]Sock 7.Close socket [13:17:24]Sock 7.Thread stoped [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:44]accept exits with 9 [13:21:44]New connection [13:21:44]New thread 3067465060 created [13:21:44]Thread 3067321700 joined [13:21:44]Waiting for new connection... [13:21:44] Sock 9.Parse request [13:21:44]Sock 9.Check first char [13:21:44]Sock 9.First char is OK [13:21:44]request: POST /json_proto HTTP/1.0 [13:21:44]Method: POST [13:21:44]URL: /json_proto [13:21:44]Method is POST - this is cgi request [13:21:44]url: /json_proto [13:21:44]query_string will be loaded in cgi processing [13:21:44]execute_cgi json_proto POST (null) [13:21:44]execute_cgi path=json_proto method=POST [13:21:44]POST find Content-Length [13:21:44]Host: 172.17.59.68:8080 [13:21:44]Content-Length: 679 [13:21:44]Content-Type: application/json [13:21:44] [13:21:44]POST finish read [13:21:44]Found Content-Length = 679 [13:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [13:21:44]execute_script... [13: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)319929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [13:21:44]POST & json_proto [13:21:44]process_json_proto [13:21:44]json parsed OK: [13:21:44]protocol is kg_v1.0 [13:21:44]action value=close_receipt [13:21:44]process_action close_receipt [13:21:44]cmd_close_receipt [13:21:44]MH_GetDate [13:21:44]Write to MH i2c: F0 00 00 8A 06 7F [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: F0 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: F0 09 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: F0 09 00 8A 06 00 69 DB 72 66 BC EC 60 65 11 [13:21:44]GetLastDocTimeStamp 1718803042 [13:21:44]current date 1718803305 [13:21:44]FM_GetShiftState [13:21:44]SAM_PROTO_GetShiftState [13:21:44]wFMCommunicate request_size=4 [13:21:44]MH_SAM_APDU [13:21:44]CAPDU: 80 13 01 00 [13:21:44]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [13:21:44]Write i2c OK [13:21:44]MH_I2C_Read... [13:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:44]Read from MH i2c: E2 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 0E 00 [13:21:44]MH_I2C_Read... [13:21:44]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 31 35 72 66 00 00 00 00 90 00 58 [13:21:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:21:44]wFMCommunicate OK [13:21:44]SAM_PROTO_GetShiftState done [13:21:44]FM_GetShiftState done [13:21:44]opened in 1718760753 [13:21:44]opened+sec_in_day 1718847153 [13:21:44]quantity*price = 300056 [13:21:44]sum+1 = 300057 [13:21:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 105 19.06.2024 13:21 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111356 ФПД: 260794649581291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T132146&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111356&fm=260794649581291&tin=02508201610067®Number=0000000000092771&sum=300000 [13:21:45]StoreToDocumentArchive [13:21:45]shift 388 fd 111356 [13:21:45]save to /storage/0388/doc_00111356 [13:21:45]save last doc name /storage/0388/doc_00111356 to /storage/kkm_last_doc_name [13:21:45]save OK [13:21:45]Clear old archive folders... [13:21:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:45]tlvbuf is 00F3F920 [13:21:45]SAM_PROTO_ClearQueue [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 09 00 00 [13:21:45]Write to MH i2c: E2 08 00 98 06 80 09 00 00 00 00 00 00 10 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [13:21:45]RAPDU: 90 00 [13:21:45]wFMCommunicate OK [13:21:45]SAM_PROTO_ClearQueue done [13:21:45]KKMCreateOFDPacket [13:21:45]OFDProtocolAddRootSTLVToBuf [13:21:45]FM_MakeSignedData [13:21:45]FM_MakeSignedData [13:21:45]SAM_PROTO_SignData [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 0D 01 02 [13:21:45]Write to MH i2c: E2 08 00 99 06 80 0D 01 02 00 00 00 00 18 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [13:21:45]RAPDU: 90 00 [13:21:45]wFMCommunicate OK [13:21:45]wFMCommunicate request_size=255 [13:21:45]MH_SAM_APDU [13:21: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 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 69 00 00 00 F4 03 04 00 6A DB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B2 01 00 35 04 06 00 ED 30 FC 72 [13:21:45]Write to MH i2c: E2 02 01 9A 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 69 00 00 00 F4 03 04 00 6A DB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B2 01 00 35 04 06 00 ED 30 FC 72 00 00 B3 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [13:21:45]RAPDU: 90 00 [13:21:45]wFMCommunicate OK [13:21:45]wFMCommunicate request_size=7 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 0D 02 02 02 96 EB [13:21:45]Write to MH i2c: E2 0A 00 9B 06 80 0D 02 02 02 00 96 EB 00 00 A0 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [13:21:45]RAPDU: 90 00 [13:21:45]wFMCommunicate OK [13:21:45]wFMCommunicate request_size=4 [13:21:45]MH_SAM_APDU [13:21:45]CAPDU: 80 0D 03 02 [13:21:45]Write to MH i2c: E2 08 00 9C 06 80 0D 03 02 00 00 00 00 1D [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:45]Read from MH i2c: E2 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 0B 00 [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: E2 0B 00 9C 06 00 E9 9A 3F C1 D8 72 E4 42 90 00 11 [13:21:45]RAPDU: E9 9A 3F C1 D8 72 E4 42 90 00 [13:21:45]wFMCommunicate OK [13:21:45]SAM_PROTO_SignData done [13:21:45]FM_MakeSignedData done [13:21:45]CreateOFDProtocolMessage [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 9D 06 80 11 00 00 00 00 00 00 1D [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 9D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6F [13:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:21:45]wFMCommunicate OK [13:21:45]CreateOFDProtocolMessage done [13:21:45]OFDSenderStorePacket 111356 [13:21:45]StoreOFDPacket docnum=111356 [13:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D1 BC 04 01 48 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 69 00 00 00 F4 03 04 00 6A DB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B2 01 00 35 04 06 00 ED 30 FC 72 96 EB E9 9A 3F C1 D8 72 E4 42 [13:21:45]CheckFolder [13:21:45]dirname=/storage/ofd_packets [13:21:45]CheckFolder done [13:21:45]ProducePacketName [13:21:45]name=ofd_packets/00111356 [13:21:45]NVStorageSaveData ofd_packets/00111356 [13:21:45]File name is /storage/ofd_packets/00111356 [13:21:45]Write 298 bytes [13:21:45]NVStorageSaveData done [13:21:45]OFDSenderStorePacket done [13:21:45]KKMCreateOFDPacket done [13:21:45]NVStorageSaveData kkm_last_timestamp [13:21:45]File name is /storage/kkm_last_timestamp [13:21:45]Write 4 bytes [13:21:45]NVStorageSaveData done [13:21:45]ExternCall_PrintAddStr [13:21:45]wPrintStart [13:21:45]Write to MH i2c: 01 00 00 9E 06 A4 [13:21:45]Write i2c OK [13:21:45]MH_I2C_Read... [13:21:45]Read from MH i2c: 01 [13:21:45]MH_I2C_Read... [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 9E 06 00 00 00 00 00 FF 0F B9 [13:21:45]RasterBufferAndPrint [13:21:45]line Счет N : (1)319929 [13:21:45]line ИНН: 02508201610067 [13:21:45]line Контрольно-Кассовый Чек [13:21:45]line ПРОДАЖА [13:21:45]line ТРК (МРК, ГНК) : 22 [13:21:45]line Товар: 2710194210 [13:21:45]line ДТ-К-5 [13:21:45]line 41.160 * 72.90 [13:21:45]line = 3000.56 [13:21:45]line НДС 12% НСП 1% [13:21:45]line > о реализуемом товаре [13:21:45]line ОКРУГЛЕНИЕ: -0.56 [13:21:45]line ИТОГО: 3000.00 [13:21:45]line Внесено: 3000.00 [13:21:45]line СДАЧА: 0.00 [13:21:45]line НСП 1% : 26.55 [13:21:45]line НДС 12% : 318.64 [13:21:45]line Наличными: 3000.00 [13:21:45]line Безнал.: 0.00 [13:21:45]line Место: АЗС № 65 "Партнер Нефть" [13:21:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:21:45]line СНО: Общий режим [13:21:45]line Чек 105 19.06.2024 13:21 [13:21:45]line Смена: 388 ФФД: 1.0 [13:21:45]line ЗНМ: 0300000198 [13:21:45]line РНМ: 0000000000092771 [13:21:45]line Версия ККМ: 001 [13:21:45]line ФМ: 0000000000875083 [13:21:45]line ФД: 111356 [13:21:45]line ФПД: 260794649581291 [13:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T132146&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111356&fm=260794649581291&tin=02508201610067®Number=0000000000092771&sum=300000 [13:21:46]OFD Sender: Processing packet 111356 [packets to send 38, broken 37] [13:21:46]ProducePacketName [13:21:46]name=ofd_packets/00111356 [13:21:46]OFD Sender: To server: pG, [13:21:46]CommunicateWithHost lk.salyk.kg:30040 [13:21:46]ConnectInit lk.salyk.kg [13:21:46]written 0, free lines is 4095 [13:21:46]Connected sock=10 [13:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D1 BC 04 01 48 F4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 69 00 00 00 F4 03 04 00 6A DB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FC B2 01 00 35 04 06 00 ED 30 FC 72 96 EB E9 9A 3F C1 D8 72 E4 42 [13:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 77 C2 47 00 D7 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 35 30 38 33 10 04 04 00 FC B2 01 00 F4 03 04 00 D2 72 72 66 B6 04 01 00 00 07 AD 69 6F 98 D3 33 E5 [13:21:46]CommunicateWithHost err = 0 [13:21:46]CheckOFDResponse [13:21:46]1017 (14) - 77093643461234 [13:21:46]1041 (16) - 0000000000875083 [13:21:46]1040 (4) - 111356 [13:21:46]1012 (4) - 19.06.2024 05:55 [13:21:46]1206 (1) - 0 [13:21:46]OFD Sender: Remove packet 111356 [13:21:46]ProducePacketName [13:21:46]name=ofd_packets/00111356 [13:21:46]NVStorageDeleteData [13:21:46]Write to MH i2c: 01 00 00 C9 06 CF [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: 01 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: 01 07 00 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: 01 07 00 C9 06 00 00 00 00 00 E4 0C C6 [13:21:46]RasterBufferAndPrint [13:21:46]line [13:21:46]line [13:21:46]line [13:21:46]line [13:21:46]line [13:21:46]written 0, free lines is 3306 [13:21:46]MH_Cut [13:21:46]Write to MH i2c: D1 01 00 D0 06 01 A8 [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: D1 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: D1 01 00 [13:21:46]MH_I2C_Read... [13:21:46]Read from MH i2c: D1 01 00 D0 06 00 A7 [13:21:46]Write to MH i2c: 01 00 00 D1 06 D7 [13:21:46]Write i2c OK [13:21:46]MH_I2C_Read... [13:21:47]OFD Sender: No OFD packet to send [13:21:47]*** Cut start [13:21:47]*** Partial cut [13:21:47]*** CUTSNS_PIN = 1 [13:21:47]*** CUTSNS_PIN = 0 [13:21:47]*** Brake cut motor [13:21:48]Read from MH i2c: 01 [13:21:48]MH_I2C_Read... [13:21:48]*** Stop cut motor [13:21:48]*** Cut end [13:21:48]Read from MH i2c: 01 07 00 [13:21:48]MH_I2C_Read... [13:21:48]Read from MH i2c: 01 07 00 D1 06 00 00 00 00 00 FF 0F EC [13:21:48]process_action close_receipt done [13:21:48]requested_data is exist [13:21:48]produce_requested_data [13:21:48]requested_item fm.sn is exist - process it [13:21:48]wFMCommunicate request_size=4 [13:21:48]MH_SAM_APDU [13:21:48]CAPDU: 80 11 00 00 [13:21:48]Write to MH i2c: E2 08 00 D2 06 80 11 00 00 00 00 00 00 52 [13:21:48]Write i2c OK [13:21:48]MH_I2C_Read... [13:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:48]Read from MH i2c: E2 [13:21:48]MH_I2C_Read... [13:21:48]Read from MH i2c: E2 17 00 [13:21:48]MH_I2C_Read... [13:21:48]Read from MH i2c: E2 17 00 D2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [13:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:21:48]wFMCommunicate OK [13:21:48]requested_item fd.num is exist - process it [13:21:48]SAM_PROTO_GetFieldsCounters [13:21:48]wFMCommunicate request_size=4 [13:21:48]MH_SAM_APDU [13:21:48]CAPDU: 80 13 00 00 [13:21:48]Write to MH i2c: E2 08 00 D3 06 80 13 00 00 00 00 00 00 55 [13:21:48]Write i2c OK [13:21:48]MH_I2C_Read... [13:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:48]Read from MH i2c: E2 [13:21:48]MH_I2C_Read... [13:21:48]Read from MH i2c: E2 62 00 [13:21:48]MH_I2C_Read... [13:21:48]Read from MH i2c: E2 62 00 D3 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [13:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FC B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:21:48]wFMCommunicate OK [13:21:48]SAM_PROTO_GetFieldsCounters done [13:21:48]requested_item shift.num is exist - process it [13:21:48]requested_item shift.opened is exist - process it [13:21:48]req_shift_opened [13:21:48]FM_GetShiftState [13:21:48]SAM_PROTO_GetShiftState [13:21:48]wFMCommunicate request_size=4 [13:21:48]MH_SAM_APDU [13:21:48]CAPDU: 80 13 01 00 [13:21:48]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [13:21:48]Write i2c OK [13:21:48]MH_I2C_Read... [13:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:48]Read from MH i2c: E2 [13:21:48]MH_I2C_Read... [13:21:48]Read from MH i2c: E2 0E 00 [13:21:48]MH_I2C_Read... [13:21:48]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A1 [13:21:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:21:48]wFMCommunicate OK [13:21:48]SAM_PROTO_GetShiftState done [13:21:48]FM_GetShiftState done [13:21:48]req_shift_opened done [13:21:48]requested_item shift.open_date is exist - process it [13:21:48]req_shift_open_date [13:21:48]req_shift_open_date done [13:21:48]produce_requested_data done [13:21:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111356,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:21:48]process_action_free close_receipt [13:21:48]json_value_free [13:21:48]json_value_free done [13:21:48]process_json_proto returns [13:21:48]Send response to host [13:21:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111356,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:21:48]free response buf [13:21:48]execute_script done [13:21:48]execute_script returns [13:21:48]free content buf [13:21:48]Sock 9.Close socket [13:21:48]Sock 9.Thread stoped [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:03]accept exits with 7 [13:26:03]New connection [13:26:03]New thread 3067321700 created [13:26:03]Thread 3067465060 joined [13:26:03]Waiting for new connection... [13:26:03] Sock 7.Parse request [13:26:03]Sock 7.Check first char [13:26:03]Sock 7.First char is OK [13:26:03]request: POST /json_proto HTTP/1.0 [13:26:03]Method: POST [13:26:03]URL: /json_proto [13:26:03]Method is POST - this is cgi request [13:26:03]url: /json_proto [13:26:03]query_string will be loaded in cgi processing [13:26:03]execute_cgi json_proto POST (null) [13:26:03]execute_cgi path=json_proto method=POST [13:26:03]POST find Content-Length [13:26:03]Host: 172.17.59.68:8080 [13:26:03]Content-Length: 677 [13:26:03]Content-Type: application/json [13:26:03] [13:26:03]POST finish read [13:26:03]Found Content-Length = 677 [13:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.140, "sum" : 208.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 208.00, "total" : 208.00, "payments": [ { "type": 0, "sum" : 208.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:03]execute_script... [13:26: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)319930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.140, "sum" : 208.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 208.00, "total" : 208.00, "payments": [ { "type": 0, "sum" : 208.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:03]POST & json_proto [13:26:03]process_json_proto [13:26:03]json parsed OK: [13:26:03]protocol is kg_v1.0 [13:26:03]action value=close_receipt [13:26:03]process_action close_receipt [13:26:03]cmd_close_receipt [13:26:03]MH_GetDate [13:26:03]Write to MH i2c: F0 00 00 D5 06 CA [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: F0 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: F0 09 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: F0 09 00 D5 06 00 6C DC 72 66 BC EC 60 65 60 [13:26:03]GetLastDocTimeStamp 1718803306 [13:26:03]current date 1718803564 [13:26:03]FM_GetShiftState [13:26:03]SAM_PROTO_GetShiftState [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 13 01 00 [13:26:03]Write to MH i2c: E2 08 00 D6 06 80 13 01 00 00 00 00 00 59 [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0E 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0E 00 D6 06 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A3 [13:26:03]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:26:03]wFMCommunicate OK [13:26:03]SAM_PROTO_GetShiftState done [13:26:03]FM_GetShiftState done [13:26:03]opened in 1718760753 [13:26:03]opened+sec_in_day 1718847153 [13:26:03]quantity*price = 20849 [13:26:03]sum+1 = 20851 [13:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 208.00 Внесено: 208.00 СДАЧА: 0.00 НСП 1% : 1.84 НДС 12% : 22.14 Наличными: 208.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 106 19.06.2024 13:26 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111357 ФПД: 29597392724307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T132605&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111357&fm=29597392724307&tin=02508201610067®Number=0000000000092771&sum=20800 [13:26:04]StoreToDocumentArchive [13:26:04]shift 388 fd 111357 [13:26:04]save to /storage/0388/doc_00111357 [13:26:04]save last doc name /storage/0388/doc_00111357 to /storage/kkm_last_doc_name [13:26:04]save OK [13:26:04]Clear old archive folders... [13:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:04]tlvbuf is 00EBB5D0 [13:26:04]SAM_PROTO_ClearQueue [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 09 00 00 [13:26:04]Write to MH i2c: E2 08 00 E3 06 80 09 00 00 00 00 00 00 5B [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]SAM_PROTO_ClearQueue done [13:26:04]KKMCreateOFDPacket [13:26:04]OFDProtocolAddRootSTLVToBuf [13:26:04]FM_MakeSignedData [13:26:04]FM_MakeSignedData [13:26:04]SAM_PROTO_SignData [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 0D 01 02 [13:26:04]Write to MH i2c: E2 08 00 E4 06 80 0D 01 02 00 00 00 00 63 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]wFMCommunicate request_size=255 [13:26:04]MH_SAM_APDU [13:26: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 44 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 08 00 00 00 00 07 04 06 00 40 51 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 6D DC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B2 01 00 35 04 06 00 1A [13:26:04]Write to MH i2c: E2 02 01 E5 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 44 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 08 00 00 00 00 07 04 06 00 40 51 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 6D DC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B2 01 00 35 04 06 00 1A 00 00 EB [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]wFMCommunicate request_size=10 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 0D 02 02 05 EB 2E 14 61 53 [13:26:04]Write to MH i2c: E2 0D 00 E6 06 80 0D 02 02 05 00 EB 2E 14 61 53 00 00 51 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 0D 03 02 [13:26:04]Write to MH i2c: E2 08 00 E7 06 80 0D 03 02 00 00 00 00 68 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 0B 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 0B 00 E7 06 00 D6 2E 4B 45 D9 D4 C9 E9 90 00 5C [13:26:04]RAPDU: D6 2E 4B 45 D9 D4 C9 E9 90 00 [13:26:04]wFMCommunicate OK [13:26:04]SAM_PROTO_SignData done [13:26:04]FM_MakeSignedData done [13:26:04]CreateOFDProtocolMessage [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 11 00 00 [13:26:04]Write to MH i2c: E2 08 00 E8 06 80 11 00 00 00 00 00 00 68 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 17 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 17 00 E8 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BA [13:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:26:04]wFMCommunicate OK [13:26:04]CreateOFDProtocolMessage done [13:26:04]OFDSenderStorePacket 111357 [13:26:04]StoreOFDPacket docnum=111357 [13:26:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D E4 07 01 84 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 08 00 00 00 00 07 04 06 00 40 51 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 6D DC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B2 01 00 35 04 06 00 1A EB 2E 14 61 53 D6 2E 4B 45 D9 D4 C9 E9 [13:26:04]CheckFolder [13:26:04]dirname=/storage/ofd_packets [13:26:04]CheckFolder done [13:26:04]ProducePacketName [13:26:04]name=ofd_packets/00111357 [13:26:04]NVStorageSaveData ofd_packets/00111357 [13:26:04]File name is /storage/ofd_packets/00111357 [13:26:04]Write 301 bytes [13:26:04]NVStorageSaveData done [13:26:04]OFDSenderStorePacket done [13:26:04]KKMCreateOFDPacket done [13:26:04]NVStorageSaveData kkm_last_timestamp [13:26:04]File name is /storage/kkm_last_timestamp [13:26:04]Write 4 bytes [13:26:04]NVStorageSaveData done [13:26:04]ExternCall_PrintAddStr [13:26:04]wPrintStart [13:26:04]Write to MH i2c: 01 00 00 E9 06 EF [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 07 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 FF 0F 04 [13:26:04]RasterBufferAndPrint [13:26:04]line Счет N : (1)319930 [13:26:04]line ИНН: 02508201610067 [13:26:04]line Контрольно-Кассовый Чек [13:26:04]line ПРОДАЖА [13:26:04]line ТРК (МРК, ГНК) : 11 [13:26:04]line Товар: 2710124130 [13:26:04]line Аи-92-К-5 [13:26:04]line 3.140 * 66.40 [13:26:04]line = 208.50 [13:26:04]line НДС 12% НСП 1% [13:26:04]line > о реализуемом товаре [13:26:04]line ОКРУГЛЕНИЕ: -0.50 [13:26:04]line ИТОГО: 208.00 [13:26:04]line Внесено: 208.00 [13:26:04]line СДАЧА: 0.00 [13:26:04]line НСП 1% : 1.84 [13:26:04]line НДС 12% : 22.14 [13:26:04]line Наличными: 208.00 [13:26:04]line Безнал.: 0.00 [13:26:04]line Место: АЗС № 65 "Партнер Нефть" [13:26:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:26:04]line СНО: Общий режим [13:26:04]line Чек 106 19.06.2024 13:26 [13:26:04]line Смена: 388 ФФД: 1.0 [13:26:04]line ЗНМ: 0300000198 [13:26:04]line РНМ: 0000000000092771 [13:26:04]line Версия ККМ: 001 [13:26:04]line ФМ: 0000000000875083 [13:26:04]line ФД: 111357 [13:26:04]line ФПД: 29597392724307 [13:26:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T132605&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111357&fm=29597392724307&tin=02508201610067®Number=0000000000092771&sum=20800 [13:26:05]OFD Sender: Processing packet 111357 [packets to send 38, broken 37] [13:26:05]ProducePacketName [13:26:05]name=ofd_packets/00111357 [13:26:05]OFD Sender: To server: pG, [13:26:05]CommunicateWithHost lk.salyk.kg:30040 [13:26:05]ConnectInit lk.salyk.kg [13:26:05]written 0, free lines is 4095 [13:26:05]Connected sock=10 [13:26:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D E4 07 01 84 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 72 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 08 00 00 00 00 07 04 06 00 40 51 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 6D DC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FD B2 01 00 35 04 06 00 1A EB 2E 14 61 53 D6 2E 4B 45 D9 D4 C9 E9 [13:26:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 57 44 47 00 F0 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 35 30 38 33 10 04 04 00 FD B2 01 00 F4 03 04 00 D5 73 72 66 B6 04 01 00 00 02 D1 A8 73 85 B1 6E C2 [13:26:05]CommunicateWithHost err = 0 [13:26:05]CheckOFDResponse [13:26:05]1017 (14) - 77093643461234 [13:26:05]1041 (16) - 0000000000875083 [13:26:05]1040 (4) - 111357 [13:26:05]1012 (4) - 19.06.2024 05:59 [13:26:05]1206 (1) - 0 [13:26:05]OFD Sender: Remove packet 111357 [13:26:05]ProducePacketName [13:26:05]name=ofd_packets/00111357 [13:26:05]NVStorageDeleteData [13:26:05]Write to MH i2c: 01 00 00 14 07 1B [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 14 07 00 00 00 00 00 DC 0C 0A [13:26:05]RasterBufferAndPrint [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]written 0, free lines is 3299 [13:26:05]MH_Cut [13:26:05]Write to MH i2c: D1 01 00 1B 07 01 F4 [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: D1 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: D1 01 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: D1 01 00 1B 07 00 F3 [13:26:05]Write to MH i2c: 01 00 00 1C 07 23 [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]OFD Sender: No OFD packet to send [13:26:06]*** Cut start [13:26:06]*** Partial cut [13:26:06]*** CUTSNS_PIN = 1 [13:26:06]*** CUTSNS_PIN = 0 [13:26:06]*** Brake cut motor [13:26:06]Read from MH i2c: 01 [13:26:06]MH_I2C_Read... [13:26:06]*** Stop cut motor [13:26:06]*** Cut end [13:26:06]Read from MH i2c: 01 07 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: 01 07 00 1C 07 00 00 00 00 00 FF 0F 38 [13:26:06]process_action close_receipt done [13:26:06]requested_data is exist [13:26:06]produce_requested_data [13:26:06]requested_item fm.sn is exist - process it [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 11 00 00 [13:26:06]Write to MH i2c: E2 08 00 1D 07 80 11 00 00 00 00 00 00 9E [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 17 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 17 00 1D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F0 [13:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:26:06]wFMCommunicate OK [13:26:06]requested_item fd.num is exist - process it [13:26:06]SAM_PROTO_GetFieldsCounters [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 13 00 00 [13:26:06]Write to MH i2c: E2 08 00 1E 07 80 13 00 00 00 00 00 00 A1 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:07]Read from MH i2c: E2 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 62 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 62 00 1E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [13:26: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:07]wFMCommunicate OK [13:26:07]SAM_PROTO_GetFieldsCounters done [13:26:07]requested_item shift.num is exist - process it [13:26:07]requested_item shift.opened is exist - process it [13:26:07]req_shift_opened [13:26:07]FM_GetShiftState [13:26:07]SAM_PROTO_GetShiftState [13:26:07]wFMCommunicate request_size=4 [13:26:07]MH_SAM_APDU [13:26:07]CAPDU: 80 13 01 00 [13:26:07]Write to MH i2c: E2 08 00 1F 07 80 13 01 00 00 00 00 00 A3 [13:26:07]Write i2c OK [13:26:07]MH_I2C_Read... [13:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:07]Read from MH i2c: E2 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 0E 00 [13:26:07]MH_I2C_Read... [13:26:07]Read from MH i2c: E2 0E 00 1F 07 00 09 00 01 31 35 72 66 00 00 00 00 90 00 ED [13:26:07]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:26:07]wFMCommunicate OK [13:26:07]SAM_PROTO_GetShiftState done [13:26:07]FM_GetShiftState done [13:26:07]req_shift_opened done [13:26:07]requested_item shift.open_date is exist - process it [13:26:07]req_shift_open_date [13:26:07]req_shift_open_date done [13:26:07]produce_requested_data done [13:26:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111357,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:26:07]process_action_free close_receipt [13:26:07]json_value_free [13:26:07]json_value_free done [13:26:07]process_json_proto returns [13:26:07]Send response to host [13:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111357,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:26:07]free response buf [13:26:07]execute_script done [13:26:07]execute_script returns [13:26:07]free content buf [13:26:07]Sock 7.Close socket [13:26:07]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:28]accept exits with 9 [13:27:28]New connection [13:27:28]New thread 3067465060 created [13:27:28]Thread 3067321700 joined [13:27:28]Waiting for new connection... [13:27:28] Sock 9.Parse request [13:27:28]Sock 9.Check first char [13:27:28]Sock 9.First char is OK [13:27:28]request: POST /json_proto HTTP/1.0 [13:27:28]Method: POST [13:27:28]URL: /json_proto [13:27:28]Method is POST - this is cgi request [13:27:28]url: /json_proto [13:27:28]query_string will be loaded in cgi processing [13:27:28]execute_cgi json_proto POST (null) [13:27:28]execute_cgi path=json_proto method=POST [13:27:28]POST find Content-Length [13:27:28]Host: 172.17.59.68:8080 [13:27:28]Content-Length: 1200 [13:27:28]Content-Type: application/json [13:27:28] [13:27:28]POST finish read [13:27:28]Found Content-Length = 1200 [13:27:28]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319931\u000A19.06.2024 11:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:28]execute_script... [13:27:28]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319931\u000A19.06.2024 11:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:28]POST & json_proto [13:27:28]process_json_proto [13:27:28]json parsed OK: [13:27:28]protocol is kg_v1.0 [13:27:28]action value=print_text [13:27:28]process_action print_text [13:27:28]cmd_print_text [13:27:28]ExternCall_PrintAddStr [13:27:28]wPrintStart [13:27:28]Write to MH i2c: 01 00 00 20 07 27 [13:27:28]Write i2c OK [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: 01 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: 01 07 00 [13:27:28]MH_I2C_Read... [13:27:28]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 FF 0F 3C [13:27:28]RasterBufferAndPrint [13:27:28]line *****ТОВАРНЫЙ ЧЕК***** [13:27:28]line АЗС 65 [13:27:28]line Партнер нефть [13:27:28]line 02508201610067 [13:27:28]line Кассир : Амантуров Р. [13:27:28]line Счет N : (1)319931 [13:27:28]line 19.06.2024 11:55 [13:27:28]line ПРОДАЖА [13:27:28]line ТРК (МРК, ГНК): 11 [13:27:28]line Вид ГСМ : 2710124130 [13:27:28]line Аи-92-К-5 [13:27:28]line 15.000 x 66.40 [13:27:28]line ИТОГ: 996.00 [13:27:28]line Тип оплаты: Талоны: Топливная Карта [13:27:28]line 01591 [13:27:28]line ______________________ [13:27:28]line (подпись) [13:27:28]written 0, free lines is 4095 [13:27:29]Write to MH i2c: 01 00 00 34 07 3B [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: 01 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: 01 07 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: 01 07 00 34 07 00 00 00 00 00 0F 0E 5F [13:27:29]RasterBufferAndPrint [13:27:29]line [13:27:29]line [13:27:29]line [13:27:29]line [13:27:29]line [13:27:29]written 0, free lines is 3601 [13:27:29]MH_Cut [13:27:29]Write to MH i2c: D1 01 00 3B 07 01 14 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: D1 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: D1 01 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: D1 01 00 3B 07 00 13 [13:27:29]Write to MH i2c: 01 00 00 3C 07 43 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]*** Cut start [13:27:29]*** Partial cut [13:27:29]*** CUTSNS_PIN = 1 [13:27:29]*** CUTSNS_PIN = 0 [13:27:29]*** Brake cut motor [13:27:30]Read from MH i2c: 01 [13:27:30]MH_I2C_Read... [13:27:30]*** Stop cut motor [13:27:30]*** Cut end [13:27:30]Read from MH i2c: 01 07 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: 01 07 00 3C 07 00 00 00 00 00 FF 0F 58 [13:27:30]process_action print_text done [13:27:30]requested_data is exist [13:27:30]produce_requested_data [13:27:30]requested_item fm.sn is exist - process it [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 11 00 00 [13:27:30]Write to MH i2c: E2 08 00 3D 07 80 11 00 00 00 00 00 00 BE [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 17 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 17 00 3D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 10 [13:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:27:30]wFMCommunicate OK [13:27:30]requested_item fd.num is exist - process it [13:27:30]SAM_PROTO_GetFieldsCounters [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 13 00 00 [13:27:30]Write to MH i2c: E2 08 00 3E 07 80 13 00 00 00 00 00 00 C1 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 62 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 62 00 3E 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [13:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FD B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:30]wFMCommunicate OK [13:27:30]SAM_PROTO_GetFieldsCounters done [13:27:30]requested_item shift.num is exist - process it [13:27:30]requested_item shift.opened is exist - process it [13:27:30]req_shift_opened [13:27:30]FM_GetShiftState [13:27:30]SAM_PROTO_GetShiftState [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 13 01 00 [13:27:30]Write to MH i2c: E2 08 00 3F 07 80 13 01 00 00 00 00 00 C3 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 0E 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 0E 00 3F 07 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0D [13:27:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:27:30]wFMCommunicate OK [13:27:30]SAM_PROTO_GetShiftState done [13:27:30]FM_GetShiftState done [13:27:30]req_shift_opened done [13:27:30]requested_item shift.open_date is exist - process it [13:27:30]req_shift_open_date [13:27:30]req_shift_open_date done [13:27:30]produce_requested_data done [13:27:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111357,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:27:30]process_action_free print_text [13:27:30]json_value_free [13:27:30]json_value_free done [13:27:30]process_json_proto returns [13:27:30]Send response to host [13:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111357,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:27:30]free response buf [13:27:30]execute_script done [13:27:30]execute_script returns [13:27:30]free content buf [13:27:30]Sock 9.Close socket [13:27:30]Sock 9.Thread stoped [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:12]accept exits with 7 [13:29:12]New connection [13:29:12]New thread 3067321700 created [13:29:12]Thread 3067465060 joined [13:29:12]Waiting for new connection... [13:29:12] Sock 7.Parse request [13:29:12]Sock 7.Check first char [13:29:12]Sock 7.First char is OK [13:29:12]request: POST /json_proto HTTP/1.0 [13:29:12]Method: POST [13:29:12]URL: /json_proto [13:29:12]Method is POST - this is cgi request [13:29:12]url: /json_proto [13:29:12]query_string will be loaded in cgi processing [13:29:12]execute_cgi json_proto POST (null) [13:29:12]execute_cgi path=json_proto method=POST [13:29:12]POST find Content-Length [13:29:12]Host: 172.17.59.68:8080 [13:29:12]Content-Length: 677 [13:29:12]Content-Type: application/json [13:29:12] [13:29:12]POST finish read [13:29:12]Found Content-Length = 677 [13:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:29:12]execute_script... [13:29: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)319932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:29:12]POST & json_proto [13:29:12]process_json_proto [13:29:12]json parsed OK: [13:29:12]protocol is kg_v1.0 [13:29:12]action value=close_receipt [13:29:12]process_action close_receipt [13:29:12]cmd_close_receipt [13:29:12]MH_GetDate [13:29:12]Write to MH i2c: F0 00 00 40 07 36 [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: F0 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: F0 09 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: F0 09 00 40 07 00 2A DD 72 66 BC EC 60 65 8B [13:29:12]GetLastDocTimeStamp 1718803565 [13:29:12]current date 1718803754 [13:29:12]FM_GetShiftState [13:29:12]SAM_PROTO_GetShiftState [13:29:12]wFMCommunicate request_size=4 [13:29:12]MH_SAM_APDU [13:29:12]CAPDU: 80 13 01 00 [13:29:12]Write to MH i2c: E2 08 00 41 07 80 13 01 00 00 00 00 00 C5 [13:29:12]Write i2c OK [13:29:12]MH_I2C_Read... [13:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:12]Read from MH i2c: E2 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 0E 00 [13:29:12]MH_I2C_Read... [13:29:12]Read from MH i2c: E2 0E 00 41 07 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0F [13:29:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:29:12]wFMCommunicate OK [13:29:12]SAM_PROTO_GetShiftState done [13:29:12]FM_GetShiftState done [13:29:12]opened in 1718760753 [13:29:12]opened+sec_in_day 1718847153 [13:29:12]quantity*price = 30012 [13:29:12]sum+1 = 30014 [13:29:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 107 19.06.2024 13:29 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111358 ФПД: 104227323715012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T132914&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111358&fm=104227323715012&tin=02508201610067®Number=0000000000092771&sum=30000 [13:29:13]StoreToDocumentArchive [13:29:13]shift 388 fd 111358 [13:29:13]save to /storage/0388/doc_00111358 [13:29:13]save last doc name /storage/0388/doc_00111358 to /storage/kkm_last_doc_name [13:29:13]save OK [13:29:13]Clear old archive folders... [13:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:13]tlvbuf is 00F3A3A0 [13:29:13]SAM_PROTO_ClearQueue [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 09 00 00 [13:29:13]Write to MH i2c: E2 08 00 4E 07 80 09 00 00 00 00 00 00 C7 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [13:29:13]RAPDU: 90 00 [13:29:13]wFMCommunicate OK [13:29:13]SAM_PROTO_ClearQueue done [13:29:13]KKMCreateOFDPacket [13:29:13]OFDProtocolAddRootSTLVToBuf [13:29:13]FM_MakeSignedData [13:29:13]FM_MakeSignedData [13:29:13]SAM_PROTO_SignData [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 0D 01 02 [13:29:13]Write to MH i2c: E2 08 00 4F 07 80 0D 01 02 00 00 00 00 CF [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 4F 07 00 90 00 CA [13:29:13]RAPDU: 90 00 [13:29:13]wFMCommunicate OK [13:29:13]wFMCommunicate request_size=255 [13:29:13]MH_SAM_APDU [13:29: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 2A DD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B2 01 00 35 04 06 00 5E [13:29:13]Write to MH i2c: E2 02 01 50 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 2A DD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B2 01 00 35 04 06 00 5E 00 00 FF [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [13:29:13]RAPDU: 90 00 [13:29:13]wFMCommunicate OK [13:29:13]wFMCommunicate request_size=10 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 0D 02 02 05 CB 50 9B 1D C4 [13:29:13]Write to MH i2c: E2 0D 00 51 07 80 0D 02 02 05 00 CB 50 9B 1D C4 00 00 73 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 03 00 51 07 00 90 00 CC [13:29:13]RAPDU: 90 00 [13:29:13]wFMCommunicate OK [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 0D 03 02 [13:29:13]Write to MH i2c: E2 08 00 52 07 80 0D 03 02 00 00 00 00 D4 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0B 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0B 00 52 07 00 F5 77 CD D0 0F 38 8E 43 90 00 F6 [13:29:13]RAPDU: F5 77 CD D0 0F 38 8E 43 90 00 [13:29:13]wFMCommunicate OK [13:29:13]SAM_PROTO_SignData done [13:29:13]FM_MakeSignedData done [13:29:13]CreateOFDProtocolMessage [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 11 00 00 [13:29:13]Write to MH i2c: E2 08 00 53 07 80 11 00 00 00 00 00 00 D4 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 17 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 17 00 53 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [13:29:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:13]wFMCommunicate OK [13:29:13]CreateOFDProtocolMessage done [13:29:13]OFDSenderStorePacket 111358 [13:29:13]StoreOFDPacket docnum=111358 [13:29:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E4 EC 07 01 C6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 2A DD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B2 01 00 35 04 06 00 5E CB 50 9B 1D C4 F5 77 CD D0 0F 38 8E 43 [13:29:13]CheckFolder [13:29:13]dirname=/storage/ofd_packets [13:29:13]CheckFolder done [13:29:13]ProducePacketName [13:29:13]name=ofd_packets/00111358 [13:29:13]NVStorageSaveData ofd_packets/00111358 [13:29:13]File name is /storage/ofd_packets/00111358 [13:29:13]Write 301 bytes [13:29:13]NVStorageSaveData done [13:29:13]OFDSenderStorePacket done [13:29:13]KKMCreateOFDPacket done [13:29:13]NVStorageSaveData kkm_last_timestamp [13:29:13]File name is /storage/kkm_last_timestamp [13:29:13]Write 4 bytes [13:29:13]NVStorageSaveData done [13:29:13]ExternCall_PrintAddStr [13:29:13]wPrintStart [13:29:13]Write to MH i2c: 01 00 00 54 07 5B [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 07 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: 01 07 00 54 07 00 00 00 00 00 FF 0F 70 [13:29:13]RasterBufferAndPrint [13:29:13]line Счет N : (1)319932 [13:29:13]line ИНН: 02508201610067 [13:29:13]line Контрольно-Кассовый Чек [13:29:13]line ПРОДАЖА [13:29:13]line ТРК (МРК, ГНК) : 11 [13:29:13]line Товар: 2710124130 [13:29:13]line Аи-92-К-5 [13:29:13]line 4.520 * 66.40 [13:29:13]line = 300.13 [13:29:13]line НДС 12% НСП 1% [13:29:13]line > о реализуемом товаре [13:29:13]line ОКРУГЛЕНИЕ: -0.13 [13:29:13]line ИТОГО: 300.00 [13:29:13]line Внесено: 300.00 [13:29:13]line СДАЧА: 0.00 [13:29:13]line НСП 1% : 2.66 [13:29:13]line НДС 12% : 31.87 [13:29:13]line Наличными: 300.00 [13:29:13]line Безнал.: 0.00 [13:29:13]line Место: АЗС № 65 "Партнер Нефть" [13:29:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:29:13]line СНО: Общий режим [13:29:13]line Чек 107 19.06.2024 13:29 [13:29:13]line Смена: 388 ФФД: 1.0 [13:29:13]line ЗНМ: 0300000198 [13:29:13]line РНМ: 0000000000092771 [13:29:13]line Версия ККМ: 001 [13:29:13]line ФМ: 0000000000875083 [13:29:13]line ФД: 111358 [13:29:13]line ФПД: 104227323715012 [13:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T132914&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111358&fm=104227323715012&tin=02508201610067®Number=0000000000092771&sum=30000 [13:29:14]OFD Sender: Processing packet 111358 [packets to send 38, broken 37] [13:29:14]ProducePacketName [13:29:14]name=ofd_packets/00111358 [13:29:14]OFD Sender: To server: pG, [13:29:14]CommunicateWithHost lk.salyk.kg:30040 [13:29:14]ConnectInit lk.salyk.kg [13:29:14]written 0, free lines is 4095 [13:29:14]Connected sock=10 [13:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E4 EC 07 01 C6 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 2A DD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FE B2 01 00 35 04 06 00 5E CB 50 9B 1D C4 F5 77 CD D0 0F 38 8E 43 [13:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 61 24 47 00 1D 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 35 30 38 33 10 04 04 00 FE B2 01 00 F4 03 04 00 92 74 72 66 B6 04 01 00 00 24 6D 2E B4 D6 23 D9 D2 [13:29:14]CommunicateWithHost err = 0 [13:29:14]CheckOFDResponse [13:29:14]1017 (14) - 77093643461234 [13:29:14]1041 (16) - 0000000000875083 [13:29:14]1040 (4) - 111358 [13:29:14]1012 (4) - 19.06.2024 06:02 [13:29:14]1206 (1) - 0 [13:29:14]OFD Sender: Remove packet 111358 [13:29:14]ProducePacketName [13:29:14]name=ofd_packets/00111358 [13:29:14]NVStorageDeleteData [13:29:14]Write to MH i2c: 01 00 00 7F 07 86 [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 07 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 D7 0C 70 [13:29:14]RasterBufferAndPrint [13:29:14]line [13:29:14]line [13:29:14]line [13:29:14]line [13:29:14]line [13:29:14]written 0, free lines is 3294 [13:29:14]MH_Cut [13:29:14]Write to MH i2c: D1 01 00 86 07 01 5F [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: D1 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: D1 01 00 [13:29:14]MH_I2C_Read... [13:29:14]Read from MH i2c: D1 01 00 86 07 00 5E [13:29:14]Write to MH i2c: 01 00 00 87 07 8E [13:29:14]Write i2c OK [13:29:14]MH_I2C_Read... [13:29:15]OFD Sender: No OFD packet to send [13:29:15]*** Cut start [13:29:15]*** Partial cut [13:29:15]*** CUTSNS_PIN = 1 [13:29:15]*** CUTSNS_PIN = 0 [13:29:15]*** Brake cut motor [13:29:16]Read from MH i2c: 01 [13:29:16]MH_I2C_Read... [13:29:16]*** Stop cut motor [13:29:16]*** Cut end [13:29:16]Read from MH i2c: 01 07 00 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: 01 07 00 87 07 00 00 00 00 00 FF 0F A3 [13:29:16]process_action close_receipt done [13:29:16]requested_data is exist [13:29:16]produce_requested_data [13:29:16]requested_item fm.sn is exist - process it [13:29:16]wFMCommunicate request_size=4 [13:29:16]MH_SAM_APDU [13:29:16]CAPDU: 80 11 00 00 [13:29:16]Write to MH i2c: E2 08 00 88 07 80 11 00 00 00 00 00 00 09 [13:29:16]Write i2c OK [13:29:16]MH_I2C_Read... [13:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:16]Read from MH i2c: E2 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: E2 17 00 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: E2 17 00 88 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [13:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:29:16]wFMCommunicate OK [13:29:16]requested_item fd.num is exist - process it [13:29:16]SAM_PROTO_GetFieldsCounters [13:29:16]wFMCommunicate request_size=4 [13:29:16]MH_SAM_APDU [13:29:16]CAPDU: 80 13 00 00 [13:29:16]Write to MH i2c: E2 08 00 89 07 80 13 00 00 00 00 00 00 0C [13:29:16]Write i2c OK [13:29:16]MH_I2C_Read... [13:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:16]Read from MH i2c: E2 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: E2 62 00 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: E2 62 00 89 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [13:29: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FE B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:16]wFMCommunicate OK [13:29:16]SAM_PROTO_GetFieldsCounters done [13:29:16]requested_item shift.num is exist - process it [13:29:16]requested_item shift.opened is exist - process it [13:29:16]req_shift_opened [13:29:16]FM_GetShiftState [13:29:16]SAM_PROTO_GetShiftState [13:29:16]wFMCommunicate request_size=4 [13:29:16]MH_SAM_APDU [13:29:16]CAPDU: 80 13 01 00 [13:29:16]Write to MH i2c: E2 08 00 8A 07 80 13 01 00 00 00 00 00 0E [13:29:16]Write i2c OK [13:29:16]MH_I2C_Read... [13:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:16]Read from MH i2c: E2 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: E2 0E 00 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: E2 0E 00 8A 07 00 09 00 01 31 35 72 66 00 00 00 00 90 00 58 [13:29:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:29:16]wFMCommunicate OK [13:29:16]SAM_PROTO_GetShiftState done [13:29:16]FM_GetShiftState done [13:29:16]req_shift_opened done [13:29:16]requested_item shift.open_date is exist - process it [13:29:16]req_shift_open_date [13:29:16]req_shift_open_date done [13:29:16]produce_requested_data done [13:29:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111358,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:29:16]process_action_free close_receipt [13:29:16]json_value_free [13:29:16]json_value_free done [13:29:16]process_json_proto returns [13:29:16]Send response to host [13:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111358,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:29:16]free response buf [13:29:16]execute_script done [13:29:16]execute_script returns [13:29:16]free content buf [13:29:16]Sock 7.Close socket [13:29:16]Sock 7.Thread stoped [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:41]accept exits with 9 [13:40:41]New connection [13:40:41]New thread 3067465060 created [13:40:41]Thread 3067321700 joined [13:40:41]Waiting for new connection... [13:40:41] Sock 9.Parse request [13:40:41]Sock 9.Check first char [13:40:41]Sock 9.First char is OK [13:40:41]request: POST /json_proto HTTP/1.0 [13:40:41]Method: POST [13:40:41]URL: /json_proto [13:40:41]Method is POST - this is cgi request [13:40:41]url: /json_proto [13:40:41]query_string will be loaded in cgi processing [13:40:41]execute_cgi json_proto POST (null) [13:40:41]execute_cgi path=json_proto method=POST [13:40:41]POST find Content-Length [13:40:41]Host: 172.17.59.68:8080 [13:40:41]Content-Length: 682 [13:40:41]Content-Type: application/json [13:40:41] [13:40:41]POST finish read [13:40:41]Found Content-Length = 682 [13:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:41]execute_script... [13: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)319933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:40:41]POST & json_proto [13:40:41]process_json_proto [13:40:41]json parsed OK: [13:40:41]protocol is kg_v1.0 [13:40:41]action value=close_receipt [13:40:41]process_action close_receipt [13:40:41]cmd_close_receipt [13:40:41]MH_GetDate [13:40:41]Write to MH i2c: F0 00 00 8B 07 81 [13:40:41]Write i2c OK [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: F0 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: F0 09 00 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: F0 09 00 8B 07 00 DB DF 72 66 BC EC 60 65 89 [13:40:41]GetLastDocTimeStamp 1718803754 [13:40:41]current date 1718804443 [13:40:41]FM_GetShiftState [13:40:41]SAM_PROTO_GetShiftState [13:40:41]wFMCommunicate request_size=4 [13:40:41]MH_SAM_APDU [13:40:41]CAPDU: 80 13 01 00 [13:40:41]Write to MH i2c: E2 08 00 8C 07 80 13 01 00 00 00 00 00 10 [13:40:41]Write i2c OK [13:40:41]MH_I2C_Read... [13:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:41]Read from MH i2c: E2 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 0E 00 [13:40:41]MH_I2C_Read... [13:40:41]Read from MH i2c: E2 0E 00 8C 07 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5A [13:40:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:40:41]wFMCommunicate OK [13:40:41]SAM_PROTO_GetShiftState done [13:40:41]FM_GetShiftState done [13:40:41]opened in 1718760753 [13:40:41]opened+sec_in_day 1718847153 [13:40:41]quantity*price = 120051 [13:40:41]sum+1 = 120052 [13:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 108 19.06.2024 13:40 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111359 ФПД: 271274846202020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134043&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111359&fm=271274846202020&tin=02508201610067®Number=0000000000092771&sum=120000 [13:40:42]StoreToDocumentArchive [13:40:42]shift 388 fd 111359 [13:40:42]save to /storage/0388/doc_00111359 [13:40:42]save last doc name /storage/0388/doc_00111359 to /storage/kkm_last_doc_name [13:40:42]save OK [13:40:42]Clear old archive folders... [13:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:42]tlvbuf is 00F3EC20 [13:40:42]SAM_PROTO_ClearQueue [13:40:42]wFMCommunicate request_size=4 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 09 00 00 [13:40:42]Write to MH i2c: E2 08 00 99 07 80 09 00 00 00 00 00 00 12 [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 99 07 00 90 00 14 [13:40:42]RAPDU: 90 00 [13:40:42]wFMCommunicate OK [13:40:42]SAM_PROTO_ClearQueue done [13:40:42]KKMCreateOFDPacket [13:40:42]OFDProtocolAddRootSTLVToBuf [13:40:42]FM_MakeSignedData [13:40:42]FM_MakeSignedData [13:40:42]SAM_PROTO_SignData [13:40:42]wFMCommunicate request_size=4 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 0D 01 02 [13:40:42]Write to MH i2c: E2 08 00 9A 07 80 0D 01 02 00 00 00 00 1A [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 9A 07 00 90 00 15 [13:40:42]RAPDU: 90 00 [13:40:42]wFMCommunicate OK [13:40:42]wFMCommunicate request_size=255 [13:40:42]MH_SAM_APDU [13: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DB DF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B2 01 00 35 04 06 00 F6 [13:40:42]Write to MH i2c: E2 02 01 9B 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DB DF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B2 01 00 35 04 06 00 F6 00 00 58 [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 9B 07 00 90 00 16 [13:40:42]RAPDU: 90 00 [13:40:42]wFMCommunicate OK [13:40:42]wFMCommunicate request_size=10 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 0D 02 02 05 B9 18 D8 28 A4 [13:40:42]Write to MH i2c: E2 0D 00 9C 07 80 0D 02 02 05 00 B9 18 D8 28 A4 00 00 9C [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 03 00 9C 07 00 90 00 17 [13:40:42]RAPDU: 90 00 [13:40:42]wFMCommunicate OK [13:40:42]wFMCommunicate request_size=4 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 0D 03 02 [13:40:42]Write to MH i2c: E2 08 00 9D 07 80 0D 03 02 00 00 00 00 1F [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 0B 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 0B 00 9D 07 00 E3 7F 91 F8 12 2D 5B 17 90 00 BC [13:40:42]RAPDU: E3 7F 91 F8 12 2D 5B 17 90 00 [13:40:42]wFMCommunicate OK [13:40:42]SAM_PROTO_SignData done [13:40:42]FM_MakeSignedData done [13:40:42]CreateOFDProtocolMessage [13:40:42]wFMCommunicate request_size=4 [13:40:42]MH_SAM_APDU [13:40:42]CAPDU: 80 11 00 00 [13:40:42]Write to MH i2c: E2 08 00 9E 07 80 11 00 00 00 00 00 00 1F [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:42]Read from MH i2c: E2 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 17 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: E2 17 00 9E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [13:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:40:42]wFMCommunicate OK [13:40:42]CreateOFDProtocolMessage done [13:40:42]OFDSenderStorePacket 111359 [13:40:42]StoreOFDPacket docnum=111359 [13:40:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D9 FC 07 01 1A 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DB DF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B2 01 00 35 04 06 00 F6 B9 18 D8 28 A4 E3 7F 91 F8 12 2D 5B 17 [13:40:42]CheckFolder [13:40:42]dirname=/storage/ofd_packets [13:40:42]CheckFolder done [13:40:42]ProducePacketName [13:40:42]name=ofd_packets/00111359 [13:40:42]NVStorageSaveData ofd_packets/00111359 [13:40:42]File name is /storage/ofd_packets/00111359 [13:40:42]Write 301 bytes [13:40:42]NVStorageSaveData done [13:40:42]OFDSenderStorePacket done [13:40:42]KKMCreateOFDPacket done [13:40:42]NVStorageSaveData kkm_last_timestamp [13:40:42]File name is /storage/kkm_last_timestamp [13:40:42]Write 4 bytes [13:40:42]NVStorageSaveData done [13:40:42]ExternCall_PrintAddStr [13:40:42]wPrintStart [13:40:42]Write to MH i2c: 01 00 00 9F 07 A6 [13:40:42]Write i2c OK [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 07 00 [13:40:42]MH_I2C_Read... [13:40:42]Read from MH i2c: 01 07 00 9F 07 00 00 00 00 00 FF 0F BB [13:40:42]RasterBufferAndPrint [13:40:42]line Счет N : (1)319933 [13:40:42]line ИНН: 02508201610067 [13:40:42]line Контрольно-Кассовый Чек [13:40:42]line ПРОДАЖА [13:40:42]line ТРК (МРК, ГНК) : 11 [13:40:42]line Товар: 2710124130 [13:40:42]line Аи-92-К-5 [13:40:42]line 18.080 * 66.40 [13:40:42]line = 1200.51 [13:40:42]line НДС 12% НСП 1% [13:40:42]line > о реализуемом товаре [13:40:42]line ОКРУГЛЕНИЕ: -0.51 [13:40:42]line ИТОГО: 1200.00 [13:40:42]line Внесено: 1200.00 [13:40:42]line СДАЧА: 0.00 [13:40:42]line НСП 1% : 10.62 [13:40:42]line НДС 12% : 127.49 [13:40:42]line Наличными: 1200.00 [13:40:42]line Безнал.: 0.00 [13:40:42]line Место: АЗС № 65 "Партнер Нефть" [13:40:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:40:42]line СНО: Общий режим [13:40:42]line Чек 108 19.06.2024 13:40 [13:40:42]line Смена: 388 ФФД: 1.0 [13:40:42]line ЗНМ: 0300000198 [13:40:42]line РНМ: 0000000000092771 [13:40:42]line Версия ККМ: 001 [13:40:42]line ФМ: 0000000000875083 [13:40:42]line ФД: 111359 [13:40:42]line ФПД: 271274846202020 [13:40:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134043&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111359&fm=271274846202020&tin=02508201610067®Number=0000000000092771&sum=120000 [13:40:42]written 0, free lines is 4095 [13:40:42]OFD Sender: Processing packet 111359 [packets to send 38, broken 37] [13:40:42]ProducePacketName [13:40:42]name=ofd_packets/00111359 [13:40:42]OFD Sender: To server: pG, [13:40:42]CommunicateWithHost lk.salyk.kg:30040 [13:40:42]ConnectInit lk.salyk.kg [13:40:43]Connected sock=10 [13: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 35 30 38 33 0F 01 00 00 D9 FC 07 01 1A 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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DB DF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B2 01 00 35 04 06 00 F6 B9 18 D8 28 A4 E3 7F 91 F8 12 2D 5B 17 [13:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5B 06 47 00 75 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 FF B2 01 00 F4 03 04 00 43 77 72 66 B6 04 01 00 00 5E 1E B1 13 F4 6D C8 A7 [13:40:43]CommunicateWithHost err = 0 [13:40:43]CheckOFDResponse [13:40:43]1017 (14) - 77093643461234 [13:40:43]1041 (16) - 0000000000875083 [13:40:43]1040 (4) - 111359 [13:40:43]1012 (4) - 19.06.2024 06:14 [13:40:43]1206 (1) - 0 [13:40:43]OFD Sender: Remove packet 111359 [13:40:43]ProducePacketName [13:40:43]name=ofd_packets/00111359 [13:40:43]NVStorageDeleteData [13:40:43]Write to MH i2c: 01 00 00 CA 07 D1 [13:40:43]Write i2c OK [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: 01 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: 01 07 00 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: 01 07 00 CA 07 00 00 00 00 00 EA 0C CE [13:40:43]RasterBufferAndPrint [13:40:43]line [13:40:43]line [13:40:43]line [13:40:43]line [13:40:43]line [13:40:43]written 0, free lines is 3312 [13:40:43]MH_Cut [13:40:43]Write to MH i2c: D1 01 00 D1 07 01 AA [13:40:43]Write i2c OK [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: D1 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: D1 01 00 [13:40:43]MH_I2C_Read... [13:40:43]Read from MH i2c: D1 01 00 D1 07 00 A9 [13:40:43]Write to MH i2c: 01 00 00 D2 07 D9 [13:40:43]Write i2c OK [13:40:43]MH_I2C_Read... [13:40:43]OFD Sender: No OFD packet to send [13:40:44]*** Cut start [13:40:44]*** Partial cut [13:40:44]*** CUTSNS_PIN = 1 [13:40:44]*** CUTSNS_PIN = 0 [13:40:44]*** Brake cut motor [13:40:44]Read from MH i2c: 01 [13:40:44]MH_I2C_Read... [13:40:44]*** Stop cut motor [13:40:44]*** Cut end [13:40:44]Read from MH i2c: 01 07 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: 01 07 00 D2 07 00 00 00 00 00 FF 0F EE [13:40:44]process_action close_receipt done [13:40:44]requested_data is exist [13:40:44]produce_requested_data [13:40:44]requested_item fm.sn is exist - process it [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 11 00 00 [13:40:44]Write to MH i2c: E2 08 00 D3 07 80 11 00 00 00 00 00 00 54 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 17 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 17 00 D3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [13:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:40:44]wFMCommunicate OK [13:40:44]requested_item fd.num is exist - process it [13:40:44]SAM_PROTO_GetFieldsCounters [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 13 00 00 [13:40:44]Write to MH i2c: E2 08 00 D4 07 80 13 00 00 00 00 00 00 57 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 62 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 62 00 D4 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [13:40: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 FF B2 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:44]wFMCommunicate OK [13:40:44]SAM_PROTO_GetFieldsCounters done [13:40:44]requested_item shift.num is exist - process it [13:40:44]requested_item shift.opened is exist - process it [13:40:44]req_shift_opened [13:40:44]FM_GetShiftState [13:40:44]SAM_PROTO_GetShiftState [13:40:44]wFMCommunicate request_size=4 [13:40:44]MH_SAM_APDU [13:40:44]CAPDU: 80 13 01 00 [13:40:44]Write to MH i2c: E2 08 00 D5 07 80 13 01 00 00 00 00 00 59 [13:40:44]Write i2c OK [13:40:44]MH_I2C_Read... [13:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:44]Read from MH i2c: E2 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0E 00 [13:40:44]MH_I2C_Read... [13:40:44]Read from MH i2c: E2 0E 00 D5 07 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A3 [13:40:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:40:44]wFMCommunicate OK [13:40:44]SAM_PROTO_GetShiftState done [13:40:44]FM_GetShiftState done [13:40:44]req_shift_opened done [13:40:44]requested_item shift.open_date is exist - process it [13:40:44]req_shift_open_date [13:40:44]req_shift_open_date done [13:40:44]produce_requested_data done [13:40:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111359,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:40:44]process_action_free close_receipt [13:40:44]json_value_free [13:40:44]json_value_free done [13:40:44]process_json_proto returns [13:40:44]Send response to host [13:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111359,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:40:44]free response buf [13:40:44]execute_script done [13:40:44]execute_script returns [13:40:44]free content buf [13:40:44]Sock 9.Close socket [13:40:44]Sock 9.Thread stoped [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:06]accept exits with 7 [13:42:06]New connection [13:42:06]New thread 3067321700 created [13:42:06]Thread 3067465060 joined [13:42:06]Waiting for new connection... [13:42:06] Sock 7.Parse request [13:42:06]Sock 7.Check first char [13:42:06]Sock 7.First char is OK [13:42:06]request: POST /json_proto HTTP/1.0 [13:42:06]Method: POST [13:42:06]URL: /json_proto [13:42:06]Method is POST - this is cgi request [13:42:06]url: /json_proto [13:42:06]query_string will be loaded in cgi processing [13:42:06]execute_cgi json_proto POST (null) [13:42:06]execute_cgi path=json_proto method=POST [13:42:06]POST find Content-Length [13:42:06]Host: 172.17.59.68:8080 [13:42:06]Content-Length: 678 [13:42:06]Content-Type: application/json [13:42:06] [13:42:06]POST finish read [13:42:06]Found Content-Length = 678 [13:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:42:06]execute_script... [13:42: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)319934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:42:06]POST & json_proto [13:42:06]process_json_proto [13:42:06]json parsed OK: [13:42:06]protocol is kg_v1.0 [13:42:06]action value=close_receipt [13:42:06]process_action close_receipt [13:42:06]cmd_close_receipt [13:42:06]MH_GetDate [13:42:06]Write to MH i2c: F0 00 00 D6 07 CC [13:42:06]Write i2c OK [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: F0 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: F0 09 00 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: F0 09 00 D6 07 00 31 E0 72 66 BC EC 60 65 2B [13:42:06]GetLastDocTimeStamp 1718804443 [13:42:06]current date 1718804529 [13:42:06]FM_GetShiftState [13:42:06]SAM_PROTO_GetShiftState [13:42:06]wFMCommunicate request_size=4 [13:42:06]MH_SAM_APDU [13:42:06]CAPDU: 80 13 01 00 [13:42:06]Write to MH i2c: E2 08 00 D7 07 80 13 01 00 00 00 00 00 5B [13:42:06]Write i2c OK [13:42:06]MH_I2C_Read... [13:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:06]Read from MH i2c: E2 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: E2 0E 00 [13:42:06]MH_I2C_Read... [13:42:06]Read from MH i2c: E2 0E 00 D7 07 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A5 [13:42:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:42:06]wFMCommunicate OK [13:42:06]SAM_PROTO_GetShiftState done [13:42:06]FM_GetShiftState done [13:42:06]opened in 1718760753 [13:42:06]opened+sec_in_day 1718847153 [13:42:06]quantity*price = 70052 [13:42:06]sum+1 = 70053 [13:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 109 19.06.2024 13:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111360 ФПД: 116281695929640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134209&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111360&fm=116281695929640&tin=02508201610067®Number=0000000000092771&sum=70000 [13:42:08]StoreToDocumentArchive [13:42:08]shift 388 fd 111360 [13:42:08]save to /storage/0388/doc_00111360 [13:42:08]save last doc name /storage/0388/doc_00111360 to /storage/kkm_last_doc_name [13:42:08]save OK [13:42:08]Clear old archive folders... [13:42:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:08]tlvbuf is 00EC5760 [13:42:08]SAM_PROTO_ClearQueue [13:42:08]wFMCommunicate request_size=4 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 09 00 00 [13:42:08]Write to MH i2c: E2 08 00 E4 07 80 09 00 00 00 00 00 00 5D [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 E4 07 00 90 00 5F [13:42:08]RAPDU: 90 00 [13:42:08]wFMCommunicate OK [13:42:08]SAM_PROTO_ClearQueue done [13:42:08]KKMCreateOFDPacket [13:42:08]OFDProtocolAddRootSTLVToBuf [13:42:08]FM_MakeSignedData [13:42:08]FM_MakeSignedData [13:42:08]SAM_PROTO_SignData [13:42:08]wFMCommunicate request_size=4 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 0D 01 02 [13:42:08]Write to MH i2c: E2 08 00 E5 07 80 0D 01 02 00 00 00 00 65 [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 E5 07 00 90 00 60 [13:42:08]RAPDU: 90 00 [13:42:08]wFMCommunicate OK [13:42:08]wFMCommunicate request_size=255 [13:42:08]MH_SAM_APDU [13:42: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6D 00 00 00 F4 03 04 00 31 E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B3 01 00 35 04 06 00 69 [13:42:08]Write to MH i2c: E2 02 01 E6 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6D 00 00 00 F4 03 04 00 31 E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B3 01 00 35 04 06 00 69 00 00 23 [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 E6 07 00 90 00 61 [13:42:08]RAPDU: 90 00 [13:42:08]wFMCommunicate OK [13:42:08]wFMCommunicate request_size=10 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 0D 02 02 05 C1 F1 2E 05 28 [13:42:08]Write to MH i2c: E2 0D 00 E7 07 80 0D 02 02 05 00 C1 F1 2E 05 28 00 00 7F [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 03 00 E7 07 00 90 00 62 [13:42:08]RAPDU: 90 00 [13:42:08]wFMCommunicate OK [13:42:08]wFMCommunicate request_size=4 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 0D 03 02 [13:42:08]Write to MH i2c: E2 08 00 E8 07 80 0D 03 02 00 00 00 00 6A [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 0B 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 0B 00 E8 07 00 95 D5 BC 32 C2 6B 4E 86 90 00 C4 [13:42:08]RAPDU: 95 D5 BC 32 C2 6B 4E 86 90 00 [13:42:08]wFMCommunicate OK [13:42:08]SAM_PROTO_SignData done [13:42:08]FM_MakeSignedData done [13:42:08]CreateOFDProtocolMessage [13:42:08]wFMCommunicate request_size=4 [13:42:08]MH_SAM_APDU [13:42:08]CAPDU: 80 11 00 00 [13:42:08]Write to MH i2c: E2 08 00 E9 07 80 11 00 00 00 00 00 00 6A [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:08]Read from MH i2c: E2 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 17 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: E2 17 00 E9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [13:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:42:08]wFMCommunicate OK [13:42:08]CreateOFDProtocolMessage done [13:42:08]OFDSenderStorePacket 111360 [13:42:08]StoreOFDPacket docnum=111360 [13:42:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E9 35 07 01 18 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6D 00 00 00 F4 03 04 00 31 E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B3 01 00 35 04 06 00 69 C1 F1 2E 05 28 95 D5 BC 32 C2 6B 4E 86 [13:42:08]CheckFolder [13:42:08]dirname=/storage/ofd_packets [13:42:08]CheckFolder done [13:42:08]ProducePacketName [13:42:08]name=ofd_packets/00111360 [13:42:08]NVStorageSaveData ofd_packets/00111360 [13:42:08]File name is /storage/ofd_packets/00111360 [13:42:08]Write 301 bytes [13:42:08]NVStorageSaveData done [13:42:08]OFDSenderStorePacket done [13:42:08]KKMCreateOFDPacket done [13:42:08]NVStorageSaveData kkm_last_timestamp [13:42:08]File name is /storage/kkm_last_timestamp [13:42:08]Write 4 bytes [13:42:08]NVStorageSaveData done [13:42:08]ExternCall_PrintAddStr [13:42:08]wPrintStart [13:42:08]Write to MH i2c: 01 00 00 EA 07 F1 [13:42:08]Write i2c OK [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: 01 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: 01 07 00 [13:42:08]MH_I2C_Read... [13:42:08]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 FF 0F 06 [13:42:08]RasterBufferAndPrint [13:42:08]line Счет N : (1)319934 [13:42:08]line ИНН: 02508201610067 [13:42:08]line Контрольно-Кассовый Чек [13:42:08]line ПРОДАЖА [13:42:08]line ТРК (МРК, ГНК) : 11 [13:42:08]line Товар: 2710124130 [13:42:08]line Аи-92-К-5 [13:42:08]line 10.550 * 66.40 [13:42:08]line = 700.52 [13:42:08]line НДС 12% НСП 1% [13:42:08]line > о реализуемом товаре [13:42:08]line ОКРУГЛЕНИЕ: -0.52 [13:42:08]line ИТОГО: 700.00 [13:42:08]line Внесено: 700.00 [13:42:08]line СДАЧА: 0.00 [13:42:08]line НСП 1% : 6.20 [13:42:08]line НДС 12% : 74.39 [13:42:08]line Наличными: 700.00 [13:42:08]line Безнал.: 0.00 [13:42:08]line Место: АЗС № 65 "Партнер Нефть" [13:42:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:42:08]line СНО: Общий режим [13:42:08]line Чек 109 19.06.2024 13:42 [13:42:08]line Смена: 388 ФФД: 1.0 [13:42:08]line ЗНМ: 0300000198 [13:42:08]line РНМ: 0000000000092771 [13:42:08]line Версия ККМ: 001 [13:42:08]line ФМ: 0000000000875083 [13:42:08]line ФД: 111360 [13:42:08]line ФПД: 116281695929640 [13:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134209&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111360&fm=116281695929640&tin=02508201610067®Number=0000000000092771&sum=70000 [13:42:08]OFD Sender: Processing packet 111360 [packets to send 38, broken 37] [13:42:08]ProducePacketName [13:42:08]name=ofd_packets/00111360 [13:42:08]OFD Sender: To server: pG, [13:42:08]CommunicateWithHost lk.salyk.kg:30040 [13:42:08]ConnectInit lk.salyk.kg [13:42:08]written 0, free lines is 4095 [13:42:08]Connected sock=10 [13:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E9 35 07 01 18 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6D 00 00 00 F4 03 04 00 31 E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B3 01 00 35 04 06 00 69 C1 F1 2E 05 28 95 D5 BC 32 C2 6B 4E 86 [13:42:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1F 03 47 00 97 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 00 B3 01 00 F4 03 04 00 99 77 72 66 B6 04 01 00 00 A1 87 A7 BA 09 A0 69 D5 [13:42:09]CommunicateWithHost err = 0 [13:42:09]CheckOFDResponse [13:42:09]1017 (14) - 77093643461234 [13:42:09]1041 (16) - 0000000000875083 [13:42:09]1040 (4) - 111360 [13:42:09]1012 (4) - 19.06.2024 06:15 [13:42:09]1206 (1) - 0 [13:42:09]OFD Sender: Remove packet 111360 [13:42:09]ProducePacketName [13:42:09]name=ofd_packets/00111360 [13:42:09]NVStorageDeleteData [13:42:09]Write to MH i2c: 01 00 00 15 08 1D [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 07 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: 01 07 00 15 08 00 00 00 00 00 E4 0C 14 [13:42:09]RasterBufferAndPrint [13:42:09]line [13:42:09]line [13:42:09]line [13:42:09]line [13:42:09]line [13:42:09]written 0, free lines is 3306 [13:42:09]MH_Cut [13:42:09]Write to MH i2c: D1 01 00 1C 08 01 F6 [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: D1 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: D1 01 00 [13:42:09]MH_I2C_Read... [13:42:09]Read from MH i2c: D1 01 00 1C 08 00 F5 [13:42:09]Write to MH i2c: 01 00 00 1D 08 25 [13:42:09]Write i2c OK [13:42:09]MH_I2C_Read... [13:42:09]OFD Sender: No OFD packet to send [13:42:10]*** Cut start [13:42:10]*** Partial cut [13:42:10]*** CUTSNS_PIN = 1 [13:42:10]*** CUTSNS_PIN = 0 [13:42:10]*** Brake cut motor [13:42:10]Read from MH i2c: 01 [13:42:10]MH_I2C_Read... [13:42:10]*** Stop cut motor [13:42:10]*** Cut end [13:42:10]Read from MH i2c: 01 07 00 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: 01 07 00 1D 08 00 00 00 00 00 FF 0F 3A [13:42:10]process_action close_receipt done [13:42:10]requested_data is exist [13:42:10]produce_requested_data [13:42:10]requested_item fm.sn is exist - process it [13:42:10]wFMCommunicate request_size=4 [13:42:10]MH_SAM_APDU [13:42:10]CAPDU: 80 11 00 00 [13:42:10]Write to MH i2c: E2 08 00 1E 08 80 11 00 00 00 00 00 00 A0 [13:42:10]Write i2c OK [13:42:10]MH_I2C_Read... [13:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:10]Read from MH i2c: E2 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: E2 17 00 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: E2 17 00 1E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [13:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:42:10]wFMCommunicate OK [13:42:10]requested_item fd.num is exist - process it [13:42:10]SAM_PROTO_GetFieldsCounters [13:42:10]wFMCommunicate request_size=4 [13:42:10]MH_SAM_APDU [13:42:10]CAPDU: 80 13 00 00 [13:42:10]Write to MH i2c: E2 08 00 1F 08 80 13 00 00 00 00 00 00 A3 [13:42:10]Write i2c OK [13:42:10]MH_I2C_Read... [13:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:10]Read from MH i2c: E2 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: E2 62 00 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: E2 62 00 1F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 00 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [13:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 00 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:10]wFMCommunicate OK [13:42:10]SAM_PROTO_GetFieldsCounters done [13:42:10]requested_item shift.num is exist - process it [13:42:10]requested_item shift.opened is exist - process it [13:42:10]req_shift_opened [13:42:10]FM_GetShiftState [13:42:10]SAM_PROTO_GetShiftState [13:42:10]wFMCommunicate request_size=4 [13:42:10]MH_SAM_APDU [13:42:10]CAPDU: 80 13 01 00 [13:42:10]Write to MH i2c: E2 08 00 20 08 80 13 01 00 00 00 00 00 A5 [13:42:10]Write i2c OK [13:42:10]MH_I2C_Read... [13:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:10]Read from MH i2c: E2 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: E2 0E 00 [13:42:10]MH_I2C_Read... [13:42:10]Read from MH i2c: E2 0E 00 20 08 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EF [13:42:10]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:42:10]wFMCommunicate OK [13:42:10]SAM_PROTO_GetShiftState done [13:42:10]FM_GetShiftState done [13:42:10]req_shift_opened done [13:42:10]requested_item shift.open_date is exist - process it [13:42:10]req_shift_open_date [13:42:10]req_shift_open_date done [13:42:10]produce_requested_data done [13:42:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111360,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:42:10]process_action_free close_receipt [13:42:10]json_value_free [13:42:10]json_value_free done [13:42:10]process_json_proto returns [13:42:10]Send response to host [13:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111360,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:42:10]free response buf [13:42:10]execute_script done [13:42:10]execute_script returns [13:42:10]free content buf [13:42:10]Sock 7.Close socket [13:42:10]Sock 7.Thread stoped [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:33]accept exits with 9 [13:42:33]New connection [13:42:33]New thread 3067465060 created [13:42:33]Thread 3067321700 joined [13:42:33]Waiting for new connection... [13:42:33] Sock 9.Parse request [13:42:33]Sock 9.Check first char [13:42:33]Sock 9.First char is OK [13:42:33]request: POST /json_proto HTTP/1.0 [13:42:33]Method: POST [13:42:33]URL: /json_proto [13:42:33]Method is POST - this is cgi request [13:42:33]url: /json_proto [13:42:33]query_string will be loaded in cgi processing [13:42:33]execute_cgi json_proto POST (null) [13:42:33]execute_cgi path=json_proto method=POST [13:42:33]POST find Content-Length [13:42:33]Host: 172.17.59.68:8080 [13:42:33]Content-Length: 677 [13:42:33]Content-Type: application/json [13:42:33] [13:42:33]POST finish read [13:42:33]Found Content-Length = 677 [13:42:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:42:33]execute_script... [13:42: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)319935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:42:33]POST & json_proto [13:42:33]process_json_proto [13:42:33]json parsed OK: [13:42:33]protocol is kg_v1.0 [13:42:33]action value=close_receipt [13:42:33]process_action close_receipt [13:42:33]cmd_close_receipt [13:42:33]MH_GetDate [13:42:33]Write to MH i2c: F0 00 00 21 08 18 [13:42:33]Write i2c OK [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: F0 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: F0 09 00 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: F0 09 00 21 08 00 4C E0 72 66 BC EC 60 65 92 [13:42:33]GetLastDocTimeStamp 1718804529 [13:42:33]current date 1718804556 [13:42:33]FM_GetShiftState [13:42:33]SAM_PROTO_GetShiftState [13:42:33]wFMCommunicate request_size=4 [13:42:33]MH_SAM_APDU [13:42:33]CAPDU: 80 13 01 00 [13:42:33]Write to MH i2c: E2 08 00 22 08 80 13 01 00 00 00 00 00 A7 [13:42:33]Write i2c OK [13:42:33]MH_I2C_Read... [13:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:33]Read from MH i2c: E2 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: E2 0E 00 [13:42:33]MH_I2C_Read... [13:42:33]Read from MH i2c: E2 0E 00 22 08 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F1 [13:42:33]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:42:33]wFMCommunicate OK [13:42:33]SAM_PROTO_GetShiftState done [13:42:33]FM_GetShiftState done [13:42:33]opened in 1718760753 [13:42:33]opened+sec_in_day 1718847153 [13:42:33]quantity*price = 40039 [13:42:33]sum+1 = 40040 [13:42:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 110 19.06.2024 13:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111361 ФПД: 64116632271297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111361&fm=64116632271297&tin=02508201610067®Number=0000000000092771&sum=40000 [13:42:35]StoreToDocumentArchive [13:42:35]shift 388 fd 111361 [13:42:35]save to /storage/0388/doc_00111361 [13:42:35]save last doc name /storage/0388/doc_00111361 to /storage/kkm_last_doc_name [13:42:35]save OK [13:42:35]Clear old archive folders... [13:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:35]tlvbuf is 00F3E1D0 [13:42:35]SAM_PROTO_ClearQueue [13:42:35]wFMCommunicate request_size=4 [13:42:35]MH_SAM_APDU [13:42:35]CAPDU: 80 09 00 00 [13:42:35]Write to MH i2c: E2 08 00 2F 08 80 09 00 00 00 00 00 00 A9 [13:42:35]Write i2c OK [13:42:35]MH_I2C_Read... [13:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:35]Read from MH i2c: E2 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 03 00 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 03 00 2F 08 00 90 00 AB [13:42:35]RAPDU: 90 00 [13:42:35]wFMCommunicate OK [13:42:35]SAM_PROTO_ClearQueue done [13:42:35]KKMCreateOFDPacket [13:42:35]OFDProtocolAddRootSTLVToBuf [13:42:35]FM_MakeSignedData [13:42:35]FM_MakeSignedData [13:42:35]SAM_PROTO_SignData [13:42:35]wFMCommunicate request_size=4 [13:42:35]MH_SAM_APDU [13:42:35]CAPDU: 80 0D 01 02 [13:42:35]Write to MH i2c: E2 08 00 30 08 80 0D 01 02 00 00 00 00 B1 [13:42:35]Write i2c OK [13:42:35]MH_I2C_Read... [13:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:35]Read from MH i2c: E2 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 03 00 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 03 00 30 08 00 90 00 AC [13:42:35]RAPDU: 90 00 [13:42:35]wFMCommunicate OK [13:42:35]wFMCommunicate request_size=255 [13:42:35]MH_SAM_APDU [13:42: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 6E 00 00 00 F4 03 04 00 4C E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B3 01 00 35 04 06 00 3A [13:42:35]Write to MH i2c: E2 02 01 31 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 6E 00 00 00 F4 03 04 00 4C E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B3 01 00 35 04 06 00 3A 00 00 19 [13:42:35]Write i2c OK [13:42:35]MH_I2C_Read... [13:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:35]Read from MH i2c: E2 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 03 00 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 03 00 31 08 00 90 00 AD [13:42:35]RAPDU: 90 00 [13:42:35]wFMCommunicate OK [13:42:35]wFMCommunicate request_size=10 [13:42:35]MH_SAM_APDU [13:42:35]CAPDU: 80 0D 02 02 05 50 51 17 39 C1 [13:42:35]Write to MH i2c: E2 0D 00 32 08 80 0D 02 02 05 00 50 51 17 39 C1 00 00 70 [13:42:35]Write i2c OK [13:42:35]MH_I2C_Read... [13:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:35]Read from MH i2c: E2 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 03 00 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 03 00 32 08 00 90 00 AE [13:42:35]RAPDU: 90 00 [13:42:35]wFMCommunicate OK [13:42:35]wFMCommunicate request_size=4 [13:42:35]MH_SAM_APDU [13:42:35]CAPDU: 80 0D 03 02 [13:42:35]Write to MH i2c: E2 08 00 33 08 80 0D 03 02 00 00 00 00 B6 [13:42:35]Write i2c OK [13:42:35]MH_I2C_Read... [13:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:35]Read from MH i2c: E2 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 0B 00 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 0B 00 33 08 00 72 70 DF 14 BB 85 93 9A 90 00 F9 [13:42:35]RAPDU: 72 70 DF 14 BB 85 93 9A 90 00 [13:42:35]wFMCommunicate OK [13:42:35]SAM_PROTO_SignData done [13:42:35]FM_MakeSignedData done [13:42:35]CreateOFDProtocolMessage [13:42:35]wFMCommunicate request_size=4 [13:42:35]MH_SAM_APDU [13:42:35]CAPDU: 80 11 00 00 [13:42:35]Write to MH i2c: E2 08 00 34 08 80 11 00 00 00 00 00 00 B6 [13:42:35]Write i2c OK [13:42:35]MH_I2C_Read... [13:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:35]Read from MH i2c: E2 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 17 00 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: E2 17 00 34 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [13:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:42:35]wFMCommunicate OK [13:42:35]CreateOFDProtocolMessage done [13:42:35]OFDSenderStorePacket 111361 [13:42:35]StoreOFDPacket docnum=111361 [13:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 41 85 07 01 00 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 6E 00 00 00 F4 03 04 00 4C E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B3 01 00 35 04 06 00 3A 50 51 17 39 C1 72 70 DF 14 BB 85 93 9A [13:42:35]CheckFolder [13:42:35]dirname=/storage/ofd_packets [13:42:35]CheckFolder done [13:42:35]ProducePacketName [13:42:35]name=ofd_packets/00111361 [13:42:35]NVStorageSaveData ofd_packets/00111361 [13:42:35]File name is /storage/ofd_packets/00111361 [13:42:35]Write 301 bytes [13:42:35]NVStorageSaveData done [13:42:35]OFDSenderStorePacket done [13:42:35]KKMCreateOFDPacket done [13:42:35]NVStorageSaveData kkm_last_timestamp [13:42:35]File name is /storage/kkm_last_timestamp [13:42:35]Write 4 bytes [13:42:35]NVStorageSaveData done [13:42:35]ExternCall_PrintAddStr [13:42:35]wPrintStart [13:42:35]Write to MH i2c: 01 00 00 35 08 3D [13:42:35]Write i2c OK [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: 01 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: 01 07 00 [13:42:35]MH_I2C_Read... [13:42:35]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 FF 0F 52 [13:42:35]RasterBufferAndPrint [13:42:35]line Счет N : (1)319935 [13:42:35]line ИНН: 02508201610067 [13:42:35]line Контрольно-Кассовый Чек [13:42:35]line ПРОДАЖА [13:42:35]line ТРК (МРК, ГНК) : 11 [13:42:35]line Товар: 2710124130 [13:42:35]line Аи-92-К-5 [13:42:35]line 6.030 * 66.40 [13:42:35]line = 400.39 [13:42:35]line НДС 12% НСП 1% [13:42:35]line > о реализуемом товаре [13:42:35]line ОКРУГЛЕНИЕ: -0.39 [13:42:35]line ИТОГО: 400.00 [13:42:35]line Внесено: 400.00 [13:42:35]line СДАЧА: 0.00 [13:42:35]line НСП 1% : 3.54 [13:42:35]line НДС 12% : 42.52 [13:42:35]line Наличными: 400.00 [13:42:35]line Безнал.: 0.00 [13:42:35]line Место: АЗС № 65 "Партнер Нефть" [13:42:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:42:35]line СНО: Общий режим [13:42:35]line Чек 110 19.06.2024 13:42 [13:42:35]line Смена: 388 ФФД: 1.0 [13:42:35]line ЗНМ: 0300000198 [13:42:35]line РНМ: 0000000000092771 [13:42:35]line Версия ККМ: 001 [13:42:35]line ФМ: 0000000000875083 [13:42:35]line ФД: 111361 [13:42:35]line ФПД: 64116632271297 [13:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111361&fm=64116632271297&tin=02508201610067®Number=0000000000092771&sum=40000 [13:42:35]OFD Sender: Processing packet 111361 [packets to send 38, broken 37] [13:42:35]ProducePacketName [13:42:35]name=ofd_packets/00111361 [13:42:35]OFD Sender: To server: pG, [13:42:35]CommunicateWithHost lk.salyk.kg:30040 [13:42:35]ConnectInit lk.salyk.kg [13:42:35]written 0, free lines is 4095 [13:42:36]Connected sock=7 [13: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 35 30 38 33 0F 01 00 00 41 85 07 01 00 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 6E 00 00 00 F4 03 04 00 4C E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B3 01 00 35 04 06 00 3A 50 51 17 39 C1 72 70 DF 14 BB 85 93 9A [13:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 52 35 47 00 F5 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 01 B3 01 00 F4 03 04 00 B4 77 72 66 B6 04 01 00 00 88 8A 80 2A EF B9 33 4F [13:42:36]CommunicateWithHost err = 0 [13:42:36]CheckOFDResponse [13:42:36]1017 (14) - 77093643461234 [13:42:36]1041 (16) - 0000000000875083 [13:42:36]1040 (4) - 111361 [13:42:36]1012 (4) - 19.06.2024 06:16 [13:42:36]1206 (1) - 0 [13:42:36]OFD Sender: Remove packet 111361 [13:42:36]ProducePacketName [13:42:36]name=ofd_packets/00111361 [13:42:36]NVStorageDeleteData [13:42:36]Write to MH i2c: 01 00 00 60 08 68 [13:42:36]Write i2c OK [13:42:36]MH_I2C_Read... [13:42:36]Read from MH i2c: 01 [13:42:36]MH_I2C_Read... [13:42:36]Read from MH i2c: 01 07 00 [13:42:36]MH_I2C_Read... [13:42:36]Read from MH i2c: 01 07 00 60 08 00 00 00 00 00 D8 0C 53 [13:42:36]RasterBufferAndPrint [13:42:36]line [13:42:36]line [13:42:36]line [13:42:36]line [13:42:36]line [13:42:36]written 0, free lines is 3295 [13:42:36]MH_Cut [13:42:36]Write to MH i2c: D1 01 00 67 08 01 41 [13:42:36]Write i2c OK [13:42:36]MH_I2C_Read... [13:42:36]Read from MH i2c: D1 [13:42:36]MH_I2C_Read... [13:42:36]Read from MH i2c: D1 01 00 [13:42:36]MH_I2C_Read... [13:42:36]Read from MH i2c: D1 01 00 67 08 00 40 [13:42:36]Write to MH i2c: 01 00 00 68 08 70 [13:42:36]Write i2c OK [13:42:36]MH_I2C_Read... [13:42:36]OFD Sender: No OFD packet to send [13:42:37]*** Cut start [13:42:37]*** Partial cut [13:42:37]*** CUTSNS_PIN = 1 [13:42:37]*** CUTSNS_PIN = 0 [13:42:37]*** Brake cut motor [13:42:37]Read from MH i2c: 01 [13:42:37]MH_I2C_Read... [13:42:37]*** Stop cut motor [13:42:37]*** Cut end [13:42:37]Read from MH i2c: 01 07 00 [13:42:37]MH_I2C_Read... [13:42:37]Read from MH i2c: 01 07 00 68 08 00 00 00 00 00 FF 0F 85 [13:42:37]process_action close_receipt done [13:42:37]requested_data is exist [13:42:37]produce_requested_data [13:42:37]requested_item fm.sn is exist - process it [13:42:37]wFMCommunicate request_size=4 [13:42:37]MH_SAM_APDU [13:42:37]CAPDU: 80 11 00 00 [13:42:37]Write to MH i2c: E2 08 00 69 08 80 11 00 00 00 00 00 00 EB [13:42:37]Write i2c OK [13:42:37]MH_I2C_Read... [13:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:37]Read from MH i2c: E2 [13:42:37]MH_I2C_Read... [13:42:37]Read from MH i2c: E2 17 00 [13:42:37]MH_I2C_Read... [13:42:37]Read from MH i2c: E2 17 00 69 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [13:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:42:37]wFMCommunicate OK [13:42:37]requested_item fd.num is exist - process it [13:42:37]SAM_PROTO_GetFieldsCounters [13:42:37]wFMCommunicate request_size=4 [13:42:37]MH_SAM_APDU [13:42:37]CAPDU: 80 13 00 00 [13:42:37]Write to MH i2c: E2 08 00 6A 08 80 13 00 00 00 00 00 00 EE [13:42:37]Write i2c OK [13:42:37]MH_I2C_Read... [13:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:37]Read from MH i2c: E2 [13:42:37]MH_I2C_Read... [13:42:37]Read from MH i2c: E2 62 00 [13:42:37]MH_I2C_Read... [13:42:37]Read from MH i2c: E2 62 00 6A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 01 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [13:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 01 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:37]wFMCommunicate OK [13:42:37]SAM_PROTO_GetFieldsCounters done [13:42:37]requested_item shift.num is exist - process it [13:42:37]requested_item shift.opened is exist - process it [13:42:37]req_shift_opened [13:42:37]FM_GetShiftState [13:42:37]SAM_PROTO_GetShiftState [13:42:37]wFMCommunicate request_size=4 [13:42:37]MH_SAM_APDU [13:42:37]CAPDU: 80 13 01 00 [13:42:37]Write to MH i2c: E2 08 00 6B 08 80 13 01 00 00 00 00 00 F0 [13:42:37]Write i2c OK [13:42:37]MH_I2C_Read... [13:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:38]Read from MH i2c: E2 [13:42:38]MH_I2C_Read... [13:42:38]Read from MH i2c: E2 0E 00 [13:42:38]MH_I2C_Read... [13:42:38]Read from MH i2c: E2 0E 00 6B 08 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3A [13:42:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:42:38]wFMCommunicate OK [13:42:38]SAM_PROTO_GetShiftState done [13:42:38]FM_GetShiftState done [13:42:38]req_shift_opened done [13:42:38]requested_item shift.open_date is exist - process it [13:42:38]req_shift_open_date [13:42:38]req_shift_open_date done [13:42:38]produce_requested_data done [13:42:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111361,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:42:38]process_action_free close_receipt [13:42:38]json_value_free [13:42:38]json_value_free done [13:42:38]process_json_proto returns [13:42:38]Send response to host [13:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111361,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:42:38]free response buf [13:42:38]execute_script done [13:42:38]execute_script returns [13:42:38]free content buf [13:42:38]Sock 9.Close socket [13:42:38]Sock 9.Thread stoped [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:42]accept exits with 10 [13:43:42]New connection [13:43:42]New thread 3067321700 created [13:43:42]Thread 3067465060 joined [13:43:42]Waiting for new connection... [13:43:42] Sock 10.Parse request [13:43:42]Sock 10.Check first char [13:43:42]Sock 10.First char is OK [13:43:42]request: POST /json_proto HTTP/1.0 [13:43:42]Method: POST [13:43:42]URL: /json_proto [13:43:42]Method is POST - this is cgi request [13:43:42]url: /json_proto [13:43:42]query_string will be loaded in cgi processing [13:43:42]execute_cgi json_proto POST (null) [13:43:42]execute_cgi path=json_proto method=POST [13:43:42]POST find Content-Length [13:43:42]Host: 172.17.59.68:8080 [13:43:42]Content-Length: 678 [13:43:42]Content-Type: application/json [13:43:42] [13:43:42]POST finish read [13:43:42]Found Content-Length = 678 [13:43:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:43:42]execute_script... [13:43:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:43:42]POST & json_proto [13:43:42]process_json_proto [13:43:42]json parsed OK: [13:43:42]protocol is kg_v1.0 [13:43:42]action value=close_receipt [13:43:42]process_action close_receipt [13:43:42]cmd_close_receipt [13:43:42]MH_GetDate [13:43:42]Write to MH i2c: F0 00 00 6C 08 63 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: F0 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: F0 09 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: F0 09 00 6C 08 00 91 E0 72 66 BC EC 60 65 22 [13:43:42]GetLastDocTimeStamp 1718804556 [13:43:42]current date 1718804625 [13:43:42]FM_GetShiftState [13:43:42]SAM_PROTO_GetShiftState [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 13 01 00 [13:43:42]Write to MH i2c: E2 08 00 6D 08 80 13 01 00 00 00 00 00 F2 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0E 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0E 00 6D 08 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3C [13:43:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:43:42]wFMCommunicate OK [13:43:42]SAM_PROTO_GetShiftState done [13:43:42]FM_GetShiftState done [13:43:42]opened in 1718760753 [13:43:42]opened+sec_in_day 1718847153 [13:43:42]quantity*price = 70052 [13:43:42]sum+1 = 70053 [13:43:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 111 19.06.2024 13:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111362 ФПД: 270157349572354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134345&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111362&fm=270157349572354&tin=02508201610067®Number=0000000000092771&sum=70000 [13:43:43]StoreToDocumentArchive [13:43:43]shift 388 fd 111362 [13:43:43]save to /storage/0388/doc_00111362 [13:43:43]save last doc name /storage/0388/doc_00111362 to /storage/kkm_last_doc_name [13:43:43]save OK [13:43:43]Clear old archive folders... [13:43:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:43]tlvbuf is 00EB6FE0 [13:43:43]SAM_PROTO_ClearQueue [13:43:43]wFMCommunicate request_size=4 [13:43:43]MH_SAM_APDU [13:43:43]CAPDU: 80 09 00 00 [13:43:43]Write to MH i2c: E2 08 00 7A 08 80 09 00 00 00 00 00 00 F4 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [13:43:44]RAPDU: 90 00 [13:43:44]wFMCommunicate OK [13:43:44]SAM_PROTO_ClearQueue done [13:43:44]KKMCreateOFDPacket [13:43:44]OFDProtocolAddRootSTLVToBuf [13:43:44]FM_MakeSignedData [13:43:44]FM_MakeSignedData [13:43:44]SAM_PROTO_SignData [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 0D 01 02 [13:43:44]Write to MH i2c: E2 08 00 7B 08 80 0D 01 02 00 00 00 00 FC [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 7B 08 00 90 00 F7 [13:43:44]RAPDU: 90 00 [13:43:44]wFMCommunicate OK [13:43:44]wFMCommunicate request_size=255 [13:43:44]MH_SAM_APDU [13:43: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6F 00 00 00 F4 03 04 00 91 E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B3 01 00 35 04 06 00 F5 [13:43:44]Write to MH i2c: E2 02 01 7C 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6F 00 00 00 F4 03 04 00 91 E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B3 01 00 35 04 06 00 F5 00 00 AA [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 7C 08 00 90 00 F8 [13:43:44]RAPDU: 90 00 [13:43:44]wFMCommunicate OK [13:43:44]wFMCommunicate request_size=10 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 0D 02 02 05 B4 E8 DA CF 02 [13:43:44]Write to MH i2c: E2 0D 00 7D 08 80 0D 02 02 05 00 B4 E8 DA CF 02 00 00 50 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 03 00 7D 08 00 90 00 F9 [13:43:44]RAPDU: 90 00 [13:43:44]wFMCommunicate OK [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 0D 03 02 [13:43:44]Write to MH i2c: E2 08 00 7E 08 80 0D 03 02 00 00 00 00 01 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 0B 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 0B 00 7E 08 00 1D 19 9D A3 1B FF 2C D8 90 00 96 [13:43:44]RAPDU: 1D 19 9D A3 1B FF 2C D8 90 00 [13:43:44]wFMCommunicate OK [13:43:44]SAM_PROTO_SignData done [13:43:44]FM_MakeSignedData done [13:43:44]CreateOFDProtocolMessage [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 11 00 00 [13:43:44]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 7F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [13:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:43:44]wFMCommunicate OK [13:43:44]CreateOFDProtocolMessage done [13:43:44]OFDSenderStorePacket 111362 [13:43:44]StoreOFDPacket docnum=111362 [13:43:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 F0 07 01 44 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6F 00 00 00 F4 03 04 00 91 E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B3 01 00 35 04 06 00 F5 B4 E8 DA CF 02 1D 19 9D A3 1B FF 2C D8 [13:43:44]CheckFolder [13:43:44]dirname=/storage/ofd_packets [13:43:44]CheckFolder done [13:43:44]ProducePacketName [13:43:44]name=ofd_packets/00111362 [13:43:44]NVStorageSaveData ofd_packets/00111362 [13:43:44]File name is /storage/ofd_packets/00111362 [13:43:44]Write 301 bytes [13:43:44]NVStorageSaveData done [13:43:44]OFDSenderStorePacket done [13:43:44]KKMCreateOFDPacket done [13:43:44]NVStorageSaveData kkm_last_timestamp [13:43:44]File name is /storage/kkm_last_timestamp [13:43:44]Write 4 bytes [13:43:44]NVStorageSaveData done [13:43:44]ExternCall_PrintAddStr [13:43:44]wPrintStart [13:43:44]Write to MH i2c: 01 00 00 80 08 88 [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 80 08 00 00 00 00 00 FF 0F 9D [13:43:44]RasterBufferAndPrint [13:43:44]line Счет N : (1)319936 [13:43:44]line ИНН: 02508201610067 [13:43:44]line Контрольно-Кассовый Чек [13:43:44]line ПРОДАЖА [13:43:44]line ТРК (МРК, ГНК) : 11 [13:43:44]line Товар: 2710124130 [13:43:44]line Аи-92-К-5 [13:43:44]line 10.550 * 66.40 [13:43:44]line = 700.52 [13:43:44]line НДС 12% НСП 1% [13:43:44]line > о реализуемом товаре [13:43:44]line ОКРУГЛЕНИЕ: -0.52 [13:43:44]line ИТОГО: 700.00 [13:43:44]line Внесено: 700.00 [13:43:44]line СДАЧА: 0.00 [13:43:44]line НСП 1% : 6.20 [13:43:44]line НДС 12% : 74.39 [13:43:44]line Наличными: 700.00 [13:43:44]line Безнал.: 0.00 [13:43:44]line Место: АЗС № 65 "Партнер Нефть" [13:43:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:43:44]line СНО: Общий режим [13:43:44]line Чек 111 19.06.2024 13:43 [13:43:44]line Смена: 388 ФФД: 1.0 [13:43:44]line ЗНМ: 0300000198 [13:43:44]line РНМ: 0000000000092771 [13:43:44]line Версия ККМ: 001 [13:43:44]line ФМ: 0000000000875083 [13:43:44]line ФД: 111362 [13:43:44]line ФПД: 270157349572354 [13:43:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134345&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111362&fm=270157349572354&tin=02508201610067®Number=0000000000092771&sum=70000 [13:43:44]OFD Sender: Processing packet 111362 [packets to send 38, broken 37] [13:43:44]ProducePacketName [13:43:44]name=ofd_packets/00111362 [13:43:44]OFD Sender: To server: pG, [13:43:44]CommunicateWithHost lk.salyk.kg:30040 [13:43:44]ConnectInit lk.salyk.kg [13:43:44]written 0, free lines is 4095 [13:43:44]Connected sock=9 [13:43:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 F0 07 01 44 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 6F 00 00 00 F4 03 04 00 91 E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B3 01 00 35 04 06 00 F5 B4 E8 DA CF 02 1D 19 9D A3 1B FF 2C D8 [13:43:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 73 E2 47 00 75 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 02 B3 01 00 F4 03 04 00 F9 77 72 66 B6 04 01 00 00 95 54 EA 36 50 77 55 32 [13:43:45]CommunicateWithHost err = 0 [13:43:45]CheckOFDResponse [13:43:45]1017 (14) - 77093643461234 [13:43:45]1041 (16) - 0000000000875083 [13:43:45]1040 (4) - 111362 [13:43:45]1012 (4) - 19.06.2024 06:17 [13:43:45]1206 (1) - 0 [13:43:45]OFD Sender: Remove packet 111362 [13:43:45]ProducePacketName [13:43:45]name=ofd_packets/00111362 [13:43:45]NVStorageDeleteData [13:43:45]Write to MH i2c: 01 00 00 AB 08 B3 [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: 01 07 00 AB 08 00 00 00 00 00 E2 0C A8 [13:43:45]RasterBufferAndPrint [13:43:45]line [13:43:45]line [13:43:45]line [13:43:45]line [13:43:45]line [13:43:45]written 0, free lines is 3306 [13:43:45]MH_Cut [13:43:45]Write to MH i2c: D1 01 00 B2 08 01 8C [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: D1 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: D1 01 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: D1 01 00 B2 08 00 8B [13:43:45]Write to MH i2c: 01 00 00 B3 08 BB [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]OFD Sender: No OFD packet to send [13:43:46]*** Cut start [13:43:46]*** Partial cut [13:43:46]*** CUTSNS_PIN = 1 [13:43:46]*** CUTSNS_PIN = 0 [13:43:46]*** Brake cut motor [13:43:46]Read from MH i2c: 01 [13:43:46]MH_I2C_Read... [13:43:46]*** Stop cut motor [13:43:46]*** Cut end [13:43:46]Read from MH i2c: 01 07 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: 01 07 00 B3 08 00 00 00 00 00 FF 0F D0 [13:43:46]process_action close_receipt done [13:43:46]requested_data is exist [13:43:46]produce_requested_data [13:43:46]requested_item fm.sn is exist - process it [13:43:46]wFMCommunicate request_size=4 [13:43:46]MH_SAM_APDU [13:43:46]CAPDU: 80 11 00 00 [13:43:46]Write to MH i2c: E2 08 00 B4 08 80 11 00 00 00 00 00 00 36 [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:46]Read from MH i2c: E2 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 17 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 17 00 B4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [13:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:43:46]wFMCommunicate OK [13:43:46]requested_item fd.num is exist - process it [13:43:46]SAM_PROTO_GetFieldsCounters [13:43:46]wFMCommunicate request_size=4 [13:43:46]MH_SAM_APDU [13:43:46]CAPDU: 80 13 00 00 [13:43:46]Write to MH i2c: E2 08 00 B5 08 80 13 00 00 00 00 00 00 39 [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:46]Read from MH i2c: E2 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 62 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 62 00 B5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 02 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [13:43:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 02 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:46]wFMCommunicate OK [13:43:46]SAM_PROTO_GetFieldsCounters done [13:43:46]requested_item shift.num is exist - process it [13:43:46]requested_item shift.opened is exist - process it [13:43:46]req_shift_opened [13:43:46]FM_GetShiftState [13:43:46]SAM_PROTO_GetShiftState [13:43:46]wFMCommunicate request_size=4 [13:43:46]MH_SAM_APDU [13:43:46]CAPDU: 80 13 01 00 [13:43:46]Write to MH i2c: E2 08 00 B6 08 80 13 01 00 00 00 00 00 3B [13:43:46]Write i2c OK [13:43:46]MH_I2C_Read... [13:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:46]Read from MH i2c: E2 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 0E 00 [13:43:46]MH_I2C_Read... [13:43:46]Read from MH i2c: E2 0E 00 B6 08 00 09 00 01 31 35 72 66 00 00 00 00 90 00 85 [13:43:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:43:46]wFMCommunicate OK [13:43:46]SAM_PROTO_GetShiftState done [13:43:46]FM_GetShiftState done [13:43:46]req_shift_opened done [13:43:46]requested_item shift.open_date is exist - process it [13:43:46]req_shift_open_date [13:43:46]req_shift_open_date done [13:43:46]produce_requested_data done [13:43:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111362,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:43:46]process_action_free close_receipt [13:43:46]json_value_free [13:43:46]json_value_free done [13:43:46]process_json_proto returns [13:43:46]Send response to host [13:43:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111362,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:43:46]free response buf [13:43:46]execute_script done [13:43:46]execute_script returns [13:43:46]free content buf [13:43:46]Sock 10.Close socket [13:43:46]Sock 10.Thread stoped [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:44:56]accept exits with 7 [13:44:56]New connection [13:44:56]New thread 3067465060 created [13:44:56]Thread 3067321700 joined [13:44:56]Waiting for new connection... [13:44:56] Sock 7.Parse request [13:44:56]Sock 7.Check first char [13:44:56]Sock 7.First char is OK [13:44:56]request: POST /json_proto HTTP/1.0 [13:44:56]Method: POST [13:44:56]URL: /json_proto [13:44:56]Method is POST - this is cgi request [13:44:56]url: /json_proto [13:44:56]query_string will be loaded in cgi processing [13:44:56]execute_cgi json_proto POST (null) [13:44:56]execute_cgi path=json_proto method=POST [13:44:56]POST find Content-Length [13:44:56]Host: 172.17.59.68:8080 [13:44:56]Content-Length: 677 [13:44:56]Content-Type: application/json [13:44:56] [13:44:56]POST finish read [13:44:56]Found Content-Length = 677 [13:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:44:56]execute_script... [13: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)319937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:44:56]POST & json_proto [13:44:56]process_json_proto [13:44:56]json parsed OK: [13:44:56]protocol is kg_v1.0 [13:44:56]action value=close_receipt [13:44:56]process_action close_receipt [13:44:56]cmd_close_receipt [13:44:56]MH_GetDate [13:44:56]Write to MH i2c: F0 00 00 B7 08 AE [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 09 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: F0 09 00 B7 08 00 DA E0 72 66 BC EC 60 65 B6 [13:44:56]GetLastDocTimeStamp 1718804625 [13:44:56]current date 1718804698 [13:44:56]FM_GetShiftState [13:44:56]SAM_PROTO_GetShiftState [13:44:56]wFMCommunicate request_size=4 [13:44:56]MH_SAM_APDU [13:44:56]CAPDU: 80 13 01 00 [13:44:56]Write to MH i2c: E2 08 00 B8 08 80 13 01 00 00 00 00 00 3D [13:44:56]Write i2c OK [13:44:56]MH_I2C_Read... [13:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:56]Read from MH i2c: E2 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 0E 00 [13:44:56]MH_I2C_Read... [13:44:56]Read from MH i2c: E2 0E 00 B8 08 00 09 00 01 31 35 72 66 00 00 00 00 90 00 87 [13:44:56]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:44:56]wFMCommunicate OK [13:44:56]SAM_PROTO_GetShiftState done [13:44:56]FM_GetShiftState done [13:44:56]opened in 1718760753 [13:44:56]opened+sec_in_day 1718847153 [13:44:56]quantity*price = 60025 [13:44:56]sum+1 = 60027 [13:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 112 19.06.2024 13:44 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111363 ФПД: 256512015211863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134458&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111363&fm=256512015211863&tin=02508201610067®Number=0000000000092771&sum=60000 [13:44:57]StoreToDocumentArchive [13:44:57]shift 388 fd 111363 [13:44:57]save to /storage/0388/doc_00111363 [13:44:57]save last doc name /storage/0388/doc_00111363 to /storage/kkm_last_doc_name [13:44:57]save OK [13:44:57]Clear old archive folders... [13:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:57]tlvbuf is 00EC58D0 [13:44:57]SAM_PROTO_ClearQueue [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 09 00 00 [13:44:57]Write to MH i2c: E2 08 00 C5 08 80 09 00 00 00 00 00 00 3F [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]SAM_PROTO_ClearQueue done [13:44:57]KKMCreateOFDPacket [13:44:57]OFDProtocolAddRootSTLVToBuf [13:44:57]FM_MakeSignedData [13:44:57]FM_MakeSignedData [13:44:57]SAM_PROTO_SignData [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 01 02 [13:44:57]Write to MH i2c: E2 08 00 C6 08 80 0D 01 02 00 00 00 00 47 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 C6 08 00 90 00 42 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=255 [13:44:57]MH_SAM_APDU [13:44: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DA E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B3 01 00 35 04 06 00 E9 [13:44:57]Write to MH i2c: E2 02 01 C7 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DA E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B3 01 00 35 04 06 00 E9 00 00 FF [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 C7 08 00 90 00 43 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=10 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 02 02 05 4B DB 8C 1D 57 [13:44:57]Write to MH i2c: E2 0D 00 C8 08 80 0D 02 02 05 00 4B DB 8C 1D 57 00 00 7A [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 03 00 C8 08 00 90 00 44 [13:44:57]RAPDU: 90 00 [13:44:57]wFMCommunicate OK [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 0D 03 02 [13:44:57]Write to MH i2c: E2 08 00 C9 08 80 0D 03 02 00 00 00 00 4C [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 0B 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 0B 00 C9 08 00 4A 22 0A 48 FE 67 18 D0 90 00 58 [13:44:57]RAPDU: 4A 22 0A 48 FE 67 18 D0 90 00 [13:44:57]wFMCommunicate OK [13:44:57]SAM_PROTO_SignData done [13:44:57]FM_MakeSignedData done [13:44:57]CreateOFDProtocolMessage [13:44:57]wFMCommunicate request_size=4 [13:44:57]MH_SAM_APDU [13:44:57]CAPDU: 80 11 00 00 [13:44:57]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:57]Read from MH i2c: E2 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 17 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [13:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:44:57]wFMCommunicate OK [13:44:57]CreateOFDProtocolMessage done [13:44:57]OFDSenderStorePacket 111363 [13:44:57]StoreOFDPacket docnum=111363 [13:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 9A 9E 07 01 ED 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DA E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B3 01 00 35 04 06 00 E9 4B DB 8C 1D 57 4A 22 0A 48 FE 67 18 D0 [13:44:57]CheckFolder [13:44:57]dirname=/storage/ofd_packets [13:44:57]CheckFolder done [13:44:57]ProducePacketName [13:44:57]name=ofd_packets/00111363 [13:44:57]NVStorageSaveData ofd_packets/00111363 [13:44:57]File name is /storage/ofd_packets/00111363 [13:44:57]Write 301 bytes [13:44:57]NVStorageSaveData done [13:44:57]OFDSenderStorePacket done [13:44:57]KKMCreateOFDPacket done [13:44:57]NVStorageSaveData kkm_last_timestamp [13:44:57]File name is /storage/kkm_last_timestamp [13:44:57]Write 4 bytes [13:44:57]NVStorageSaveData done [13:44:57]OFD Sender: Processing packet 111363 [packets to send 38, broken 37] [13:44:57]ProducePacketName [13:44:57]name=ofd_packets/00111363 [13:44:57]OFD Sender: To server: pG, [13:44:57]CommunicateWithHost lk.salyk.kg:30040 [13:44:57]ConnectInit lk.salyk.kg [13:44:57]ExternCall_PrintAddStr [13:44:57]wPrintStart [13:44:57]Write to MH i2c: 01 00 00 CB 08 D3 [13:44:57]Write i2c OK [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 07 00 [13:44:57]MH_I2C_Read... [13:44:57]Read from MH i2c: 01 07 00 CB 08 00 00 00 00 00 FF 0F E8 [13:44:57]RasterBufferAndPrint [13:44:57]line Счет N : (1)319937 [13:44:57]line ИНН: 02508201610067 [13:44:57]line Контрольно-Кассовый Чек [13:44:57]line ПРОДАЖА [13:44:57]line ТРК (МРК, ГНК) : 11 [13:44:57]line Товар: 2710124130 [13:44:57]line Аи-92-К-5 [13:44:57]line 9.040 * 66.40 [13:44:57]line = 600.26 [13:44:57]line НДС 12% НСП 1% [13:44:57]line > о реализуемом товаре [13:44:57]line ОКРУГЛЕНИЕ: -0.26 [13:44:57]line ИТОГО: 600.00 [13:44:57]line Внесено: 600.00 [13:44:57]line СДАЧА: 0.00 [13:44:57]line НСП 1% : 5.31 [13:44:57]line НДС 12% : 63.74 [13:44:57]line Наличными: 600.00 [13:44:57]line Безнал.: 0.00 [13:44:57]line Место: АЗС № 65 "Партнер Нефть" [13:44:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:44:57]line СНО: Общий режим [13:44:57]line Чек 112 19.06.2024 13:44 [13:44:57]line Смена: 388 ФФД: 1.0 [13:44:57]line ЗНМ: 0300000198 [13:44:57]line РНМ: 0000000000092771 [13:44:57]line Версия ККМ: 001 [13:44:57]line ФМ: 0000000000875083 [13:44:57]line ФД: 111363 [13:44:57]line ФПД: 256512015211863 [13:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134458&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111363&fm=256512015211863&tin=02508201610067®Number=0000000000092771&sum=60000 [13:44:58]Connected sock=11 [13: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 35 30 38 33 0F 01 00 00 9A 9E 07 01 ED 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DA E0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 03 B3 01 00 35 04 06 00 E9 4B DB 8C 1D 57 4A 22 0A 48 FE 67 18 D0 [13:44:58]written 0, free lines is 4095 [13:44:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9A 23 47 00 39 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 35 30 38 33 10 04 04 00 03 B3 01 00 F4 03 04 00 42 78 72 66 B6 04 01 00 00 43 B1 13 DE 89 8B 15 55 [13:44:58]CommunicateWithHost err = 0 [13:44:58]CheckOFDResponse [13:44:58]1017 (14) - 77093643461234 [13:44:58]1041 (16) - 0000000000875083 [13:44:58]1040 (4) - 111363 [13:44:58]1012 (4) - 19.06.2024 06:18 [13:44:58]1206 (1) - 0 [13:44:58]OFD Sender: Remove packet 111363 [13:44:58]ProducePacketName [13:44:58]name=ofd_packets/00111363 [13:44:58]NVStorageDeleteData [13:44:58]Write to MH i2c: 01 00 00 F6 08 FE [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 07 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: 01 07 00 F6 08 00 00 00 00 00 E4 0C F5 [13:44:58]RasterBufferAndPrint [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]line [13:44:58]written 0, free lines is 3306 [13:44:58]MH_Cut [13:44:58]Write to MH i2c: D1 01 00 FD 08 01 D7 [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: D1 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: D1 01 00 [13:44:58]MH_I2C_Read... [13:44:58]Read from MH i2c: D1 01 00 FD 08 00 D6 [13:44:58]Write to MH i2c: 01 00 00 FE 08 06 [13:44:58]Write i2c OK [13:44:58]MH_I2C_Read... [13:44:58]OFD Sender: No OFD packet to send [13:44:59]*** Cut start [13:44:59]*** Partial cut [13:44:59]*** CUTSNS_PIN = 1 [13:44:59]*** CUTSNS_PIN = 0 [13:44:59]*** Brake cut motor [13:44:59]Read from MH i2c: 01 [13:44:59]MH_I2C_Read... [13:44:59]*** Stop cut motor [13:44:59]*** Cut end [13:44:59]Read from MH i2c: 01 07 00 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: 01 07 00 FE 08 00 00 00 00 00 FF 0F 1B [13:44:59]process_action close_receipt done [13:44:59]requested_data is exist [13:44:59]produce_requested_data [13:44:59]requested_item fm.sn is exist - process it [13:44:59]wFMCommunicate request_size=4 [13:44:59]MH_SAM_APDU [13:44:59]CAPDU: 80 11 00 00 [13:44:59]Write to MH i2c: E2 08 00 FF 08 80 11 00 00 00 00 00 00 81 [13:44:59]Write i2c OK [13:44:59]MH_I2C_Read... [13:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:59]Read from MH i2c: E2 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: E2 17 00 [13:44:59]MH_I2C_Read... [13:44:59]Read from MH i2c: E2 17 00 FF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [13:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:44:59]wFMCommunicate OK [13:44:59]requested_item fd.num is exist - process it [13:44:59]SAM_PROTO_GetFieldsCounters [13:44:59]wFMCommunicate request_size=4 [13:44:59]MH_SAM_APDU [13:44:59]CAPDU: 80 13 00 00 [13:44:59]Write to MH i2c: E2 08 00 00 09 80 13 00 00 00 00 00 00 85 [13:44:59]Write i2c OK [13:44:59]MH_I2C_Read... [13:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:00]Read from MH i2c: E2 [13:45:00]MH_I2C_Read... [13:45:00]Read from MH i2c: E2 62 00 [13:45:00]MH_I2C_Read... [13:45:00]Read from MH i2c: E2 62 00 00 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 03 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 03 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:00]wFMCommunicate OK [13:45:00]SAM_PROTO_GetFieldsCounters done [13:45:00]requested_item shift.num is exist - process it [13:45:00]requested_item shift.opened is exist - process it [13:45:00]req_shift_opened [13:45:00]FM_GetShiftState [13:45:00]SAM_PROTO_GetShiftState [13:45:00]wFMCommunicate request_size=4 [13:45:00]MH_SAM_APDU [13:45:00]CAPDU: 80 13 01 00 [13:45:00]Write to MH i2c: E2 08 00 01 09 80 13 01 00 00 00 00 00 87 [13:45:00]Write i2c OK [13:45:00]MH_I2C_Read... [13:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:00]Read from MH i2c: E2 [13:45:00]MH_I2C_Read... [13:45:00]Read from MH i2c: E2 0E 00 [13:45:00]MH_I2C_Read... [13:45:00]Read from MH i2c: E2 0E 00 01 09 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D1 [13:45:00]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:45:00]wFMCommunicate OK [13:45:00]SAM_PROTO_GetShiftState done [13:45:00]FM_GetShiftState done [13:45:00]req_shift_opened done [13:45:00]requested_item shift.open_date is exist - process it [13:45:00]req_shift_open_date [13:45:00]req_shift_open_date done [13:45:00]produce_requested_data done [13:45:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111363,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:45:00]process_action_free close_receipt [13:45:00]json_value_free [13:45:00]json_value_free done [13:45:00]process_json_proto returns [13:45:00]Send response to host [13:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111363,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:45:00]free response buf [13:45:00]execute_script done [13:45:00]execute_script returns [13:45:00]free content buf [13:45:00]Sock 7.Close socket [13:45:00]Sock 7.Thread stoped [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:40]accept exits with 9 [13:47:40]New connection [13:47:40]New thread 3067321700 created [13:47:40]Thread 3067465060 joined [13:47:40]Waiting for new connection... [13:47:40] Sock 9.Parse request [13:47:40]Sock 9.Check first char [13:47:40]Sock 9.First char is OK [13:47:40]request: POST /json_proto HTTP/1.0 [13:47:40]Method: POST [13:47:40]URL: /json_proto [13:47:40]Method is POST - this is cgi request [13:47:40]url: /json_proto [13:47:40]query_string will be loaded in cgi processing [13:47:40]execute_cgi json_proto POST (null) [13:47:40]execute_cgi path=json_proto method=POST [13:47:40]POST find Content-Length [13:47:40]Host: 172.17.59.68:8080 [13:47:40]Content-Length: 682 [13:47:40]Content-Type: application/json [13:47:40] [13:47:40]POST finish read [13:47:40]Found Content-Length = 682 [13:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:40]execute_script... [13:47:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:40]POST & json_proto [13:47:40]process_json_proto [13:47:40]json parsed OK: [13:47:40]protocol is kg_v1.0 [13:47:40]action value=close_receipt [13:47:40]process_action close_receipt [13:47:40]cmd_close_receipt [13:47:40]MH_GetDate [13:47:40]Write to MH i2c: F0 00 00 02 09 FA [13:47:40]Write i2c OK [13:47:40]MH_I2C_Read... [13:47:40]Read from MH i2c: F0 [13:47:40]MH_I2C_Read... [13:47:40]Read from MH i2c: F0 09 00 [13:47:40]MH_I2C_Read... [13:47:40]Read from MH i2c: F0 09 00 02 09 00 7F E1 72 66 BC EC 60 65 A8 [13:47:40]GetLastDocTimeStamp 1718804698 [13:47:40]current date 1718804863 [13:47:40]FM_GetShiftState [13:47:40]SAM_PROTO_GetShiftState [13:47:40]wFMCommunicate request_size=4 [13:47:40]MH_SAM_APDU [13:47:40]CAPDU: 80 13 01 00 [13:47:40]Write to MH i2c: E2 08 00 03 09 80 13 01 00 00 00 00 00 89 [13:47:40]Write i2c OK [13:47:40]MH_I2C_Read... [13:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:40]Read from MH i2c: E2 [13:47:40]MH_I2C_Read... [13:47:40]Read from MH i2c: E2 0E 00 [13:47:40]MH_I2C_Read... [13:47:40]Read from MH i2c: E2 0E 00 03 09 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D3 [13:47:40]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:47:40]wFMCommunicate OK [13:47:40]SAM_PROTO_GetShiftState done [13:47:40]FM_GetShiftState done [13:47:40]opened in 1718760753 [13:47:40]opened+sec_in_day 1718847153 [13:47:40]quantity*price = 100064 [13:47:40]sum+1 = 100066 [13:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 113 19.06.2024 13:47 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111364 ФПД: 249026331980275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134743&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111364&fm=249026331980275&tin=02508201610067®Number=0000000000092771&sum=100000 [13:47:42]StoreToDocumentArchive [13:47:42]shift 388 fd 111364 [13:47:42]save to /storage/0388/doc_00111364 [13:47:42]save last doc name /storage/0388/doc_00111364 to /storage/kkm_last_doc_name [13:47:42]save OK [13:47:42]Clear old archive folders... [13:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:42]tlvbuf is 00EDE4B0 [13:47:42]SAM_PROTO_ClearQueue [13:47:42]wFMCommunicate request_size=4 [13:47:42]MH_SAM_APDU [13:47:42]CAPDU: 80 09 00 00 [13:47:42]Write to MH i2c: E2 08 00 10 09 80 09 00 00 00 00 00 00 8B [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:42]Read from MH i2c: E2 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 10 09 00 90 00 8D [13:47:42]RAPDU: 90 00 [13:47:42]wFMCommunicate OK [13:47:42]SAM_PROTO_ClearQueue done [13:47:42]KKMCreateOFDPacket [13:47:42]OFDProtocolAddRootSTLVToBuf [13:47:42]FM_MakeSignedData [13:47:42]FM_MakeSignedData [13:47:42]SAM_PROTO_SignData [13:47:42]wFMCommunicate request_size=4 [13:47:42]MH_SAM_APDU [13:47:42]CAPDU: 80 0D 01 02 [13:47:42]Write to MH i2c: E2 08 00 11 09 80 0D 01 02 00 00 00 00 93 [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:42]Read from MH i2c: E2 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 11 09 00 90 00 8E [13:47:42]RAPDU: 90 00 [13:47:42]wFMCommunicate OK [13:47:42]wFMCommunicate request_size=255 [13:47:42]MH_SAM_APDU [13:47: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 7F E1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B3 01 00 35 04 06 00 E2 [13:47:42]Write to MH i2c: E2 02 01 12 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 7F E1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B3 01 00 35 04 06 00 E2 00 00 5F [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:42]Read from MH i2c: E2 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 12 09 00 90 00 8F [13:47:42]RAPDU: 90 00 [13:47:42]wFMCommunicate OK [13:47:42]wFMCommunicate request_size=10 [13:47:42]MH_SAM_APDU [13:47:42]CAPDU: 80 0D 02 02 05 7C F6 0E B1 F3 [13:47:42]Write to MH i2c: E2 0D 00 13 09 80 0D 02 02 05 00 7C F6 0E B1 F3 00 00 C4 [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:42]Read from MH i2c: E2 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 03 00 13 09 00 90 00 90 [13:47:42]RAPDU: 90 00 [13:47:42]wFMCommunicate OK [13:47:42]wFMCommunicate request_size=4 [13:47:42]MH_SAM_APDU [13:47:42]CAPDU: 80 0D 03 02 [13:47:42]Write to MH i2c: E2 08 00 14 09 80 0D 03 02 00 00 00 00 98 [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:42]Read from MH i2c: E2 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 0B 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 0B 00 14 09 00 1F BB 47 66 85 24 26 24 90 00 13 [13:47:42]RAPDU: 1F BB 47 66 85 24 26 24 90 00 [13:47:42]wFMCommunicate OK [13:47:42]SAM_PROTO_SignData done [13:47:42]FM_MakeSignedData done [13:47:42]CreateOFDProtocolMessage [13:47:42]wFMCommunicate request_size=4 [13:47:42]MH_SAM_APDU [13:47:42]CAPDU: 80 11 00 00 [13:47:42]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:42]Read from MH i2c: E2 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 17 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: E2 17 00 15 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [13:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:47:42]wFMCommunicate OK [13:47:42]CreateOFDProtocolMessage done [13:47:42]OFDSenderStorePacket 111364 [13:47:42]StoreOFDPacket docnum=111364 [13:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 3C 07 01 AB 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 7F E1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B3 01 00 35 04 06 00 E2 7C F6 0E B1 F3 1F BB 47 66 85 24 26 24 [13:47:42]CheckFolder [13:47:42]dirname=/storage/ofd_packets [13:47:42]CheckFolder done [13:47:42]ProducePacketName [13:47:42]name=ofd_packets/00111364 [13:47:42]NVStorageSaveData ofd_packets/00111364 [13:47:42]File name is /storage/ofd_packets/00111364 [13:47:42]Write 301 bytes [13:47:42]NVStorageSaveData done [13:47:42]OFDSenderStorePacket done [13:47:42]KKMCreateOFDPacket done [13:47:42]NVStorageSaveData kkm_last_timestamp [13:47:42]File name is /storage/kkm_last_timestamp [13:47:42]Write 4 bytes [13:47:42]NVStorageSaveData done [13:47:42]OFD Sender: Processing packet 111364 [packets to send 38, broken 37] [13:47:42]ProducePacketName [13:47:42]name=ofd_packets/00111364 [13:47:42]OFD Sender: To server: pG, [13:47:42]CommunicateWithHost lk.salyk.kg:30040 [13:47:42]ConnectInit lk.salyk.kg [13:47:42]ExternCall_PrintAddStr [13:47:42]wPrintStart [13:47:42]Write to MH i2c: 01 00 00 16 09 1F [13:47:42]Write i2c OK [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: 01 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: 01 07 00 [13:47:42]MH_I2C_Read... [13:47:42]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [13:47:42]RasterBufferAndPrint [13:47:42]line Счет N : (1)319939 [13:47:42]line ИНН: 02508201610067 [13:47:42]line Контрольно-Кассовый Чек [13:47:42]line ПРОДАЖА [13:47:42]line ТРК (МРК, ГНК) : 11 [13:47:42]line Товар: 2710124130 [13:47:42]line Аи-92-К-5 [13:47:42]line 15.070 * 66.40 [13:47:42]line = 1000.65 [13:47:42]line НДС 12% НСП 1% [13:47:42]line > о реализуемом товаре [13:47:42]line ОКРУГЛЕНИЕ: -0.65 [13:47:42]line ИТОГО: 1000.00 [13:47:42]line Внесено: 1000.00 [13:47:42]line СДАЧА: 0.00 [13:47:42]line НСП 1% : 8.85 [13:47:42]line НДС 12% : 106.26 [13:47:42]line Наличными: 1000.00 [13:47:42]line Безнал.: 0.00 [13:47:42]line Место: АЗС № 65 "Партнер Нефть" [13:47:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:47:42]line СНО: Общий режим [13:47:42]line Чек 113 19.06.2024 13:47 [13:47:42]line Смена: 388 ФФД: 1.0 [13:47:42]line ЗНМ: 0300000198 [13:47:42]line РНМ: 0000000000092771 [13:47:42]line Версия ККМ: 001 [13:47:42]line ФМ: 0000000000875083 [13:47:42]line ФД: 111364 [13:47:42]line ФПД: 249026331980275 [13:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134743&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111364&fm=249026331980275&tin=02508201610067®Number=0000000000092771&sum=100000 [13:47:42]Connected sock=11 [13:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DC 3C 07 01 AB 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 7F E1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B3 01 00 35 04 06 00 E2 7C F6 0E B1 F3 1F BB 47 66 85 24 26 24 [13:47:42]written 0, free lines is 4095 [13:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 35 7C 47 00 B2 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 04 B3 01 00 F4 03 04 00 E7 78 72 66 B6 04 01 00 00 78 FE B2 AD FD 89 15 D5 [13:47:43]CommunicateWithHost err = 0 [13:47:43]CheckOFDResponse [13:47:43]1017 (14) - 77093643461234 [13:47:43]1041 (16) - 0000000000875083 [13:47:43]1040 (4) - 111364 [13:47:43]1012 (4) - 19.06.2024 06:21 [13:47:43]1206 (1) - 0 [13:47:43]OFD Sender: Remove packet 111364 [13:47:43]ProducePacketName [13:47:43]name=ofd_packets/00111364 [13:47:43]NVStorageDeleteData [13:47:43]Write to MH i2c: 01 00 00 41 09 4A [13:47:43]Write i2c OK [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 07 00 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: 01 07 00 41 09 00 00 00 00 00 DD 0C 3A [13:47:43]RasterBufferAndPrint [13:47:43]line [13:47:43]line [13:47:43]line [13:47:43]line [13:47:43]line [13:47:43]written 0, free lines is 3299 [13:47:43]MH_Cut [13:47:43]Write to MH i2c: D1 01 00 48 09 01 23 [13:47:43]Write i2c OK [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: D1 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: D1 01 00 [13:47:43]MH_I2C_Read... [13:47:43]Read from MH i2c: D1 01 00 48 09 00 22 [13:47:43]Write to MH i2c: 01 00 00 49 09 52 [13:47:43]Write i2c OK [13:47:43]MH_I2C_Read... [13:47:43]OFD Sender: No OFD packet to send [13:47:44]*** Cut start [13:47:44]*** Partial cut [13:47:44]*** CUTSNS_PIN = 1 [13:47:44]*** CUTSNS_PIN = 0 [13:47:44]*** Brake cut motor [13:47:44]Read from MH i2c: 01 [13:47:44]MH_I2C_Read... [13:47:44]Read from MH i2c: 01 07 00 [13:47:44]MH_I2C_Read... [13:47:44]*** Stop cut motor [13:47:44]*** Cut end [13:47:44]Read from MH i2c: 01 07 00 49 09 00 00 00 00 00 FF 0F 67 [13:47:44]process_action close_receipt done [13:47:44]requested_data is exist [13:47:44]produce_requested_data [13:47:44]requested_item fm.sn is exist - process it [13:47:44]wFMCommunicate request_size=4 [13:47:44]MH_SAM_APDU [13:47:44]CAPDU: 80 11 00 00 [13:47:44]Write to MH i2c: E2 08 00 4A 09 80 11 00 00 00 00 00 00 CD [13:47:44]Write i2c OK [13:47:44]MH_I2C_Read... [13:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:44]Read from MH i2c: E2 [13:47:44]MH_I2C_Read... [13:47:44]Read from MH i2c: E2 17 00 [13:47:44]MH_I2C_Read... [13:47:44]Read from MH i2c: E2 17 00 4A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [13:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:47:44]wFMCommunicate OK [13:47:44]requested_item fd.num is exist - process it [13:47:44]SAM_PROTO_GetFieldsCounters [13:47:44]wFMCommunicate request_size=4 [13:47:44]MH_SAM_APDU [13:47:44]CAPDU: 80 13 00 00 [13:47:44]Write to MH i2c: E2 08 00 4B 09 80 13 00 00 00 00 00 00 D0 [13:47:44]Write i2c OK [13:47:44]MH_I2C_Read... [13:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:44]Read from MH i2c: E2 [13:47:44]MH_I2C_Read... [13:47:44]Read from MH i2c: E2 62 00 [13:47:44]MH_I2C_Read... [13:47:44]Read from MH i2c: E2 62 00 4B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [13:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 04 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:44]wFMCommunicate OK [13:47:44]SAM_PROTO_GetFieldsCounters done [13:47:44]requested_item shift.num is exist - process it [13:47:44]requested_item shift.opened is exist - process it [13:47:44]req_shift_opened [13:47:44]FM_GetShiftState [13:47:44]SAM_PROTO_GetShiftState [13:47:44]wFMCommunicate request_size=4 [13:47:44]MH_SAM_APDU [13:47:44]CAPDU: 80 13 01 00 [13:47:44]Write to MH i2c: E2 08 00 4C 09 80 13 01 00 00 00 00 00 D2 [13:47:44]Write i2c OK [13:47:44]MH_I2C_Read... [13:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:45]Read from MH i2c: E2 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: E2 0E 00 [13:47:45]MH_I2C_Read... [13:47:45]Read from MH i2c: E2 0E 00 4C 09 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1C [13:47:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:47:45]wFMCommunicate OK [13:47:45]SAM_PROTO_GetShiftState done [13:47:45]FM_GetShiftState done [13:47:45]req_shift_opened done [13:47:45]requested_item shift.open_date is exist - process it [13:47:45]req_shift_open_date [13:47:45]req_shift_open_date done [13:47:45]produce_requested_data done [13:47:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111364,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:47:45]process_action_free close_receipt [13:47:45]json_value_free [13:47:45]json_value_free done [13:47:45]process_json_proto returns [13:47:45]Send response to host [13:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111364,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:47:45]free response buf [13:47:45]execute_script done [13:47:45]execute_script returns [13:47:45]free content buf [13:47:45]Sock 9.Close socket [13:47:45]Sock 9.Thread stoped [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:16]accept exits with 7 [13:48:16]New connection [13:48:16]New thread 3067465060 created [13:48:16]Thread 3067321700 joined [13:48:16]Waiting for new connection... [13:48:16] Sock 7.Parse request [13:48:16]Sock 7.Check first char [13:48:16]Sock 7.First char is OK [13:48:16]request: POST /json_proto HTTP/1.0 [13:48:16]Method: POST [13:48:16]URL: /json_proto [13:48:16]Method is POST - this is cgi request [13:48:16]url: /json_proto [13:48:16]query_string will be loaded in cgi processing [13:48:16]execute_cgi json_proto POST (null) [13:48:16]execute_cgi path=json_proto method=POST [13:48:16]POST find Content-Length [13:48:16]Host: 172.17.59.68:8080 [13:48:16]Content-Length: 682 [13:48:16]Content-Type: application/json [13:48:16] [13:48:16]POST finish read [13:48:16]Found Content-Length = 682 [13:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:16]execute_script... [13:48: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)319938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:16]POST & json_proto [13:48:16]process_json_proto [13:48:16]json parsed OK: [13:48:16]protocol is kg_v1.0 [13:48:16]action value=close_receipt [13:48:16]process_action close_receipt [13:48:16]cmd_close_receipt [13:48:16]MH_GetDate [13:48:16]Write to MH i2c: F0 00 00 4D 09 45 [13:48:16]Write i2c OK [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 09 00 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: F0 09 00 4D 09 00 A2 E1 72 66 BC EC 60 65 16 [13:48:16]GetLastDocTimeStamp 1718804863 [13:48:16]current date 1718804898 [13:48:16]FM_GetShiftState [13:48:16]SAM_PROTO_GetShiftState [13:48:16]wFMCommunicate request_size=4 [13:48:16]MH_SAM_APDU [13:48:16]CAPDU: 80 13 01 00 [13:48:16]Write to MH i2c: E2 08 00 4E 09 80 13 01 00 00 00 00 00 D4 [13:48:16]Write i2c OK [13:48:16]MH_I2C_Read... [13:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:16]Read from MH i2c: E2 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: E2 0E 00 [13:48:16]MH_I2C_Read... [13:48:16]Read from MH i2c: E2 0E 00 4E 09 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1E [13:48:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:48:16]wFMCommunicate OK [13:48:16]SAM_PROTO_GetShiftState done [13:48:16]FM_GetShiftState done [13:48:16]opened in 1718760753 [13:48:16]opened+sec_in_day 1718847153 [13:48:16]quantity*price = 200047 [13:48:16]sum+1 = 200048 [13:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 114 19.06.2024 13:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111365 ФПД: 112279098315833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134818&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111365&fm=112279098315833&tin=02508201610067®Number=0000000000092771&sum=200000 [13:48:17]StoreToDocumentArchive [13:48:17]shift 388 fd 111365 [13:48:17]save to /storage/0388/doc_00111365 [13:48:17]save last doc name /storage/0388/doc_00111365 to /storage/kkm_last_doc_name [13:48:17]save OK [13:48:17]Clear old archive folders... [13:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:17]tlvbuf is 00EDB120 [13:48:17]SAM_PROTO_ClearQueue [13:48:17]wFMCommunicate request_size=4 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 09 00 00 [13:48:17]Write to MH i2c: E2 08 00 5B 09 80 09 00 00 00 00 00 00 D6 [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:17]Read from MH i2c: E2 03 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 5B 09 00 90 00 D8 [13:48:17]RAPDU: 90 00 [13:48:17]wFMCommunicate OK [13:48:17]SAM_PROTO_ClearQueue done [13:48:17]KKMCreateOFDPacket [13:48:17]OFDProtocolAddRootSTLVToBuf [13:48:17]FM_MakeSignedData [13:48:17]FM_MakeSignedData [13:48:17]SAM_PROTO_SignData [13:48:17]wFMCommunicate request_size=4 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 0D 01 02 [13:48:17]Write to MH i2c: E2 08 00 5C 09 80 0D 01 02 00 00 00 00 DE [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 5C 09 00 90 00 D9 [13:48:17]RAPDU: 90 00 [13:48:17]wFMCommunicate OK [13:48:17]wFMCommunicate request_size=255 [13:48:17]MH_SAM_APDU [13:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 72 00 00 00 F4 03 04 00 A2 E1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B3 01 00 35 04 06 00 66 [13:48:17]Write to MH i2c: E2 02 01 5D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 72 00 00 00 F4 03 04 00 A2 E1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B3 01 00 35 04 06 00 66 00 00 DB [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 5D 09 00 90 00 DA [13:48:17]RAPDU: 90 00 [13:48:17]wFMCommunicate OK [13:48:17]wFMCommunicate request_size=10 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 0D 02 02 05 1E 03 C5 54 39 [13:48:17]Write to MH i2c: E2 0D 00 5E 09 80 0D 02 02 05 00 1E 03 C5 54 39 00 00 5E [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:17]Read from MH i2c: E2 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 [13:48:17]MH_I2C_Read... [13:48:17]Read from MH i2c: E2 03 00 5E 09 00 90 00 DB [13:48:17]RAPDU: 90 00 [13:48:17]wFMCommunicate OK [13:48:17]wFMCommunicate request_size=4 [13:48:17]MH_SAM_APDU [13:48:17]CAPDU: 80 0D 03 02 [13:48:17]Write to MH i2c: E2 08 00 5F 09 80 0D 03 02 00 00 00 00 E3 [13:48:17]Write i2c OK [13:48:17]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 0B 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 0B 00 5F 09 00 1F F2 47 D0 B5 AE 6A 20 90 00 F9 [13:48:18]RAPDU: 1F F2 47 D0 B5 AE 6A 20 90 00 [13:48:18]wFMCommunicate OK [13:48:18]SAM_PROTO_SignData done [13:48:18]FM_MakeSignedData done [13:48:18]CreateOFDProtocolMessage [13:48:18]wFMCommunicate request_size=4 [13:48:18]MH_SAM_APDU [13:48:18]CAPDU: 80 11 00 00 [13:48:18]Write to MH i2c: E2 08 00 60 09 80 11 00 00 00 00 00 00 E3 [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:18]Read from MH i2c: E2 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 17 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: E2 17 00 60 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [13:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:48:18]wFMCommunicate OK [13:48:18]CreateOFDProtocolMessage done [13:48:18]OFDSenderStorePacket 111365 [13:48:18]StoreOFDPacket docnum=111365 [13:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF E5 07 01 56 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 72 00 00 00 F4 03 04 00 A2 E1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B3 01 00 35 04 06 00 66 1E 03 C5 54 39 1F F2 47 D0 B5 AE 6A 20 [13:48:18]CheckFolder [13:48:18]dirname=/storage/ofd_packets [13:48:18]CheckFolder done [13:48:18]ProducePacketName [13:48:18]name=ofd_packets/00111365 [13:48:18]NVStorageSaveData ofd_packets/00111365 [13:48:18]File name is /storage/ofd_packets/00111365 [13:48:18]Write 301 bytes [13:48:18]NVStorageSaveData done [13:48:18]OFDSenderStorePacket done [13:48:18]KKMCreateOFDPacket done [13:48:18]NVStorageSaveData kkm_last_timestamp [13:48:18]File name is /storage/kkm_last_timestamp [13:48:18]Write 4 bytes [13:48:18]NVStorageSaveData done [13:48:18]ExternCall_PrintAddStr [13:48:18]wPrintStart [13:48:18]Write to MH i2c: 01 00 00 61 09 6A [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 07 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 07 00 61 09 00 00 00 00 00 FF 0F 7F [13:48:18]RasterBufferAndPrint [13:48:18]line Счет N : (1)319938 [13:48:18]line ИНН: 02508201610067 [13:48:18]line Контрольно-Кассовый Чек [13:48:18]line ПРОДАЖА [13:48:18]line ТРК (МРК, ГНК) : 12 [13:48:18]line Товар: 2710124500 [13:48:18]line Аи-95-К-5 [13:48:18]line 27.070 * 73.90 [13:48:18]line = 2000.47 [13:48:18]line НДС 12% НСП 1% [13:48:18]line > о реализуемом товаре [13:48:18]line ОКРУГЛЕНИЕ: -0.47 [13:48:18]line ИТОГО: 2000.00 [13:48:18]line Внесено: 2000.00 [13:48:18]line СДАЧА: 0.00 [13:48:18]line НСП 1% : 17.70 [13:48:18]line НДС 12% : 212.44 [13:48:18]line Наличными: 2000.00 [13:48:18]line Безнал.: 0.00 [13:48:18]line Место: АЗС № 65 "Партнер Нефть" [13:48:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:48:18]line СНО: Общий режим [13:48:18]line Чек 114 19.06.2024 13:48 [13:48:18]line Смена: 388 ФФД: 1.0 [13:48:18]line ЗНМ: 0300000198 [13:48:18]line РНМ: 0000000000092771 [13:48:18]line Версия ККМ: 001 [13:48:18]line ФМ: 0000000000875083 [13:48:18]line ФД: 111365 [13:48:18]line ФПД: 112279098315833 [13:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T134818&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111365&fm=112279098315833&tin=02508201610067®Number=0000000000092771&sum=200000 [13:48:18]OFD Sender: Processing packet 111365 [packets to send 38, broken 37] [13:48:18]ProducePacketName [13:48:18]name=ofd_packets/00111365 [13:48:18]OFD Sender: To server: pG, [13:48:18]CommunicateWithHost lk.salyk.kg:30040 [13:48:18]ConnectInit lk.salyk.kg [13:48:18]written 0, free lines is 4095 [13:48:18]Connected sock=10 [13:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AF E5 07 01 56 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 72 00 00 00 F4 03 04 00 A2 E1 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 05 B3 01 00 35 04 06 00 66 1E 03 C5 54 39 1F F2 47 D0 B5 AE 6A 20 [13:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B6 6A 47 00 96 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 35 30 38 33 10 04 04 00 05 B3 01 00 F4 03 04 00 0A 79 72 66 B6 04 01 00 00 C3 9B C2 8F 09 C1 57 A8 [13:48:18]CommunicateWithHost err = 0 [13:48:18]CheckOFDResponse [13:48:18]1017 (14) - 77093643461234 [13:48:18]1041 (16) - 0000000000875083 [13:48:18]1040 (4) - 111365 [13:48:18]1012 (4) - 19.06.2024 06:22 [13:48:18]1206 (1) - 0 [13:48:18]OFD Sender: Remove packet 111365 [13:48:18]ProducePacketName [13:48:18]name=ofd_packets/00111365 [13:48:18]NVStorageDeleteData [13:48:18]Write to MH i2c: 01 00 00 8C 09 95 [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 07 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: 01 07 00 8C 09 00 00 00 00 00 DA 0C 82 [13:48:18]RasterBufferAndPrint [13:48:18]line [13:48:18]line [13:48:18]line [13:48:18]line [13:48:18]line [13:48:18]written 0, free lines is 3297 [13:48:18]MH_Cut [13:48:18]Write to MH i2c: D1 01 00 93 09 01 6E [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: D1 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: D1 01 00 [13:48:18]MH_I2C_Read... [13:48:18]Read from MH i2c: D1 01 00 93 09 00 6D [13:48:18]Write to MH i2c: 01 00 00 94 09 9D [13:48:18]Write i2c OK [13:48:18]MH_I2C_Read... [13:48:19]OFD Sender: No OFD packet to send [13:48:19]*** Cut start [13:48:19]*** Partial cut [13:48:19]*** CUTSNS_PIN = 1 [13:48:19]*** CUTSNS_PIN = 0 [13:48:19]*** Brake cut motor [13:48:20]Read from MH i2c: 01 [13:48:20]MH_I2C_Read... [13:48:20]*** Stop cut motor [13:48:20]*** Cut end [13:48:20]Read from MH i2c: 01 07 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: 01 07 00 94 09 00 00 00 00 00 FF 0F B2 [13:48:20]process_action close_receipt done [13:48:20]requested_data is exist [13:48:20]produce_requested_data [13:48:20]requested_item fm.sn is exist - process it [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 11 00 00 [13:48:20]Write to MH i2c: E2 08 00 95 09 80 11 00 00 00 00 00 00 18 [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 17 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 17 00 95 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [13:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:48:20]wFMCommunicate OK [13:48:20]requested_item fd.num is exist - process it [13:48:20]SAM_PROTO_GetFieldsCounters [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 13 00 00 [13:48:20]Write to MH i2c: E2 08 00 96 09 80 13 00 00 00 00 00 00 1B [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 62 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 62 00 96 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [13:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 05 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:20]wFMCommunicate OK [13:48:20]SAM_PROTO_GetFieldsCounters done [13:48:20]requested_item shift.num is exist - process it [13:48:20]requested_item shift.opened is exist - process it [13:48:20]req_shift_opened [13:48:20]FM_GetShiftState [13:48:20]SAM_PROTO_GetShiftState [13:48:20]wFMCommunicate request_size=4 [13:48:20]MH_SAM_APDU [13:48:20]CAPDU: 80 13 01 00 [13:48:20]Write to MH i2c: E2 08 00 97 09 80 13 01 00 00 00 00 00 1D [13:48:20]Write i2c OK [13:48:20]MH_I2C_Read... [13:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:20]Read from MH i2c: E2 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 0E 00 [13:48:20]MH_I2C_Read... [13:48:20]Read from MH i2c: E2 0E 00 97 09 00 09 00 01 31 35 72 66 00 00 00 00 90 00 67 [13:48:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:48:20]wFMCommunicate OK [13:48:20]SAM_PROTO_GetShiftState done [13:48:20]FM_GetShiftState done [13:48:20]req_shift_opened done [13:48:20]requested_item shift.open_date is exist - process it [13:48:20]req_shift_open_date [13:48:20]req_shift_open_date done [13:48:20]produce_requested_data done [13:48:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111365,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:48:20]process_action_free close_receipt [13:48:20]json_value_free [13:48:20]json_value_free done [13:48:20]process_json_proto returns [13:48:20]Send response to host [13:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111365,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:48:20]free response buf [13:48:20]execute_script done [13:48:20]execute_script returns [13:48:20]free content buf [13:48:20]Sock 7.Close socket [13:48:20]Sock 7.Thread stoped [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:42]accept exits with 9 [13:56:42]New connection [13:56:42]New thread 3067321700 created [13:56:42]Thread 3067465060 joined [13:56:42]Waiting for new connection... [13:56:42] Sock 9.Parse request [13:56:42]Sock 9.Check first char [13:56:42]Sock 9.First char is OK [13:56:42]request: POST /json_proto HTTP/1.0 [13:56:42]Method: POST [13:56:42]URL: /json_proto [13:56:42]Method is POST - this is cgi request [13:56:42]url: /json_proto [13:56:42]query_string will be loaded in cgi processing [13:56:42]execute_cgi json_proto POST (null) [13:56:42]execute_cgi path=json_proto method=POST [13:56:42]POST find Content-Length [13:56:42]Host: 172.17.59.68:8080 [13:56:42]Content-Length: 677 [13:56:42]Content-Type: application/json [13:56:42] [13:56:42]POST finish read [13:56:42]Found Content-Length = 677 [13:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:42]execute_script... [13:56: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)319940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:42]POST & json_proto [13:56:42]process_json_proto [13:56:42]json parsed OK: [13:56:42]protocol is kg_v1.0 [13:56:42]action value=close_receipt [13:56:42]process_action close_receipt [13:56:42]cmd_close_receipt [13:56:42]MH_GetDate [13:56:42]Write to MH i2c: F0 00 00 98 09 90 [13:56:42]Write i2c OK [13:56:42]MH_I2C_Read... [13:56:42]Read from MH i2c: F0 [13:56:42]MH_I2C_Read... [13:56:42]Read from MH i2c: F0 09 00 [13:56:42]MH_I2C_Read... [13:56:42]Read from MH i2c: F0 09 00 98 09 00 9C E3 72 66 BC EC 60 65 5D [13:56:42]GetLastDocTimeStamp 1718804898 [13:56:42]current date 1718805404 [13:56:42]FM_GetShiftState [13:56:42]SAM_PROTO_GetShiftState [13:56:42]wFMCommunicate request_size=4 [13:56:42]MH_SAM_APDU [13:56:42]CAPDU: 80 13 01 00 [13:56:42]Write to MH i2c: E2 08 00 99 09 80 13 01 00 00 00 00 00 1F [13:56:42]Write i2c OK [13:56:42]MH_I2C_Read... [13:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:42]Read from MH i2c: E2 [13:56:42]MH_I2C_Read... [13:56:42]Read from MH i2c: E2 0E 00 [13:56:42]MH_I2C_Read... [13:56:42]Read from MH i2c: E2 0E 00 99 09 00 09 00 01 31 35 72 66 00 00 00 00 90 00 69 [13:56:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:56:42]wFMCommunicate OK [13:56:42]SAM_PROTO_GetShiftState done [13:56:42]FM_GetShiftState done [13:56:42]opened in 1718760753 [13:56:42]opened+sec_in_day 1718847153 [13:56:42]quantity*price = 50065 [13:56:42]sum+1 = 50067 [13:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 115 19.06.2024 13:56 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111366 ФПД: 63443653461000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135644&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111366&fm=63443653461000&tin=02508201610067®Number=0000000000092771&sum=50000 [13:56:43]StoreToDocumentArchive [13:56:43]shift 388 fd 111366 [13:56:43]save to /storage/0388/doc_00111366 [13:56:43]save last doc name /storage/0388/doc_00111366 to /storage/kkm_last_doc_name [13:56:43]save OK [13:56:43]Clear old archive folders... [13:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:43]tlvbuf is 00EDE3A0 [13:56:43]SAM_PROTO_ClearQueue [13:56:43]wFMCommunicate request_size=4 [13:56:43]MH_SAM_APDU [13:56:43]CAPDU: 80 09 00 00 [13:56:43]Write to MH i2c: E2 08 00 A6 09 80 09 00 00 00 00 00 00 21 [13:56:43]Write i2c OK [13:56:43]MH_I2C_Read... [13:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:43]Read from MH i2c: E2 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 03 00 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [13:56:43]RAPDU: 90 00 [13:56:43]wFMCommunicate OK [13:56:43]SAM_PROTO_ClearQueue done [13:56:43]KKMCreateOFDPacket [13:56:43]OFDProtocolAddRootSTLVToBuf [13:56:43]FM_MakeSignedData [13:56:43]FM_MakeSignedData [13:56:43]SAM_PROTO_SignData [13:56:43]wFMCommunicate request_size=4 [13:56:43]MH_SAM_APDU [13:56:43]CAPDU: 80 0D 01 02 [13:56:43]Write to MH i2c: E2 08 00 A7 09 80 0D 01 02 00 00 00 00 29 [13:56:43]Write i2c OK [13:56:43]MH_I2C_Read... [13:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:43]Read from MH i2c: E2 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 03 00 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 03 00 A7 09 00 90 00 24 [13:56:43]RAPDU: 90 00 [13:56:43]wFMCommunicate OK [13:56:43]wFMCommunicate request_size=255 [13:56:43]MH_SAM_APDU [13:56: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9C E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B3 01 00 35 04 06 00 39 [13:56:43]Write to MH i2c: E2 02 01 A8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9C E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B3 01 00 35 04 06 00 39 00 00 1F [13:56:43]Write i2c OK [13:56:43]MH_I2C_Read... [13:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:43]Read from MH i2c: E2 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 03 00 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 03 00 A8 09 00 90 00 25 [13:56:43]RAPDU: 90 00 [13:56:43]wFMCommunicate OK [13:56:43]wFMCommunicate request_size=10 [13:56:43]MH_SAM_APDU [13:56:43]CAPDU: 80 0D 02 02 05 B3 A0 6D 84 08 [13:56:43]Write to MH i2c: E2 0D 00 A9 09 80 0D 02 02 05 00 B3 A0 6D 84 08 00 00 82 [13:56:43]Write i2c OK [13:56:43]MH_I2C_Read... [13:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:43]Read from MH i2c: E2 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 03 00 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 03 00 A9 09 00 90 00 26 [13:56:43]RAPDU: 90 00 [13:56:43]wFMCommunicate OK [13:56:43]wFMCommunicate request_size=4 [13:56:43]MH_SAM_APDU [13:56:43]CAPDU: 80 0D 03 02 [13:56:43]Write to MH i2c: E2 08 00 AA 09 80 0D 03 02 00 00 00 00 2E [13:56:43]Write i2c OK [13:56:43]MH_I2C_Read... [13:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:43]Read from MH i2c: E2 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 0B 00 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 0B 00 AA 09 00 A5 83 83 AF 2A CD 1A 6E 90 00 08 [13:56:43]RAPDU: A5 83 83 AF 2A CD 1A 6E 90 00 [13:56:43]wFMCommunicate OK [13:56:43]SAM_PROTO_SignData done [13:56:43]FM_MakeSignedData done [13:56:43]CreateOFDProtocolMessage [13:56:43]wFMCommunicate request_size=4 [13:56:43]MH_SAM_APDU [13:56:43]CAPDU: 80 11 00 00 [13:56:43]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [13:56:43]Write i2c OK [13:56:43]MH_I2C_Read... [13:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:43]Read from MH i2c: E2 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 17 00 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 80 [13:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:56:43]wFMCommunicate OK [13:56:43]CreateOFDProtocolMessage done [13:56:43]OFDSenderStorePacket 111366 [13:56:43]StoreOFDPacket docnum=111366 [13:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 7A 07 01 3E 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9C E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B3 01 00 35 04 06 00 39 B3 A0 6D 84 08 A5 83 83 AF 2A CD 1A 6E [13:56:43]CheckFolder [13:56:43]dirname=/storage/ofd_packets [13:56:43]CheckFolder done [13:56:43]ProducePacketName [13:56:43]name=ofd_packets/00111366 [13:56:43]NVStorageSaveData ofd_packets/00111366 [13:56:43]File name is /storage/ofd_packets/00111366 [13:56:43]Write 301 bytes [13:56:43]NVStorageSaveData done [13:56:43]OFDSenderStorePacket done [13:56:43]KKMCreateOFDPacket done [13:56:43]NVStorageSaveData kkm_last_timestamp [13:56:43]File name is /storage/kkm_last_timestamp [13:56:43]Write 4 bytes [13:56:43]NVStorageSaveData done [13:56:43]ExternCall_PrintAddStr [13:56:43]wPrintStart [13:56:43]Write to MH i2c: 01 00 00 AC 09 B5 [13:56:43]Write i2c OK [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: 01 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: 01 07 00 [13:56:43]MH_I2C_Read... [13:56:43]Read from MH i2c: 01 07 00 AC 09 00 00 00 00 00 FF 0F CA [13:56:43]RasterBufferAndPrint [13:56:43]line Счет N : (1)319940 [13:56:43]line ИНН: 02508201610067 [13:56:43]line Контрольно-Кассовый Чек [13:56:43]line ПРОДАЖА [13:56:43]line ТРК (МРК, ГНК) : 11 [13:56:43]line Товар: 2710124130 [13:56:43]line Аи-92-К-5 [13:56:43]line 7.540 * 66.40 [13:56:43]line = 500.66 [13:56:43]line НДС 12% НСП 1% [13:56:43]line > о реализуемом товаре [13:56:43]line ОКРУГЛЕНИЕ: -0.66 [13:56:43]line ИТОГО: 500.00 [13:56:43]line Внесено: 500.00 [13:56:43]line СДАЧА: 0.00 [13:56:43]line НСП 1% : 4.43 [13:56:43]line НДС 12% : 53.17 [13:56:43]line Наличными: 500.00 [13:56:43]line Безнал.: 0.00 [13:56:43]line Место: АЗС № 65 "Партнер Нефть" [13:56:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:56:43]line СНО: Общий режим [13:56:43]line Чек 115 19.06.2024 13:56 [13:56:43]line Смена: 388 ФФД: 1.0 [13:56:43]line ЗНМ: 0300000198 [13:56:43]line РНМ: 0000000000092771 [13:56:43]line Версия ККМ: 001 [13:56:43]line ФМ: 0000000000875083 [13:56:43]line ФД: 111366 [13:56:43]line ФПД: 63443653461000 [13:56:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135644&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111366&fm=63443653461000&tin=02508201610067®Number=0000000000092771&sum=50000 [13:56:43]written 0, free lines is 4095 [13:56:43]OFD Sender: Processing packet 111366 [packets to send 38, broken 37] [13:56:43]ProducePacketName [13:56:43]name=ofd_packets/00111366 [13:56:43]OFD Sender: To server: pG, [13:56:43]CommunicateWithHost lk.salyk.kg:30040 [13:56:43]ConnectInit lk.salyk.kg [13:56:43]Connected sock=10 [13:56:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA 7A 07 01 3E 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 9C E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 06 B3 01 00 35 04 06 00 39 B3 A0 6D 84 08 A5 83 83 AF 2A CD 1A 6E [13:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 CC 47 00 38 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 35 30 38 33 10 04 04 00 06 B3 01 00 F4 03 04 00 04 7B 72 66 B6 04 01 00 00 04 3E FB EF 08 2F E3 D6 [13:56:44]CommunicateWithHost err = 0 [13:56:44]CheckOFDResponse [13:56:44]1017 (14) - 77093643461234 [13:56:44]1041 (16) - 0000000000875083 [13:56:44]1040 (4) - 111366 [13:56:44]1012 (4) - 19.06.2024 06:30 [13:56:44]1206 (1) - 0 [13:56:44]OFD Sender: Remove packet 111366 [13:56:44]ProducePacketName [13:56:44]name=ofd_packets/00111366 [13:56:44]NVStorageDeleteData [13:56:44]Write to MH i2c: 01 00 00 D7 09 E0 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: 01 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: 01 07 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: 01 07 00 D7 09 00 00 00 00 00 E6 0C D9 [13:56:44]RasterBufferAndPrint [13:56:44]line [13:56:44]line [13:56:44]line [13:56:44]line [13:56:44]line [13:56:44]written 0, free lines is 3308 [13:56:44]MH_Cut [13:56:44]Write to MH i2c: D1 01 00 DE 09 01 B9 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: D1 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: D1 01 00 [13:56:44]MH_I2C_Read... [13:56:44]Read from MH i2c: D1 01 00 DE 09 00 B8 [13:56:44]Write to MH i2c: 01 00 00 DF 09 E8 [13:56:44]Write i2c OK [13:56:44]MH_I2C_Read... [13:56:44]OFD Sender: No OFD packet to send [13:56:44]*** Cut start [13:56:44]*** Partial cut [13:56:44]*** CUTSNS_PIN = 1 [13:56:45]*** CUTSNS_PIN = 0 [13:56:45]*** Brake cut motor [13:56:45]Read from MH i2c: 01 [13:56:45]MH_I2C_Read... [13:56:45]*** Stop cut motor [13:56:45]*** Cut end [13:56:45]Read from MH i2c: 01 07 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: 01 07 00 DF 09 00 00 00 00 00 FF 0F FD [13:56:45]process_action close_receipt done [13:56:45]requested_data is exist [13:56:45]produce_requested_data [13:56:45]requested_item fm.sn is exist - process it [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 11 00 00 [13:56:45]Write to MH i2c: E2 08 00 E0 09 80 11 00 00 00 00 00 00 63 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 17 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 17 00 E0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [13:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:56:45]wFMCommunicate OK [13:56:45]requested_item fd.num is exist - process it [13:56:45]SAM_PROTO_GetFieldsCounters [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 13 00 00 [13:56:45]Write to MH i2c: E2 08 00 E1 09 80 13 00 00 00 00 00 00 66 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 62 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 62 00 E1 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [13:56: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 06 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:45]wFMCommunicate OK [13:56:45]SAM_PROTO_GetFieldsCounters done [13:56:45]requested_item shift.num is exist - process it [13:56:45]requested_item shift.opened is exist - process it [13:56:45]req_shift_opened [13:56:45]FM_GetShiftState [13:56:45]SAM_PROTO_GetShiftState [13:56:45]wFMCommunicate request_size=4 [13:56:45]MH_SAM_APDU [13:56:45]CAPDU: 80 13 01 00 [13:56:45]Write to MH i2c: E2 08 00 E2 09 80 13 01 00 00 00 00 00 68 [13:56:45]Write i2c OK [13:56:45]MH_I2C_Read... [13:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:45]Read from MH i2c: E2 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 0E 00 [13:56:45]MH_I2C_Read... [13:56:45]Read from MH i2c: E2 0E 00 E2 09 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B2 [13:56:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:56:45]wFMCommunicate OK [13:56:45]SAM_PROTO_GetShiftState done [13:56:45]FM_GetShiftState done [13:56:45]req_shift_opened done [13:56:45]requested_item shift.open_date is exist - process it [13:56:45]req_shift_open_date [13:56:45]req_shift_open_date done [13:56:45]produce_requested_data done [13:56:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111366,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:56:45]process_action_free close_receipt [13:56:45]json_value_free [13:56:45]json_value_free done [13:56:45]process_json_proto returns [13:56:45]Send response to host [13:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111366,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:56:45]free response buf [13:56:45]execute_script done [13:56:45]execute_script returns [13:56:45]free content buf [13:56:45]Sock 9.Close socket [13:56:45]Sock 9.Thread stoped [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:22]accept exits with 7 [13:57:22]New connection [13:57:22]New thread 3067465060 created [13:57:22]Thread 3067321700 joined [13:57:22]Waiting for new connection... [13:57:22] Sock 7.Parse request [13:57:22]Sock 7.Check first char [13:57:22]Sock 7.First char is OK [13:57:22]request: POST /json_proto HTTP/1.0 [13:57:22]Method: POST [13:57:22]URL: /json_proto [13:57:22]Method is POST - this is cgi request [13:57:22]url: /json_proto [13:57:22]query_string will be loaded in cgi processing [13:57:22]execute_cgi json_proto POST (null) [13:57:22]execute_cgi path=json_proto method=POST [13:57:22]POST find Content-Length [13:57:22]Host: 172.17.59.68:8080 [13:57:22]Content-Length: 677 [13:57:22]Content-Type: application/json [13:57:22] [13:57:22]POST finish read [13:57:22]Found Content-Length = 677 [13:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:22]execute_script... [13:57: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)319941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:22]POST & json_proto [13:57:22]process_json_proto [13:57:22]json parsed OK: [13:57:22]protocol is kg_v1.0 [13:57:22]action value=close_receipt [13:57:22]process_action close_receipt [13:57:22]cmd_close_receipt [13:57:22]MH_GetDate [13:57:22]Write to MH i2c: F0 00 00 E3 09 DB [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: F0 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: F0 09 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: F0 09 00 E3 09 00 C4 E3 72 66 BC EC 60 65 D0 [13:57:22]GetLastDocTimeStamp 1718805404 [13:57:22]current date 1718805444 [13:57:22]FM_GetShiftState [13:57:22]SAM_PROTO_GetShiftState [13:57:22]wFMCommunicate request_size=4 [13:57:22]MH_SAM_APDU [13:57:22]CAPDU: 80 13 01 00 [13:57:22]Write to MH i2c: E2 08 00 E4 09 80 13 01 00 00 00 00 00 6A [13:57:22]Write i2c OK [13:57:22]MH_I2C_Read... [13:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:22]Read from MH i2c: E2 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 0E 00 [13:57:22]MH_I2C_Read... [13:57:22]Read from MH i2c: E2 0E 00 E4 09 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B4 [13:57:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:57:22]wFMCommunicate OK [13:57:22]SAM_PROTO_GetShiftState done [13:57:22]FM_GetShiftState done [13:57:22]opened in 1718760753 [13:57:22]opened+sec_in_day 1718847153 [13:57:22]quantity*price = 50065 [13:57:22]sum+1 = 50067 [13:57:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 116 19.06.2024 13:57 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111367 ФПД: 119401768744891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111367&fm=119401768744891&tin=02508201610067®Number=0000000000092771&sum=50000 [13:57:23]StoreToDocumentArchive [13:57:23]shift 388 fd 111367 [13:57:23]save to /storage/0388/doc_00111367 [13:57:23]save last doc name /storage/0388/doc_00111367 to /storage/kkm_last_doc_name [13:57:23]save OK [13:57:23]Clear old archive folders... [13:57:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:23]tlvbuf is 00E9CD00 [13:57:23]SAM_PROTO_ClearQueue [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 09 00 00 [13:57:23]Write to MH i2c: E2 08 00 F1 09 80 09 00 00 00 00 00 00 6C [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 F1 09 00 90 00 6E [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_ClearQueue done [13:57:23]KKMCreateOFDPacket [13:57:23]OFDProtocolAddRootSTLVToBuf [13:57:23]FM_MakeSignedData [13:57:23]FM_MakeSignedData [13:57:23]SAM_PROTO_SignData [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 01 02 [13:57:23]Write to MH i2c: E2 08 00 F2 09 80 0D 01 02 00 00 00 00 74 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=255 [13:57:23]MH_SAM_APDU [13:57: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C4 E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B3 01 00 35 04 06 00 6C [13:57:23]Write to MH i2c: E2 02 01 F3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C4 E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B3 01 00 35 04 06 00 6C 00 00 C7 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 F3 09 00 90 00 70 [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=10 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 02 02 05 98 64 02 F7 BB [13:57:23]Write to MH i2c: E2 0D 00 F4 09 80 0D 02 02 05 00 98 64 02 F7 BB 00 00 31 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 03 00 F4 09 00 90 00 71 [13:57:23]RAPDU: 90 00 [13:57:23]wFMCommunicate OK [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 0D 03 02 [13:57:23]Write to MH i2c: E2 08 00 F5 09 80 0D 03 02 00 00 00 00 79 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:23]Read from MH i2c: E2 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0B 00 [13:57:23]MH_I2C_Read... [13:57:23]Read from MH i2c: E2 0B 00 F5 09 00 EF 58 BE 32 08 CC 2D BA 90 00 6C [13:57:23]RAPDU: EF 58 BE 32 08 CC 2D BA 90 00 [13:57:23]wFMCommunicate OK [13:57:23]SAM_PROTO_SignData done [13:57:23]FM_MakeSignedData done [13:57:23]CreateOFDProtocolMessage [13:57:23]wFMCommunicate request_size=4 [13:57:23]MH_SAM_APDU [13:57:23]CAPDU: 80 11 00 00 [13:57:23]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [13:57:23]Write i2c OK [13:57:23]MH_I2C_Read... [13:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:24]Read from MH i2c: E2 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 17 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: E2 17 00 F6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CB [13:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:57:24]wFMCommunicate OK [13:57:24]CreateOFDProtocolMessage done [13:57:24]OFDSenderStorePacket 111367 [13:57:24]StoreOFDPacket docnum=111367 [13:57:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 C2 07 01 9E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C4 E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B3 01 00 35 04 06 00 6C 98 64 02 F7 BB EF 58 BE 32 08 CC 2D BA [13:57:24]CheckFolder [13:57:24]dirname=/storage/ofd_packets [13:57:24]CheckFolder done [13:57:24]ProducePacketName [13:57:24]name=ofd_packets/00111367 [13:57:24]NVStorageSaveData ofd_packets/00111367 [13:57:24]File name is /storage/ofd_packets/00111367 [13:57:24]Write 301 bytes [13:57:24]NVStorageSaveData done [13:57:24]OFDSenderStorePacket done [13:57:24]KKMCreateOFDPacket done [13:57:24]NVStorageSaveData kkm_last_timestamp [13:57:24]File name is /storage/kkm_last_timestamp [13:57:24]Write 4 bytes [13:57:24]NVStorageSaveData done [13:57:24]ExternCall_PrintAddStr [13:57:24]wPrintStart [13:57:24]Write to MH i2c: 01 00 00 F7 09 00 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 F7 09 00 00 00 00 00 FF 0F 15 [13:57:24]RasterBufferAndPrint [13:57:24]line Счет N : (1)319941 [13:57:24]line ИНН: 02508201610067 [13:57:24]line Контрольно-Кассовый Чек [13:57:24]line ПРОДАЖА [13:57:24]line ТРК (МРК, ГНК) : 11 [13:57:24]line Товар: 2710124130 [13:57:24]line Аи-92-К-5 [13:57:24]line 7.540 * 66.40 [13:57:24]line = 500.66 [13:57:24]line НДС 12% НСП 1% [13:57:24]line > о реализуемом товаре [13:57:24]line ОКРУГЛЕНИЕ: -0.66 [13:57:24]line ИТОГО: 500.00 [13:57:24]line Внесено: 500.00 [13:57:24]line СДАЧА: 0.00 [13:57:24]line НСП 1% : 4.43 [13:57:24]line НДС 12% : 53.17 [13:57:24]line Наличными: 500.00 [13:57:24]line Безнал.: 0.00 [13:57:24]line Место: АЗС № 65 "Партнер Нефть" [13:57:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:57:24]line СНО: Общий режим [13:57:24]line Чек 116 19.06.2024 13:57 [13:57:24]line Смена: 388 ФФД: 1.0 [13:57:24]line ЗНМ: 0300000198 [13:57:24]line РНМ: 0000000000092771 [13:57:24]line Версия ККМ: 001 [13:57:24]line ФМ: 0000000000875083 [13:57:24]line ФД: 111367 [13:57:24]line ФПД: 119401768744891 [13:57:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111367&fm=119401768744891&tin=02508201610067®Number=0000000000092771&sum=50000 [13:57:24]OFD Sender: Processing packet 111367 [packets to send 38, broken 37] [13:57:24]ProducePacketName [13:57:24]name=ofd_packets/00111367 [13:57:24]OFD Sender: To server: pG, [13:57:24]CommunicateWithHost lk.salyk.kg:30040 [13:57:24]ConnectInit lk.salyk.kg [13:57:24]written 0, free lines is 4095 [13:57:24]Connected sock=10 [13:57:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 C2 07 01 9E 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 C4 E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B3 01 00 35 04 06 00 6C 98 64 02 F7 BB EF 58 BE 32 08 CC 2D BA [13:57:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 02 36 47 00 E2 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 07 B3 01 00 F4 03 04 00 2C 7B 72 66 B6 04 01 00 00 DC 2C C7 2F FE F5 51 7E [13:57:24]CommunicateWithHost err = 0 [13:57:24]CheckOFDResponse [13:57:24]1017 (14) - 77093643461234 [13:57:24]1041 (16) - 0000000000875083 [13:57:24]1040 (4) - 111367 [13:57:24]1012 (4) - 19.06.2024 06:31 [13:57:24]1206 (1) - 0 [13:57:24]OFD Sender: Remove packet 111367 [13:57:24]ProducePacketName [13:57:24]name=ofd_packets/00111367 [13:57:24]NVStorageDeleteData [13:57:24]Write to MH i2c: 01 00 00 22 0A 2C [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: 01 07 00 22 0A 00 00 00 00 00 D8 0C 17 [13:57:24]RasterBufferAndPrint [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]line [13:57:24]written 0, free lines is 3295 [13:57:24]MH_Cut [13:57:24]Write to MH i2c: D1 01 00 29 0A 01 05 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 01 00 [13:57:24]MH_I2C_Read... [13:57:24]Read from MH i2c: D1 01 00 29 0A 00 04 [13:57:24]Write to MH i2c: 01 00 00 2A 0A 34 [13:57:24]Write i2c OK [13:57:24]MH_I2C_Read... [13:57:25]OFD Sender: No OFD packet to send [13:57:25]*** Cut start [13:57:25]*** Partial cut [13:57:25]*** CUTSNS_PIN = 1 [13:57:25]*** CUTSNS_PIN = 0 [13:57:25]*** Brake cut motor [13:57:26]Read from MH i2c: 01 [13:57:26]MH_I2C_Read... [13:57:26]*** Stop cut motor [13:57:26]*** Cut end [13:57:26]Read from MH i2c: 01 07 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: 01 07 00 2A 0A 00 00 00 00 00 FF 0F 49 [13:57:26]process_action close_receipt done [13:57:26]requested_data is exist [13:57:26]produce_requested_data [13:57:26]requested_item fm.sn is exist - process it [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 11 00 00 [13:57:26]Write to MH i2c: E2 08 00 2B 0A 80 11 00 00 00 00 00 00 AF [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 17 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 17 00 2B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [13:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:57:26]wFMCommunicate OK [13:57:26]requested_item fd.num is exist - process it [13:57:26]SAM_PROTO_GetFieldsCounters [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 13 00 00 [13:57:26]Write to MH i2c: E2 08 00 2C 0A 80 13 00 00 00 00 00 00 B2 [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 62 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 62 00 2C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 07 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [13:57: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 07 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:26]wFMCommunicate OK [13:57:26]SAM_PROTO_GetFieldsCounters done [13:57:26]requested_item shift.num is exist - process it [13:57:26]requested_item shift.opened is exist - process it [13:57:26]req_shift_opened [13:57:26]FM_GetShiftState [13:57:26]SAM_PROTO_GetShiftState [13:57:26]wFMCommunicate request_size=4 [13:57:26]MH_SAM_APDU [13:57:26]CAPDU: 80 13 01 00 [13:57:26]Write to MH i2c: E2 08 00 2D 0A 80 13 01 00 00 00 00 00 B4 [13:57:26]Write i2c OK [13:57:26]MH_I2C_Read... [13:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:26]Read from MH i2c: E2 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 0E 00 [13:57:26]MH_I2C_Read... [13:57:26]Read from MH i2c: E2 0E 00 2D 0A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FE [13:57:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:57:26]wFMCommunicate OK [13:57:26]SAM_PROTO_GetShiftState done [13:57:26]FM_GetShiftState done [13:57:26]req_shift_opened done [13:57:26]requested_item shift.open_date is exist - process it [13:57:26]req_shift_open_date [13:57:26]req_shift_open_date done [13:57:26]produce_requested_data done [13:57:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111367,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:57:26]process_action_free close_receipt [13:57:26]json_value_free [13:57:26]json_value_free done [13:57:26]process_json_proto returns [13:57:26]Send response to host [13:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111367,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:57:26]free response buf [13:57:26]execute_script done [13:57:26]execute_script returns [13:57:26]free content buf [13:57:26]Sock 7.Close socket [13:57:26]Sock 7.Thread stoped [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:05]accept exits with 9 [13:58:05]New connection [13:58:05]New thread 3067321700 created [13:58:05]Thread 3067465060 joined [13:58:05]Waiting for new connection... [13:58:05] Sock 9.Parse request [13:58:05]Sock 9.Check first char [13:58:05]Sock 9.First char is OK [13:58:05]request: POST /json_proto HTTP/1.0 [13:58:05]Method: POST [13:58:05]URL: /json_proto [13:58:05]Method is POST - this is cgi request [13:58:05]url: /json_proto [13:58:05]query_string will be loaded in cgi processing [13:58:05]execute_cgi json_proto POST (null) [13:58:05]execute_cgi path=json_proto method=POST [13:58:05]POST find Content-Length [13:58:05]Host: 172.17.59.68:8080 [13:58:05]Content-Length: 677 [13:58:05]Content-Type: application/json [13:58:05] [13:58:05]POST finish read [13:58:05]Found Content-Length = 677 [13:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:58:05]execute_script... [13:58:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:58:05]POST & json_proto [13:58:05]process_json_proto [13:58:05]json parsed OK: [13:58:05]protocol is kg_v1.0 [13:58:05]action value=close_receipt [13:58:05]process_action close_receipt [13:58:05]cmd_close_receipt [13:58:05]MH_GetDate [13:58:05]Write to MH i2c: F0 00 00 2E 0A 27 [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 09 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 09 00 2E 0A 00 F0 E3 72 66 BC EC 60 65 48 [13:58:05]GetLastDocTimeStamp 1718805444 [13:58:05]current date 1718805488 [13:58:05]FM_GetShiftState [13:58:05]SAM_PROTO_GetShiftState [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 13 01 00 [13:58:05]Write to MH i2c: E2 08 00 2F 0A 80 13 01 00 00 00 00 00 B6 [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:05]Read from MH i2c: E2 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 0E 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 0E 00 2F 0A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 00 [13:58:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:58:05]wFMCommunicate OK [13:58:05]SAM_PROTO_GetShiftState done [13:58:05]FM_GetShiftState done [13:58:05]opened in 1718760753 [13:58:05]opened+sec_in_day 1718847153 [13:58:05]quantity*price = 40039 [13:58:05]sum+1 = 40040 [13:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 117 19.06.2024 13:58 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111368 ФПД: 52375729502563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111368&fm=52375729502563&tin=02508201610067®Number=0000000000092771&sum=40000 [13:58:06]StoreToDocumentArchive [13:58:06]shift 388 fd 111368 [13:58:06]save to /storage/0388/doc_00111368 [13:58:06]save last doc name /storage/0388/doc_00111368 to /storage/kkm_last_doc_name [13:58:06]save OK [13:58:06]Clear old archive folders... [13:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:06]tlvbuf is 00EDDDC0 [13:58:06]SAM_PROTO_ClearQueue [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 09 00 00 [13:58:06]Write to MH i2c: E2 08 00 3C 0A 80 09 00 00 00 00 00 00 B8 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 3C 0A 00 90 00 BA [13:58:06]RAPDU: 90 00 [13:58:06]wFMCommunicate OK [13:58:06]SAM_PROTO_ClearQueue done [13:58:06]KKMCreateOFDPacket [13:58:06]OFDProtocolAddRootSTLVToBuf [13:58:06]FM_MakeSignedData [13:58:06]FM_MakeSignedData [13:58:06]SAM_PROTO_SignData [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 0D 01 02 [13:58:06]Write to MH i2c: E2 08 00 3D 0A 80 0D 01 02 00 00 00 00 C0 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 3D 0A 00 90 00 BB [13:58:06]RAPDU: 90 00 [13:58:06]wFMCommunicate OK [13:58:06]wFMCommunicate request_size=255 [13:58:06]MH_SAM_APDU [13:58: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 75 00 00 00 F4 03 04 00 F0 E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B3 01 00 35 04 06 00 2F [13:58:06]Write to MH i2c: E2 02 01 3E 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 75 00 00 00 F4 03 04 00 F0 E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B3 01 00 35 04 06 00 2F 00 00 D2 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 3E 0A 00 90 00 BC [13:58:06]RAPDU: 90 00 [13:58:06]wFMCommunicate OK [13:58:06]wFMCommunicate request_size=10 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 0D 02 02 05 A2 AC C0 79 63 [13:58:06]Write to MH i2c: E2 0D 00 3F 0A 80 0D 02 02 05 00 A2 AC C0 79 63 00 00 B7 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 3F 0A 00 90 00 BD [13:58:06]RAPDU: 90 00 [13:58:06]wFMCommunicate OK [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 0D 03 02 [13:58:06]Write to MH i2c: E2 08 00 40 0A 80 0D 03 02 00 00 00 00 C5 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 40 0A 00 63 56 16 13 F0 A0 67 81 90 00 20 [13:58:07]RAPDU: 63 56 16 13 F0 A0 67 81 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_SignData done [13:58:07]FM_MakeSignedData done [13:58:07]CreateOFDProtocolMessage [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 11 00 00 [13:58:07]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 17 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 17 [13:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:58:07]wFMCommunicate OK [13:58:07]CreateOFDProtocolMessage done [13:58:07]OFDSenderStorePacket 111368 [13:58:07]StoreOFDPacket docnum=111368 [13:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 0D 07 01 66 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 75 00 00 00 F4 03 04 00 F0 E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B3 01 00 35 04 06 00 2F A2 AC C0 79 63 63 56 16 13 F0 A0 67 81 [13:58:07]CheckFolder [13:58:07]dirname=/storage/ofd_packets [13:58:07]CheckFolder done [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00111368 [13:58:07]NVStorageSaveData ofd_packets/00111368 [13:58:07]File name is /storage/ofd_packets/00111368 [13:58:07]Write 301 bytes [13:58:07]NVStorageSaveData done [13:58:07]OFDSenderStorePacket done [13:58:07]KKMCreateOFDPacket done [13:58:07]NVStorageSaveData kkm_last_timestamp [13:58:07]File name is /storage/kkm_last_timestamp [13:58:07]Write 4 bytes [13:58:07]NVStorageSaveData done [13:58:07]ExternCall_PrintAddStr [13:58:07]wPrintStart [13:58:07]Write to MH i2c: 01 00 00 42 0A 4C [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 42 0A 00 00 00 00 00 FF 0F 61 [13:58:07]RasterBufferAndPrint [13:58:07]line Счет N : (1)319942 [13:58:07]line ИНН: 02508201610067 [13:58:07]line Контрольно-Кассовый Чек [13:58:07]line ПРОДАЖА [13:58:07]line ТРК (МРК, ГНК) : 11 [13:58:07]line Товар: 2710124130 [13:58:07]line Аи-92-К-5 [13:58:07]line 6.030 * 66.40 [13:58:07]line = 400.39 [13:58:07]line НДС 12% НСП 1% [13:58:07]line > о реализуемом товаре [13:58:07]line ОКРУГЛЕНИЕ: -0.39 [13:58:07]line ИТОГО: 400.00 [13:58:07]line Внесено: 400.00 [13:58:07]line СДАЧА: 0.00 [13:58:07]line НСП 1% : 3.54 [13:58:07]line НДС 12% : 42.52 [13:58:07]line Наличными: 400.00 [13:58:07]line Безнал.: 0.00 [13:58:07]line Место: АЗС № 65 "Партнер Нефть" [13:58:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:58:07]line СНО: Общий режим [13:58:07]line Чек 117 19.06.2024 13:58 [13:58:07]line Смена: 388 ФФД: 1.0 [13:58:07]line ЗНМ: 0300000198 [13:58:07]line РНМ: 0000000000092771 [13:58:07]line Версия ККМ: 001 [13:58:07]line ФМ: 0000000000875083 [13:58:07]line ФД: 111368 [13:58:07]line ФПД: 52375729502563 [13:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111368&fm=52375729502563&tin=02508201610067®Number=0000000000092771&sum=40000 [13:58:07]OFD Sender: Processing packet 111368 [packets to send 38, broken 37] [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00111368 [13:58:07]OFD Sender: To server: pG, [13:58:07]CommunicateWithHost lk.salyk.kg:30040 [13:58:07]ConnectInit lk.salyk.kg [13:58:07]written 0, free lines is 4095 [13:58:07]Connected sock=10 [13:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 71 0D 07 01 66 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 75 00 00 00 F4 03 04 00 F0 E3 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B3 01 00 35 04 06 00 2F A2 AC C0 79 63 63 56 16 13 F0 A0 67 81 [13:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CB 1D 47 00 0C 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 08 B3 01 00 F4 03 04 00 57 7B 72 66 B6 04 01 00 00 D8 F1 8F 06 6E D2 0D EF [13:58:07]CommunicateWithHost err = 0 [13:58:07]CheckOFDResponse [13:58:07]1017 (14) - 77093643461234 [13:58:07]1041 (16) - 0000000000875083 [13:58:07]1040 (4) - 111368 [13:58:07]1012 (4) - 19.06.2024 06:31 [13:58:07]1206 (1) - 0 [13:58:07]OFD Sender: Remove packet 111368 [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00111368 [13:58:07]NVStorageDeleteData [13:58:07]Write to MH i2c: 01 00 00 6D 0A 77 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 6D 0A 00 00 00 00 00 EA 0C 74 [13:58:07]RasterBufferAndPrint [13:58:07]line [13:58:07]line [13:58:07]line [13:58:07]line [13:58:07]line [13:58:07]written 0, free lines is 3312 [13:58:07]MH_Cut [13:58:07]Write to MH i2c: D1 01 00 74 0A 01 50 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: D1 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: D1 01 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: D1 01 00 74 0A 00 4F [13:58:07]Write to MH i2c: 01 00 00 75 0A 7F [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:08]OFD Sender: No OFD packet to send [13:58:08]*** Cut start [13:58:08]*** Partial cut [13:58:08]*** CUTSNS_PIN = 1 [13:58:08]*** CUTSNS_PIN = 0 [13:58:08]*** Brake cut motor [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]*** Stop cut motor [13:58:09]*** Cut end [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 75 0A 00 00 00 00 00 FF 0F 94 [13:58:09]process_action close_receipt done [13:58:09]requested_data is exist [13:58:09]produce_requested_data [13:58:09]requested_item fm.sn is exist - process it [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 11 00 00 [13:58:09]Write to MH i2c: E2 08 00 76 0A 80 11 00 00 00 00 00 00 FA [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 76 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4C [13:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:58:09]wFMCommunicate OK [13:58:09]requested_item fd.num is exist - process it [13:58:09]SAM_PROTO_GetFieldsCounters [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 00 00 [13:58:09]Write to MH i2c: E2 08 00 77 0A 80 13 00 00 00 00 00 00 FD [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 62 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 62 00 77 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 08 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [13:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 08 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_GetFieldsCounters done [13:58:09]requested_item shift.num is exist - process it [13:58:09]requested_item shift.opened is exist - process it [13:58:09]req_shift_opened [13:58:09]FM_GetShiftState [13:58:09]SAM_PROTO_GetShiftState [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 01 00 [13:58:09]Write to MH i2c: E2 08 00 78 0A 80 13 01 00 00 00 00 00 FF [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:09]Read from MH i2c: E2 0E 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0E 00 78 0A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 49 [13:58:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_GetShiftState done [13:58:09]FM_GetShiftState done [13:58:09]req_shift_opened done [13:58:09]requested_item shift.open_date is exist - process it [13:58:09]req_shift_open_date [13:58:09]req_shift_open_date done [13:58:09]produce_requested_data done [13:58:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111368,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:58:09]process_action_free close_receipt [13:58:09]json_value_free [13:58:09]json_value_free done [13:58:09]process_json_proto returns [13:58:09]Send response to host [13:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111368,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:58:09]free response buf [13:58:09]execute_script done [13:58:09]execute_script returns [13:58:09]free content buf [13:58:09]Sock 9.Close socket [13:58:09]Sock 9.Thread stoped [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:05]accept exits with 7 [13:59:05]New connection [13:59:05]New thread 3067465060 created [13:59:05]Thread 3067321700 joined [13:59:05]Waiting for new connection... [13:59:05] Sock 7.Parse request [13:59:05]Sock 7.Check first char [13:59:05]Sock 7.First char is OK [13:59:05]request: POST /json_proto HTTP/1.0 [13:59:05]Method: POST [13:59:05]URL: /json_proto [13:59:05]Method is POST - this is cgi request [13:59:05]url: /json_proto [13:59:05]query_string will be loaded in cgi processing [13:59:05]execute_cgi json_proto POST (null) [13:59:05]execute_cgi path=json_proto method=POST [13:59:05]POST find Content-Length [13:59:05]Host: 172.17.59.68:8080 [13:59:05]Content-Length: 677 [13:59:05]Content-Type: application/json [13:59:05] [13:59:05]POST finish read [13:59:05]Found Content-Length = 677 [13:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.140, "sum" : 540.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:05]execute_script... [13:59: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)319943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.140, "sum" : 540.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:05]POST & json_proto [13:59:05]process_json_proto [13:59:05]json parsed OK: [13:59:05]protocol is kg_v1.0 [13:59:05]action value=close_receipt [13:59:05]process_action close_receipt [13:59:05]cmd_close_receipt [13:59:05]MH_GetDate [13:59:05]Write to MH i2c: F0 00 00 79 0A 72 [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 09 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: F0 09 00 79 0A 00 2C E4 72 66 BC EC 60 65 D0 [13:59:05]GetLastDocTimeStamp 1718805488 [13:59:05]current date 1718805548 [13:59:05]FM_GetShiftState [13:59:05]SAM_PROTO_GetShiftState [13:59:05]wFMCommunicate request_size=4 [13:59:05]MH_SAM_APDU [13:59:05]CAPDU: 80 13 01 00 [13:59:05]Write to MH i2c: E2 08 00 7A 0A 80 13 01 00 00 00 00 00 01 [13:59:05]Write i2c OK [13:59:05]MH_I2C_Read... [13:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:05]Read from MH i2c: E2 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 0E 00 [13:59:05]MH_I2C_Read... [13:59:05]Read from MH i2c: E2 0E 00 7A 0A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4B [13:59:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:59:05]wFMCommunicate OK [13:59:05]SAM_PROTO_GetShiftState done [13:59:05]FM_GetShiftState done [13:59:05]opened in 1718760753 [13:59:05]opened+sec_in_day 1718847153 [13:59:05]quantity*price = 54049 [13:59:05]sum+1 = 54051 [13:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.40 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 118 19.06.2024 13:59 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111369 ФПД: 232157236036118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135908&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111369&fm=232157236036118&tin=02508201610067®Number=0000000000092771&sum=54000 [13:59:06]StoreToDocumentArchive [13:59:06]shift 388 fd 111369 [13:59:06]save to /storage/0388/doc_00111369 [13:59:06]save last doc name /storage/0388/doc_00111369 to /storage/kkm_last_doc_name [13:59:06]save OK [13:59:06]Clear old archive folders... [13:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:07]tlvbuf is 00EDD900 [13:59:07]SAM_PROTO_ClearQueue [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 09 00 00 [13:59:07]Write to MH i2c: E2 08 00 87 0A 80 09 00 00 00 00 00 00 03 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 87 0A 00 90 00 05 [13:59:07]RAPDU: 90 00 [13:59:07]wFMCommunicate OK [13:59:07]SAM_PROTO_ClearQueue done [13:59:07]KKMCreateOFDPacket [13:59:07]OFDProtocolAddRootSTLVToBuf [13:59:07]FM_MakeSignedData [13:59:07]FM_MakeSignedData [13:59:07]SAM_PROTO_SignData [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 0D 01 02 [13:59:07]Write to MH i2c: E2 08 00 88 0A 80 0D 01 02 00 00 00 00 0B [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 88 0A 00 90 00 06 [13:59:07]RAPDU: 90 00 [13:59:07]wFMCommunicate OK [13:59:07]wFMCommunicate request_size=255 [13:59:07]MH_SAM_APDU [13:59: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 CC 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 2C E4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B3 01 00 35 04 06 00 D3 [13:59:07]Write to MH i2c: E2 02 01 89 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 CC 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 2C E4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B3 01 00 35 04 06 00 D3 00 00 56 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 89 0A 00 90 00 07 [13:59:07]RAPDU: 90 00 [13:59:07]wFMCommunicate OK [13:59:07]wFMCommunicate request_size=10 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 0D 02 02 05 25 51 96 02 16 [13:59:07]Write to MH i2c: E2 0D 00 8A 0A 80 0D 02 02 05 00 25 51 96 02 16 00 00 3C [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 03 00 8A 0A 00 90 00 08 [13:59:07]RAPDU: 90 00 [13:59:07]wFMCommunicate OK [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 0D 03 02 [13:59:07]Write to MH i2c: E2 08 00 8B 0A 80 0D 03 02 00 00 00 00 10 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 0B 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 0B 00 8B 0A 00 D8 D3 BE 00 71 7A AA 76 90 00 85 [13:59:07]RAPDU: D8 D3 BE 00 71 7A AA 76 90 00 [13:59:07]wFMCommunicate OK [13:59:07]SAM_PROTO_SignData done [13:59:07]FM_MakeSignedData done [13:59:07]CreateOFDProtocolMessage [13:59:07]wFMCommunicate request_size=4 [13:59:07]MH_SAM_APDU [13:59:07]CAPDU: 80 11 00 00 [13:59:07]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:07]Read from MH i2c: E2 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 17 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 62 [13:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:59:07]wFMCommunicate OK [13:59:07]CreateOFDProtocolMessage done [13:59:07]OFDSenderStorePacket 111369 [13:59:07]StoreOFDPacket docnum=111369 [13:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AD A3 07 01 CF 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 CC 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 2C E4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B3 01 00 35 04 06 00 D3 25 51 96 02 16 D8 D3 BE 00 71 7A AA 76 [13:59:07]CheckFolder [13:59:07]dirname=/storage/ofd_packets [13:59:07]CheckFolder done [13:59:07]ProducePacketName [13:59:07]name=ofd_packets/00111369 [13:59:07]NVStorageSaveData ofd_packets/00111369 [13:59:07]File name is /storage/ofd_packets/00111369 [13:59:07]Write 301 bytes [13:59:07]NVStorageSaveData done [13:59:07]OFDSenderStorePacket done [13:59:07]KKMCreateOFDPacket done [13:59:07]NVStorageSaveData kkm_last_timestamp [13:59:07]File name is /storage/kkm_last_timestamp [13:59:07]Write 4 bytes [13:59:07]NVStorageSaveData done [13:59:07]ExternCall_PrintAddStr [13:59:07]wPrintStart [13:59:07]Write to MH i2c: 01 00 00 8D 0A 97 [13:59:07]Write i2c OK [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 [13:59:07]MH_I2C_Read... [13:59:07]Read from MH i2c: 01 07 00 8D 0A 00 00 00 00 00 FF 0F AC [13:59:07]RasterBufferAndPrint [13:59:07]line Счет N : (1)319943 [13:59:07]line ИНН: 02508201610067 [13:59:07]line Контрольно-Кассовый Чек [13:59:07]line ПРОДАЖА [13:59:07]line ТРК (МРК, ГНК) : 11 [13:59:07]line Товар: 2710124130 [13:59:07]line Аи-92-К-5 [13:59:07]line 8.140 * 66.40 [13:59:07]line = 540.50 [13:59:07]line НДС 12% НСП 1% [13:59:07]line > о реализуемом товаре [13:59:07]line ОКРУГЛЕНИЕ: -0.50 [13:59:07]line ИТОГО: 540.00 [13:59:07]line Внесено: 540.00 [13:59:07]line СДАЧА: 0.00 [13:59:07]line НСП 1% : 4.78 [13:59:07]line НДС 12% : 57.40 [13:59:07]line Наличными: 540.00 [13:59:07]line Безнал.: 0.00 [13:59:07]line Место: АЗС № 65 "Партнер Нефть" [13:59:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:59:07]line СНО: Общий режим [13:59:07]line Чек 118 19.06.2024 13:59 [13:59:07]line Смена: 388 ФФД: 1.0 [13:59:07]line ЗНМ: 0300000198 [13:59:07]line РНМ: 0000000000092771 [13:59:07]line Версия ККМ: 001 [13:59:07]line ФМ: 0000000000875083 [13:59:07]line ФД: 111369 [13:59:07]line ФПД: 232157236036118 [13:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135908&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111369&fm=232157236036118&tin=02508201610067®Number=0000000000092771&sum=54000 [13:59:07]OFD Sender: Processing packet 111369 [packets to send 38, broken 37] [13:59:07]ProducePacketName [13:59:07]name=ofd_packets/00111369 [13:59:07]OFD Sender: To server: pG, [13:59:07]CommunicateWithHost lk.salyk.kg:30040 [13:59:07]ConnectInit lk.salyk.kg [13:59:07]written 0, free lines is 4095 [13:59:07]Connected sock=10 [13:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AD A3 07 01 CF 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 CC 1F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 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 2C E4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B3 01 00 35 04 06 00 D3 25 51 96 02 16 D8 D3 BE 00 71 7A AA 76 [13:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 33 29 47 00 37 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 09 B3 01 00 F4 03 04 00 94 7B 72 66 B6 04 01 00 00 8D 16 B4 55 65 89 4B 3E [13:59:08]CommunicateWithHost err = 0 [13:59:08]CheckOFDResponse [13:59:08]1017 (14) - 77093643461234 [13:59:08]1041 (16) - 0000000000875083 [13:59:08]1040 (4) - 111369 [13:59:08]1012 (4) - 19.06.2024 06:32 [13:59:08]1206 (1) - 0 [13:59:08]OFD Sender: Remove packet 111369 [13:59:08]ProducePacketName [13:59:08]name=ofd_packets/00111369 [13:59:08]NVStorageDeleteData [13:59:08]Write to MH i2c: 01 00 00 B8 0A C2 [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 07 00 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: 01 07 00 B8 0A 00 00 00 00 00 FC 0C D1 [13:59:08]RasterBufferAndPrint [13:59:08]line [13:59:08]line [13:59:08]line [13:59:08]line [13:59:08]line [13:59:08]written 0, free lines is 3330 [13:59:08]MH_Cut [13:59:08]Write to MH i2c: D1 01 00 BF 0A 01 9B [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: D1 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: D1 01 00 [13:59:08]MH_I2C_Read... [13:59:08]Read from MH i2c: D1 01 00 BF 0A 00 9A [13:59:08]Write to MH i2c: 01 00 00 C0 0A CA [13:59:08]Write i2c OK [13:59:08]MH_I2C_Read... [13:59:08]OFD Sender: No OFD packet to send [13:59:09]*** Cut start [13:59:09]*** Partial cut [13:59:09]*** CUTSNS_PIN = 1 [13:59:09]*** CUTSNS_PIN = 0 [13:59:09]*** Brake cut motor [13:59:09]Read from MH i2c: 01 [13:59:09]MH_I2C_Read... [13:59:09]*** Stop cut motor [13:59:09]*** Cut end [13:59:09]Read from MH i2c: 01 07 00 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: 01 07 00 C0 0A 00 00 00 00 00 FF 0F DF [13:59:09]process_action close_receipt done [13:59:09]requested_data is exist [13:59:09]produce_requested_data [13:59:09]requested_item fm.sn is exist - process it [13:59:09]wFMCommunicate request_size=4 [13:59:09]MH_SAM_APDU [13:59:09]CAPDU: 80 11 00 00 [13:59:09]Write to MH i2c: E2 08 00 C1 0A 80 11 00 00 00 00 00 00 45 [13:59:09]Write i2c OK [13:59:09]MH_I2C_Read... [13:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:09]Read from MH i2c: E2 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 17 00 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 17 00 C1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [13:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:59:09]wFMCommunicate OK [13:59:09]requested_item fd.num is exist - process it [13:59:09]SAM_PROTO_GetFieldsCounters [13:59:09]wFMCommunicate request_size=4 [13:59:09]MH_SAM_APDU [13:59:09]CAPDU: 80 13 00 00 [13:59:09]Write to MH i2c: E2 08 00 C2 0A 80 13 00 00 00 00 00 00 48 [13:59:09]Write i2c OK [13:59:09]MH_I2C_Read... [13:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:09]Read from MH i2c: E2 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 62 00 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 62 00 C2 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 09 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [13:59: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 09 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:09]wFMCommunicate OK [13:59:09]SAM_PROTO_GetFieldsCounters done [13:59:09]requested_item shift.num is exist - process it [13:59:09]requested_item shift.opened is exist - process it [13:59:09]req_shift_opened [13:59:09]FM_GetShiftState [13:59:09]SAM_PROTO_GetShiftState [13:59:09]wFMCommunicate request_size=4 [13:59:09]MH_SAM_APDU [13:59:09]CAPDU: 80 13 01 00 [13:59:09]Write to MH i2c: E2 08 00 C3 0A 80 13 01 00 00 00 00 00 4A [13:59:09]Write i2c OK [13:59:09]MH_I2C_Read... [13:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:09]Read from MH i2c: E2 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 0E 00 [13:59:09]MH_I2C_Read... [13:59:09]Read from MH i2c: E2 0E 00 C3 0A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 94 [13:59:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:59:09]wFMCommunicate OK [13:59:09]SAM_PROTO_GetShiftState done [13:59:09]FM_GetShiftState done [13:59:09]req_shift_opened done [13:59:09]requested_item shift.open_date is exist - process it [13:59:09]req_shift_open_date [13:59:09]req_shift_open_date done [13:59:09]produce_requested_data done [13:59:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111369,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:59:09]process_action_free close_receipt [13:59:09]json_value_free [13:59:09]json_value_free done [13:59:09]process_json_proto returns [13:59:09]Send response to host [13:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111369,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:59:09]free response buf [13:59:09]execute_script done [13:59:09]execute_script returns [13:59:09]free content buf [13:59:09]Sock 7.Close socket [13:59:09]Sock 7.Thread stoped [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:37]accept exits with 9 [13:59:37]New connection [13:59:37]New thread 3067321700 created [13:59:37]Thread 3067465060 joined [13:59:37]Waiting for new connection... [13:59:37] Sock 9.Parse request [13:59:37]Sock 9.Check first char [13:59:37]Sock 9.First char is OK [13:59:37]request: POST /json_proto HTTP/1.0 [13:59:37]Method: POST [13:59:37]URL: /json_proto [13:59:37]Method is POST - this is cgi request [13:59:37]url: /json_proto [13:59:37]query_string will be loaded in cgi processing [13:59:37]execute_cgi json_proto POST (null) [13:59:37]execute_cgi path=json_proto method=POST [13:59:37]POST find Content-Length [13:59:37]Host: 172.17.59.68:8080 [13:59:37]Content-Length: 677 [13:59:37]Content-Type: application/json [13:59:37] [13:59:37]POST finish read [13:59:37]Found Content-Length = 677 [13:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:37]execute_script... [13:59: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)319944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.050, "sum" : 335.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 335.00, "total" : 335.00, "payments": [ { "type": 0, "sum" : 335.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:37]POST & json_proto [13:59:37]process_json_proto [13:59:37]json parsed OK: [13:59:37]protocol is kg_v1.0 [13:59:37]action value=close_receipt [13:59:37]process_action close_receipt [13:59:37]cmd_close_receipt [13:59:37]MH_GetDate [13:59:37]Write to MH i2c: F0 00 00 C4 0A BD [13:59:37]Write i2c OK [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: F0 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: F0 09 00 [13:59:37]MH_I2C_Read... [13:59:37]Read from MH i2c: F0 09 00 C4 0A 00 4C E4 72 66 BC EC 60 65 3B [13:59:37]GetLastDocTimeStamp 1718805548 [13:59:37]current date 1718805580 [13:59:37]FM_GetShiftState [13:59:37]SAM_PROTO_GetShiftState [13:59:37]wFMCommunicate request_size=4 [13:59:37]MH_SAM_APDU [13:59:37]CAPDU: 80 13 01 00 [13:59:37]Write to MH i2c: E2 08 00 C5 0A 80 13 01 00 00 00 00 00 4C [13:59:37]Write i2c OK [13:59:37]MH_I2C_Read... [13:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:38]Read from MH i2c: E2 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: E2 0E 00 [13:59:38]MH_I2C_Read... [13:59:38]Read from MH i2c: E2 0E 00 C5 0A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 96 [13:59:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:59:38]wFMCommunicate OK [13:59:38]SAM_PROTO_GetShiftState done [13:59:38]FM_GetShiftState done [13:59:38]opened in 1718760753 [13:59:38]opened+sec_in_day 1718847153 [13:59:38]quantity*price = 33532 [13:59:38]sum+1 = 33533 [13:59:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 335.00 Внесено: 335.00 СДАЧА: 0.00 НСП 1% : 2.97 НДС 12% : 35.61 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 119 19.06.2024 13:59 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111370 ФПД: 241597046994151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111370&fm=241597046994151&tin=02508201610067®Number=0000000000092771&sum=33500 [13:59:39]StoreToDocumentArchive [13:59:39]shift 388 fd 111370 [13:59:39]save to /storage/0388/doc_00111370 [13:59:39]save last doc name /storage/0388/doc_00111370 to /storage/kkm_last_doc_name [13:59:39]save OK [13:59:39]Clear old archive folders... [13:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:39]tlvbuf is 00EF8500 [13:59:39]SAM_PROTO_ClearQueue [13:59:39]wFMCommunicate request_size=4 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 09 00 00 [13:59:39]Write to MH i2c: E2 08 00 D2 0A 80 09 00 00 00 00 00 00 4E [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]SAM_PROTO_ClearQueue done [13:59:39]KKMCreateOFDPacket [13:59:39]OFDProtocolAddRootSTLVToBuf [13:59:39]FM_MakeSignedData [13:59:39]FM_MakeSignedData [13:59:39]SAM_PROTO_SignData [13:59:39]wFMCommunicate request_size=4 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 0D 01 02 [13:59:39]Write to MH i2c: E2 08 00 D3 0A 80 0D 01 02 00 00 00 00 56 [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]wFMCommunicate request_size=255 [13:59:39]MH_SAM_APDU [13:59: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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 00 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 4C E4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B3 01 00 35 04 06 00 DB [13:59:39]Write to MH i2c: E2 02 01 D4 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 00 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 4C E4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B3 01 00 35 04 06 00 DB 00 00 2D [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 D4 0A 00 90 00 52 [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]wFMCommunicate request_size=10 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 0D 02 02 05 BB 32 2A 34 E7 [13:59:39]Write to MH i2c: E2 0D 00 D5 0A 80 0D 02 02 05 00 BB 32 2A 34 E7 00 00 95 [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 03 00 D5 0A 00 90 00 53 [13:59:39]RAPDU: 90 00 [13:59:39]wFMCommunicate OK [13:59:39]wFMCommunicate request_size=4 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 0D 03 02 [13:59:39]Write to MH i2c: E2 08 00 D6 0A 80 0D 03 02 00 00 00 00 5B [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 0B 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 0B 00 D6 0A 00 11 88 EF AA AA 03 EF 6C 90 00 96 [13:59:39]RAPDU: 11 88 EF AA AA 03 EF 6C 90 00 [13:59:39]wFMCommunicate OK [13:59:39]SAM_PROTO_SignData done [13:59:39]FM_MakeSignedData done [13:59:39]CreateOFDProtocolMessage [13:59:39]wFMCommunicate request_size=4 [13:59:39]MH_SAM_APDU [13:59:39]CAPDU: 80 11 00 00 [13:59:39]Write to MH i2c: E2 08 00 D7 0A 80 11 00 00 00 00 00 00 5B [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:39]Read from MH i2c: E2 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 17 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: E2 17 00 D7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AD [13:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:59:39]wFMCommunicate OK [13:59:39]CreateOFDProtocolMessage done [13:59:39]OFDSenderStorePacket 111370 [13:59:39]StoreOFDPacket docnum=111370 [13:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC F2 07 01 4F 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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 00 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 4C E4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B3 01 00 35 04 06 00 DB BB 32 2A 34 E7 11 88 EF AA AA 03 EF 6C [13:59:39]CheckFolder [13:59:39]dirname=/storage/ofd_packets [13:59:39]CheckFolder done [13:59:39]ProducePacketName [13:59:39]name=ofd_packets/00111370 [13:59:39]NVStorageSaveData ofd_packets/00111370 [13:59:39]File name is /storage/ofd_packets/00111370 [13:59:39]Write 301 bytes [13:59:39]NVStorageSaveData done [13:59:39]OFDSenderStorePacket done [13:59:39]KKMCreateOFDPacket done [13:59:39]NVStorageSaveData kkm_last_timestamp [13:59:39]File name is /storage/kkm_last_timestamp [13:59:39]Write 4 bytes [13:59:39]NVStorageSaveData done [13:59:39]ExternCall_PrintAddStr [13:59:39]wPrintStart [13:59:39]Write to MH i2c: 01 00 00 D8 0A E2 [13:59:39]Write i2c OK [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: 01 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: 01 07 00 [13:59:39]MH_I2C_Read... [13:59:39]Read from MH i2c: 01 07 00 D8 0A 00 00 00 00 00 FF 0F F7 [13:59:39]RasterBufferAndPrint [13:59:39]line Счет N : (1)319944 [13:59:39]line ИНН: 02508201610067 [13:59:39]line Контрольно-Кассовый Чек [13:59:39]line ПРОДАЖА [13:59:39]line ТРК (МРК, ГНК) : 11 [13:59:39]line Товар: 2710124130 [13:59:39]line Аи-92-К-5 [13:59:39]line 5.050 * 66.40 [13:59:39]line = 335.32 [13:59:39]line НДС 12% НСП 1% [13:59:39]line > о реализуемом товаре [13:59:39]line ОКРУГЛЕНИЕ: -0.32 [13:59:39]line ИТОГО: 335.00 [13:59:39]line Внесено: 335.00 [13:59:39]line СДАЧА: 0.00 [13:59:39]line НСП 1% : 2.97 [13:59:39]line НДС 12% : 35.61 [13:59:39]line Наличными: 335.00 [13:59:39]line Безнал.: 0.00 [13:59:39]line Место: АЗС № 65 "Партнер Нефть" [13:59:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [13:59:39]line СНО: Общий режим [13:59:39]line Чек 119 19.06.2024 13:59 [13:59:39]line Смена: 388 ФФД: 1.0 [13:59:39]line ЗНМ: 0300000198 [13:59:39]line РНМ: 0000000000092771 [13:59:39]line Версия ККМ: 001 [13:59:39]line ФМ: 0000000000875083 [13:59:39]line ФД: 111370 [13:59:39]line ФПД: 241597046994151 [13:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T135940&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111370&fm=241597046994151&tin=02508201610067®Number=0000000000092771&sum=33500 [13:59:40]OFD Sender: Processing packet 111370 [packets to send 38, broken 37] [13:59:40]ProducePacketName [13:59:40]name=ofd_packets/00111370 [13:59:40]OFD Sender: To server: pG, [13:59:40]CommunicateWithHost lk.salyk.kg:30040 [13:59:40]ConnectInit lk.salyk.kg [13:59:40]written 0, free lines is 4095 [13:59:40]Connected sock=10 [13:59:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC F2 07 01 4F 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 BA 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 FC 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0D 00 00 00 00 07 04 06 00 DC 82 00 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 4C E4 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0A B3 01 00 35 04 06 00 DB BB 32 2A 34 E7 11 88 EF AA AA 03 EF 6C [13:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C8 F3 47 00 EC 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 35 30 38 33 10 04 04 00 0A B3 01 00 F4 03 04 00 B4 7B 72 66 B6 04 01 00 00 BB B0 8E AD E2 B0 14 FF [13:59:40]CommunicateWithHost err = 0 [13:59:40]CheckOFDResponse [13:59:40]1017 (14) - 77093643461234 [13:59:40]1041 (16) - 0000000000875083 [13:59:40]1040 (4) - 111370 [13:59:40]1012 (4) - 19.06.2024 06:33 [13:59:40]1206 (1) - 0 [13:59:40]OFD Sender: Remove packet 111370 [13:59:40]ProducePacketName [13:59:40]name=ofd_packets/00111370 [13:59:40]NVStorageDeleteData [13:59:40]Write to MH i2c: 01 00 00 03 0B 0E [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 07 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: 01 07 00 03 0B 00 00 00 00 00 E3 0C 04 [13:59:40]RasterBufferAndPrint [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]line [13:59:40]written 0, free lines is 3305 [13:59:40]MH_Cut [13:59:40]Write to MH i2c: D1 01 00 0A 0B 01 E7 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: D1 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: D1 01 00 [13:59:40]MH_I2C_Read... [13:59:40]Read from MH i2c: D1 01 00 0A 0B 00 E6 [13:59:40]Write to MH i2c: 01 00 00 0B 0B 16 [13:59:40]Write i2c OK [13:59:40]MH_I2C_Read... [13:59:40]OFD Sender: No OFD packet to send [13:59:41]*** Cut start [13:59:41]*** Partial cut [13:59:41]*** CUTSNS_PIN = 1 [13:59:41]*** CUTSNS_PIN = 0 [13:59:41]*** Brake cut motor [13:59:41]Read from MH i2c: 01 [13:59:41]MH_I2C_Read... [13:59:41]*** Stop cut motor [13:59:41]*** Cut end [13:59:41]Read from MH i2c: 01 07 00 [13:59:41]MH_I2C_Read... [13:59:41]Read from MH i2c: 01 07 00 0B 0B 00 00 00 00 00 FF 0F 2B [13:59:41]process_action close_receipt done [13:59:41]requested_data is exist [13:59:41]produce_requested_data [13:59:41]requested_item fm.sn is exist - process it [13:59:41]wFMCommunicate request_size=4 [13:59:41]MH_SAM_APDU [13:59:41]CAPDU: 80 11 00 00 [13:59:41]Write to MH i2c: E2 08 00 0C 0B 80 11 00 00 00 00 00 00 91 [13:59:41]Write i2c OK [13:59:41]MH_I2C_Read... [13:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:41]Read from MH i2c: E2 [13:59:41]MH_I2C_Read... [13:59:41]Read from MH i2c: E2 17 00 [13:59:41]MH_I2C_Read... [13:59:41]Read from MH i2c: E2 17 00 0C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E3 [13:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [13:59:41]wFMCommunicate OK [13:59:41]requested_item fd.num is exist - process it [13:59:41]SAM_PROTO_GetFieldsCounters [13:59:41]wFMCommunicate request_size=4 [13:59:41]MH_SAM_APDU [13:59:41]CAPDU: 80 13 00 00 [13:59:41]Write to MH i2c: E2 08 00 0D 0B 80 13 00 00 00 00 00 00 94 [13:59:41]Write i2c OK [13:59:41]MH_I2C_Read... [13:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:41]Read from MH i2c: E2 [13:59:41]MH_I2C_Read... [13:59:41]Read from MH i2c: E2 62 00 [13:59:41]MH_I2C_Read... [13:59:41]Read from MH i2c: E2 62 00 0D 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [13:59: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:41]wFMCommunicate OK [13:59:41]SAM_PROTO_GetFieldsCounters done [13:59:41]requested_item shift.num is exist - process it [13:59:41]requested_item shift.opened is exist - process it [13:59:41]req_shift_opened [13:59:41]FM_GetShiftState [13:59:41]SAM_PROTO_GetShiftState [13:59:41]wFMCommunicate request_size=4 [13:59:41]MH_SAM_APDU [13:59:41]CAPDU: 80 13 01 00 [13:59:41]Write to MH i2c: E2 08 00 0E 0B 80 13 01 00 00 00 00 00 96 [13:59:41]Write i2c OK [13:59:41]MH_I2C_Read... [13:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:42]Read from MH i2c: E2 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 0E 00 [13:59:42]MH_I2C_Read... [13:59:42]Read from MH i2c: E2 0E 00 0E 0B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E0 [13:59:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [13:59:42]wFMCommunicate OK [13:59:42]SAM_PROTO_GetShiftState done [13:59:42]FM_GetShiftState done [13:59:42]req_shift_opened done [13:59:42]requested_item shift.open_date is exist - process it [13:59:42]req_shift_open_date [13:59:42]req_shift_open_date done [13:59:42]produce_requested_data done [13:59:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111370,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [13:59:42]process_action_free close_receipt [13:59:42]json_value_free [13:59:42]json_value_free done [13:59:42]process_json_proto returns [13:59:42]Send response to host [13:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111370,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [13:59:42]free response buf [13:59:42]execute_script done [13:59:42]execute_script returns [13:59:42]free content buf [13:59:42]Sock 9.Close socket [13:59:42]Sock 9.Thread stoped [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]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:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10: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:13]accept exits with 7 [14:11:13]New connection [14:11:13]New thread 3067465060 created [14:11:13]Thread 3067321700 joined [14:11:13]Waiting for new connection... [14:11:13] Sock 7.Parse request [14:11:13]Sock 7.Check first char [14:11:13]Sock 7.First char is OK [14:11:13]request: POST /json_proto HTTP/1.0 [14:11:13]Method: POST [14:11:13]URL: /json_proto [14:11:13]Method is POST - this is cgi request [14:11:13]url: /json_proto [14:11:13]query_string will be loaded in cgi processing [14:11:13]execute_cgi json_proto POST (null) [14:11:13]execute_cgi path=json_proto method=POST [14:11:13]POST find Content-Length [14:11:13]Host: 172.17.59.68:8080 [14:11:13]Content-Length: 677 [14:11:13]Content-Type: application/json [14:11:13] [14:11:13]POST finish read [14:11:13]Found Content-Length = 677 [14:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:13]execute_script... [14:11: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)319946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:13]POST & json_proto [14:11:13]process_json_proto [14:11:13]json parsed OK: [14:11:13]protocol is kg_v1.0 [14:11:13]action value=close_receipt [14:11:13]process_action close_receipt [14:11:13]cmd_close_receipt [14:11:13]MH_GetDate [14:11:13]Write to MH i2c: F0 00 00 0F 0B 09 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 09 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 09 00 0F 0B 00 04 E7 72 66 BC EC 60 65 42 [14:11:13]GetLastDocTimeStamp 1718805580 [14:11:13]current date 1718806276 [14:11:13]FM_GetShiftState [14:11:13]SAM_PROTO_GetShiftState [14:11:13]wFMCommunicate request_size=4 [14:11:13]MH_SAM_APDU [14:11:13]CAPDU: 80 13 01 00 [14:11:13]Write to MH i2c: E2 08 00 10 0B 80 13 01 00 00 00 00 00 98 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:13]Read from MH i2c: E2 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 0E 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 0E 00 10 0B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E2 [14:11:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:11:13]wFMCommunicate OK [14:11:13]SAM_PROTO_GetShiftState done [14:11:13]FM_GetShiftState done [14:11:13]opened in 1718760753 [14:11:13]opened+sec_in_day 1718847153 [14:11:13]quantity*price = 30012 [14:11:13]sum+1 = 30014 [14:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 120 19.06.2024 14:11 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111371 ФПД: 8504959795887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141116&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111371&fm=8504959795887&tin=02508201610067®Number=0000000000092771&sum=30000 [14:11:14]StoreToDocumentArchive [14:11:14]shift 388 fd 111371 [14:11:14]save to /storage/0388/doc_00111371 [14:11:14]save last doc name /storage/0388/doc_00111371 to /storage/kkm_last_doc_name [14:11:14]save OK [14:11:14]Clear old archive folders... [14:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:14]tlvbuf is 00EF94C0 [14:11:14]SAM_PROTO_ClearQueue [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 09 00 00 [14:11:14]Write to MH i2c: E2 08 00 1D 0B 80 09 00 00 00 00 00 00 9A [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 1D 0B 00 90 00 9C [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_ClearQueue done [14:11:14]KKMCreateOFDPacket [14:11:14]OFDProtocolAddRootSTLVToBuf [14:11:14]FM_MakeSignedData [14:11:14]FM_MakeSignedData [14:11:14]SAM_PROTO_SignData [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 01 02 [14:11:14]Write to MH i2c: E2 08 00 1E 0B 80 0D 01 02 00 00 00 00 A2 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 1E 0B 00 90 00 9D [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=255 [14:11:14]MH_SAM_APDU [14:11: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 78 00 00 00 F4 03 04 00 04 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B3 01 00 35 04 06 00 07 [14:11:14]Write to MH i2c: E2 02 01 1F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 78 00 00 00 F4 03 04 00 04 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B3 01 00 35 04 06 00 07 00 00 7A [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 03 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 03 00 1F 0B 00 90 00 9E [14:11:15]RAPDU: 90 00 [14:11:15]wFMCommunicate OK [14:11:15]wFMCommunicate request_size=10 [14:11:15]MH_SAM_APDU [14:11:15]CAPDU: 80 0D 02 02 05 BC 37 1B 82 AF [14:11:15]Write to MH i2c: E2 0D 00 20 0B 80 0D 02 02 05 00 BC 37 1B 82 AF 00 00 EE [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 03 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 03 00 20 0B 00 90 00 9F [14:11:15]RAPDU: 90 00 [14:11:15]wFMCommunicate OK [14:11:15]wFMCommunicate request_size=4 [14:11:15]MH_SAM_APDU [14:11:15]CAPDU: 80 0D 03 02 [14:11:15]Write to MH i2c: E2 08 00 21 0B 80 0D 03 02 00 00 00 00 A7 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 0B 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 0B 00 21 0B 00 5F 4E BB 2E 63 A8 B4 17 90 00 14 [14:11:15]RAPDU: 5F 4E BB 2E 63 A8 B4 17 90 00 [14:11:15]wFMCommunicate OK [14:11:15]SAM_PROTO_SignData done [14:11:15]FM_MakeSignedData done [14:11:15]CreateOFDProtocolMessage [14:11:15]wFMCommunicate request_size=4 [14:11:15]MH_SAM_APDU [14:11:15]CAPDU: 80 11 00 00 [14:11:15]Write to MH i2c: E2 08 00 22 0B 80 11 00 00 00 00 00 00 A7 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 17 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 17 00 22 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F9 [14:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:15]wFMCommunicate OK [14:11:15]CreateOFDProtocolMessage done [14:11:15]OFDSenderStorePacket 111371 [14:11:15]StoreOFDPacket docnum=111371 [14:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA BA 07 01 0B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 78 00 00 00 F4 03 04 00 04 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B3 01 00 35 04 06 00 07 BC 37 1B 82 AF 5F 4E BB 2E 63 A8 B4 17 [14:11:15]CheckFolder [14:11:15]dirname=/storage/ofd_packets [14:11:15]CheckFolder done [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00111371 [14:11:15]NVStorageSaveData ofd_packets/00111371 [14:11:15]File name is /storage/ofd_packets/00111371 [14:11:15]Write 301 bytes [14:11:15]NVStorageSaveData done [14:11:15]OFDSenderStorePacket done [14:11:15]KKMCreateOFDPacket done [14:11:15]NVStorageSaveData kkm_last_timestamp [14:11:15]File name is /storage/kkm_last_timestamp [14:11:15]Write 4 bytes [14:11:15]NVStorageSaveData done [14:11:15]ExternCall_PrintAddStr [14:11:15]wPrintStart [14:11:15]Write to MH i2c: 01 00 00 23 0B 2E [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 23 0B 00 00 00 00 00 FF 0F 43 [14:11:15]RasterBufferAndPrint [14:11:15]line Счет N : (1)319946 [14:11:15]line ИНН: 02508201610067 [14:11:15]line Контрольно-Кассовый Чек [14:11:15]line ПРОДАЖА [14:11:15]line ТРК (МРК, ГНК) : 11 [14:11:15]line Товар: 2710124130 [14:11:15]line Аи-92-К-5 [14:11:15]line 4.520 * 66.40 [14:11:15]line = 300.13 [14:11:15]line НДС 12% НСП 1% [14:11:15]line > о реализуемом товаре [14:11:15]line ОКРУГЛЕНИЕ: -0.13 [14:11:15]line ИТОГО: 300.00 [14:11:15]line Внесено: 300.00 [14:11:15]line СДАЧА: 0.00 [14:11:15]line НСП 1% : 2.66 [14:11:15]line НДС 12% : 31.87 [14:11:15]line Наличными: 300.00 [14:11:15]line Безнал.: 0.00 [14:11:15]line Место: АЗС № 65 "Партнер Нефть" [14:11:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:11:15]line СНО: Общий режим [14:11:15]line Чек 120 19.06.2024 14:11 [14:11:15]line Смена: 388 ФФД: 1.0 [14:11:15]line ЗНМ: 0300000198 [14:11:15]line РНМ: 0000000000092771 [14:11:15]line Версия ККМ: 001 [14:11:15]line ФМ: 0000000000875083 [14:11:15]line ФД: 111371 [14:11:15]line ФПД: 8504959795887 [14:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141116&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111371&fm=8504959795887&tin=02508201610067®Number=0000000000092771&sum=30000 [14:11:15]OFD Sender: Processing packet 111371 [packets to send 38, broken 37] [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00111371 [14:11:15]OFD Sender: To server: pG, [14:11:15]CommunicateWithHost lk.salyk.kg:30040 [14:11:15]ConnectInit lk.salyk.kg [14:11:15]written 0, free lines is 4095 [14:11:15]Connected sock=10 [14:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CA BA 07 01 0B 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 78 00 00 00 F4 03 04 00 04 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B3 01 00 35 04 06 00 07 BC 37 1B 82 AF 5F 4E BB 2E 63 A8 B4 17 [14:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BD E5 47 00 E3 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0B B3 01 00 F4 03 04 00 6C 7E 72 66 B6 04 01 00 00 DE 74 FC 04 B0 3A 13 2C [14:11:15]CommunicateWithHost err = 0 [14:11:15]CheckOFDResponse [14:11:15]1017 (14) - 77093643461234 [14:11:15]1041 (16) - 0000000000875083 [14:11:15]1040 (4) - 111371 [14:11:15]1012 (4) - 19.06.2024 06:45 [14:11:15]1206 (1) - 0 [14:11:15]OFD Sender: Remove packet 111371 [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00111371 [14:11:15]NVStorageDeleteData [14:11:16]Write to MH i2c: 01 00 00 4E 0B 59 [14:11:16]Write i2c OK [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: 01 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: 01 07 00 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: 01 07 00 4E 0B 00 00 00 00 00 E3 0C 4F [14:11:16]RasterBufferAndPrint [14:11:16]line [14:11:16]line [14:11:16]line [14:11:16]line [14:11:16]line [14:11:16]written 0, free lines is 3305 [14:11:16]MH_Cut [14:11:16]Write to MH i2c: D1 01 00 55 0B 01 32 [14:11:16]Write i2c OK [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: D1 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: D1 01 00 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: D1 01 00 55 0B 00 31 [14:11:16]Write to MH i2c: 01 00 00 56 0B 61 [14:11:16]Write i2c OK [14:11:16]MH_I2C_Read... [14:11:16]OFD Sender: No OFD packet to send [14:11:16]*** Cut start [14:11:16]*** Partial cut [14:11:16]*** CUTSNS_PIN = 1 [14:11:16]*** CUTSNS_PIN = 0 [14:11:17]*** Brake cut motor [14:11:17]Read from MH i2c: 01 [14:11:17]MH_I2C_Read... [14:11:17]*** Stop cut motor [14:11:17]*** Cut end [14:11:17]Read from MH i2c: 01 07 00 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: 01 07 00 56 0B 00 00 00 00 00 FF 0F 76 [14:11:17]process_action close_receipt done [14:11:17]requested_data is exist [14:11:17]produce_requested_data [14:11:17]requested_item fm.sn is exist - process it [14:11:17]wFMCommunicate request_size=4 [14:11:17]MH_SAM_APDU [14:11:17]CAPDU: 80 11 00 00 [14:11:17]Write to MH i2c: E2 08 00 57 0B 80 11 00 00 00 00 00 00 DC [14:11:17]Write i2c OK [14:11:17]MH_I2C_Read... [14:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:17]Read from MH i2c: E2 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 17 00 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 17 00 57 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2E [14:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:17]wFMCommunicate OK [14:11:17]requested_item fd.num is exist - process it [14:11:17]SAM_PROTO_GetFieldsCounters [14:11:17]wFMCommunicate request_size=4 [14:11:17]MH_SAM_APDU [14:11:17]CAPDU: 80 13 00 00 [14:11:17]Write to MH i2c: E2 08 00 58 0B 80 13 00 00 00 00 00 00 DF [14:11:17]Write i2c OK [14:11:17]MH_I2C_Read... [14:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:17]Read from MH i2c: E2 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 62 00 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 62 00 58 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [14:11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:17]wFMCommunicate OK [14:11:17]SAM_PROTO_GetFieldsCounters done [14:11:17]requested_item shift.num is exist - process it [14:11:17]requested_item shift.opened is exist - process it [14:11:17]req_shift_opened [14:11:17]FM_GetShiftState [14:11:17]SAM_PROTO_GetShiftState [14:11:17]wFMCommunicate request_size=4 [14:11:17]MH_SAM_APDU [14:11:17]CAPDU: 80 13 01 00 [14:11:17]Write to MH i2c: E2 08 00 59 0B 80 13 01 00 00 00 00 00 E1 [14:11:17]Write i2c OK [14:11:17]MH_I2C_Read... [14:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:17]Read from MH i2c: E2 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 0E 00 [14:11:17]MH_I2C_Read... [14:11:17]Read from MH i2c: E2 0E 00 59 0B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2B [14:11:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:11:17]wFMCommunicate OK [14:11:17]SAM_PROTO_GetShiftState done [14:11:17]FM_GetShiftState done [14:11:17]req_shift_opened done [14:11:17]requested_item shift.open_date is exist - process it [14:11:17]req_shift_open_date [14:11:17]req_shift_open_date done [14:11:17]produce_requested_data done [14:11:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111371,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:11:17]process_action_free close_receipt [14:11:17]json_value_free [14:11:17]json_value_free done [14:11:17]process_json_proto returns [14:11:17]Send response to host [14:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111371,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:11:17]free response buf [14:11:17]execute_script done [14:11:17]execute_script returns [14:11:17]free content buf [14:11:17]Sock 7.Close socket [14:11:17]Sock 7.Thread stoped [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:29]accept exits with 9 [14:11:29]New connection [14:11:29]New thread 3067321700 created [14:11:29]Thread 3067465060 joined [14:11:29]Waiting for new connection... [14:11:29] Sock 9.Parse request [14:11:29]Sock 9.Check first char [14:11:29]Sock 9.First char is OK [14:11:29]request: POST /json_proto HTTP/1.0 [14:11:29]Method: POST [14:11:29]URL: /json_proto [14:11:29]Method is POST - this is cgi request [14:11:29]url: /json_proto [14:11:29]query_string will be loaded in cgi processing [14:11:29]execute_cgi json_proto POST (null) [14:11:29]execute_cgi path=json_proto method=POST [14:11:29]POST find Content-Length [14:11:29]Host: 172.17.59.68:8080 [14:11:29]Content-Length: 680 [14:11:29]Content-Type: application/json [14:11:29] [14:11:29]POST finish read [14:11:29]Found Content-Length = 680 [14:11:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 109.740, "sum" : 8000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:29]execute_script... [14:11: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)319945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 109.740, "sum" : 8000.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8000.00, "total" : 8000.00, "payments": [ { "type": 0, "sum" : 8000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:29]POST & json_proto [14:11:29]process_json_proto [14:11:29]json parsed OK: [14:11:29]protocol is kg_v1.0 [14:11:29]action value=close_receipt [14:11:29]process_action close_receipt [14:11:29]cmd_close_receipt [14:11:29]MH_GetDate [14:11:29]Write to MH i2c: F0 00 00 5A 0B 54 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: F0 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: F0 09 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: F0 09 00 5A 0B 00 14 E7 72 66 BC EC 60 65 9D [14:11:29]GetLastDocTimeStamp 1718806276 [14:11:29]current date 1718806292 [14:11:29]FM_GetShiftState [14:11:29]SAM_PROTO_GetShiftState [14:11:29]wFMCommunicate request_size=4 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 13 01 00 [14:11:29]Write to MH i2c: E2 08 00 5B 0B 80 13 01 00 00 00 00 00 E3 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 0E 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 0E 00 5B 0B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2D [14:11:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:11:29]wFMCommunicate OK [14:11:29]SAM_PROTO_GetShiftState done [14:11:29]FM_GetShiftState done [14:11:29]opened in 1718760753 [14:11:29]opened+sec_in_day 1718847153 [14:11:29]quantity*price = 800004 [14:11:29]sum+1 = 800006 [14:11:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 8000.00 Внесено: 8000.00 СДАЧА: 0.00 НСП 1% : 70.80 НДС 12% : 849.56 Наличными: 8000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 121 19.06.2024 14:11 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111372 ФПД: 55085337074523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111372&fm=55085337074523&tin=02508201610067®Number=0000000000092771&sum=800000 [14:11:30]StoreToDocumentArchive [14:11:30]shift 388 fd 111372 [14:11:30]save to /storage/0388/doc_00111372 [14:11:30]save last doc name /storage/0388/doc_00111372 to /storage/kkm_last_doc_name [14:11:30]save OK [14:11:30]Clear old archive folders... [14:11:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:30]tlvbuf is 00ECA920 [14:11:30]SAM_PROTO_ClearQueue [14:11:30]wFMCommunicate request_size=4 [14:11:30]MH_SAM_APDU [14:11:30]CAPDU: 80 09 00 00 [14:11:30]Write to MH i2c: E2 08 00 68 0B 80 09 00 00 00 00 00 00 E5 [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:30]Read from MH i2c: E2 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 03 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 03 00 68 0B 00 90 00 E7 [14:11:30]RAPDU: 90 00 [14:11:30]wFMCommunicate OK [14:11:30]SAM_PROTO_ClearQueue done [14:11:30]KKMCreateOFDPacket [14:11:30]OFDProtocolAddRootSTLVToBuf [14:11:30]FM_MakeSignedData [14:11:30]FM_MakeSignedData [14:11:30]SAM_PROTO_SignData [14:11:30]wFMCommunicate request_size=4 [14:11:30]MH_SAM_APDU [14:11:30]CAPDU: 80 0D 01 02 [14:11:30]Write to MH i2c: E2 08 00 69 0B 80 0D 01 02 00 00 00 00 ED [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:30]Read from MH i2c: E2 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 03 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: E2 03 00 69 0B 00 90 00 E8 [14:11:30]RAPDU: 90 00 [14:11:30]wFMCommunicate OK [14:11:30]wFMCommunicate request_size=255 [14:11:30]MH_SAM_APDU [14:11: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 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 14 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B3 01 00 35 04 06 00 32 19 8D F2 [14:11:30]Write to MH i2c: E2 02 01 6A 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 14 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B3 01 00 35 04 06 00 32 19 8D F2 00 00 47 [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:31]Read from MH i2c: E2 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 03 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 03 00 6A 0B 00 90 00 E9 [14:11:31]RAPDU: 90 00 [14:11:31]wFMCommunicate OK [14:11:31]wFMCommunicate request_size=7 [14:11:31]MH_SAM_APDU [14:11:31]CAPDU: 80 0D 02 02 02 DB 5B [14:11:31]Write to MH i2c: E2 0A 00 6B 0B 80 0D 02 02 02 00 DB 5B 00 00 2A [14:11:31]Write i2c OK [14:11:31]MH_I2C_Read... [14:11:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:31]Read from MH i2c: E2 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 03 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 03 00 6B 0B 00 90 00 EA [14:11:31]RAPDU: 90 00 [14:11:31]wFMCommunicate OK [14:11:31]wFMCommunicate request_size=4 [14:11:31]MH_SAM_APDU [14:11:31]CAPDU: 80 0D 03 02 [14:11:31]Write to MH i2c: E2 08 00 6C 0B 80 0D 03 02 00 00 00 00 F2 [14:11:31]Write i2c OK [14:11:31]MH_I2C_Read... [14:11:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:31]Read from MH i2c: E2 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 0B 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 0B 00 6C 0B 00 5C 16 C3 8D 0B B0 8C 8E 90 00 8A [14:11:31]RAPDU: 5C 16 C3 8D 0B B0 8C 8E 90 00 [14:11:31]wFMCommunicate OK [14:11:31]SAM_PROTO_SignData done [14:11:31]FM_MakeSignedData done [14:11:31]CreateOFDProtocolMessage [14:11:31]wFMCommunicate request_size=4 [14:11:31]MH_SAM_APDU [14:11:31]CAPDU: 80 11 00 00 [14:11:31]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [14:11:31]Write i2c OK [14:11:31]MH_I2C_Read... [14:11:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:31]Read from MH i2c: E2 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 17 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 44 [14:11:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:31]wFMCommunicate OK [14:11:31]CreateOFDProtocolMessage done [14:11:31]OFDSenderStorePacket 111372 [14:11:31]StoreOFDPacket docnum=111372 [14:11:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EB 76 04 01 42 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 14 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B3 01 00 35 04 06 00 32 19 8D F2 DB 5B 5C 16 C3 8D 0B B0 8C 8E [14:11:31]CheckFolder [14:11:31]dirname=/storage/ofd_packets [14:11:31]CheckFolder done [14:11:31]ProducePacketName [14:11:31]name=ofd_packets/00111372 [14:11:31]NVStorageSaveData ofd_packets/00111372 [14:11:31]File name is /storage/ofd_packets/00111372 [14:11:31]Write 298 bytes [14:11:31]NVStorageSaveData done [14:11:31]OFDSenderStorePacket done [14:11:31]KKMCreateOFDPacket done [14:11:31]NVStorageSaveData kkm_last_timestamp [14:11:31]File name is /storage/kkm_last_timestamp [14:11:31]Write 4 bytes [14:11:31]NVStorageSaveData done [14:11:31]ExternCall_PrintAddStr [14:11:31]wPrintStart [14:11:31]Write to MH i2c: 01 00 00 6E 0B 79 [14:11:31]Write i2c OK [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: 01 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: 01 07 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: 01 07 00 6E 0B 00 00 00 00 00 FF 0F 8E [14:11:31]RasterBufferAndPrint [14:11:31]line Счет N : (1)319945 [14:11:31]line ИНН: 02508201610067 [14:11:31]line Контрольно-Кассовый Чек [14:11:31]line ПРОДАЖА [14:11:31]line ТРК (МРК, ГНК) : 22 [14:11:31]line Товар: 2710194210 [14:11:31]line ДТ-К-5 [14:11:31]line 109.740 * 72.90 [14:11:31]line = 8000.05 [14:11:31]line НДС 12% НСП 1% [14:11:31]line > о реализуемом товаре [14:11:31]line ОКРУГЛЕНИЕ: -0.05 [14:11:31]line ИТОГО: 8000.00 [14:11:31]line Внесено: 8000.00 [14:11:31]line СДАЧА: 0.00 [14:11:31]line НСП 1% : 70.80 [14:11:31]line НДС 12% : 849.56 [14:11:31]line Наличными: 8000.00 [14:11:31]line Безнал.: 0.00 [14:11:31]line Место: АЗС № 65 "Партнер Нефть" [14:11:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:11:31]line СНО: Общий режим [14:11:31]line Чек 121 19.06.2024 14:11 [14:11:31]line Смена: 388 ФФД: 1.0 [14:11:31]line ЗНМ: 0300000198 [14:11:31]line РНМ: 0000000000092771 [14:11:31]line Версия ККМ: 001 [14:11:31]line ФМ: 0000000000875083 [14:11:31]line ФД: 111372 [14:11:31]line ФПД: 55085337074523 [14:11:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111372&fm=55085337074523&tin=02508201610067®Number=0000000000092771&sum=800000 [14:11:31]OFD Sender: Processing packet 111372 [packets to send 38, broken 37] [14:11:31]ProducePacketName [14:11:31]name=ofd_packets/00111372 [14:11:31]OFD Sender: To server: pG, [14:11:31]CommunicateWithHost lk.salyk.kg:30040 [14:11:31]ConnectInit lk.salyk.kg [14:11:31]written 0, free lines is 4095 [14:11:31]Connected sock=10 [14:11:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 EB 76 04 01 42 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AC AC 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 05 35 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 35 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 4B 01 00 00 00 07 04 06 00 00 35 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 14 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0C B3 01 00 35 04 06 00 32 19 8D F2 DB 5B 5C 16 C3 8D 0B B0 8C 8E [14:11:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D BA 47 00 C3 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 35 30 38 33 10 04 04 00 0C B3 01 00 F4 03 04 00 7C 7E 72 66 B6 04 01 00 00 1C BD 9A 8B 4A 11 B8 6F [14:11:31]CommunicateWithHost err = 0 [14:11:31]CheckOFDResponse [14:11:31]1017 (14) - 77093643461234 [14:11:31]1041 (16) - 0000000000875083 [14:11:31]1040 (4) - 111372 [14:11:31]1012 (4) - 19.06.2024 06:45 [14:11:31]1206 (1) - 0 [14:11:31]OFD Sender: Remove packet 111372 [14:11:31]ProducePacketName [14:11:31]name=ofd_packets/00111372 [14:11:31]NVStorageDeleteData [14:11:32]Write to MH i2c: 01 00 00 99 0B A4 [14:11:32]Write i2c OK [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: 01 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: 01 07 00 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: 01 07 00 99 0B 00 00 00 00 00 E8 0C 9F [14:11:32]RasterBufferAndPrint [14:11:32]line [14:11:32]line [14:11:32]line [14:11:32]line [14:11:32]line [14:11:32]written 0, free lines is 3310 [14:11:32]MH_Cut [14:11:32]Write to MH i2c: D1 01 00 A0 0B 01 7D [14:11:32]Write i2c OK [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: D1 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: D1 01 00 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: D1 01 00 A0 0B 00 7C [14:11:32]Write to MH i2c: 01 00 00 A1 0B AC [14:11:32]Write i2c OK [14:11:32]MH_I2C_Read... [14:11:32]OFD Sender: No OFD packet to send [14:11:32]*** Cut start [14:11:32]*** Partial cut [14:11:32]*** CUTSNS_PIN = 1 [14:11:32]*** CUTSNS_PIN = 0 [14:11:33]*** Brake cut motor [14:11:33]Read from MH i2c: 01 [14:11:33]MH_I2C_Read... [14:11:33]*** Stop cut motor [14:11:33]*** Cut end [14:11:33]Read from MH i2c: 01 07 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: 01 07 00 A1 0B 00 00 00 00 00 FF 0F C1 [14:11:33]process_action close_receipt done [14:11:33]requested_data is exist [14:11:33]produce_requested_data [14:11:33]requested_item fm.sn is exist - process it [14:11:33]wFMCommunicate request_size=4 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 11 00 00 [14:11:33]Write to MH i2c: E2 08 00 A2 0B 80 11 00 00 00 00 00 00 27 [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 17 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 17 00 A2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [14:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:11:33]wFMCommunicate OK [14:11:33]requested_item fd.num is exist - process it [14:11:33]SAM_PROTO_GetFieldsCounters [14:11:33]wFMCommunicate request_size=4 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 13 00 00 [14:11:33]Write to MH i2c: E2 08 00 A3 0B 80 13 00 00 00 00 00 00 2A [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 62 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 62 00 A3 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [14:11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:33]wFMCommunicate OK [14:11:33]SAM_PROTO_GetFieldsCounters done [14:11:33]requested_item shift.num is exist - process it [14:11:33]requested_item shift.opened is exist - process it [14:11:33]req_shift_opened [14:11:33]FM_GetShiftState [14:11:33]SAM_PROTO_GetShiftState [14:11:33]wFMCommunicate request_size=4 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 13 01 00 [14:11:33]Write to MH i2c: E2 08 00 A4 0B 80 13 01 00 00 00 00 00 2C [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 0E 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 0E 00 A4 0B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 76 [14:11:33]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:11:33]wFMCommunicate OK [14:11:33]SAM_PROTO_GetShiftState done [14:11:33]FM_GetShiftState done [14:11:33]req_shift_opened done [14:11:33]requested_item shift.open_date is exist - process it [14:11:33]req_shift_open_date [14:11:33]req_shift_open_date done [14:11:33]produce_requested_data done [14:11:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111372,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:11:33]process_action_free close_receipt [14:11:33]json_value_free [14:11:33]json_value_free done [14:11:33]process_json_proto returns [14:11:33]Send response to host [14:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111372,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:11:33]free response buf [14:11:33]execute_script done [14:11:33]execute_script returns [14:11:33]free content buf [14:11:33]Sock 9.Close socket [14:11:33]Sock 9.Thread stoped [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:55]accept exits with 7 [14:13:55]New connection [14:13:55]New thread 3067465060 created [14:13:55]Thread 3067321700 joined [14:13:55]Waiting for new connection... [14:13:55] Sock 7.Parse request [14:13:55]Sock 7.Check first char [14:13:55]Sock 7.First char is OK [14:13:55]request: POST /json_proto HTTP/1.0 [14:13:55]Method: POST [14:13:55]URL: /json_proto [14:13:55]Method is POST - this is cgi request [14:13:55]url: /json_proto [14:13:55]query_string will be loaded in cgi processing [14:13:55]execute_cgi json_proto POST (null) [14:13:55]execute_cgi path=json_proto method=POST [14:13:55]POST find Content-Length [14:13:55]Host: 172.17.59.68:8080 [14:13:55]Content-Length: 805 [14:13:55]Content-Type: application/json [14:13:55] [14:13:55]POST finish read [14:13:55]Found Content-Length = 805 [14:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:55]execute_script... [14:13: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)319947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 27.440, "sum" : 2000.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:55]POST & json_proto [14:13:55]process_json_proto [14:13:55]json parsed OK: [14:13:55]protocol is kg_v1.0 [14:13:55]action value=close_receipt [14:13:55]process_action close_receipt [14:13:55]cmd_close_receipt [14:13:55]MH_GetDate [14:13:55]Write to MH i2c: F0 00 00 A5 0B 9F [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: F0 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: F0 09 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: F0 09 00 A5 0B 00 A6 E7 72 66 BC EC 60 65 7A [14:13:55]GetLastDocTimeStamp 1718806292 [14:13:55]current date 1718806438 [14:13:55]FM_GetShiftState [14:13:55]SAM_PROTO_GetShiftState [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 13 01 00 [14:13:55]Write to MH i2c: E2 08 00 A6 0B 80 13 01 00 00 00 00 00 2E [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 0E 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 0E 00 A6 0B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 78 [14:13:55]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:13:55]wFMCommunicate OK [14:13:55]SAM_PROTO_GetShiftState done [14:13:55]FM_GetShiftState done [14:13:55]opened in 1718760753 [14:13:55]opened+sec_in_day 1718847153 [14:13:55]quantity*price = 200037 [14:13:55]sum+1 = 200039 [14:13:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.38 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.38 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 122 19.06.2024 14:13 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111373 ФПД: 159275722229124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141358&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111373&fm=159275722229124&tin=02508201610067®Number=0000000000092771&sum=200038 [14:13:56]StoreToDocumentArchive [14:13:56]shift 388 fd 111373 [14:13:56]save to /storage/0388/doc_00111373 [14:13:56]save last doc name /storage/0388/doc_00111373 to /storage/kkm_last_doc_name [14:13:56]save OK [14:13:56]Clear old archive folders... [14:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:13:56]tlvbuf is B6F252A0 [14:13:56]SAM_PROTO_ClearQueue [14:13:56]wFMCommunicate request_size=4 [14:13:56]MH_SAM_APDU [14:13:56]CAPDU: 80 09 00 00 [14:13:56]Write to MH i2c: E2 08 00 B3 0B 80 09 00 00 00 00 00 00 30 [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:56]Read from MH i2c: E2 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 B3 0B 00 90 00 32 [14:13:56]RAPDU: 90 00 [14:13:56]wFMCommunicate OK [14:13:56]SAM_PROTO_ClearQueue done [14:13:56]KKMCreateOFDPacket [14:13:56]OFDProtocolAddRootSTLVToBuf [14:13:56]FM_MakeSignedData [14:13:56]FM_MakeSignedData [14:13:56]SAM_PROTO_SignData [14:13:56]wFMCommunicate request_size=4 [14:13:56]MH_SAM_APDU [14:13:56]CAPDU: 80 0D 01 02 [14:13:56]Write to MH i2c: E2 08 00 B4 0B 80 0D 01 02 00 00 00 00 38 [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:56]Read from MH i2c: E2 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: E2 03 00 B4 0B 00 90 00 33 [14:13:56]RAPDU: 90 00 [14:13:56]wFMCommunicate OK [14:13:56]wFMCommunicate request_size=255 [14:13:56]MH_SAM_APDU [14:13: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 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A6 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B3 01 00 35 04 06 00 90 DC 44 D8 [14:13:56]Write to MH i2c: E2 02 01 B5 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A6 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B3 01 00 35 04 06 00 90 DC 44 D8 00 00 12 [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:57]Read from MH i2c: E2 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 03 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 03 00 B5 0B 00 90 00 34 [14:13:57]RAPDU: 90 00 [14:13:57]wFMCommunicate OK [14:13:57]wFMCommunicate request_size=7 [14:13:57]MH_SAM_APDU [14:13:57]CAPDU: 80 0D 02 02 02 45 84 [14:13:57]Write to MH i2c: E2 0A 00 B6 0B 80 0D 02 02 02 00 45 84 00 00 08 [14:13:57]Write i2c OK [14:13:57]MH_I2C_Read... [14:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:57]Read from MH i2c: E2 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 03 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 03 00 B6 0B 00 90 00 35 [14:13:57]RAPDU: 90 00 [14:13:57]wFMCommunicate OK [14:13:57]wFMCommunicate request_size=4 [14:13:57]MH_SAM_APDU [14:13:57]CAPDU: 80 0D 03 02 [14:13:57]Write to MH i2c: E2 08 00 B7 0B 80 0D 03 02 00 00 00 00 3D [14:13:57]Write i2c OK [14:13:57]MH_I2C_Read... [14:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:57]Read from MH i2c: E2 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 0B 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 0B 00 B7 0B 00 AA CA 28 72 12 27 0C A2 90 00 33 [14:13:57]RAPDU: AA CA 28 72 12 27 0C A2 90 00 [14:13:57]wFMCommunicate OK [14:13:57]SAM_PROTO_SignData done [14:13:57]FM_MakeSignedData done [14:13:57]CreateOFDProtocolMessage [14:13:57]wFMCommunicate request_size=4 [14:13:57]MH_SAM_APDU [14:13:57]CAPDU: 80 11 00 00 [14:13:57]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [14:13:57]Write i2c OK [14:13:57]MH_I2C_Read... [14:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:57]Read from MH i2c: E2 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 17 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: E2 17 00 B8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8F [14:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:57]wFMCommunicate OK [14:13:57]CreateOFDProtocolMessage done [14:13:57]OFDSenderStorePacket 111373 [14:13:57]StoreOFDPacket docnum=111373 [14:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 20 21 04 01 BC EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A6 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B3 01 00 35 04 06 00 90 DC 44 D8 45 84 AA CA 28 72 12 27 0C A2 [14:13:57]CheckFolder [14:13:57]dirname=/storage/ofd_packets [14:13:57]CheckFolder done [14:13:57]ProducePacketName [14:13:57]name=ofd_packets/00111373 [14:13:57]NVStorageSaveData ofd_packets/00111373 [14:13:57]File name is /storage/ofd_packets/00111373 [14:13:57]Write 298 bytes [14:13:57]NVStorageSaveData done [14:13:57]OFDSenderStorePacket done [14:13:57]KKMCreateOFDPacket done [14:13:57]NVStorageSaveData kkm_last_timestamp [14:13:57]File name is /storage/kkm_last_timestamp [14:13:57]Write 4 bytes [14:13:57]NVStorageSaveData done [14:13:57]ExternCall_PrintAddStr [14:13:57]wPrintStart [14:13:57]Write to MH i2c: 01 00 00 B9 0B C4 [14:13:57]Write i2c OK [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: 01 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: 01 07 00 [14:13:57]MH_I2C_Read... [14:13:57]Read from MH i2c: 01 07 00 B9 0B 00 00 00 00 00 FF 0F D9 [14:13:57]RasterBufferAndPrint [14:13:57]line Счет N : (1)319947 [14:13:57]line ИНН: 02508201610067 [14:13:57]line Контрольно-Кассовый Чек [14:13:57]line ПРОДАЖА [14:13:57]line ТРК (МРК, ГНК) : 22 [14:13:57]line Товар: 2710194210 [14:13:57]line ДТ-К-5 [14:13:57]line 27.440 * 72.90 [14:13:57]line = 2000.38 [14:13:57]line НДС 12% НСП 1% [14:13:57]line > о реализуемом товаре [14:13:57]line ИТОГО: 2000.38 [14:13:57]line НСП 1% : 17.70 [14:13:57]line НДС 12% : 212.43 [14:13:57]line Наличными: 0.00 [14:13:57]line Безнал.: 2000.38 [14:13:57]line Место: АЗС № 65 "Партнер Нефть" [14:13:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:13:57]line СНО: Общий режим [14:13:57]line Чек 122 19.06.2024 14:13 [14:13:57]line Смена: 388 ФФД: 1.0 [14:13:57]line ЗНМ: 0300000198 [14:13:57]line РНМ: 0000000000092771 [14:13:57]line Версия ККМ: 001 [14:13:57]line Платежная система: О! деньги [14:13:57]line ФМ: 0000000000875083 [14:13:57]line ФД: 111373 [14:13:57]line ФПД: 159275722229124 [14:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141358&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111373&fm=159275722229124&tin=02508201610067®Number=0000000000092771&sum=200038 [14:13:57]OFD Sender: Processing packet 111373 [packets to send 38, broken 37] [14:13:57]ProducePacketName [14:13:57]name=ofd_packets/00111373 [14:13:57]OFD Sender: To server: pG, [14:13:57]CommunicateWithHost lk.salyk.kg:30040 [14:13:57]ConnectInit lk.salyk.kg [14:13:57]written 0, free lines is 4095 [14:13:57]Connected sock=10 [14:13:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 20 21 04 01 BC EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 6B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 66 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 A6 E7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0D B3 01 00 35 04 06 00 90 DC 44 D8 45 84 AA CA 28 72 12 27 0C A2 [14:13:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4F FA 47 00 AF 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 35 30 38 33 10 04 04 00 0D B3 01 00 F4 03 04 00 0E 7F 72 66 B6 04 01 00 00 92 98 CB FD 65 2C 26 33 [14:13:57]CommunicateWithHost err = 0 [14:13:57]CheckOFDResponse [14:13:57]1017 (14) - 77093643461234 [14:13:57]1041 (16) - 0000000000875083 [14:13:57]1040 (4) - 111373 [14:13:57]1012 (4) - 19.06.2024 06:47 [14:13:57]1206 (1) - 0 [14:13:57]OFD Sender: Remove packet 111373 [14:13:57]ProducePacketName [14:13:57]name=ofd_packets/00111373 [14:13:57]NVStorageDeleteData [14:13:58]Write to MH i2c: 01 00 00 E3 0B EE [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: 01 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: 01 07 00 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 EA 0C EB [14:13:58]RasterBufferAndPrint [14:13:58]line [14:13:58]line [14:13:58]line [14:13:58]line [14:13:58]line [14:13:58]written 0, free lines is 3312 [14:13:58]MH_Cut [14:13:58]Write to MH i2c: D1 01 00 EA 0B 01 C7 [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: D1 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: D1 01 00 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: D1 01 00 EA 0B 00 C6 [14:13:58]Write to MH i2c: 01 00 00 EB 0B F6 [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]OFD Sender: No OFD packet to send [14:13:58]*** Cut start [14:13:58]*** Partial cut [14:13:58]*** CUTSNS_PIN = 1 [14:13:58]*** CUTSNS_PIN = 0 [14:13:59]*** Brake cut motor [14:13:59]Read from MH i2c: 01 [14:13:59]MH_I2C_Read... [14:13:59]*** Stop cut motor [14:13:59]*** Cut end [14:13:59]Read from MH i2c: 01 07 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: 01 07 00 EB 0B 00 00 00 00 00 FF 0F 0B [14:13:59]process_action close_receipt done [14:13:59]requested_data is exist [14:13:59]produce_requested_data [14:13:59]requested_item fm.sn is exist - process it [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 11 00 00 [14:13:59]Write to MH i2c: E2 08 00 EC 0B 80 11 00 00 00 00 00 00 71 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 17 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 17 00 EC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C3 [14:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:13:59]wFMCommunicate OK [14:13:59]requested_item fd.num is exist - process it [14:13:59]SAM_PROTO_GetFieldsCounters [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 13 00 00 [14:13:59]Write to MH i2c: E2 08 00 ED 0B 80 13 00 00 00 00 00 00 74 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 62 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 62 00 ED 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [14:13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0D B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:59]wFMCommunicate OK [14:13:59]SAM_PROTO_GetFieldsCounters done [14:13:59]requested_item shift.num is exist - process it [14:13:59]requested_item shift.opened is exist - process it [14:13:59]req_shift_opened [14:13:59]FM_GetShiftState [14:13:59]SAM_PROTO_GetShiftState [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 13 01 00 [14:13:59]Write to MH i2c: E2 08 00 EE 0B 80 13 01 00 00 00 00 00 76 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 0E 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 0E 00 EE 0B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C0 [14:13:59]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:13:59]wFMCommunicate OK [14:13:59]SAM_PROTO_GetShiftState done [14:13:59]FM_GetShiftState done [14:13:59]req_shift_opened done [14:13:59]requested_item shift.open_date is exist - process it [14:13:59]req_shift_open_date [14:13:59]req_shift_open_date done [14:13:59]produce_requested_data done [14:13:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111373,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:13:59]process_action_free close_receipt [14:13:59]json_value_free [14:13:59]json_value_free done [14:13:59]process_json_proto returns [14:13:59]Send response to host [14:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111373,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:13:59]free response buf [14:13:59]execute_script done [14:13:59]execute_script returns [14:13:59]free content buf [14:13:59]Sock 7.Close socket [14:13:59]Sock 7.Thread stoped [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:29]accept exits with 9 [14:16:29]New connection [14:16:29]New thread 3067321700 created [14:16:29]Thread 3067465060 joined [14:16:29]Waiting for new connection... [14:16:29] Sock 9.Parse request [14:16:29]Sock 9.Check first char [14:16:29]Sock 9.First char is OK [14:16:29]request: POST /json_proto HTTP/1.0 [14:16:29]Method: POST [14:16:29]URL: /json_proto [14:16:29]Method is POST - this is cgi request [14:16:29]url: /json_proto [14:16:29]query_string will be loaded in cgi processing [14:16:29]execute_cgi json_proto POST (null) [14:16:29]execute_cgi path=json_proto method=POST [14:16:29]POST find Content-Length [14:16:29]Host: 172.17.59.68:8080 [14:16:29]Content-Length: 677 [14:16:29]Content-Type: application/json [14:16:29] [14:16:29]POST finish read [14:16:29]Found Content-Length = 677 [14:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:29]execute_script... [14:16: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)319948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:29]POST & json_proto [14:16:29]process_json_proto [14:16:29]json parsed OK: [14:16:29]protocol is kg_v1.0 [14:16:29]action value=close_receipt [14:16:29]process_action close_receipt [14:16:29]cmd_close_receipt [14:16:29]MH_GetDate [14:16:29]Write to MH i2c: F0 00 00 EF 0B E9 [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: F0 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: F0 09 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: F0 09 00 EF 0B 00 40 E8 72 66 BC EC 60 65 5F [14:16:29]GetLastDocTimeStamp 1718806438 [14:16:29]current date 1718806592 [14:16:29]FM_GetShiftState [14:16:29]SAM_PROTO_GetShiftState [14:16:29]wFMCommunicate request_size=4 [14:16:29]MH_SAM_APDU [14:16:29]CAPDU: 80 13 01 00 [14:16:29]Write to MH i2c: E2 08 00 F0 0B 80 13 01 00 00 00 00 00 78 [14:16:29]Write i2c OK [14:16:29]MH_I2C_Read... [14:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:29]Read from MH i2c: E2 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 0E 00 [14:16:29]MH_I2C_Read... [14:16:29]Read from MH i2c: E2 0E 00 F0 0B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C2 [14:16:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:16:29]wFMCommunicate OK [14:16:29]SAM_PROTO_GetShiftState done [14:16:29]FM_GetShiftState done [14:16:29]opened in 1718760753 [14:16:29]opened+sec_in_day 1718847153 [14:16:29]quantity*price = 30012 [14:16:29]sum+1 = 30014 [14:16:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 123 19.06.2024 14:16 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111374 ФПД: 215986285380698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141632&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111374&fm=215986285380698&tin=02508201610067®Number=0000000000092771&sum=30000 [14:16:30]StoreToDocumentArchive [14:16:30]shift 388 fd 111374 [14:16:30]save to /storage/0388/doc_00111374 [14:16:30]save last doc name /storage/0388/doc_00111374 to /storage/kkm_last_doc_name [14:16:30]save OK [14:16:30]Clear old archive folders... [14:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:30]tlvbuf is 00F427A0 [14:16:30]SAM_PROTO_ClearQueue [14:16:30]wFMCommunicate request_size=4 [14:16:30]MH_SAM_APDU [14:16:30]CAPDU: 80 09 00 00 [14:16:30]Write to MH i2c: E2 08 00 FD 0B 80 09 00 00 00 00 00 00 7A [14:16:30]Write i2c OK [14:16:30]MH_I2C_Read... [14:16:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:31]Read from MH i2c: E2 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 03 00 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 03 00 FD 0B 00 90 00 7C [14:16:31]RAPDU: 90 00 [14:16:31]wFMCommunicate OK [14:16:31]SAM_PROTO_ClearQueue done [14:16:31]KKMCreateOFDPacket [14:16:31]OFDProtocolAddRootSTLVToBuf [14:16:31]FM_MakeSignedData [14:16:31]FM_MakeSignedData [14:16:31]SAM_PROTO_SignData [14:16:31]wFMCommunicate request_size=4 [14:16:31]MH_SAM_APDU [14:16:31]CAPDU: 80 0D 01 02 [14:16:31]Write to MH i2c: E2 08 00 FE 0B 80 0D 01 02 00 00 00 00 82 [14:16:31]Write i2c OK [14:16:31]MH_I2C_Read... [14:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:31]Read from MH i2c: E2 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 03 00 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 03 00 FE 0B 00 90 00 7D [14:16:31]RAPDU: 90 00 [14:16:31]wFMCommunicate OK [14:16:31]wFMCommunicate request_size=255 [14:16:31]MH_SAM_APDU [14:16: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 7B 00 00 00 F4 03 04 00 40 E8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B3 01 00 35 04 06 00 C4 [14:16:31]Write to MH i2c: E2 02 01 FF 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 7B 00 00 00 F4 03 04 00 40 E8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B3 01 00 35 04 06 00 C4 00 00 5A [14:16:31]Write i2c OK [14:16:31]MH_I2C_Read... [14:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:31]Read from MH i2c: E2 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 03 00 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 03 00 FF 0B 00 90 00 7E [14:16:31]RAPDU: 90 00 [14:16:31]wFMCommunicate OK [14:16:31]wFMCommunicate request_size=10 [14:16:31]MH_SAM_APDU [14:16:31]CAPDU: 80 0D 02 02 05 70 39 D1 04 5A [14:16:31]Write to MH i2c: E2 0D 00 00 0C 80 0D 02 02 05 00 70 39 D1 04 5A 00 00 68 [14:16:31]Write i2c OK [14:16:31]MH_I2C_Read... [14:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:31]Read from MH i2c: E2 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 03 00 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 03 00 00 0C 00 90 00 80 [14:16:31]RAPDU: 90 00 [14:16:31]wFMCommunicate OK [14:16:31]wFMCommunicate request_size=4 [14:16:31]MH_SAM_APDU [14:16:31]CAPDU: 80 0D 03 02 [14:16:31]Write to MH i2c: E2 08 00 01 0C 80 0D 03 02 00 00 00 00 88 [14:16:31]Write i2c OK [14:16:31]MH_I2C_Read... [14:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:31]Read from MH i2c: E2 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 0B 00 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 0B 00 01 0C 00 6D CE 4B 99 EB 51 FA D0 90 00 AE [14:16:31]RAPDU: 6D CE 4B 99 EB 51 FA D0 90 00 [14:16:31]wFMCommunicate OK [14:16:31]SAM_PROTO_SignData done [14:16:31]FM_MakeSignedData done [14:16:31]CreateOFDProtocolMessage [14:16:31]wFMCommunicate request_size=4 [14:16:31]MH_SAM_APDU [14:16:31]CAPDU: 80 11 00 00 [14:16:31]Write to MH i2c: E2 08 00 02 0C 80 11 00 00 00 00 00 00 88 [14:16:31]Write i2c OK [14:16:31]MH_I2C_Read... [14:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:31]Read from MH i2c: E2 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 17 00 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: E2 17 00 02 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [14:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:31]wFMCommunicate OK [14:16:31]CreateOFDProtocolMessage done [14:16:31]OFDSenderStorePacket 111374 [14:16:31]StoreOFDPacket docnum=111374 [14:16:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C DA 07 01 69 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 7B 00 00 00 F4 03 04 00 40 E8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B3 01 00 35 04 06 00 C4 70 39 D1 04 5A 6D CE 4B 99 EB 51 FA D0 [14:16:31]CheckFolder [14:16:31]dirname=/storage/ofd_packets [14:16:31]CheckFolder done [14:16:31]ProducePacketName [14:16:31]name=ofd_packets/00111374 [14:16:31]NVStorageSaveData ofd_packets/00111374 [14:16:31]File name is /storage/ofd_packets/00111374 [14:16:31]Write 301 bytes [14:16:31]NVStorageSaveData done [14:16:31]OFDSenderStorePacket done [14:16:31]KKMCreateOFDPacket done [14:16:31]NVStorageSaveData kkm_last_timestamp [14:16:31]File name is /storage/kkm_last_timestamp [14:16:31]Write 4 bytes [14:16:31]NVStorageSaveData done [14:16:31]ExternCall_PrintAddStr [14:16:31]wPrintStart [14:16:31]Write to MH i2c: 01 00 00 03 0C 0F [14:16:31]Write i2c OK [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: 01 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: 01 07 00 [14:16:31]MH_I2C_Read... [14:16:31]Read from MH i2c: 01 07 00 03 0C 00 00 00 00 00 FF 0F 24 [14:16:31]RasterBufferAndPrint [14:16:31]line Счет N : (1)319948 [14:16:31]line ИНН: 02508201610067 [14:16:31]line Контрольно-Кассовый Чек [14:16:31]line ПРОДАЖА [14:16:31]line ТРК (МРК, ГНК) : 11 [14:16:31]line Товар: 2710124130 [14:16:31]line Аи-92-К-5 [14:16:31]line 4.520 * 66.40 [14:16:31]line = 300.13 [14:16:31]line НДС 12% НСП 1% [14:16:31]line > о реализуемом товаре [14:16:31]line ОКРУГЛЕНИЕ: -0.13 [14:16:31]line ИТОГО: 300.00 [14:16:31]line Внесено: 300.00 [14:16:31]line СДАЧА: 0.00 [14:16:31]line НСП 1% : 2.66 [14:16:31]line НДС 12% : 31.87 [14:16:31]line Наличными: 300.00 [14:16:31]line Безнал.: 0.00 [14:16:31]line Место: АЗС № 65 "Партнер Нефть" [14:16:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:16:31]line СНО: Общий режим [14:16:31]line Чек 123 19.06.2024 14:16 [14:16:31]line Смена: 388 ФФД: 1.0 [14:16:31]line ЗНМ: 0300000198 [14:16:31]line РНМ: 0000000000092771 [14:16:31]line Версия ККМ: 001 [14:16:31]line ФМ: 0000000000875083 [14:16:31]line ФД: 111374 [14:16:31]line ФПД: 215986285380698 [14:16:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T141632&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111374&fm=215986285380698&tin=02508201610067®Number=0000000000092771&sum=30000 [14:16:31]OFD Sender: Processing packet 111374 [packets to send 38, broken 37] [14:16:31]ProducePacketName [14:16:31]name=ofd_packets/00111374 [14:16:31]OFD Sender: To server: pG, [14:16:31]CommunicateWithHost lk.salyk.kg:30040 [14:16:31]ConnectInit lk.salyk.kg [14:16:31]written 0, free lines is 4095 [14:16:31]Connected sock=10 [14:16:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C DA 07 01 69 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 7B 00 00 00 F4 03 04 00 40 E8 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B3 01 00 35 04 06 00 C4 70 39 D1 04 5A 6D CE 4B 99 EB 51 FA D0 [14:16:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 58 F3 47 00 57 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0E B3 01 00 F4 03 04 00 A8 7F 72 66 B6 04 01 00 00 FD BA 73 E8 D5 C2 D5 0D [14:16:32]CommunicateWithHost err = 0 [14:16:32]CheckOFDResponse [14:16:32]1017 (14) - 77093643461234 [14:16:32]1041 (16) - 0000000000875083 [14:16:32]1040 (4) - 111374 [14:16:32]1012 (4) - 19.06.2024 06:50 [14:16:32]1206 (1) - 0 [14:16:32]OFD Sender: Remove packet 111374 [14:16:32]ProducePacketName [14:16:32]name=ofd_packets/00111374 [14:16:32]NVStorageDeleteData [14:16:32]Write to MH i2c: 01 00 00 2E 0C 3A [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: 01 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: 01 07 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: 01 07 00 2E 0C 00 00 00 00 00 F3 0C 40 [14:16:32]RasterBufferAndPrint [14:16:32]line [14:16:32]line [14:16:32]line [14:16:32]line [14:16:32]line [14:16:32]written 0, free lines is 3321 [14:16:32]MH_Cut [14:16:32]Write to MH i2c: D1 01 00 35 0C 01 13 [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: D1 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: D1 01 00 [14:16:32]MH_I2C_Read... [14:16:32]Read from MH i2c: D1 01 00 35 0C 00 12 [14:16:32]Write to MH i2c: 01 00 00 36 0C 42 [14:16:32]Write i2c OK [14:16:32]MH_I2C_Read... [14:16:32]OFD Sender: No OFD packet to send [14:16:33]*** Cut start [14:16:33]*** Partial cut [14:16:33]*** CUTSNS_PIN = 1 [14:16:33]*** CUTSNS_PIN = 0 [14:16:33]*** Brake cut motor [14:16:33]Read from MH i2c: 01 [14:16:33]MH_I2C_Read... [14:16:33]*** Stop cut motor [14:16:33]*** Cut end [14:16:33]Read from MH i2c: 01 07 00 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: 01 07 00 36 0C 00 00 00 00 00 FF 0F 57 [14:16:33]process_action close_receipt done [14:16:33]requested_data is exist [14:16:33]produce_requested_data [14:16:33]requested_item fm.sn is exist - process it [14:16:33]wFMCommunicate request_size=4 [14:16:33]MH_SAM_APDU [14:16:33]CAPDU: 80 11 00 00 [14:16:33]Write to MH i2c: E2 08 00 37 0C 80 11 00 00 00 00 00 00 BD [14:16:33]Write i2c OK [14:16:33]MH_I2C_Read... [14:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:33]Read from MH i2c: E2 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 17 00 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 17 00 37 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0F [14:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:16:33]wFMCommunicate OK [14:16:33]requested_item fd.num is exist - process it [14:16:33]SAM_PROTO_GetFieldsCounters [14:16:33]wFMCommunicate request_size=4 [14:16:33]MH_SAM_APDU [14:16:33]CAPDU: 80 13 00 00 [14:16:33]Write to MH i2c: E2 08 00 38 0C 80 13 00 00 00 00 00 00 C0 [14:16:33]Write i2c OK [14:16:33]MH_I2C_Read... [14:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:33]Read from MH i2c: E2 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 62 00 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 62 00 38 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [14:16: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:33]wFMCommunicate OK [14:16:33]SAM_PROTO_GetFieldsCounters done [14:16:33]requested_item shift.num is exist - process it [14:16:33]requested_item shift.opened is exist - process it [14:16:33]req_shift_opened [14:16:33]FM_GetShiftState [14:16:33]SAM_PROTO_GetShiftState [14:16:33]wFMCommunicate request_size=4 [14:16:33]MH_SAM_APDU [14:16:33]CAPDU: 80 13 01 00 [14:16:33]Write to MH i2c: E2 08 00 39 0C 80 13 01 00 00 00 00 00 C2 [14:16:33]Write i2c OK [14:16:33]MH_I2C_Read... [14:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:33]Read from MH i2c: E2 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 0E 00 [14:16:33]MH_I2C_Read... [14:16:33]Read from MH i2c: E2 0E 00 39 0C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0C [14:16:33]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:16:33]wFMCommunicate OK [14:16:33]SAM_PROTO_GetShiftState done [14:16:33]FM_GetShiftState done [14:16:33]req_shift_opened done [14:16:33]requested_item shift.open_date is exist - process it [14:16:33]req_shift_open_date [14:16:33]req_shift_open_date done [14:16:33]produce_requested_data done [14:16:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111374,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:16:33]process_action_free close_receipt [14:16:33]json_value_free [14:16:33]json_value_free done [14:16:33]process_json_proto returns [14:16:33]Send response to host [14:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111374,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:16:33]free response buf [14:16:33]execute_script done [14:16:33]execute_script returns [14:16:33]free content buf [14:16:33]Sock 9.Close socket [14:16:33]Sock 9.Thread stoped [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:08]accept exits with 7 [14:21:08]New connection [14:21:08]New thread 3067465060 created [14:21:08]Thread 3067321700 joined [14:21:08]Waiting for new connection... [14:21:08] Sock 7.Parse request [14:21:08]Sock 7.Check first char [14:21:08]Sock 7.First char is OK [14:21:08]request: POST /json_proto HTTP/1.0 [14:21:08]Method: POST [14:21:08]URL: /json_proto [14:21:08]Method is POST - this is cgi request [14:21:08]url: /json_proto [14:21:08]query_string will be loaded in cgi processing [14:21:08]execute_cgi json_proto POST (null) [14:21:08]execute_cgi path=json_proto method=POST [14:21:08]POST find Content-Length [14:21:08]Host: 172.17.59.68:8080 [14:21:08]Content-Length: 677 [14:21:08]Content-Type: application/json [14:21:08] [14:21:08]POST finish read [14:21:08]Found Content-Length = 677 [14:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.410, "sum" : 359.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 359.00, "payments": [ { "type": 0, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:08]execute_script... [14:21: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)319949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.410, "sum" : 359.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 359.00, "payments": [ { "type": 0, "sum" : 359.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:08]POST & json_proto [14:21:08]process_json_proto [14:21:08]json parsed OK: [14:21:08]protocol is kg_v1.0 [14:21:08]action value=close_receipt [14:21:08]process_action close_receipt [14:21:08]cmd_close_receipt [14:21:08]MH_GetDate [14:21:08]Write to MH i2c: F0 00 00 3A 0C 35 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 09 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 09 00 3A 0C 00 57 E9 72 66 BC EC 60 65 C3 [14:21:08]GetLastDocTimeStamp 1718806592 [14:21:08]current date 1718806871 [14:21:08]FM_GetShiftState [14:21:08]SAM_PROTO_GetShiftState [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 13 01 00 [14:21:08]Write to MH i2c: E2 08 00 3B 0C 80 13 01 00 00 00 00 00 C4 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0E 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0E 00 3B 0C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0E [14:21:08]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:21:08]wFMCommunicate OK [14:21:08]SAM_PROTO_GetShiftState done [14:21:08]FM_GetShiftState done [14:21:08]opened in 1718760753 [14:21:08]opened+sec_in_day 1718847153 [14:21:08]quantity*price = 35922 [14:21:08]sum+1 = 35923 [14:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 359.00 Внесено: 560.00 СДАЧА: 201.00 НСП 1% : 3.18 НДС 12% : 38.15 Наличными: 359.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 124 19.06.2024 14:21 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111375 ФПД: 72603686726882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142111&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111375&fm=72603686726882&tin=02508201610067®Number=0000000000092771&sum=35900 [14:21:09]StoreToDocumentArchive [14:21:09]shift 388 fd 111375 [14:21:09]save to /storage/0388/doc_00111375 [14:21:09]save last doc name /storage/0388/doc_00111375 to /storage/kkm_last_doc_name [14:21:09]save OK [14:21:09]Clear old archive folders... [14:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:09]tlvbuf is 00EC6680 [14:21:09]SAM_PROTO_ClearQueue [14:21:09]wFMCommunicate request_size=4 [14:21:09]MH_SAM_APDU [14:21:09]CAPDU: 80 09 00 00 [14:21:09]Write to MH i2c: E2 08 00 48 0C 80 09 00 00 00 00 00 00 C6 [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:09]Read from MH i2c: E2 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 48 0C 00 90 00 C8 [14:21:09]RAPDU: 90 00 [14:21:09]wFMCommunicate OK [14:21:09]SAM_PROTO_ClearQueue done [14:21:09]KKMCreateOFDPacket [14:21:09]OFDProtocolAddRootSTLVToBuf [14:21:09]FM_MakeSignedData [14:21:09]FM_MakeSignedData [14:21:09]SAM_PROTO_SignData [14:21:09]wFMCommunicate request_size=4 [14:21:09]MH_SAM_APDU [14:21:09]CAPDU: 80 0D 01 02 [14:21:09]Write to MH i2c: E2 08 00 49 0C 80 0D 01 02 00 00 00 00 CE [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:09]Read from MH i2c: E2 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [14:21:09]RAPDU: 90 00 [14:21:09]wFMCommunicate OK [14:21:09]wFMCommunicate request_size=255 [14:21:09]MH_SAM_APDU [14:21: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 22 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 52 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 0E 00 00 00 00 07 04 06 00 3C 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 7C 00 00 00 F4 03 04 00 57 E9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B3 01 00 35 04 06 00 42 [14:21:09]Write to MH i2c: E2 02 01 4A 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 22 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 52 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 0E 00 00 00 00 07 04 06 00 3C 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 7C 00 00 00 F4 03 04 00 57 E9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B3 01 00 35 04 06 00 42 00 00 D8 [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [14:21:10]RAPDU: 90 00 [14:21:10]wFMCommunicate OK [14:21:10]wFMCommunicate request_size=10 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 0D 02 02 05 08 5C F4 EC E2 [14:21:10]Write to MH i2c: E2 0D 00 4B 0C 80 0D 02 02 05 00 08 5C F4 EC E2 00 00 01 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 4B 0C 00 90 00 CB [14:21:10]RAPDU: 90 00 [14:21:10]wFMCommunicate OK [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 0D 03 02 [14:21:10]Write to MH i2c: E2 08 00 4C 0C 80 0D 03 02 00 00 00 00 D3 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 0B 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 0B 00 4C 0C 00 1C 41 15 DC 6A F8 72 59 90 00 4F [14:21:10]RAPDU: 1C 41 15 DC 6A F8 72 59 90 00 [14:21:10]wFMCommunicate OK [14:21:10]SAM_PROTO_SignData done [14:21:10]FM_MakeSignedData done [14:21:10]CreateOFDProtocolMessage [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 11 00 00 [14:21:10]Write to MH i2c: E2 08 00 4D 0C 80 11 00 00 00 00 00 00 D3 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 17 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 17 00 4D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [14:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:21:10]wFMCommunicate OK [14:21:10]CreateOFDProtocolMessage done [14:21:10]OFDSenderStorePacket 111375 [14:21:10]StoreOFDPacket docnum=111375 [14:21:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B8 CE 07 01 65 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 22 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 52 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 0E 00 00 00 00 07 04 06 00 3C 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 7C 00 00 00 F4 03 04 00 57 E9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B3 01 00 35 04 06 00 42 08 5C F4 EC E2 1C 41 15 DC 6A F8 72 59 [14:21:10]CheckFolder [14:21:10]dirname=/storage/ofd_packets [14:21:10]CheckFolder done [14:21:10]ProducePacketName [14:21:10]name=ofd_packets/00111375 [14:21:10]NVStorageSaveData ofd_packets/00111375 [14:21:10]File name is /storage/ofd_packets/00111375 [14:21:10]Write 301 bytes [14:21:10]NVStorageSaveData done [14:21:10]OFDSenderStorePacket done [14:21:10]KKMCreateOFDPacket done [14:21:10]NVStorageSaveData kkm_last_timestamp [14:21:10]File name is /storage/kkm_last_timestamp [14:21:10]Write 4 bytes [14:21:10]NVStorageSaveData done [14:21:10]ExternCall_PrintAddStr [14:21:10]wPrintStart [14:21:10]Write to MH i2c: 01 00 00 4E 0C 5A [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 07 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 07 00 4E 0C 00 00 00 00 00 FF 0F 6F [14:21:10]RasterBufferAndPrint [14:21:10]line Счет N : (1)319949 [14:21:10]line ИНН: 02508201610067 [14:21:10]line Контрольно-Кассовый Чек [14:21:10]line ПРОДАЖА [14:21:10]line ТРК (МРК, ГНК) : 11 [14:21:10]line Товар: 2710124130 [14:21:10]line Аи-92-К-5 [14:21:10]line 5.410 * 66.40 [14:21:10]line = 359.22 [14:21:10]line НДС 12% НСП 1% [14:21:10]line > о реализуемом товаре [14:21:10]line ОКРУГЛЕНИЕ: -0.22 [14:21:10]line ИТОГО: 359.00 [14:21:10]line Внесено: 560.00 [14:21:10]line СДАЧА: 201.00 [14:21:10]line НСП 1% : 3.18 [14:21:10]line НДС 12% : 38.15 [14:21:10]line Наличными: 359.00 [14:21:10]line Безнал.: 0.00 [14:21:10]line Место: АЗС № 65 "Партнер Нефть" [14:21:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:21:10]line СНО: Общий режим [14:21:10]line Чек 124 19.06.2024 14:21 [14:21:10]line Смена: 388 ФФД: 1.0 [14:21:10]line ЗНМ: 0300000198 [14:21:10]line РНМ: 0000000000092771 [14:21:10]line Версия ККМ: 001 [14:21:10]line ФМ: 0000000000875083 [14:21:10]line ФД: 111375 [14:21:10]line ФПД: 72603686726882 [14:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142111&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111375&fm=72603686726882&tin=02508201610067®Number=0000000000092771&sum=35900 [14:21:10]OFD Sender: Processing packet 111375 [packets to send 38, broken 37] [14:21:10]ProducePacketName [14:21:10]name=ofd_packets/00111375 [14:21:10]OFD Sender: To server: pG, [14:21:10]CommunicateWithHost lk.salyk.kg:30040 [14:21:10]ConnectInit lk.salyk.kg [14:21:10]written 0, free lines is 4095 [14:21:10]Connected sock=10 [14:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B8 CE 07 01 65 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 22 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 52 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 0E 00 00 00 00 07 04 06 00 3C 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 7C 00 00 00 F4 03 04 00 57 E9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 0F B3 01 00 35 04 06 00 42 08 5C F4 EC E2 1C 41 15 DC 6A F8 72 59 [14:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D2 A1 47 00 97 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 35 30 38 33 10 04 04 00 0F B3 01 00 F4 03 04 00 BF 80 72 66 B6 04 01 00 00 72 E9 96 FF C3 AA 1C B9 [14:21:10]CommunicateWithHost err = 0 [14:21:10]CheckOFDResponse [14:21:10]1017 (14) - 77093643461234 [14:21:10]1041 (16) - 0000000000875083 [14:21:10]1040 (4) - 111375 [14:21:10]1012 (4) - 19.06.2024 06:54 [14:21:10]1206 (1) - 0 [14:21:10]OFD Sender: Remove packet 111375 [14:21:10]ProducePacketName [14:21:10]name=ofd_packets/00111375 [14:21:10]NVStorageDeleteData [14:21:11]Write to MH i2c: 01 00 00 79 0C 85 [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: 01 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: 01 07 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: 01 07 00 79 0C 00 00 00 00 00 E5 0C 7D [14:21:11]RasterBufferAndPrint [14:21:11]line [14:21:11]line [14:21:11]line [14:21:11]line [14:21:11]line [14:21:11]written 0, free lines is 3307 [14:21:11]MH_Cut [14:21:11]Write to MH i2c: D1 01 00 80 0C 01 5E [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: D1 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: D1 01 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: D1 01 00 80 0C 00 5D [14:21:11]Write to MH i2c: 01 00 00 81 0C 8D [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]OFD Sender: No OFD packet to send [14:21:11]*** Cut start [14:21:11]*** Partial cut [14:21:11]*** CUTSNS_PIN = 1 [14:21:11]*** CUTSNS_PIN = 0 [14:21:12]*** Brake cut motor [14:21:12]Read from MH i2c: 01 [14:21:12]MH_I2C_Read... [14:21:12]*** Stop cut motor [14:21:12]*** Cut end [14:21:12]Read from MH i2c: 01 07 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: 01 07 00 81 0C 00 00 00 00 00 FF 0F A2 [14:21:12]process_action close_receipt done [14:21:12]requested_data is exist [14:21:12]produce_requested_data [14:21:12]requested_item fm.sn is exist - process it [14:21:12]wFMCommunicate request_size=4 [14:21:12]MH_SAM_APDU [14:21:12]CAPDU: 80 11 00 00 [14:21:12]Write to MH i2c: E2 08 00 82 0C 80 11 00 00 00 00 00 00 08 [14:21:12]Write i2c OK [14:21:12]MH_I2C_Read... [14:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:12]Read from MH i2c: E2 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 17 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 17 00 82 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5A [14:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:21:12]wFMCommunicate OK [14:21:12]requested_item fd.num is exist - process it [14:21:12]SAM_PROTO_GetFieldsCounters [14:21:12]wFMCommunicate request_size=4 [14:21:12]MH_SAM_APDU [14:21:12]CAPDU: 80 13 00 00 [14:21:12]Write to MH i2c: E2 08 00 83 0C 80 13 00 00 00 00 00 00 0B [14:21:12]Write i2c OK [14:21:12]MH_I2C_Read... [14:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:12]Read from MH i2c: E2 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 62 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 62 00 83 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [14:21: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 0F B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:12]wFMCommunicate OK [14:21:12]SAM_PROTO_GetFieldsCounters done [14:21:12]requested_item shift.num is exist - process it [14:21:12]requested_item shift.opened is exist - process it [14:21:12]req_shift_opened [14:21:12]FM_GetShiftState [14:21:12]SAM_PROTO_GetShiftState [14:21:12]wFMCommunicate request_size=4 [14:21:12]MH_SAM_APDU [14:21:12]CAPDU: 80 13 01 00 [14:21:12]Write to MH i2c: E2 08 00 84 0C 80 13 01 00 00 00 00 00 0D [14:21:12]Write i2c OK [14:21:12]MH_I2C_Read... [14:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:12]Read from MH i2c: E2 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 0E 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 0E 00 84 0C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 57 [14:21:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:21:12]wFMCommunicate OK [14:21:12]SAM_PROTO_GetShiftState done [14:21:12]FM_GetShiftState done [14:21:12]req_shift_opened done [14:21:12]requested_item shift.open_date is exist - process it [14:21:12]req_shift_open_date [14:21:12]req_shift_open_date done [14:21:12]produce_requested_data done [14:21:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111375,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:21:12]process_action_free close_receipt [14:21:12]json_value_free [14:21:12]json_value_free done [14:21:12]process_json_proto returns [14:21:12]Send response to host [14:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111375,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:21:12]free response buf [14:21:12]execute_script done [14:21:12]execute_script returns [14:21:12]free content buf [14:21:12]Sock 7.Close socket [14:21:12]Sock 7.Thread stoped [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:34]accept exits with 9 [14:23:34]New connection [14:23:34]New thread 3067321700 created [14:23:34]Thread 3067465060 joined [14:23:34]Waiting for new connection... [14:23:34] Sock 9.Parse request [14:23:34]Sock 9.Check first char [14:23:34]Sock 9.First char is OK [14:23:34]request: POST /json_proto HTTP/1.0 [14:23:34]Method: POST [14:23:34]URL: /json_proto [14:23:34]Method is POST - this is cgi request [14:23:34]url: /json_proto [14:23:34]query_string will be loaded in cgi processing [14:23:34]execute_cgi json_proto POST (null) [14:23:34]execute_cgi path=json_proto method=POST [14:23:34]POST find Content-Length [14:23:34]Host: 172.17.59.68:8080 [14:23:34]Content-Length: 682 [14:23:34]Content-Type: application/json [14:23:34] [14:23:34]POST finish read [14:23:34]Found Content-Length = 682 [14:23:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:34]execute_script... [14:23:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:34]POST & json_proto [14:23:34]process_json_proto [14:23:34]json parsed OK: [14:23:34]protocol is kg_v1.0 [14:23:34]action value=close_receipt [14:23:34]process_action close_receipt [14:23:34]cmd_close_receipt [14:23:34]MH_GetDate [14:23:34]Write to MH i2c: F0 00 00 85 0C 80 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: F0 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: F0 09 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: F0 09 00 85 0C 00 E9 E9 72 66 BC EC 60 65 A0 [14:23:34]GetLastDocTimeStamp 1718806871 [14:23:34]current date 1718807017 [14:23:34]FM_GetShiftState [14:23:34]SAM_PROTO_GetShiftState [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 13 01 00 [14:23:34]Write to MH i2c: E2 08 00 86 0C 80 13 01 00 00 00 00 00 0F [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 0E 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 0E 00 86 0C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 59 [14:23:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:23:34]wFMCommunicate OK [14:23:34]SAM_PROTO_GetShiftState done [14:23:34]FM_GetShiftState done [14:23:34]opened in 1718760753 [14:23:34]opened+sec_in_day 1718847153 [14:23:34]quantity*price = 100064 [14:23:34]sum+1 = 100066 [14:23:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 125 19.06.2024 14:23 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111376 ФПД: 63403681322025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142337&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111376&fm=63403681322025&tin=02508201610067®Number=0000000000092771&sum=100000 [14:23:35]StoreToDocumentArchive [14:23:35]shift 388 fd 111376 [14:23:35]save to /storage/0388/doc_00111376 [14:23:35]save last doc name /storage/0388/doc_00111376 to /storage/kkm_last_doc_name [14:23:35]save OK [14:23:35]Clear old archive folders... [14:23:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:35]tlvbuf is 00EFC290 [14:23:35]SAM_PROTO_ClearQueue [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 09 00 00 [14:23:35]Write to MH i2c: E2 08 00 93 0C 80 09 00 00 00 00 00 00 11 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 93 0C 00 90 00 13 [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]SAM_PROTO_ClearQueue done [14:23:35]KKMCreateOFDPacket [14:23:35]OFDProtocolAddRootSTLVToBuf [14:23:35]FM_MakeSignedData [14:23:35]FM_MakeSignedData [14:23:35]SAM_PROTO_SignData [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 01 02 [14:23:35]Write to MH i2c: E2 08 00 94 0C 80 0D 01 02 00 00 00 00 19 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 94 0C 00 90 00 14 [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=255 [14:23:35]MH_SAM_APDU [14:23: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 E9 E9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B3 01 00 35 04 06 00 39 [14:23:35]Write to MH i2c: E2 02 01 95 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 E9 E9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B3 01 00 35 04 06 00 39 00 00 C6 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 95 0C 00 90 00 15 [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=10 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 02 02 05 AA 51 E7 14 29 [14:23:35]Write to MH i2c: E2 0D 00 96 0C 80 0D 02 02 05 00 AA 51 E7 14 29 00 00 45 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 03 00 96 0C 00 90 00 16 [14:23:35]RAPDU: 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 0D 03 02 [14:23:35]Write to MH i2c: E2 08 00 97 0C 80 0D 03 02 00 00 00 00 1E [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 0B 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 0B 00 97 0C 00 06 14 74 3A 7B 4C C8 DF 90 00 55 [14:23:35]RAPDU: 06 14 74 3A 7B 4C C8 DF 90 00 [14:23:35]wFMCommunicate OK [14:23:35]SAM_PROTO_SignData done [14:23:35]FM_MakeSignedData done [14:23:35]CreateOFDProtocolMessage [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 11 00 00 [14:23:35]Write to MH i2c: E2 08 00 98 0C 80 11 00 00 00 00 00 00 1E [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 17 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 17 00 98 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 70 [14:23:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:23:35]wFMCommunicate OK [14:23:35]CreateOFDProtocolMessage done [14:23:35]OFDSenderStorePacket 111376 [14:23:35]StoreOFDPacket docnum=111376 [14:23:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 F7 07 01 5A 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 E9 E9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B3 01 00 35 04 06 00 39 AA 51 E7 14 29 06 14 74 3A 7B 4C C8 DF [14:23:35]CheckFolder [14:23:35]dirname=/storage/ofd_packets [14:23:35]CheckFolder done [14:23:35]ProducePacketName [14:23:35]name=ofd_packets/00111376 [14:23:35]NVStorageSaveData ofd_packets/00111376 [14:23:35]File name is /storage/ofd_packets/00111376 [14:23:35]Write 301 bytes [14:23:35]NVStorageSaveData done [14:23:35]OFDSenderStorePacket done [14:23:35]KKMCreateOFDPacket done [14:23:35]NVStorageSaveData kkm_last_timestamp [14:23:35]File name is /storage/kkm_last_timestamp [14:23:35]Write 4 bytes [14:23:35]NVStorageSaveData done [14:23:35]ExternCall_PrintAddStr [14:23:35]wPrintStart [14:23:35]Write to MH i2c: 01 00 00 99 0C A5 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: 01 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: 01 07 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: 01 07 00 99 0C 00 00 00 00 00 FF 0F BA [14:23:35]RasterBufferAndPrint [14:23:35]line Счет N : (1)319950 [14:23:35]line ИНН: 02508201610067 [14:23:35]line Контрольно-Кассовый Чек [14:23:35]line ПРОДАЖА [14:23:35]line ТРК (МРК, ГНК) : 11 [14:23:35]line Товар: 2710124130 [14:23:35]line Аи-92-К-5 [14:23:35]line 15.070 * 66.40 [14:23:35]line = 1000.65 [14:23:35]line НДС 12% НСП 1% [14:23:35]line > о реализуемом товаре [14:23:35]line ОКРУГЛЕНИЕ: -0.65 [14:23:35]line ИТОГО: 1000.00 [14:23:35]line Внесено: 1000.00 [14:23:35]line СДАЧА: 0.00 [14:23:35]line НСП 1% : 8.85 [14:23:35]line НДС 12% : 106.26 [14:23:35]line Наличными: 1000.00 [14:23:35]line Безнал.: 0.00 [14:23:35]line Место: АЗС № 65 "Партнер Нефть" [14:23:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:23:35]line СНО: Общий режим [14:23:35]line Чек 125 19.06.2024 14:23 [14:23:35]line Смена: 388 ФФД: 1.0 [14:23:35]line ЗНМ: 0300000198 [14:23:35]line РНМ: 0000000000092771 [14:23:35]line Версия ККМ: 001 [14:23:35]line ФМ: 0000000000875083 [14:23:35]line ФД: 111376 [14:23:35]line ФПД: 63403681322025 [14:23:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T142337&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111376&fm=63403681322025&tin=02508201610067®Number=0000000000092771&sum=100000 [14:23:36]OFD Sender: Processing packet 111376 [packets to send 38, broken 37] [14:23:36]ProducePacketName [14:23:36]name=ofd_packets/00111376 [14:23:36]OFD Sender: To server: pG, [14:23:36]CommunicateWithHost lk.salyk.kg:30040 [14:23:36]ConnectInit lk.salyk.kg [14:23:36]written 0, free lines is 4095 [14:23:36]Write to MH i2c: 01 00 00 C4 0C D0 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 07 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: 01 07 00 C4 0C 00 00 00 00 00 E1 0C C4 [14:23:36]RasterBufferAndPrint [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]line [14:23:36]written 0, free lines is 3302 [14:23:36]MH_Cut [14:23:36]Write to MH i2c: D1 01 00 CB 0C 01 A9 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 01 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: D1 01 00 CB 0C 00 A8 [14:23:36]Write to MH i2c: 01 00 00 CC 0C D8 [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:37]*** Cut start [14:23:37]*** Partial cut [14:23:37]*** CUTSNS_PIN = 1 [14:23:37]*** CUTSNS_PIN = 0 [14:23:37]*** Brake cut motor [14:23:37]Read from MH i2c: 01 [14:23:38]MH_I2C_Read... [14:23:38]*** Stop cut motor [14:23:38]*** Cut end [14:23:38]Read from MH i2c: 01 07 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: 01 07 00 CC 0C 00 00 00 00 00 FF 0F ED [14:23:38]process_action close_receipt done [14:23:38]requested_data is exist [14:23:38]produce_requested_data [14:23:38]requested_item fm.sn is exist - process it [14:23:38]wFMCommunicate request_size=4 [14:23:38]MH_SAM_APDU [14:23:38]CAPDU: 80 11 00 00 [14:23:38]Write to MH i2c: E2 08 00 CD 0C 80 11 00 00 00 00 00 00 53 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:38]Read from MH i2c: E2 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 17 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 17 00 CD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A5 [14:23:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:23:38]wFMCommunicate OK [14:23:38]requested_item fd.num is exist - process it [14:23:38]SAM_PROTO_GetFieldsCounters [14:23:38]wFMCommunicate request_size=4 [14:23:38]MH_SAM_APDU [14:23:38]CAPDU: 80 13 00 00 [14:23:38]Write to MH i2c: E2 08 00 CE 0C 80 13 00 00 00 00 00 00 56 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:38]Read from MH i2c: E2 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 62 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 62 00 CE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [14:23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:38]wFMCommunicate OK [14:23:38]SAM_PROTO_GetFieldsCounters done [14:23:38]requested_item shift.num is exist - process it [14:23:38]requested_item shift.opened is exist - process it [14:23:38]req_shift_opened [14:23:38]FM_GetShiftState [14:23:38]SAM_PROTO_GetShiftState [14:23:38]wFMCommunicate request_size=4 [14:23:38]MH_SAM_APDU [14:23:38]CAPDU: 80 13 01 00 [14:23:38]Write to MH i2c: E2 08 00 CF 0C 80 13 01 00 00 00 00 00 58 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:38]Read from MH i2c: E2 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 0E 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 0E 00 CF 0C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A2 [14:23:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:23:38]wFMCommunicate OK [14:23:38]SAM_PROTO_GetShiftState done [14:23:38]FM_GetShiftState done [14:23:38]req_shift_opened done [14:23:38]requested_item shift.open_date is exist - process it [14:23:38]req_shift_open_date [14:23:38]req_shift_open_date done [14:23:38]produce_requested_data done [14:23:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111376,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:23:38]process_action_free close_receipt [14:23:38]json_value_free [14:23:38]json_value_free done [14:23:38]process_json_proto returns [14:23:38]Send response to host [14:23:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111376,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:23:38]free response buf [14:23:38]execute_script done [14:23:38]execute_script returns [14:23:38]free content buf [14:23:38]Sock 9.Close socket [14:23:38]Sock 9.Thread stoped [14:25:13]accept exits with 7 [14:25:13]New connection [14:25:13]New thread 3067465060 created [14:25:13]Thread 3067321700 joined [14:25:13]Waiting for new connection... [14:25:13] Sock 7.Parse request [14:25:13]Sock 7.Check first char [14:25:13]Sock 7.First char is OK [14:25:13]request: POST /json_proto HTTP/1.0 [14:25:13]Method: POST [14:25:13]URL: /json_proto [14:25:13]Method is POST - this is cgi request [14:25:13]url: /json_proto [14:25:13]query_string will be loaded in cgi processing [14:25:13]execute_cgi json_proto POST (null) [14:25:13]execute_cgi path=json_proto method=POST [14:25:13]POST find Content-Length [14:25:13]Host: 172.17.59.68:8080 [14:25:13]Content-Length: 1199 [14:25:13]Content-Type: application/json [14:25:13] [14:25:13]POST finish read [14:25:13]Found Content-Length = 1199 [14:25:13]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319951\u000A19.06.2024 12:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3893664;3893665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:13]execute_script... [14:25:13]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319951\u000A19.06.2024 12:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3893664;3893665\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:13]POST & json_proto [14:25:13]process_json_proto [14:25:13]json parsed OK: [14:25:13]protocol is kg_v1.0 [14:25:13]action value=print_text [14:25:13]process_action print_text [14:25:13]cmd_print_text [14:25:13]ExternCall_PrintAddStr [14:25:13]wPrintStart [14:25:13]Write to MH i2c: 01 00 00 D0 0C DC [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 D0 0C 00 00 00 00 00 FF 0F F1 [14:25:13]RasterBufferAndPrint [14:25:13]line *****ТОВАРНЫЙ ЧЕК***** [14:25:13]line АЗС 65 [14:25:13]line Партнер нефть [14:25:13]line 02508201610067 [14:25:13]line Кассир : Амантуров Р. [14:25:13]line Счет N : (1)319951 [14:25:13]line 19.06.2024 12:53 [14:25:13]line ПРОДАЖА [14:25:13]line ТРК (МРК, ГНК): 11 [14:25:13]line Вид ГСМ : 2710124130 [14:25:13]line Аи-92-К-5 [14:25:13]line 20.000 x 66.40 [14:25:13]line ИТОГ: 1328.00 [14:25:13]line Тип оплаты: Талоны: Партнер нефть [14:25:13]line 3893664;3893665 [14:25:13]line ______________________ [14:25:13]line (подпись) [14:25:13]written 0, free lines is 4095 [14:25:13]Write to MH i2c: 01 00 00 E4 0C F0 [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 E4 0C 00 00 00 00 00 17 0E 1C [14:25:13]RasterBufferAndPrint [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]written 0, free lines is 3609 [14:25:13]MH_Cut [14:25:13]Write to MH i2c: D1 01 00 EB 0C 01 C9 [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 01 00 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 01 00 EB 0C 00 C8 [14:25:13]Write to MH i2c: 01 00 00 EC 0C F8 [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:14]*** Cut start [14:25:14]*** Partial cut [14:25:14]*** CUTSNS_PIN = 1 [14:25:14]*** CUTSNS_PIN = 0 [14:25:14]*** Brake cut motor [14:25:14]Read from MH i2c: 01 [14:25:14]MH_I2C_Read... [14:25:14]*** Stop cut motor [14:25:14]*** Cut end [14:25:14]Read from MH i2c: 01 07 00 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: 01 07 00 EC 0C 00 00 00 00 00 FF 0F 0D [14:25:14]process_action print_text done [14:25:14]requested_data is exist [14:25:14]produce_requested_data [14:25:14]requested_item fm.sn is exist - process it [14:25:14]wFMCommunicate request_size=4 [14:25:14]MH_SAM_APDU [14:25:14]CAPDU: 80 11 00 00 [14:25:14]Write to MH i2c: E2 08 00 ED 0C 80 11 00 00 00 00 00 00 73 [14:25:14]Write i2c OK [14:25:14]MH_I2C_Read... [14:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:14]Read from MH i2c: E2 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: E2 17 00 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: E2 17 00 ED 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C5 [14:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:25:14]wFMCommunicate OK [14:25:14]requested_item fd.num is exist - process it [14:25:14]SAM_PROTO_GetFieldsCounters [14:25:14]wFMCommunicate request_size=4 [14:25:14]MH_SAM_APDU [14:25:14]CAPDU: 80 13 00 00 [14:25:14]Write to MH i2c: E2 08 00 EE 0C 80 13 00 00 00 00 00 00 76 [14:25:14]Write i2c OK [14:25:14]MH_I2C_Read... [14:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:14]Read from MH i2c: E2 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: E2 62 00 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: E2 62 00 EE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:14]wFMCommunicate OK [14:25:14]SAM_PROTO_GetFieldsCounters done [14:25:14]requested_item shift.num is exist - process it [14:25:14]requested_item shift.opened is exist - process it [14:25:14]req_shift_opened [14:25:14]FM_GetShiftState [14:25:14]SAM_PROTO_GetShiftState [14:25:14]wFMCommunicate request_size=4 [14:25:14]MH_SAM_APDU [14:25:14]CAPDU: 80 13 01 00 [14:25:14]Write to MH i2c: E2 08 00 EF 0C 80 13 01 00 00 00 00 00 78 [14:25:14]Write i2c OK [14:25:14]MH_I2C_Read... [14:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:14]Read from MH i2c: E2 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: E2 0E 00 [14:25:14]MH_I2C_Read... [14:25:14]Read from MH i2c: E2 0E 00 EF 0C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C2 [14:25:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:25:14]wFMCommunicate OK [14:25:14]SAM_PROTO_GetShiftState done [14:25:14]FM_GetShiftState done [14:25:14]req_shift_opened done [14:25:14]requested_item shift.open_date is exist - process it [14:25:14]req_shift_open_date [14:25:14]req_shift_open_date done [14:25:14]produce_requested_data done [14:25:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111376,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:25:14]process_action_free print_text [14:25:14]json_value_free [14:25:14]json_value_free done [14:25:14]process_json_proto returns [14:25:14]Send response to host [14:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111376,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:25:14]free response buf [14:25:14]execute_script done [14:25:14]execute_script returns [14:25:14]free content buf [14:25:14]Sock 7.Close socket [14:25:14]Sock 7.Thread stoped [14:25:48]ConnectInit Can't connect to host [14:25:48]CommunicateWithHost connect error [14:25:48]CommunicateWithHost err = -1 [14:25:48]OFD Sender: Server communicate error [14:25:53]OFD Sender: Processing packet 111376 [packets to send 38, broken 37] [14:25:53]ProducePacketName [14:25:53]name=ofd_packets/00111376 [14:25:53]OFD Sender: To server: pG, [14:25:53]CommunicateWithHost lk.salyk.kg:30040 [14:25:53]ConnectInit lk.salyk.kg [14:25:53]Connected sock=7 [14:25:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 81 F7 07 01 5A 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 E9 E9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 10 B3 01 00 35 04 06 00 39 AA 51 E7 14 29 06 14 74 3A 7B 4C C8 DF [14:25:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 B8 47 00 A8 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 35 30 38 33 10 04 04 00 10 B3 01 00 F4 03 04 00 DA 81 72 66 B6 04 01 00 00 73 40 EB 07 66 D9 01 B5 [14:25:53]CommunicateWithHost err = 0 [14:25:53]CheckOFDResponse [14:25:53]1017 (14) - 77093643461234 [14:25:53]1041 (16) - 0000000000875083 [14:25:53]1040 (4) - 111376 [14:25:53]1012 (4) - 19.06.2024 06:59 [14:25:53]1206 (1) - 0 [14:25:53]OFD Sender: Remove packet 111376 [14:25:53]ProducePacketName [14:25:53]name=ofd_packets/00111376 [14:25:53]NVStorageDeleteData [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:25:59]accept exits with 9 [14:25:59]New connection [14:25:59]New thread 3067321700 created [14:25:59]Thread 3067465060 joined [14:25:59]Waiting for new connection... [14:25:59] Sock 9.Parse request [14:25:59]Sock 9.Check first char [14:25:59]Sock 9.First char is OK [14:25:59]request: POST /json_proto HTTP/1.0 [14:25:59]Method: POST [14:25:59]URL: /json_proto [14:25:59]Method is POST - this is cgi request [14:25:59]url: /json_proto [14:25:59]query_string will be loaded in cgi processing [14:25:59]execute_cgi json_proto POST (null) [14:25:59]execute_cgi path=json_proto method=POST [14:25:59]POST find Content-Length [14:25:59]Host: 172.17.59.68:8080 [14:25:59]Content-Length: 1190 [14:25:59]Content-Type: application/json [14:25:59] [14:25:59]POST finish read [14:25:59]Found Content-Length = 1190 [14:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319952\u000A19.06.2024 12:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3893666\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:59]execute_script... [14:25:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319952\u000A19.06.2024 12:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3893666\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:59]POST & json_proto [14:25:59]process_json_proto [14:25:59]json parsed OK: [14:25:59]protocol is kg_v1.0 [14:25:59]action value=print_text [14:25:59]process_action print_text [14:25:59]cmd_print_text [14:25:59]ExternCall_PrintAddStr [14:25:59]wPrintStart [14:25:59]Write to MH i2c: 01 00 00 F0 0C FC [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: 01 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: 01 07 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: 01 07 00 F0 0C 00 00 00 00 00 FF 0F 11 [14:25:59]RasterBufferAndPrint [14:25:59]line *****ТОВАРНЫЙ ЧЕК***** [14:25:59]line АЗС 65 [14:25:59]line Партнер нефть [14:25:59]line 02508201610067 [14:25:59]line Кассир : Амантуров Р. [14:25:59]line Счет N : (1)319952 [14:25:59]line 19.06.2024 12:54 [14:25:59]line ПРОДАЖА [14:25:59]line ТРК (МРК, ГНК): 11 [14:25:59]line Вид ГСМ : 2710124130 [14:25:59]line Аи-92-К-5 [14:25:59]line 10.000 x 66.40 [14:25:59]line ИТОГ: 664.00 [14:25:59]line Тип оплаты: Талоны: Партнер нефть [14:25:59]line 3893666 [14:25:59]line ______________________ [14:25:59]line (подпись) [14:25:59]written 0, free lines is 4095 [14:25:59]Write to MH i2c: 01 00 00 04 0D 11 [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: 01 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: 01 07 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: 01 07 00 04 0D 00 00 00 00 00 12 0E 38 [14:25:59]RasterBufferAndPrint [14:25:59]line [14:25:59]line [14:25:59]line [14:25:59]line [14:25:59]line [14:25:59]written 0, free lines is 3604 [14:25:59]MH_Cut [14:25:59]Write to MH i2c: D1 01 00 0B 0D 01 EA [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: D1 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: D1 01 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: D1 01 00 0B 0D 00 E9 [14:25:59]Write to MH i2c: 01 00 00 0C 0D 19 [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:26:00]*** Cut start [14:26:00]*** Partial cut [14:26:00]*** CUTSNS_PIN = 1 [14:26:00]*** CUTSNS_PIN = 0 [14:26:00]*** Brake cut motor [14:26:00]Read from MH i2c: 01 [14:26:00]MH_I2C_Read... [14:26:00]*** Stop cut motor [14:26:00]*** Cut end [14:26:00]Read from MH i2c: 01 07 00 [14:26:00]MH_I2C_Read... [14:26:01]Read from MH i2c: 01 07 00 0C 0D 00 00 00 00 00 FF 0F 2E [14:26:01]process_action print_text done [14:26:01]requested_data is exist [14:26:01]produce_requested_data [14:26:01]requested_item fm.sn is exist - process it [14:26:01]wFMCommunicate request_size=4 [14:26:01]MH_SAM_APDU [14:26:01]CAPDU: 80 11 00 00 [14:26:01]Write to MH i2c: E2 08 00 0D 0D 80 11 00 00 00 00 00 00 94 [14:26:01]Write i2c OK [14:26:01]MH_I2C_Read... [14:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:01]Read from MH i2c: E2 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: E2 17 00 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: E2 17 00 0D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [14:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:26:01]wFMCommunicate OK [14:26:01]requested_item fd.num is exist - process it [14:26:01]SAM_PROTO_GetFieldsCounters [14:26:01]wFMCommunicate request_size=4 [14:26:01]MH_SAM_APDU [14:26:01]CAPDU: 80 13 00 00 [14:26:01]Write to MH i2c: E2 08 00 0E 0D 80 13 00 00 00 00 00 00 97 [14:26:01]Write i2c OK [14:26:01]MH_I2C_Read... [14:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:01]Read from MH i2c: E2 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: E2 62 00 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: E2 62 00 0E 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [14:26: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 10 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:01]wFMCommunicate OK [14:26:01]SAM_PROTO_GetFieldsCounters done [14:26:01]requested_item shift.num is exist - process it [14:26:01]requested_item shift.opened is exist - process it [14:26:01]req_shift_opened [14:26:01]FM_GetShiftState [14:26:01]SAM_PROTO_GetShiftState [14:26:01]wFMCommunicate request_size=4 [14:26:01]MH_SAM_APDU [14:26:01]CAPDU: 80 13 01 00 [14:26:01]Write to MH i2c: E2 08 00 0F 0D 80 13 01 00 00 00 00 00 99 [14:26:01]Write i2c OK [14:26:01]MH_I2C_Read... [14:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:01]Read from MH i2c: E2 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: E2 0E 00 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: E2 0E 00 0F 0D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E3 [14:26:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:26:01]wFMCommunicate OK [14:26:01]SAM_PROTO_GetShiftState done [14:26:01]FM_GetShiftState done [14:26:01]req_shift_opened done [14:26:01]requested_item shift.open_date is exist - process it [14:26:01]req_shift_open_date [14:26:01]req_shift_open_date done [14:26:01]produce_requested_data done [14:26:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111376,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:26:01]process_action_free print_text [14:26:01]json_value_free [14:26:01]json_value_free done [14:26:01]process_json_proto returns [14:26:01]Send response to host [14:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111376,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:26:01]free response buf [14:26:01]execute_script done [14:26:01]execute_script returns [14:26:01]free content buf [14:26:01]Sock 9.Close socket [14:26:01]Sock 9.Thread stoped [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:28]accept exits with 7 [14:31:28]New connection [14:31:28]New thread 3067465060 created [14:31:28]Thread 3067321700 joined [14:31:28]Waiting for new connection... [14:31:28] Sock 7.Parse request [14:31:28]Sock 7.Check first char [14:31:28]Sock 7.First char is OK [14:31:28]request: POST /json_proto HTTP/1.0 [14:31:28]Method: POST [14:31:28]URL: /json_proto [14:31:28]Method is POST - this is cgi request [14:31:28]url: /json_proto [14:31:28]query_string will be loaded in cgi processing [14:31:28]execute_cgi json_proto POST (null) [14:31:28]execute_cgi path=json_proto method=POST [14:31:28]POST find Content-Length [14:31:28]Host: 172.17.59.68:8080 [14:31:28]Content-Length: 677 [14:31:28]Content-Type: application/json [14:31:28] [14:31:28]POST finish read [14:31:28]Found Content-Length = 677 [14:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:28]execute_script... [14:31: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)319953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:28]POST & json_proto [14:31:28]process_json_proto [14:31:28]json parsed OK: [14:31:28]protocol is kg_v1.0 [14:31:28]action value=close_receipt [14:31:28]process_action close_receipt [14:31:28]cmd_close_receipt [14:31:28]MH_GetDate [14:31:28]Write to MH i2c: F0 00 00 10 0D 0C [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 09 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: F0 09 00 10 0D 00 C4 EB 72 66 BC EC 60 65 09 [14:31:28]GetLastDocTimeStamp 1718807017 [14:31:28]current date 1718807492 [14:31:28]FM_GetShiftState [14:31:28]SAM_PROTO_GetShiftState [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 13 01 00 [14:31:28]Write to MH i2c: E2 08 00 11 0D 80 13 01 00 00 00 00 00 9B [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0E 00 11 0D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E5 [14:31:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_GetShiftState done [14:31:28]FM_GetShiftState done [14:31:28]opened in 1718760753 [14:31:28]opened+sec_in_day 1718847153 [14:31:28]quantity*price = 30012 [14:31:28]sum+1 = 30014 [14:31:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 126 19.06.2024 14:31 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111377 ФПД: 251987860269133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111377&fm=251987860269133&tin=02508201610067®Number=0000000000092771&sum=30000 [14:31:30]StoreToDocumentArchive [14:31:30]shift 388 fd 111377 [14:31:30]save to /storage/0388/doc_00111377 [14:31:30]save last doc name /storage/0388/doc_00111377 to /storage/kkm_last_doc_name [14:31:30]save OK [14:31:30]Clear old archive folders... [14:31:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:30]tlvbuf is 00EC68B0 [14:31:30]SAM_PROTO_ClearQueue [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 09 00 00 [14:31:30]Write to MH i2c: E2 08 00 1E 0D 80 09 00 00 00 00 00 00 9D [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 1E 0D 00 90 00 9F [14:31:30]RAPDU: 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_ClearQueue done [14:31:30]KKMCreateOFDPacket [14:31:30]OFDProtocolAddRootSTLVToBuf [14:31:30]FM_MakeSignedData [14:31:30]FM_MakeSignedData [14:31:30]SAM_PROTO_SignData [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 0D 01 02 [14:31:30]Write to MH i2c: E2 08 00 1F 0D 80 0D 01 02 00 00 00 00 A5 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 1F 0D 00 90 00 A0 [14:31:30]RAPDU: 90 00 [14:31:30]wFMCommunicate OK [14:31:30]wFMCommunicate request_size=255 [14:31:30]MH_SAM_APDU [14:31: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 C4 EB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B3 01 00 35 04 06 00 E5 [14:31:30]Write to MH i2c: E2 02 01 20 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 C4 EB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B3 01 00 35 04 06 00 E5 00 00 2B [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 20 0D 00 90 00 A1 [14:31:30]RAPDU: 90 00 [14:31:30]wFMCommunicate OK [14:31:30]wFMCommunicate request_size=10 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 0D 02 02 05 2E 7E E6 28 4D [14:31:30]Write to MH i2c: E2 0D 00 21 0D 80 0D 02 02 05 00 2E 7E E6 28 4D 00 00 B9 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 03 00 21 0D 00 90 00 A2 [14:31:30]RAPDU: 90 00 [14:31:30]wFMCommunicate OK [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 0D 03 02 [14:31:30]Write to MH i2c: E2 08 00 22 0D 80 0D 03 02 00 00 00 00 AA [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0B 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0B 00 22 0D 00 66 25 7E 53 4D CE EC E0 90 00 EE [14:31:30]RAPDU: 66 25 7E 53 4D CE EC E0 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_SignData done [14:31:30]FM_MakeSignedData done [14:31:30]CreateOFDProtocolMessage [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 11 00 00 [14:31:30]Write to MH i2c: E2 08 00 23 0D 80 11 00 00 00 00 00 00 AA [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 23 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [14:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:31:30]wFMCommunicate OK [14:31:30]CreateOFDProtocolMessage done [14:31:30]OFDSenderStorePacket 111377 [14:31:30]StoreOFDPacket docnum=111377 [14:31:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F8 50 07 01 7A 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 C4 EB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B3 01 00 35 04 06 00 E5 2E 7E E6 28 4D 66 25 7E 53 4D CE EC E0 [14:31:30]CheckFolder [14:31:30]dirname=/storage/ofd_packets [14:31:30]CheckFolder done [14:31:30]ProducePacketName [14:31:30]name=ofd_packets/00111377 [14:31:30]NVStorageSaveData ofd_packets/00111377 [14:31:30]File name is /storage/ofd_packets/00111377 [14:31:30]Write 301 bytes [14:31:30]NVStorageSaveData done [14:31:30]OFDSenderStorePacket done [14:31:30]KKMCreateOFDPacket done [14:31:30]NVStorageSaveData kkm_last_timestamp [14:31:30]File name is /storage/kkm_last_timestamp [14:31:30]Write 4 bytes [14:31:30]NVStorageSaveData done [14:31:30]ExternCall_PrintAddStr [14:31:30]wPrintStart [14:31:30]Write to MH i2c: 01 00 00 24 0D 31 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 24 0D 00 00 00 00 00 FF 0F 46 [14:31:30]RasterBufferAndPrint [14:31:30]line Счет N : (1)319953 [14:31:30]line ИНН: 02508201610067 [14:31:30]line Контрольно-Кассовый Чек [14:31:30]line ПРОДАЖА [14:31:30]line ТРК (МРК, ГНК) : 11 [14:31:30]line Товар: 2710124130 [14:31:30]line Аи-92-К-5 [14:31:30]line 4.520 * 66.40 [14:31:30]line = 300.13 [14:31:30]line НДС 12% НСП 1% [14:31:30]line > о реализуемом товаре [14:31:30]line ОКРУГЛЕНИЕ: -0.13 [14:31:30]line ИТОГО: 300.00 [14:31:30]line Внесено: 300.00 [14:31:30]line СДАЧА: 0.00 [14:31:30]line НСП 1% : 2.66 [14:31:30]line НДС 12% : 31.87 [14:31:30]line Наличными: 300.00 [14:31:30]line Безнал.: 0.00 [14:31:30]line Место: АЗС № 65 "Партнер Нефть" [14:31:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:31:30]line СНО: Общий режим [14:31:30]line Чек 126 19.06.2024 14:31 [14:31:30]line Смена: 388 ФФД: 1.0 [14:31:30]line ЗНМ: 0300000198 [14:31:30]line РНМ: 0000000000092771 [14:31:30]line Версия ККМ: 001 [14:31:30]line ФМ: 0000000000875083 [14:31:30]line ФД: 111377 [14:31:30]line ФПД: 251987860269133 [14:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T143132&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111377&fm=251987860269133&tin=02508201610067®Number=0000000000092771&sum=30000 [14:31:30]OFD Sender: Processing packet 111377 [packets to send 38, broken 37] [14:31:30]ProducePacketName [14:31:30]name=ofd_packets/00111377 [14:31:30]OFD Sender: To server: pG, [14:31:30]CommunicateWithHost lk.salyk.kg:30040 [14:31:30]ConnectInit lk.salyk.kg [14:31:30]written 0, free lines is 4095 [14:31:31]Connected sock=10 [14:31:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F8 50 07 01 7A 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 C4 EB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B3 01 00 35 04 06 00 E5 2E 7E E6 28 4D 66 25 7E 53 4D CE EC E0 [14:31:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E7 D9 47 00 8D B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 11 B3 01 00 F4 03 04 00 2B 83 72 66 B6 04 01 00 00 46 3C F3 69 AB 79 3F 36 [14:31:31]CommunicateWithHost err = 0 [14:31:31]CheckOFDResponse [14:31:31]1017 (14) - 77093643461234 [14:31:31]1041 (16) - 0000000000875083 [14:31:31]1040 (4) - 111377 [14:31:31]1012 (4) - 19.06.2024 07:05 [14:31:31]1206 (1) - 0 [14:31:31]OFD Sender: Remove packet 111377 [14:31:31]ProducePacketName [14:31:31]name=ofd_packets/00111377 [14:31:31]NVStorageDeleteData [14:31:31]Write to MH i2c: 01 00 00 4F 0D 5C [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: 01 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: 01 07 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: 01 07 00 4F 0D 00 00 00 00 00 EA 0C 59 [14:31:31]RasterBufferAndPrint [14:31:31]line [14:31:31]line [14:31:31]line [14:31:31]line [14:31:31]line [14:31:31]written 0, free lines is 3312 [14:31:31]MH_Cut [14:31:31]Write to MH i2c: D1 01 00 56 0D 01 35 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: D1 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: D1 01 00 [14:31:31]MH_I2C_Read... [14:31:31]Read from MH i2c: D1 01 00 56 0D 00 34 [14:31:31]Write to MH i2c: 01 00 00 57 0D 64 [14:31:31]Write i2c OK [14:31:31]MH_I2C_Read... [14:31:31]OFD Sender: No OFD packet to send [14:31:32]*** Cut start [14:31:32]*** Partial cut [14:31:32]*** CUTSNS_PIN = 1 [14:31:32]*** CUTSNS_PIN = 0 [14:31:32]*** Brake cut motor [14:31:32]Read from MH i2c: 01 [14:31:32]MH_I2C_Read... [14:31:32]*** Stop cut motor [14:31:32]*** Cut end [14:31:32]Read from MH i2c: 01 07 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: 01 07 00 57 0D 00 00 00 00 00 FF 0F 79 [14:31:32]process_action close_receipt done [14:31:32]requested_data is exist [14:31:32]produce_requested_data [14:31:32]requested_item fm.sn is exist - process it [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 11 00 00 [14:31:32]Write to MH i2c: E2 08 00 58 0D 80 11 00 00 00 00 00 00 DF [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:32]Read from MH i2c: E2 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 17 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 17 00 58 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [14:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:31:32]wFMCommunicate OK [14:31:32]requested_item fd.num is exist - process it [14:31:32]SAM_PROTO_GetFieldsCounters [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 13 00 00 [14:31:32]Write to MH i2c: E2 08 00 59 0D 80 13 00 00 00 00 00 00 E2 [14:31:32]Write i2c OK [14:31:32]MH_I2C_Read... [14:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:32]Read from MH i2c: E2 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 62 00 [14:31:32]MH_I2C_Read... [14:31:32]Read from MH i2c: E2 62 00 59 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 11 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [14:31: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 11 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:32]wFMCommunicate OK [14:31:32]SAM_PROTO_GetFieldsCounters done [14:31:32]requested_item shift.num is exist - process it [14:31:32]requested_item shift.opened is exist - process it [14:31:32]req_shift_opened [14:31:32]FM_GetShiftState [14:31:32]SAM_PROTO_GetShiftState [14:31:32]wFMCommunicate request_size=4 [14:31:32]MH_SAM_APDU [14:31:32]CAPDU: 80 13 01 00 [14:31:32]Write to MH i2c: E2 08 00 5A 0D 80 13 01 00 00 00 00 00 E4 [14:31:33]Write i2c OK [14:31:33]MH_I2C_Read... [14:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:33]Read from MH i2c: E2 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 0E 00 [14:31:33]MH_I2C_Read... [14:31:33]Read from MH i2c: E2 0E 00 5A 0D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2E [14:31:33]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:31:33]wFMCommunicate OK [14:31:33]SAM_PROTO_GetShiftState done [14:31:33]FM_GetShiftState done [14:31:33]req_shift_opened done [14:31:33]requested_item shift.open_date is exist - process it [14:31:33]req_shift_open_date [14:31:33]req_shift_open_date done [14:31:33]produce_requested_data done [14:31:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111377,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:31:33]process_action_free close_receipt [14:31:33]json_value_free [14:31:33]json_value_free done [14:31:33]process_json_proto returns [14:31:33]Send response to host [14:31:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111377,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:31:33]free response buf [14:31:33]execute_script done [14:31:33]execute_script returns [14:31:33]free content buf [14:31:33]Sock 7.Close socket [14:31:33]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:50]accept exits with 9 [14:40:50]New connection [14:40:50]New thread 3067321700 created [14:40:50]Thread 3067465060 joined [14:40:50]Waiting for new connection... [14:40:50] Sock 9.Parse request [14:40:50]Sock 9.Check first char [14:40:50]Sock 9.First char is OK [14:40:50]request: POST /json_proto HTTP/1.0 [14:40:50]Method: POST [14:40:50]URL: /json_proto [14:40:50]Method is POST - this is cgi request [14:40:50]url: /json_proto [14:40:50]query_string will be loaded in cgi processing [14:40:50]execute_cgi json_proto POST (null) [14:40:50]execute_cgi path=json_proto method=POST [14:40:50]POST find Content-Length [14:40:50]Host: 172.17.59.68:8080 [14:40:50]Content-Length: 682 [14:40:50]Content-Type: application/json [14:40:50] [14:40:50]POST finish read [14:40:50]Found Content-Length = 682 [14:40:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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:40:50]execute_script... [14:40:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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:40:50]POST & json_proto [14:40:50]process_json_proto [14:40:50]json parsed OK: [14:40:50]protocol is kg_v1.0 [14:40:50]action value=close_receipt [14:40:50]process_action close_receipt [14:40:50]cmd_close_receipt [14:40:50]MH_GetDate [14:40:50]Write to MH i2c: F0 00 00 5B 0D 57 [14:40:50]Write i2c OK [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 09 00 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: F0 09 00 5B 0D 00 F6 ED 72 66 BC EC 60 65 88 [14:40:50]GetLastDocTimeStamp 1718807492 [14:40:50]current date 1718808054 [14:40:50]FM_GetShiftState [14:40:50]SAM_PROTO_GetShiftState [14:40:50]wFMCommunicate request_size=4 [14:40:50]MH_SAM_APDU [14:40:50]CAPDU: 80 13 01 00 [14:40:50]Write to MH i2c: E2 08 00 5C 0D 80 13 01 00 00 00 00 00 E6 [14:40:50]Write i2c OK [14:40:50]MH_I2C_Read... [14:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:50]Read from MH i2c: E2 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: E2 0E 00 [14:40:50]MH_I2C_Read... [14:40:50]Read from MH i2c: E2 0E 00 5C 0D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 30 [14:40:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:40:50]wFMCommunicate OK [14:40:50]SAM_PROTO_GetShiftState done [14:40:50]FM_GetShiftState done [14:40:50]opened in 1718760753 [14:40:50]opened+sec_in_day 1718847153 [14:40:50]quantity*price = 150017 [14:40:50]sum+1 = 150018 [14:40:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 127 19.06.2024 14:40 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111378 ФПД: 134529528686242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144054&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111378&fm=134529528686242&tin=02508201610067®Number=0000000000092771&sum=150000 [14:40:51]StoreToDocumentArchive [14:40:51]shift 388 fd 111378 [14:40:51]save to /storage/0388/doc_00111378 [14:40:51]save last doc name /storage/0388/doc_00111378 to /storage/kkm_last_doc_name [14:40:51]save OK [14:40:51]Clear old archive folders... [14:40:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:51]tlvbuf is 00EC6310 [14:40:51]SAM_PROTO_ClearQueue [14:40:51]wFMCommunicate request_size=4 [14:40:51]MH_SAM_APDU [14:40:51]CAPDU: 80 09 00 00 [14:40:51]Write to MH i2c: E2 08 00 69 0D 80 09 00 00 00 00 00 00 E8 [14:40:51]Write i2c OK [14:40:51]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 69 0D 00 90 00 EA [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 6A 0D 80 0D 01 02 00 00 00 00 F0 [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 6A 0D 00 90 00 EB [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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F6 ED 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B3 01 00 35 04 06 00 7A [14:40:51]Write to MH i2c: E2 02 01 6B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F6 ED 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B3 01 00 35 04 06 00 7A 00 00 03 [14:40:51]Write i2c OK [14:40:51]MH_I2C_Read... [14:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:52]Read from MH i2c: E2 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 03 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 03 00 6B 0D 00 90 00 EC [14:40:52]RAPDU: 90 00 [14:40:52]wFMCommunicate OK [14:40:52]wFMCommunicate request_size=10 [14:40:52]MH_SAM_APDU [14:40:52]CAPDU: 80 0D 02 02 05 5A 98 C4 E6 A2 [14:40:52]Write to MH i2c: E2 0D 00 6C 0D 80 0D 02 02 05 00 5A 98 C4 E6 A2 00 00 3B [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:52]Read from MH i2c: E2 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 03 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 03 00 6C 0D 00 90 00 ED [14:40:52]RAPDU: 90 00 [14:40:52]wFMCommunicate OK [14:40:52]wFMCommunicate request_size=4 [14:40:52]MH_SAM_APDU [14:40:52]CAPDU: 80 0D 03 02 [14:40:52]Write to MH i2c: E2 08 00 6D 0D 80 0D 03 02 00 00 00 00 F5 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:52]Read from MH i2c: E2 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 0B 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 0B 00 6D 0D 00 DA 18 DB A1 E3 50 21 2E 90 00 E6 [14:40:52]RAPDU: DA 18 DB A1 E3 50 21 2E 90 00 [14:40:52]wFMCommunicate OK [14:40:52]SAM_PROTO_SignData done [14:40:52]FM_MakeSignedData done [14:40:52]CreateOFDProtocolMessage [14:40:52]wFMCommunicate request_size=4 [14:40:52]MH_SAM_APDU [14:40:52]CAPDU: 80 11 00 00 [14:40:52]Write to MH i2c: E2 08 00 6E 0D 80 11 00 00 00 00 00 00 F5 [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:52]OFD Sender: No OFD packet to send [14:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:52]Read from MH i2c: E2 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 17 00 [14:40:52]MH_I2C_Read... [14:40:52]Read from MH i2c: E2 17 00 6E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [14:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:40:52]wFMCommunicate OK [14:40:52]CreateOFDProtocolMessage done [14:40:52]OFDSenderStorePacket 111378 [14:40:52]StoreOFDPacket docnum=111378 [14:40:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 CB 07 01 33 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F6 ED 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B3 01 00 35 04 06 00 7A 5A 98 C4 E6 A2 DA 18 DB A1 E3 50 21 2E [14:40:52]CheckFolder [14:40:52]dirname=/storage/ofd_packets [14:40:52]CheckFolder done [14:40:52]ProducePacketName [14:40:52]name=ofd_packets/00111378 [14:40:52]NVStorageSaveData ofd_packets/00111378 [14:40:52]File name is /storage/ofd_packets/00111378 [14:40:52]Write 301 bytes [14:40:52]NVStorageSaveData done [14:40:52]OFDSenderStorePacket done [14:40:52]KKMCreateOFDPacket done [14:40:52]NVStorageSaveData kkm_last_timestamp [14:40:52]File name is /storage/kkm_last_timestamp [14:40:52]Write 4 bytes [14:40:52]NVStorageSaveData done [14:40:52]ExternCall_PrintAddStr [14:40:52]wPrintStart [14:40:52]Write to MH i2c: 01 00 00 6F 0D 7C [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 6F 0D 00 00 00 00 00 FF 0F 91 [14:40:52]RasterBufferAndPrint [14:40:52]line Счет N : (1)319956 [14:40:52]line ИНН: 02508201610067 [14:40:52]line Контрольно-Кассовый Чек [14:40:52]line ПРОДАЖА [14:40:52]line ТРК (МРК, ГНК) : 12 [14:40:52]line Товар: 2710124500 [14:40:52]line Аи-95-К-5 [14:40:52]line 20.300 * 73.90 [14:40:52]line = 1500.17 [14:40:52]line НДС 12% НСП 1% [14:40:52]line > о реализуемом товаре [14:40:52]line ОКРУГЛЕНИЕ: -0.17 [14:40:52]line ИТОГО: 1500.00 [14:40:52]line Внесено: 1500.00 [14:40:52]line СДАЧА: 0.00 [14:40:52]line НСП 1% : 13.28 [14:40:52]line НДС 12% : 159.31 [14:40:52]line Наличными: 1500.00 [14:40:52]line Безнал.: 0.00 [14:40:52]line Место: АЗС № 65 "Партнер Нефть" [14:40:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:40:52]line СНО: Общий режим [14:40:52]line Чек 127 19.06.2024 14:40 [14:40:52]line Смена: 388 ФФД: 1.0 [14:40:52]line ЗНМ: 0300000198 [14:40:52]line РНМ: 0000000000092771 [14:40:52]line Версия ККМ: 001 [14:40:52]line ФМ: 0000000000875083 [14:40:52]line ФД: 111378 [14:40:52]line ФПД: 134529528686242 [14:40:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144054&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111378&fm=134529528686242&tin=02508201610067®Number=0000000000092771&sum=150000 [14:40:52]written 0, free lines is 4095 [14:40:52]OFD Sender: Processing packet 111378 [packets to send 38, broken 37] [14:40:52]ProducePacketName [14:40:52]name=ofd_packets/00111378 [14:40:52]OFD Sender: To server: pG, [14:40:52]CommunicateWithHost lk.salyk.kg:30040 [14:40:52]ConnectInit lk.salyk.kg [14:40:52]Connected sock=10 [14:40:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 09 CB 07 01 33 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 F6 ED 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B3 01 00 35 04 06 00 7A 5A 98 C4 E6 A2 DA 18 DB A1 E3 50 21 2E [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 35 30 38 33 4F 00 00 00 3A B3 47 00 BD 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 12 B3 01 00 F4 03 04 00 5C 85 72 66 B6 04 01 00 00 94 6D B9 1B 26 41 9D 87 [14:40:52]CommunicateWithHost err = 0 [14:40:52]CheckOFDResponse [14:40:52]1017 (14) - 77093643461234 [14:40:52]1041 (16) - 0000000000875083 [14:40:52]1040 (4) - 111378 [14:40:52]1012 (4) - 19.06.2024 07:14 [14:40:52]1206 (1) - 0 [14:40:52]OFD Sender: Remove packet 111378 [14:40:52]ProducePacketName [14:40:52]name=ofd_packets/00111378 [14:40:52]NVStorageDeleteData [14:40:52]Write to MH i2c: 01 00 00 9A 0D A7 [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 9A 0D 00 00 00 00 00 EA 0C A4 [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 3313 [14:40:52]MH_Cut [14:40:52]Write to MH i2c: D1 01 00 A1 0D 01 80 [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 A1 0D 00 7F [14:40:52]Write to MH i2c: 01 00 00 A2 0D AF [14:40:52]Write i2c OK [14:40:52]MH_I2C_Read... [14:40:53]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:54]Read from MH i2c: 01 [14:40:54]MH_I2C_Read... [14:40:54]*** Stop cut motor [14:40:54]*** Cut end [14:40:54]Read from MH i2c: 01 07 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: 01 07 00 A2 0D 00 00 00 00 00 FF 0F C4 [14:40:54]process_action close_receipt done [14:40:54]requested_data is exist [14:40:54]produce_requested_data [14:40:54]requested_item fm.sn is exist - process it [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 11 00 00 [14:40:54]Write to MH i2c: E2 08 00 A3 0D 80 11 00 00 00 00 00 00 2A [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 17 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 17 00 A3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [14:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:40:54]wFMCommunicate OK [14:40:54]requested_item fd.num is exist - process it [14:40:54]SAM_PROTO_GetFieldsCounters [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 13 00 00 [14:40:54]Write to MH i2c: E2 08 00 A4 0D 80 13 00 00 00 00 00 00 2D [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 62 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 62 00 A4 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 12 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [14:40:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 12 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:54]wFMCommunicate OK [14:40:54]SAM_PROTO_GetFieldsCounters done [14:40:54]requested_item shift.num is exist - process it [14:40:54]requested_item shift.opened is exist - process it [14:40:54]req_shift_opened [14:40:54]FM_GetShiftState [14:40:54]SAM_PROTO_GetShiftState [14:40:54]wFMCommunicate request_size=4 [14:40:54]MH_SAM_APDU [14:40:54]CAPDU: 80 13 01 00 [14:40:54]Write to MH i2c: E2 08 00 A5 0D 80 13 01 00 00 00 00 00 2F [14:40:54]Write i2c OK [14:40:54]MH_I2C_Read... [14:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:54]Read from MH i2c: E2 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 0E 00 [14:40:54]MH_I2C_Read... [14:40:54]Read from MH i2c: E2 0E 00 A5 0D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 79 [14:40:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:40:54]wFMCommunicate OK [14:40:54]SAM_PROTO_GetShiftState done [14:40:54]FM_GetShiftState done [14:40:54]req_shift_opened done [14:40:54]requested_item shift.open_date is exist - process it [14:40:54]req_shift_open_date [14:40:54]req_shift_open_date done [14:40:54]produce_requested_data done [14:40:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111378,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:40:54]process_action_free close_receipt [14:40:54]json_value_free [14:40:54]json_value_free done [14:40:54]process_json_proto returns [14:40:54]Send response to host [14:40:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111378,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:40:54]free response buf [14:40:54]execute_script done [14:40:54]execute_script returns [14:40:54]free content buf [14:40:54]Sock 9.Close socket [14:40:54]Sock 9.Thread stoped [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:32]accept exits with 7 [14:41:32]New connection [14:41:32]New thread 3067465060 created [14:41:32]Thread 3067321700 joined [14:41:32]Waiting for new connection... [14:41:32] Sock 7.Parse request [14:41:32]Sock 7.Check first char [14:41:32]Sock 7.First char is OK [14:41:32]request: POST /json_proto HTTP/1.0 [14:41:32]Method: POST [14:41:32]URL: /json_proto [14:41:32]Method is POST - this is cgi request [14:41:32]url: /json_proto [14:41:32]query_string will be loaded in cgi processing [14:41:32]execute_cgi json_proto POST (null) [14:41:32]execute_cgi path=json_proto method=POST [14:41:32]POST find Content-Length [14:41:32]Host: 172.17.59.68:8080 [14:41:32]Content-Length: 805 [14:41:32]Content-Type: application/json [14:41:32] [14:41:32]POST finish read [14:41:32]Found Content-Length = 805 [14:41:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:32]execute_script... [14:41: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)319954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:32]POST & json_proto [14:41:32]process_json_proto [14:41:32]json parsed OK: [14:41:32]protocol is kg_v1.0 [14:41:32]action value=close_receipt [14:41:32]process_action close_receipt [14:41:32]cmd_close_receipt [14:41:32]MH_GetDate [14:41:32]Write to MH i2c: F0 00 00 A6 0D A2 [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: F0 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: F0 09 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: F0 09 00 A6 0D 00 1F EE 72 66 BC EC 60 65 FD [14:41:32]GetLastDocTimeStamp 1718808054 [14:41:32]current date 1718808095 [14:41:32]FM_GetShiftState [14:41:32]SAM_PROTO_GetShiftState [14:41:32]wFMCommunicate request_size=4 [14:41:32]MH_SAM_APDU [14:41:32]CAPDU: 80 13 01 00 [14:41:32]Write to MH i2c: E2 08 00 A7 0D 80 13 01 00 00 00 00 00 31 [14:41:32]Write i2c OK [14:41:32]MH_I2C_Read... [14:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:32]Read from MH i2c: E2 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: E2 0E 00 [14:41:32]MH_I2C_Read... [14:41:32]Read from MH i2c: E2 0E 00 A7 0D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7B [14:41:32]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:41:32]wFMCommunicate OK [14:41:32]SAM_PROTO_GetShiftState done [14:41:32]FM_GetShiftState done [14:41:32]opened in 1718760753 [14:41:32]opened+sec_in_day 1718847153 [14:41:32]quantity*price = 350065 [14:41:32]sum+1 = 350067 [14:41:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.66 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 128 19.06.2024 14:41 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111379 ФПД: 250750746600484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144135&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111379&fm=250750746600484&tin=02508201610067®Number=0000000000092771&sum=350066 [14:41:33]StoreToDocumentArchive [14:41:33]shift 388 fd 111379 [14:41:33]save to /storage/0388/doc_00111379 [14:41:33]save last doc name /storage/0388/doc_00111379 to /storage/kkm_last_doc_name [14:41:33]save OK [14:41:33]Clear old archive folders... [14:41:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:41:33]tlvbuf is 00ECA440 [14:41:33]SAM_PROTO_ClearQueue [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 09 00 00 [14:41:33]Write to MH i2c: E2 08 00 B4 0D 80 09 00 00 00 00 00 00 33 [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 03 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 03 00 B4 0D 00 90 00 35 [14:41:33]RAPDU: 90 00 [14:41:33]wFMCommunicate OK [14:41:33]SAM_PROTO_ClearQueue done [14:41:33]KKMCreateOFDPacket [14:41:33]OFDProtocolAddRootSTLVToBuf [14:41:33]FM_MakeSignedData [14:41:33]FM_MakeSignedData [14:41:33]SAM_PROTO_SignData [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 0D 01 02 [14:41:33]Write to MH i2c: E2 08 00 B5 0D 80 0D 01 02 00 00 00 00 3B [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 03 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 03 00 B5 0D 00 90 00 36 [14:41:33]RAPDU: 90 00 [14:41:33]wFMCommunicate OK [14:41:33]wFMCommunicate request_size=255 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1F EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B3 01 00 35 04 06 00 E4 0E 75 2D [14:41:33]Write to MH i2c: E2 02 01 B6 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1F EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B3 01 00 35 04 06 00 E4 0E 75 2D 00 00 1A [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 03 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 03 00 B6 0D 00 90 00 37 [14:41:33]RAPDU: 90 00 [14:41:33]wFMCommunicate OK [14:41:33]wFMCommunicate request_size=7 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 0D 02 02 02 A4 24 [14:41:33]Write to MH i2c: E2 0A 00 B7 0D 80 0D 02 02 02 00 A4 24 00 00 0A [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 03 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 03 00 B7 0D 00 90 00 38 [14:41:33]RAPDU: 90 00 [14:41:33]wFMCommunicate OK [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 0D 03 02 [14:41:33]Write to MH i2c: E2 08 00 B8 0D 80 0D 03 02 00 00 00 00 40 [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 0B 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 0B 00 B8 0D 00 AA 7F DD 80 3F B6 27 7E 90 00 61 [14:41:33]RAPDU: AA 7F DD 80 3F B6 27 7E 90 00 [14:41:33]wFMCommunicate OK [14:41:33]SAM_PROTO_SignData done [14:41:33]FM_MakeSignedData done [14:41:33]CreateOFDProtocolMessage [14:41:33]wFMCommunicate request_size=4 [14:41:33]MH_SAM_APDU [14:41:33]CAPDU: 80 11 00 00 [14:41:33]Write to MH i2c: E2 08 00 B9 0D 80 11 00 00 00 00 00 00 40 [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:33]Read from MH i2c: E2 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 17 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: E2 17 00 B9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [14:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:41:33]wFMCommunicate OK [14:41:33]CreateOFDProtocolMessage done [14:41:33]OFDSenderStorePacket 111379 [14:41:33]StoreOFDPacket docnum=111379 [14:41:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 62 6F 04 01 49 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1F EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B3 01 00 35 04 06 00 E4 0E 75 2D A4 24 AA 7F DD 80 3F B6 27 7E [14:41:33]CheckFolder [14:41:33]dirname=/storage/ofd_packets [14:41:33]CheckFolder done [14:41:33]ProducePacketName [14:41:33]name=ofd_packets/00111379 [14:41:33]NVStorageSaveData ofd_packets/00111379 [14:41:33]File name is /storage/ofd_packets/00111379 [14:41:33]Write 298 bytes [14:41:33]NVStorageSaveData done [14:41:33]OFDSenderStorePacket done [14:41:33]KKMCreateOFDPacket done [14:41:33]NVStorageSaveData kkm_last_timestamp [14:41:33]File name is /storage/kkm_last_timestamp [14:41:33]Write 4 bytes [14:41:33]NVStorageSaveData done [14:41:33]ExternCall_PrintAddStr [14:41:33]wPrintStart [14:41:33]Write to MH i2c: 01 00 00 BA 0D C7 [14:41:33]Write i2c OK [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: 01 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: 01 07 00 [14:41:33]MH_I2C_Read... [14:41:33]Read from MH i2c: 01 07 00 BA 0D 00 00 00 00 00 FF 0F DC [14:41:33]RasterBufferAndPrint [14:41:33]line Счет N : (1)319954 [14:41:33]line ИНН: 02508201610067 [14:41:33]line Контрольно-Кассовый Чек [14:41:33]line ПРОДАЖА [14:41:33]line ТРК (МРК, ГНК) : 22 [14:41:33]line Товар: 2710194210 [14:41:33]line ДТ-К-5 [14:41:33]line 48.020 * 72.90 [14:41:33]line = 3500.66 [14:41:33]line НДС 12% НСП 1% [14:41:33]line > о реализуемом товаре [14:41:33]line ИТОГО: 3500.66 [14:41:33]line НСП 1% : 30.98 [14:41:33]line НДС 12% : 371.75 [14:41:33]line Наличными: 0.00 [14:41:33]line Безнал.: 3500.66 [14:41:33]line Место: АЗС № 65 "Партнер Нефть" [14:41:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:41:33]line СНО: Общий режим [14:41:33]line Чек 128 19.06.2024 14:41 [14:41:33]line Смена: 388 ФФД: 1.0 [14:41:33]line ЗНМ: 0300000198 [14:41:33]line РНМ: 0000000000092771 [14:41:33]line Версия ККМ: 001 [14:41:33]line Платежная система: О! деньги [14:41:33]line ФМ: 0000000000875083 [14:41:33]line ФД: 111379 [14:41:33]line ФПД: 250750746600484 [14:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144135&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111379&fm=250750746600484&tin=02508201610067®Number=0000000000092771&sum=350066 [14:41:34]OFD Sender: Processing packet 111379 [packets to send 38, broken 37] [14:41:34]ProducePacketName [14:41:34]name=ofd_packets/00111379 [14:41:34]OFD Sender: To server: pG, [14:41:34]CommunicateWithHost lk.salyk.kg:30040 [14:41:34]ConnectInit lk.salyk.kg [14:41:34]written 0, free lines is 4095 [14:41:34]Write to MH i2c: 01 00 00 E4 0D F1 [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 E4 0D 00 00 00 00 00 F2 0C F6 [14:41:34]RasterBufferAndPrint [14:41:34]line [14:41:34]line [14:41:34]line [14:41:34]line [14:41:34]line [14:41:34]written 0, free lines is 3320 [14:41:34]MH_Cut [14:41:34]Write to MH i2c: D1 01 00 EB 0D 01 CA [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: D1 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: D1 01 00 [14:41:34]MH_I2C_Read... [14:41:34]Read from MH i2c: D1 01 00 EB 0D 00 C9 [14:41:34]Write to MH i2c: 01 00 00 EC 0D F9 [14:41:34]Write i2c OK [14:41:34]MH_I2C_Read... [14:41:35]*** Cut start [14:41:35]*** Partial cut [14:41:35]*** CUTSNS_PIN = 1 [14:41:35]*** CUTSNS_PIN = 0 [14:41:35]*** Brake cut motor [14:41:35]Read from MH i2c: 01 [14:41:35]MH_I2C_Read... [14:41:35]*** Stop cut motor [14:41:35]*** Cut end [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 EC 0D 00 00 00 00 00 FF 0F 0E [14:41:35]process_action close_receipt done [14:41:35]requested_data is exist [14:41:35]produce_requested_data [14:41:35]requested_item fm.sn is exist - process it [14:41:35]wFMCommunicate request_size=4 [14:41:35]MH_SAM_APDU [14:41:35]CAPDU: 80 11 00 00 [14:41:35]Write to MH i2c: E2 08 00 ED 0D 80 11 00 00 00 00 00 00 74 [14:41:35]Write i2c OK [14:41:35]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 17 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 17 00 ED 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [14:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:41:36]wFMCommunicate OK [14:41:36]requested_item fd.num is exist - process it [14:41:36]SAM_PROTO_GetFieldsCounters [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 13 00 00 [14:41:36]Write to MH i2c: E2 08 00 EE 0D 80 13 00 00 00 00 00 00 77 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 62 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 62 00 EE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 13 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [14:41: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 13 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:36]wFMCommunicate OK [14:41:36]SAM_PROTO_GetFieldsCounters done [14:41:36]requested_item shift.num is exist - process it [14:41:36]requested_item shift.opened is exist - process it [14:41:36]req_shift_opened [14:41:36]FM_GetShiftState [14:41:36]SAM_PROTO_GetShiftState [14:41:36]wFMCommunicate request_size=4 [14:41:36]MH_SAM_APDU [14:41:36]CAPDU: 80 13 01 00 [14:41:36]Write to MH i2c: E2 08 00 EF 0D 80 13 01 00 00 00 00 00 79 [14:41:36]Write i2c OK [14:41:36]MH_I2C_Read... [14:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:36]Read from MH i2c: E2 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 0E 00 [14:41:36]MH_I2C_Read... [14:41:36]Read from MH i2c: E2 0E 00 EF 0D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C3 [14:41:36]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:41:36]wFMCommunicate OK [14:41:36]SAM_PROTO_GetShiftState done [14:41:36]FM_GetShiftState done [14:41:36]req_shift_opened done [14:41:36]requested_item shift.open_date is exist - process it [14:41:36]req_shift_open_date [14:41:36]req_shift_open_date done [14:41:36]produce_requested_data done [14:41:36]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111379,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:41:36]process_action_free close_receipt [14:41:36]json_value_free [14:41:36]json_value_free done [14:41:36]process_json_proto returns [14:41:36]Send response to host [14:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111379,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:41:36]free response buf [14:41:36]execute_script done [14:41:36]execute_script returns [14:41:36]free content buf [14:41:36]Sock 7.Close socket [14:41:36]Sock 7.Thread stoped [14:43:12]accept exits with 9 [14:43:12]New connection [14:43:12]New thread 3067321700 created [14:43:12]Thread 3067465060 joined [14:43:12]Waiting for new connection... [14:43:12] Sock 9.Parse request [14:43:12]Sock 9.Check first char [14:43:12]Sock 9.First char is OK [14:43:12]request: POST /json_proto HTTP/1.0 [14:43:12]Method: POST [14:43:12]URL: /json_proto [14:43:12]Method is POST - this is cgi request [14:43:12]url: /json_proto [14:43:12]query_string will be loaded in cgi processing [14:43:12]execute_cgi json_proto POST (null) [14:43:12]execute_cgi path=json_proto method=POST [14:43:12]POST find Content-Length [14:43:12]Host: 172.17.59.68:8080 [14:43:12]Content-Length: 682 [14:43:12]Content-Type: application/json [14:43:12] [14:43:12]POST finish read [14:43:12]Found Content-Length = 682 [14:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12]execute_script... [14:43:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12]POST & json_proto [14:43:12]process_json_proto [14:43:12]json parsed OK: [14:43:12]protocol is kg_v1.0 [14:43:12]action value=close_receipt [14:43:12]process_action close_receipt [14:43:12]cmd_close_receipt [14:43:12]MH_GetDate [14:43:12]Write to MH i2c: F0 00 00 F0 0D EC [14:43:12]Write i2c OK [14:43:12]MH_I2C_Read... [14:43:12]Read from MH i2c: F0 [14:43:12]MH_I2C_Read... [14:43:12]Read from MH i2c: F0 09 00 [14:43:12]MH_I2C_Read... [14:43:12]Read from MH i2c: F0 09 00 F0 0D 00 84 EE 72 66 BC EC 60 65 AC [14:43:12]GetLastDocTimeStamp 1718808095 [14:43:12]current date 1718808196 [14:43:12]FM_GetShiftState [14:43:12]SAM_PROTO_GetShiftState [14:43:12]wFMCommunicate request_size=4 [14:43:12]MH_SAM_APDU [14:43:12]CAPDU: 80 13 01 00 [14:43:12]Write to MH i2c: E2 08 00 F1 0D 80 13 01 00 00 00 00 00 7B [14:43:12]Write i2c OK [14:43:12]MH_I2C_Read... [14:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:12]Read from MH i2c: E2 [14:43:12]MH_I2C_Read... [14:43:12]Read from MH i2c: E2 0E 00 [14:43:12]MH_I2C_Read... [14:43:12]Read from MH i2c: E2 0E 00 F1 0D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C5 [14:43:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:43:12]wFMCommunicate OK [14:43:12]SAM_PROTO_GetShiftState done [14:43:12]FM_GetShiftState done [14:43:12]opened in 1718760753 [14:43:12]opened+sec_in_day 1718847153 [14:43:12]quantity*price = 100064 [14:43:12]sum+1 = 100066 [14:43:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 129 19.06.2024 14:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111380 ФПД: 184562685870753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144316&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111380&fm=184562685870753&tin=02508201610067®Number=0000000000092771&sum=100000 [14:43:13]StoreToDocumentArchive [14:43:13]shift 388 fd 111380 [14:43:13]save to /storage/0388/doc_00111380 [14:43:13]save last doc name /storage/0388/doc_00111380 to /storage/kkm_last_doc_name [14:43:13]save OK [14:43:13]Clear old archive folders... [14:43:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:13]tlvbuf is 00F19870 [14:43:13]SAM_PROTO_ClearQueue [14:43:13]wFMCommunicate request_size=4 [14:43:13]MH_SAM_APDU [14:43:13]CAPDU: 80 09 00 00 [14:43:13]Write to MH i2c: E2 08 00 FE 0D 80 09 00 00 00 00 00 00 7D [14:43:13]Write i2c OK [14:43:13]MH_I2C_Read... [14:43:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:13]Read from MH i2c: E2 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: E2 03 00 [14:43:13]MH_I2C_Read... [14:43:13]Read from MH i2c: E2 03 00 FE 0D 00 90 00 7F [14:43:13]RAPDU: 90 00 [14:43:13]wFMCommunicate OK [14:43:13]SAM_PROTO_ClearQueue done [14:43:13]KKMCreateOFDPacket [14:43:13]OFDProtocolAddRootSTLVToBuf [14:43:13]FM_MakeSignedData [14:43:13]FM_MakeSignedData [14:43:13]SAM_PROTO_SignData [14:43:13]wFMCommunicate request_size=4 [14:43:13]MH_SAM_APDU [14:43:13]CAPDU: 80 0D 01 02 [14:43:13]Write to MH i2c: E2 08 00 FF 0D 80 0D 01 02 00 00 00 00 85 [14:43:13]Write i2c OK [14:43:13]MH_I2C_Read... [14:43:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:14]Read from MH i2c: E2 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 03 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 03 00 FF 0D 00 90 00 80 [14:43:14]RAPDU: 90 00 [14:43:14]wFMCommunicate OK [14:43:14]wFMCommunicate request_size=255 [14:43:14]MH_SAM_APDU [14:43: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 84 EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B3 01 00 35 04 06 00 A7 [14:43:14]Write to MH i2c: E2 02 01 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 84 EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B3 01 00 35 04 06 00 A7 00 00 49 [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:14]Read from MH i2c: E2 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 03 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 03 00 00 0E 00 90 00 82 [14:43:14]RAPDU: 90 00 [14:43:14]wFMCommunicate OK [14:43:14]wFMCommunicate request_size=10 [14:43:14]MH_SAM_APDU [14:43:14]CAPDU: 80 0D 02 02 05 DB D9 54 82 A1 [14:43:14]Write to MH i2c: E2 0D 00 01 0E 80 0D 02 02 05 00 DB D9 54 82 A1 00 00 BE [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:14]Read from MH i2c: E2 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 03 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 03 00 01 0E 00 90 00 83 [14:43:14]RAPDU: 90 00 [14:43:14]wFMCommunicate OK [14:43:14]wFMCommunicate request_size=4 [14:43:14]MH_SAM_APDU [14:43:14]CAPDU: 80 0D 03 02 [14:43:14]Write to MH i2c: E2 08 00 02 0E 80 0D 03 02 00 00 00 00 8B [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:14]Read from MH i2c: E2 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 0B 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 0B 00 02 0E 00 D5 0F E9 04 D6 92 57 C5 90 00 E1 [14:43:14]RAPDU: D5 0F E9 04 D6 92 57 C5 90 00 [14:43:14]wFMCommunicate OK [14:43:14]SAM_PROTO_SignData done [14:43:14]FM_MakeSignedData done [14:43:14]CreateOFDProtocolMessage [14:43:14]wFMCommunicate request_size=4 [14:43:14]MH_SAM_APDU [14:43:14]CAPDU: 80 11 00 00 [14:43:14]Write to MH i2c: E2 08 00 03 0E 80 11 00 00 00 00 00 00 8B [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:14]Read from MH i2c: E2 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 17 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: E2 17 00 03 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [14:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:43:14]wFMCommunicate OK [14:43:14]CreateOFDProtocolMessage done [14:43:14]OFDSenderStorePacket 111380 [14:43:14]StoreOFDPacket docnum=111380 [14:43:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B 9C 07 01 DA FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 84 EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 14 B3 01 00 35 04 06 00 A7 DB D9 54 82 A1 D5 0F E9 04 D6 92 57 C5 [14:43:14]CheckFolder [14:43:14]dirname=/storage/ofd_packets [14:43:14]CheckFolder done [14:43:14]ProducePacketName [14:43:14]name=ofd_packets/00111380 [14:43:14]NVStorageSaveData ofd_packets/00111380 [14:43:14]File name is /storage/ofd_packets/00111380 [14:43:14]Write 301 bytes [14:43:14]NVStorageSaveData done [14:43:14]OFDSenderStorePacket done [14:43:14]KKMCreateOFDPacket done [14:43:14]NVStorageSaveData kkm_last_timestamp [14:43:14]File name is /storage/kkm_last_timestamp [14:43:14]Write 4 bytes [14:43:14]NVStorageSaveData done [14:43:14]ExternCall_PrintAddStr [14:43:14]wPrintStart [14:43:14]Write to MH i2c: 01 00 00 04 0E 12 [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: 01 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: 01 07 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: 01 07 00 04 0E 00 00 00 00 00 FF 0F 27 [14:43:14]RasterBufferAndPrint [14:43:14]line Счет N : (1)319958 [14:43:14]line ИНН: 02508201610067 [14:43:14]line Контрольно-Кассовый Чек [14:43:14]line ПРОДАЖА [14:43:14]line ТРК (МРК, ГНК) : 11 [14:43:14]line Товар: 2710124130 [14:43:14]line Аи-92-К-5 [14:43:14]line 15.070 * 66.40 [14:43:14]line = 1000.65 [14:43:14]line НДС 12% НСП 1% [14:43:14]line > о реализуемом товаре [14:43:14]line ОКРУГЛЕНИЕ: -0.65 [14:43:14]line ИТОГО: 1000.00 [14:43:14]line Внесено: 1000.00 [14:43:14]line СДАЧА: 0.00 [14:43:14]line НСП 1% : 8.85 [14:43:14]line НДС 12% : 106.26 [14:43:14]line Наличными: 1000.00 [14:43:14]line Безнал.: 0.00 [14:43:14]line Место: АЗС № 65 "Партнер Нефть" [14:43:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:43:14]line СНО: Общий режим [14:43:14]line Чек 129 19.06.2024 14:43 [14:43:14]line Смена: 388 ФФД: 1.0 [14:43:14]line ЗНМ: 0300000198 [14:43:14]line РНМ: 0000000000092771 [14:43:14]line Версия ККМ: 001 [14:43:14]line ФМ: 0000000000875083 [14:43:14]line ФД: 111380 [14:43:14]line ФПД: 184562685870753 [14:43:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144316&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111380&fm=184562685870753&tin=02508201610067®Number=0000000000092771&sum=100000 [14:43:14]written 0, free lines is 4095 [14:43:14]Write to MH i2c: 01 00 00 2F 0E 3D [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: 01 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: 01 07 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 DF 0C 2F [14:43:14]RasterBufferAndPrint [14:43:14]line [14:43:14]line [14:43:14]line [14:43:14]line [14:43:14]line [14:43:14]written 0, free lines is 3300 [14:43:14]MH_Cut [14:43:14]Write to MH i2c: D1 01 00 36 0E 01 16 [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: D1 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: D1 01 00 [14:43:14]MH_I2C_Read... [14:43:14]Read from MH i2c: D1 01 00 36 0E 00 15 [14:43:14]Write to MH i2c: 01 00 00 37 0E 45 [14:43:14]Write i2c OK [14:43:14]MH_I2C_Read... [14:43:15]*** Cut start [14:43:15]*** Partial cut [14:43:15]*** CUTSNS_PIN = 1 [14:43:15]*** CUTSNS_PIN = 0 [14:43:15]*** Brake cut motor [14:43:16]Read from MH i2c: 01 [14:43:16]MH_I2C_Read... [14:43:16]*** Stop cut motor [14:43:16]*** Cut end [14:43:16]Read from MH i2c: 01 07 00 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 FF 0F 5A [14:43:16]process_action close_receipt done [14:43:16]requested_data is exist [14:43:16]produce_requested_data [14:43:16]requested_item fm.sn is exist - process it [14:43:16]wFMCommunicate request_size=4 [14:43:16]MH_SAM_APDU [14:43:16]CAPDU: 80 11 00 00 [14:43:16]Write to MH i2c: E2 08 00 38 0E 80 11 00 00 00 00 00 00 C0 [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:16]Read from MH i2c: E2 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 17 00 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 17 00 38 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [14:43:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:43:16]wFMCommunicate OK [14:43:16]requested_item fd.num is exist - process it [14:43:16]SAM_PROTO_GetFieldsCounters [14:43:16]wFMCommunicate request_size=4 [14:43:16]MH_SAM_APDU [14:43:16]CAPDU: 80 13 00 00 [14:43:16]Write to MH i2c: E2 08 00 39 0E 80 13 00 00 00 00 00 00 C3 [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:16]Read from MH i2c: E2 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 62 00 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 62 00 39 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 14 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [14:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 14 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:16]wFMCommunicate OK [14:43:16]SAM_PROTO_GetFieldsCounters done [14:43:16]requested_item shift.num is exist - process it [14:43:16]requested_item shift.opened is exist - process it [14:43:16]req_shift_opened [14:43:16]FM_GetShiftState [14:43:16]SAM_PROTO_GetShiftState [14:43:16]wFMCommunicate request_size=4 [14:43:16]MH_SAM_APDU [14:43:16]CAPDU: 80 13 01 00 [14:43:16]Write to MH i2c: E2 08 00 3A 0E 80 13 01 00 00 00 00 00 C5 [14:43:16]Write i2c OK [14:43:16]MH_I2C_Read... [14:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:16]Read from MH i2c: E2 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 0E 00 [14:43:16]MH_I2C_Read... [14:43:16]Read from MH i2c: E2 0E 00 3A 0E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0F [14:43:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:43:16]wFMCommunicate OK [14:43:16]SAM_PROTO_GetShiftState done [14:43:16]FM_GetShiftState done [14:43:16]req_shift_opened done [14:43:16]requested_item shift.open_date is exist - process it [14:43:16]req_shift_open_date [14:43:16]req_shift_open_date done [14:43:16]produce_requested_data done [14:43:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111380,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:43:16]process_action_free close_receipt [14:43:16]json_value_free [14:43:16]json_value_free done [14:43:16]process_json_proto returns [14:43:16]Send response to host [14:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111380,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:43:16]free response buf [14:43:16]execute_script done [14:43:16]execute_script returns [14:43:16]free content buf [14:43:16]Sock 9.Close socket [14:43:16]Sock 9.Thread stoped [14:43:43]ConnectInit Can't connect to host [14:43:43]CommunicateWithHost connect error [14:43:43]CommunicateWithHost err = -1 [14:43:43]OFD Sender: Server communicate error [14:43:43]OFD Sender: Processing packet 111379 [packets to send 39, broken 37] [14:43:43]ProducePacketName [14:43:43]name=ofd_packets/00111379 [14:43:43]OFD Sender: To server: pG, [14:43:43]CommunicateWithHost lk.salyk.kg:30040 [14:43:43]ConnectInit lk.salyk.kg [14:43:43]Connected sock=9 [14:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 62 6F 04 01 49 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 1F EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 13 B3 01 00 35 04 06 00 E4 0E 75 2D A4 24 AA 7F DD 80 3F B6 27 7E [14:43:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 85 47 00 F6 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 35 30 38 33 10 04 04 00 13 B3 01 00 F4 03 04 00 08 86 72 66 B6 04 01 00 00 32 28 A7 8C 9C B5 61 8C [14:43:44]CommunicateWithHost err = 0 [14:43:44]CheckOFDResponse [14:43:44]1017 (14) - 77093643461234 [14:43:44]1041 (16) - 0000000000875083 [14:43:44]1040 (4) - 111379 [14:43:44]1012 (4) - 19.06.2024 07:17 [14:43:44]1206 (1) - 0 [14:43:44]OFD Sender: Remove packet 111379 [14:43:44]ProducePacketName [14:43:44]name=ofd_packets/00111379 [14:43:44]NVStorageDeleteData [14:43:44]accept exits with 7 [14:43:44]New connection [14:43:44]New thread 3067465060 created [14:43:44]Thread 3067321700 joined [14:43:44]Waiting for new connection... [14:43:44] Sock 7.Parse request [14:43:44]Sock 7.Check first char [14:43:44]Sock 7.First char is OK [14:43:44]request: POST /json_proto HTTP/1.0 [14:43:44]Method: POST [14:43:44]URL: /json_proto [14:43:44]Method is POST - this is cgi request [14:43:44]url: /json_proto [14:43:44]query_string will be loaded in cgi processing [14:43:44]execute_cgi json_proto POST (null) [14:43:44]execute_cgi path=json_proto method=POST [14:43:44]POST find Content-Length [14:43:44]Host: 172.17.59.68:8080 [14:43:44]Content-Length: 674 [14:43:44]Content-Type: application/json [14:43:44] [14:43:44]POST finish read [14:43:44]Found Content-Length = 674 [14:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.740, "sum" : 199.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 199.00, "payments": [ { "type": 0, "sum" : 199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:44]execute_script... [14:43: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)319957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.740, "sum" : 199.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 199.00, "payments": [ { "type": 0, "sum" : 199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:44]POST & json_proto [14:43:44]process_json_proto [14:43:44]json parsed OK: [14:43:44]protocol is kg_v1.0 [14:43:44]action value=close_receipt [14:43:44]process_action close_receipt [14:43:44]cmd_close_receipt [14:43:44]MH_GetDate [14:43:44]Write to MH i2c: F0 00 00 3B 0E 38 [14:43:44]Write i2c OK [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: F0 [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: F0 09 00 [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: F0 09 00 3B 0E 00 A4 EE 72 66 BC EC 60 65 18 [14:43:44]GetLastDocTimeStamp 1718808196 [14:43:44]current date 1718808228 [14:43:44]FM_GetShiftState [14:43:44]SAM_PROTO_GetShiftState [14:43:44]wFMCommunicate request_size=4 [14:43:44]MH_SAM_APDU [14:43:44]CAPDU: 80 13 01 00 [14:43:44]Write to MH i2c: E2 08 00 3C 0E 80 13 01 00 00 00 00 00 C7 [14:43:44]Write i2c OK [14:43:44]MH_I2C_Read... [14:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:44]Read from MH i2c: E2 [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: E2 0E 00 [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: E2 0E 00 3C 0E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 11 [14:43:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:43:44]wFMCommunicate OK [14:43:44]SAM_PROTO_GetShiftState done [14:43:44]FM_GetShiftState done [14:43:44]opened in 1718760753 [14:43:44]opened+sec_in_day 1718847153 [14:43:44]quantity*price = 19974 [14:43:44]sum+1 = 19976 [14:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 199.00 Внесено: 500.00 СДАЧА: 301.00 НСП 1% : 1.77 НДС 12% : 21.21 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 130 19.06.2024 14:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111381 ФПД: 37965639612777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144348&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111381&fm=37965639612777&tin=02508201610067®Number=0000000000092771&sum=19900 [14:43:45]StoreToDocumentArchive [14:43:45]shift 388 fd 111381 [14:43:45]save to /storage/0388/doc_00111381 [14:43:45]save last doc name /storage/0388/doc_00111381 to /storage/kkm_last_doc_name [14:43:45]OFD Sender: No OFD packet to send [14:43:45]save OK [14:43:45]Clear old archive folders... [14:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:43:45]tlvbuf is 00EFB490 [14:43:45]SAM_PROTO_ClearQueue [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 09 00 00 [14:43:45]Write to MH i2c: E2 08 00 49 0E 80 09 00 00 00 00 00 00 C9 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 49 0E 00 90 00 CB [14:43:45]RAPDU: 90 00 [14:43:45]wFMCommunicate OK [14:43:45]SAM_PROTO_ClearQueue done [14:43:45]KKMCreateOFDPacket [14:43:45]OFDProtocolAddRootSTLVToBuf [14:43:45]FM_MakeSignedData [14:43:45]FM_MakeSignedData [14:43:45]SAM_PROTO_SignData [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 0D 01 02 [14:43:45]Write to MH i2c: E2 08 00 4A 0E 80 0D 01 02 00 00 00 00 D1 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 4A 0E 00 90 00 CC [14:43:45]RAPDU: 90 00 [14:43:45]wFMCommunicate OK [14:43:45]wFMCommunicate request_size=255 [14:43:45]MH_SAM_APDU [14:43: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 B4 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 07 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A4 EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B3 01 00 35 04 06 00 22 87 90 76 [14:43:45]Write to MH i2c: E2 02 01 4B 0E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 07 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A4 EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B3 01 00 35 04 06 00 22 87 90 76 00 00 D4 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:46]Read from MH i2c: E2 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 03 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 03 00 4B 0E 00 90 00 CD [14:43:46]RAPDU: 90 00 [14:43:46]wFMCommunicate OK [14:43:46]wFMCommunicate request_size=7 [14:43:46]MH_SAM_APDU [14:43:46]CAPDU: 80 0D 02 02 02 79 69 [14:43:46]Write to MH i2c: E2 0A 00 4C 0E 80 0D 02 02 02 00 79 69 00 00 BA [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:46]Read from MH i2c: E2 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 03 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 03 00 4C 0E 00 90 00 CE [14:43:46]RAPDU: 90 00 [14:43:46]wFMCommunicate OK [14:43:46]wFMCommunicate request_size=4 [14:43:46]MH_SAM_APDU [14:43:46]CAPDU: 80 0D 03 02 [14:43:46]Write to MH i2c: E2 08 00 4D 0E 80 0D 03 02 00 00 00 00 D6 [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:46]Read from MH i2c: E2 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 0B 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 0B 00 4D 0E 00 7D 3C 1C B4 73 FC 7D DE 90 00 2A [14:43:46]RAPDU: 7D 3C 1C B4 73 FC 7D DE 90 00 [14:43:46]wFMCommunicate OK [14:43:46]SAM_PROTO_SignData done [14:43:46]FM_MakeSignedData done [14:43:46]CreateOFDProtocolMessage [14:43:46]wFMCommunicate request_size=4 [14:43:46]MH_SAM_APDU [14:43:46]CAPDU: 80 11 00 00 [14:43:46]Write to MH i2c: E2 08 00 4E 0E 80 11 00 00 00 00 00 00 D6 [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:46]Read from MH i2c: E2 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 17 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 17 00 4E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [14:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:43:46]wFMCommunicate OK [14:43:46]CreateOFDProtocolMessage done [14:43:46]OFDSenderStorePacket 111381 [14:43:46]StoreOFDPacket docnum=111381 [14:43:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7A DD 04 01 39 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 07 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A4 EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B3 01 00 35 04 06 00 22 87 90 76 79 69 7D 3C 1C B4 73 FC 7D DE [14:43:46]CheckFolder [14:43:46]dirname=/storage/ofd_packets [14:43:46]CheckFolder done [14:43:46]ProducePacketName [14:43:46]name=ofd_packets/00111381 [14:43:46]NVStorageSaveData ofd_packets/00111381 [14:43:46]File name is /storage/ofd_packets/00111381 [14:43:46]Write 298 bytes [14:43:46]NVStorageSaveData done [14:43:46]OFDSenderStorePacket done [14:43:46]KKMCreateOFDPacket done [14:43:46]NVStorageSaveData kkm_last_timestamp [14:43:46]File name is /storage/kkm_last_timestamp [14:43:46]Write 4 bytes [14:43:46]NVStorageSaveData done [14:43:46]ExternCall_PrintAddStr [14:43:46]wPrintStart [14:43:46]Write to MH i2c: 01 00 00 4F 0E 5D [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 07 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 FF 0F 72 [14:43:46]RasterBufferAndPrint [14:43:46]line Счет N : (1)319957 [14:43:46]line ИНН: 02508201610067 [14:43:46]line Контрольно-Кассовый Чек [14:43:46]line ПРОДАЖА [14:43:46]line ТРК (МРК, ГНК) : 22 [14:43:46]line Товар: 2710194210 [14:43:46]line ДТ-К-5 [14:43:46]line 2.740 * 72.90 [14:43:46]line = 199.75 [14:43:46]line НДС 12% НСП 1% [14:43:46]line > о реализуемом товаре [14:43:46]line ОКРУГЛЕНИЕ: -0.75 [14:43:46]line ИТОГО: 199.00 [14:43:46]line Внесено: 500.00 [14:43:46]line СДАЧА: 301.00 [14:43:46]line НСП 1% : 1.77 [14:43:46]line НДС 12% : 21.21 [14:43:46]line Наличными: 199.00 [14:43:46]line Безнал.: 0.00 [14:43:46]line Место: АЗС № 65 "Партнер Нефть" [14:43:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:43:46]line СНО: Общий режим [14:43:46]line Чек 130 19.06.2024 14:43 [14:43:46]line Смена: 388 ФФД: 1.0 [14:43:46]line ЗНМ: 0300000198 [14:43:46]line РНМ: 0000000000092771 [14:43:46]line Версия ККМ: 001 [14:43:46]line ФМ: 0000000000875083 [14:43:46]line ФД: 111381 [14:43:46]line ФПД: 37965639612777 [14:43:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144348&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111381&fm=37965639612777&tin=02508201610067®Number=0000000000092771&sum=19900 [14:43:46]OFD Sender: Processing packet 111381 [packets to send 38, broken 37] [14:43:46]ProducePacketName [14:43:46]name=ofd_packets/00111381 [14:43:46]OFD Sender: To server: pG, [14:43:46]CommunicateWithHost lk.salyk.kg:30040 [14:43:46]ConnectInit lk.salyk.kg [14:43:46]written 0, free lines is 4095 [14:43:46]Connected sock=10 [14:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7A DD 04 01 39 A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 07 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 A4 EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 15 B3 01 00 35 04 06 00 22 87 90 76 79 69 7D 3C 1C B4 73 FC 7D DE [14:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 78 79 47 00 2D 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 35 30 38 33 10 04 04 00 15 B3 01 00 F4 03 04 00 0B 86 72 66 B6 04 01 00 00 5B DC 77 A8 78 47 A3 53 [14:43:46]CommunicateWithHost err = 0 [14:43:46]CheckOFDResponse [14:43:46]1017 (14) - 77093643461234 [14:43:46]1041 (16) - 0000000000875083 [14:43:46]1040 (4) - 111381 [14:43:46]1012 (4) - 19.06.2024 07:17 [14:43:46]1206 (1) - 0 [14:43:46]OFD Sender: Remove packet 111381 [14:43:46]ProducePacketName [14:43:46]name=ofd_packets/00111381 [14:43:46]NVStorageDeleteData [14:43:46]Write to MH i2c: 01 00 00 7A 0E 88 [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 07 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 07 00 7A 0E 00 00 00 00 00 E1 0C 7C [14:43:46]RasterBufferAndPrint [14:43:46]line [14:43:46]line [14:43:46]line [14:43:46]line [14:43:46]line [14:43:46]written 0, free lines is 3303 [14:43:46]MH_Cut [14:43:46]Write to MH i2c: D1 01 00 81 0E 01 61 [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 01 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 01 00 81 0E 00 60 [14:43:46]Write to MH i2c: 01 00 00 82 0E 90 [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:47]OFD Sender: No OFD packet to send [14:43:47]*** Cut start [14:43:47]*** Partial cut [14:43:47]*** CUTSNS_PIN = 1 [14:43:47]*** CUTSNS_PIN = 0 [14:43:47]*** Brake cut motor [14:43:48]Read from MH i2c: 01 [14:43:48]MH_I2C_Read... [14:43:48]*** Stop cut motor [14:43:48]*** Cut end [14:43:48]Read from MH i2c: 01 07 00 [14:43:48]MH_I2C_Read... [14:43:48]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 FF 0F A5 [14:43:48]process_action close_receipt done [14:43:48]requested_data is exist [14:43:48]produce_requested_data [14:43:48]requested_item fm.sn is exist - process it [14:43:48]wFMCommunicate request_size=4 [14:43:48]MH_SAM_APDU [14:43:48]CAPDU: 80 11 00 00 [14:43:48]Write to MH i2c: E2 08 00 83 0E 80 11 00 00 00 00 00 00 0B [14:43:48]Write i2c OK [14:43:48]MH_I2C_Read... [14:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:48]Read from MH i2c: E2 [14:43:48]MH_I2C_Read... [14:43:48]Read from MH i2c: E2 17 00 [14:43:48]MH_I2C_Read... [14:43:48]Read from MH i2c: E2 17 00 83 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [14:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:43:48]wFMCommunicate OK [14:43:48]requested_item fd.num is exist - process it [14:43:48]SAM_PROTO_GetFieldsCounters [14:43:48]wFMCommunicate request_size=4 [14:43:48]MH_SAM_APDU [14:43:48]CAPDU: 80 13 00 00 [14:43:48]Write to MH i2c: E2 08 00 84 0E 80 13 00 00 00 00 00 00 0E [14:43:48]Write i2c OK [14:43:48]MH_I2C_Read... [14:43:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:48]Read from MH i2c: E2 [14:43:48]MH_I2C_Read... [14:43:48]Read from MH i2c: E2 62 00 [14:43:48]MH_I2C_Read... [14:43:48]Read from MH i2c: E2 62 00 84 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [14:43: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 15 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:48]wFMCommunicate OK [14:43:48]SAM_PROTO_GetFieldsCounters done [14:43:48]requested_item shift.num is exist - process it [14:43:48]requested_item shift.opened is exist - process it [14:43:48]req_shift_opened [14:43:48]FM_GetShiftState [14:43:48]SAM_PROTO_GetShiftState [14:43:48]wFMCommunicate request_size=4 [14:43:48]MH_SAM_APDU [14:43:48]CAPDU: 80 13 01 00 [14:43:48]Write to MH i2c: E2 08 00 85 0E 80 13 01 00 00 00 00 00 10 [14:43:48]Write i2c OK [14:43:48]MH_I2C_Read... [14:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:48]Read from MH i2c: E2 [14:43:48]MH_I2C_Read... [14:43:48]Read from MH i2c: E2 0E 00 [14:43:48]MH_I2C_Read... [14:43:48]Read from MH i2c: E2 0E 00 85 0E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5A [14:43:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:43:48]wFMCommunicate OK [14:43:48]SAM_PROTO_GetShiftState done [14:43:48]FM_GetShiftState done [14:43:48]req_shift_opened done [14:43:48]requested_item shift.open_date is exist - process it [14:43:48]req_shift_open_date [14:43:48]req_shift_open_date done [14:43:48]produce_requested_data done [14:43:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111381,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:43:48]process_action_free close_receipt [14:43:48]json_value_free [14:43:48]json_value_free done [14:43:48]process_json_proto returns [14:43:48]Send response to host [14:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111381,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:43:48]free response buf [14:43:48]execute_script done [14:43:48]execute_script returns [14:43:48]free content buf [14:43:48]Sock 7.Close socket [14:43:48]Sock 7.Thread stoped [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]accept exits with 9 [14:44:57]New connection [14:44:57]New thread 3067321700 created [14:44:57]Thread 3067465060 joined [14:44:57]Waiting for new connection... [14:44:57] Sock 9.Parse request [14:44:57]Sock 9.Check first char [14:44:57]Sock 9.First char is OK [14:44:57]request: POST /json_proto HTTP/1.0 [14:44:57]Method: POST [14:44:57]URL: /json_proto [14:44:57]Method is POST - this is cgi request [14:44:57]url: /json_proto [14:44:57]query_string will be loaded in cgi processing [14:44:57]execute_cgi json_proto POST (null) [14:44:57]execute_cgi path=json_proto method=POST [14:44:57]POST find Content-Length [14:44:57]Host: 172.17.59.68:8080 [14:44:57]Content-Length: 677 [14:44:57]Content-Type: application/json [14:44:57] [14:44:57]POST finish read [14:44:57]Found Content-Length = 677 [14:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57]execute_script... [14:44: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)319959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57]POST & json_proto [14:44:57]process_json_proto [14:44:57]json parsed OK: [14:44:57]protocol is kg_v1.0 [14:44:57]action value=close_receipt [14:44:57]process_action close_receipt [14:44:57]cmd_close_receipt [14:44:57]MH_GetDate [14:44:57]Write to MH i2c: F0 00 00 86 0E 83 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: F0 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: F0 09 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: F0 09 00 86 0E 00 EC EE 72 66 BC EC 60 65 AB [14:44:57]GetLastDocTimeStamp 1718808228 [14:44:57]current date 1718808300 [14:44:57]FM_GetShiftState [14:44:57]SAM_PROTO_GetShiftState [14:44:57]wFMCommunicate request_size=4 [14:44:57]MH_SAM_APDU [14:44:57]CAPDU: 80 13 01 00 [14:44:57]Write to MH i2c: E2 08 00 87 0E 80 13 01 00 00 00 00 00 12 [14:44:57]Write i2c OK [14:44:57]MH_I2C_Read... [14:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:57]Read from MH i2c: E2 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 0E 00 [14:44:57]MH_I2C_Read... [14:44:57]Read from MH i2c: E2 0E 00 87 0E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5C [14:44:57]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:44:57]wFMCommunicate OK [14:44:57]SAM_PROTO_GetShiftState done [14:44:57]FM_GetShiftState done [14:44:57]opened in 1718760753 [14:44:57]opened+sec_in_day 1718847153 [14:44:57]quantity*price = 50065 [14:44:57]sum+1 = 50067 [14:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 131 19.06.2024 14:45 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111382 ФПД: 232263217405223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144500&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111382&fm=232263217405223&tin=02508201610067®Number=0000000000092771&sum=50000 [14:44:58]StoreToDocumentArchive [14:44:58]shift 388 fd 111382 [14:44:58]save to /storage/0388/doc_00111382 [14:44:58]save last doc name /storage/0388/doc_00111382 to /storage/kkm_last_doc_name [14:44:58]save OK [14:44:58]Clear old archive folders... [14:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:58]tlvbuf is 00EF8B90 [14:44:58]SAM_PROTO_ClearQueue [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 09 00 00 [14:44:58]Write to MH i2c: E2 08 00 94 0E 80 09 00 00 00 00 00 00 14 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 94 0E 00 90 00 16 [14:44:58]RAPDU: 90 00 [14:44:58]wFMCommunicate OK [14:44:58]SAM_PROTO_ClearQueue done [14:44:58]KKMCreateOFDPacket [14:44:58]OFDProtocolAddRootSTLVToBuf [14:44:58]FM_MakeSignedData [14:44:58]FM_MakeSignedData [14:44:58]SAM_PROTO_SignData [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 0D 01 02 [14:44:58]Write to MH i2c: E2 08 00 95 0E 80 0D 01 02 00 00 00 00 1C [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 95 0E 00 90 00 17 [14:44:58]RAPDU: 90 00 [14:44:58]wFMCommunicate OK [14:44:58]wFMCommunicate request_size=255 [14:44:58]MH_SAM_APDU [14:44: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 EC EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B3 01 00 35 04 06 00 D3 [14:44:58]Write to MH i2c: E2 02 01 96 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 EC EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B3 01 00 35 04 06 00 D3 00 00 27 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 96 0E 00 90 00 18 [14:44:58]RAPDU: 90 00 [14:44:58]wFMCommunicate OK [14:44:58]wFMCommunicate request_size=10 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 0D 02 02 05 3D FE 91 5D 27 [14:44:58]Write to MH i2c: E2 0D 00 97 0E 80 0D 02 02 05 00 3D FE 91 5D 27 00 00 79 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 03 00 97 0E 00 90 00 19 [14:44:58]RAPDU: 90 00 [14:44:58]wFMCommunicate OK [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 0D 03 02 [14:44:58]Write to MH i2c: E2 08 00 98 0E 80 0D 03 02 00 00 00 00 21 [14:44:58]Write i2c OK [14:44:58]MH_I2C_Read... [14:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:58]Read from MH i2c: E2 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 0B 00 [14:44:58]MH_I2C_Read... [14:44:58]Read from MH i2c: E2 0B 00 98 0E 00 E1 A8 A3 11 B6 2B 4F B6 90 00 45 [14:44:58]RAPDU: E1 A8 A3 11 B6 2B 4F B6 90 00 [14:44:58]wFMCommunicate OK [14:44:58]SAM_PROTO_SignData done [14:44:58]FM_MakeSignedData done [14:44:58]CreateOFDProtocolMessage [14:44:58]wFMCommunicate request_size=4 [14:44:58]MH_SAM_APDU [14:44:58]CAPDU: 80 11 00 00 [14:44:58]Write to MH i2c: E2 08 00 99 0E 80 11 00 00 00 00 00 00 21 [14:44:58]Write i2c OK [14:44:58]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 99 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 73 [14:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:44:58]wFMCommunicate OK [14:44:58]CreateOFDProtocolMessage done [14:44:58]OFDSenderStorePacket 111382 [14:44:58]StoreOFDPacket docnum=111382 [14:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CE 24 07 01 F7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 EC EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B3 01 00 35 04 06 00 D3 3D FE 91 5D 27 E1 A8 A3 11 B6 2B 4F B6 [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/00111382 [14:44:58]NVStorageSaveData ofd_packets/00111382 [14:44:58]File name is /storage/ofd_packets/00111382 [14:44:58]Write 301 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 9A 0E A8 [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 9A 0E 00 00 00 00 00 FF 0F BD [14:44:58]RasterBufferAndPrint [14:44:58]line Счет N : (1)319959 [14:44:58]line ИНН: 02508201610067 [14:44:58]line Контрольно-Кассовый Чек [14:44:58]line ПРОДАЖА [14:44:58]line ТРК (МРК, ГНК) : 11 [14:44:58]line Товар: 2710124130 [14:44:58]line Аи-92-К-5 [14:44:58]line 7.540 * 66.40 [14:44:58]line = 500.66 [14:44:58]line НДС 12% НСП 1% [14:44:58]line > о реализуемом товаре [14:44:58]line ОКРУГЛЕНИЕ: -0.66 [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.17 [14:44:58]line Наличными: 500.00 [14:44:58]line Безнал.: 0.00 [14:44:58]line Место: АЗС № 65 "Партнер Нефть" [14:44:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:44:58]line СНО: Общий режим [14:44:58]line Чек 131 19.06.2024 14:45 [14:44:58]line Смена: 388 ФФД: 1.0 [14:44:58]line ЗНМ: 0300000198 [14:44:58]line РНМ: 0000000000092771 [14:44:58]line Версия ККМ: 001 [14:44:58]line ФМ: 0000000000875083 [14:44:58]line ФД: 111382 [14:44:58]line ФПД: 232263217405223 [14:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144500&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111382&fm=232263217405223&tin=02508201610067®Number=0000000000092771&sum=50000 [14:44:59]OFD Sender: Processing packet 111382 [packets to send 38, broken 37] [14:44:59]ProducePacketName [14:44:59]name=ofd_packets/00111382 [14:44:59]OFD Sender: To server: pG, [14:44:59]CommunicateWithHost lk.salyk.kg:30040 [14:44:59]ConnectInit lk.salyk.kg [14:44:59]written 0, free lines is 4095 [14:44:59]Connected sock=10 [14:44:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CE 24 07 01 F7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 EC EE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 16 B3 01 00 35 04 06 00 D3 3D FE 91 5D 27 E1 A8 A3 11 B6 2B 4F B6 [14:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A7 C0 47 00 FC 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 35 30 38 33 10 04 04 00 16 B3 01 00 F4 03 04 00 53 86 72 66 B6 04 01 00 00 41 4C AD 92 32 C6 AB 06 [14:44:59]CommunicateWithHost err = 0 [14:44:59]CheckOFDResponse [14:44:59]1017 (14) - 77093643461234 [14:44:59]1041 (16) - 0000000000875083 [14:44:59]1040 (4) - 111382 [14:44:59]1012 (4) - 19.06.2024 07:18 [14:44:59]1206 (1) - 0 [14:44:59]OFD Sender: Remove packet 111382 [14:44:59]ProducePacketName [14:44:59]name=ofd_packets/00111382 [14:44:59]NVStorageDeleteData [14:44:59]Write to MH i2c: 01 00 00 C5 0E D3 [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: 01 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: 01 07 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: 01 07 00 C5 0E 00 00 00 00 00 D3 0C B9 [14:44:59]RasterBufferAndPrint [14:44:59]line [14:44:59]line [14:44:59]line [14:44:59]line [14:44:59]line [14:44:59]written 0, free lines is 3287 [14:44:59]MH_Cut [14:44:59]Write to MH i2c: D1 01 00 CC 0E 01 AC [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: D1 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: D1 01 00 [14:44:59]MH_I2C_Read... [14:44:59]Read from MH i2c: D1 01 00 CC 0E 00 AB [14:44:59]Write to MH i2c: 01 00 00 CD 0E DB [14:44:59]Write i2c OK [14:44:59]MH_I2C_Read... [14:44:59]OFD Sender: No OFD packet to send [14:45:00]*** Cut start [14:45:00]*** Partial cut [14:45:00]*** CUTSNS_PIN = 1 [14:45:00]*** CUTSNS_PIN = 0 [14:45:00]*** 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 CD 0E 00 00 00 00 00 FF 0F F0 [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 CE 0E 80 11 00 00 00 00 00 00 56 [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:01]Read from MH i2c: E2 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 17 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 17 00 CE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [14:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:45:01]wFMCommunicate OK [14:45:01]requested_item fd.num is exist - process it [14:45:01]SAM_PROTO_GetFieldsCounters [14:45:01]wFMCommunicate request_size=4 [14:45:01]MH_SAM_APDU [14:45:01]CAPDU: 80 13 00 00 [14:45:01]Write to MH i2c: E2 08 00 CF 0E 80 13 00 00 00 00 00 00 59 [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:01]Read from MH i2c: E2 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 62 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 62 00 CF 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 16 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [14:45: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 16 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:01]wFMCommunicate OK [14:45:01]SAM_PROTO_GetFieldsCounters done [14:45:01]requested_item shift.num is exist - process it [14:45:01]requested_item shift.opened is exist - process it [14:45:01]req_shift_opened [14:45:01]FM_GetShiftState [14:45:01]SAM_PROTO_GetShiftState [14:45:01]wFMCommunicate request_size=4 [14:45:01]MH_SAM_APDU [14:45:01]CAPDU: 80 13 01 00 [14:45:01]Write to MH i2c: E2 08 00 D0 0E 80 13 01 00 00 00 00 00 5B [14:45:01]Write i2c OK [14:45:01]MH_I2C_Read... [14:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:01]Read from MH i2c: E2 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 0E 00 [14:45:01]MH_I2C_Read... [14:45:01]Read from MH i2c: E2 0E 00 D0 0E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A5 [14:45:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:45:01]wFMCommunicate OK [14:45:01]SAM_PROTO_GetShiftState done [14:45:01]FM_GetShiftState done [14:45:01]req_shift_opened done [14:45:01]requested_item shift.open_date is exist - process it [14:45:01]req_shift_open_date [14:45:01]req_shift_open_date done [14:45:01]produce_requested_data done [14:45:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111382,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:45:01]process_action_free close_receipt [14:45:01]json_value_free [14:45:01]json_value_free done [14:45:01]process_json_proto returns [14:45:01]Send response to host [14:45:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111382,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:45:01]free response buf [14:45:01]execute_script done [14:45:01]execute_script returns [14:45:01]free content buf [14:45:01]Sock 9.Close socket [14:45:01]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:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:12]accept exits with 7 [14:47:12]New connection [14:47:12]New thread 3067465060 created [14:47:12]Thread 3067321700 joined [14:47:12]Waiting for new connection... [14:47:12] Sock 7.Parse request [14:47:12]Sock 7.Check first char [14:47:12]Sock 7.First char is OK [14:47:12]request: POST /json_proto HTTP/1.0 [14:47:12]Method: POST [14:47:12]URL: /json_proto [14:47:12]Method is POST - this is cgi request [14:47:12]url: /json_proto [14:47:12]query_string will be loaded in cgi processing [14:47:12]execute_cgi json_proto POST (null) [14:47:12]execute_cgi path=json_proto method=POST [14:47:12]POST find Content-Length [14:47:12]Host: 172.17.59.68:8080 [14:47:12]Content-Length: 677 [14:47:12]Content-Type: application/json [14:47:12] [14:47:12]POST finish read [14:47:12]Found Content-Length = 677 [14:47:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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" ] } } [14:47:12]execute_script... [14:47: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)319961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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" ] } } [14:47:12]POST & json_proto [14:47:12]process_json_proto [14:47:12]json parsed OK: [14:47:12]protocol is kg_v1.0 [14:47:12]action value=close_receipt [14:47:12]process_action close_receipt [14:47:12]cmd_close_receipt [14:47:12]MH_GetDate [14:47:12]Write to MH i2c: F0 00 00 D1 0E CE [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: F0 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: F0 09 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: F0 09 00 D1 0E 00 74 EF 72 66 BC EC 60 65 7F [14:47:12]GetLastDocTimeStamp 1718808300 [14:47:12]current date 1718808436 [14:47:12]FM_GetShiftState [14:47:12]SAM_PROTO_GetShiftState [14:47:12]wFMCommunicate request_size=4 [14:47:12]MH_SAM_APDU [14:47:12]CAPDU: 80 13 01 00 [14:47:12]Write to MH i2c: E2 08 00 D2 0E 80 13 01 00 00 00 00 00 5D [14:47:12]Write i2c OK [14:47:12]MH_I2C_Read... [14:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:12]Read from MH i2c: E2 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 0E 00 [14:47:12]MH_I2C_Read... [14:47:12]Read from MH i2c: E2 0E 00 D2 0E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A7 [14:47:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:47:12]wFMCommunicate OK [14:47:12]SAM_PROTO_GetShiftState done [14:47:12]FM_GetShiftState done [14:47:12]opened in 1718760753 [14:47:12]opened+sec_in_day 1718847153 [14:47:12]quantity*price = 20052 [14:47:12]sum+1 = 20054 [14:47:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 132 19.06.2024 14:47 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111383 ФПД: 123998283831333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144716&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111383&fm=123998283831333&tin=02508201610067®Number=0000000000092771&sum=20000 [14:47:13]StoreToDocumentArchive [14:47:13]shift 388 fd 111383 [14:47:13]save to /storage/0388/doc_00111383 [14:47:13]save last doc name /storage/0388/doc_00111383 to /storage/kkm_last_doc_name [14:47:13]save OK [14:47:13]Clear old archive folders... [14:47:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:13]tlvbuf is 00EC5700 [14:47:13]SAM_PROTO_ClearQueue [14:47:13]wFMCommunicate request_size=4 [14:47:13]MH_SAM_APDU [14:47:13]CAPDU: 80 09 00 00 [14:47:13]Write to MH i2c: E2 08 00 DF 0E 80 09 00 00 00 00 00 00 5F [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:13]Read from MH i2c: E2 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 03 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 03 00 DF 0E 00 90 00 61 [14:47:13]RAPDU: 90 00 [14:47:13]wFMCommunicate OK [14:47:13]SAM_PROTO_ClearQueue done [14:47:13]KKMCreateOFDPacket [14:47:13]OFDProtocolAddRootSTLVToBuf [14:47:13]FM_MakeSignedData [14:47:13]FM_MakeSignedData [14:47:13]SAM_PROTO_SignData [14:47:13]wFMCommunicate request_size=4 [14:47:13]MH_SAM_APDU [14:47:13]CAPDU: 80 0D 01 02 [14:47:13]Write to MH i2c: E2 08 00 E0 0E 80 0D 01 02 00 00 00 00 67 [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:13]Read from MH i2c: E2 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 03 00 [14:47:13]MH_I2C_Read... [14:47:13]Read from MH i2c: E2 03 00 E0 0E 00 90 00 62 [14:47:13]RAPDU: 90 00 [14:47:13]wFMCommunicate OK [14:47:13]wFMCommunicate request_size=255 [14:47:13]MH_SAM_APDU [14:47: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 74 EF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B3 01 00 35 04 06 00 70 [14:47:13]Write to MH i2c: E2 02 01 E1 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 74 EF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B3 01 00 35 04 06 00 70 00 00 59 [14:47:13]Write i2c OK [14:47:13]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 03 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 03 00 E1 0E 00 90 00 63 [14:47:14]RAPDU: 90 00 [14:47:14]wFMCommunicate OK [14:47:14]wFMCommunicate request_size=10 [14:47:14]MH_SAM_APDU [14:47:14]CAPDU: 80 0D 02 02 05 C6 99 A9 18 25 [14:47:14]Write to MH i2c: E2 0D 00 E2 0E 80 0D 02 02 05 00 C6 99 A9 18 25 00 00 B9 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 03 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [14:47:14]RAPDU: 90 00 [14:47:14]wFMCommunicate OK [14:47:14]wFMCommunicate request_size=4 [14:47:14]MH_SAM_APDU [14:47:14]CAPDU: 80 0D 03 02 [14:47:14]Write to MH i2c: E2 08 00 E3 0E 80 0D 03 02 00 00 00 00 6C [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 0B 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 0B 00 E3 0E 00 E2 E9 54 CC 4A 08 55 7A 90 00 79 [14:47:14]RAPDU: E2 E9 54 CC 4A 08 55 7A 90 00 [14:47:14]wFMCommunicate OK [14:47:14]SAM_PROTO_SignData done [14:47:14]FM_MakeSignedData done [14:47:14]CreateOFDProtocolMessage [14:47:14]wFMCommunicate request_size=4 [14:47:14]MH_SAM_APDU [14:47:14]CAPDU: 80 11 00 00 [14:47:14]Write to MH i2c: E2 08 00 E4 0E 80 11 00 00 00 00 00 00 6C [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:14]Read from MH i2c: E2 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 17 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: E2 17 00 E4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BE [14:47:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:47:14]wFMCommunicate OK [14:47:14]CreateOFDProtocolMessage done [14:47:14]OFDSenderStorePacket 111383 [14:47:14]StoreOFDPacket docnum=111383 [14:47:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C4 D7 07 01 2F 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 74 EF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B3 01 00 35 04 06 00 70 C6 99 A9 18 25 E2 E9 54 CC 4A 08 55 7A [14:47:14]CheckFolder [14:47:14]dirname=/storage/ofd_packets [14:47:14]CheckFolder done [14:47:14]ProducePacketName [14:47:14]name=ofd_packets/00111383 [14:47:14]NVStorageSaveData ofd_packets/00111383 [14:47:14]File name is /storage/ofd_packets/00111383 [14:47:14]Write 301 bytes [14:47:14]NVStorageSaveData done [14:47:14]OFDSenderStorePacket done [14:47:14]KKMCreateOFDPacket done [14:47:14]NVStorageSaveData kkm_last_timestamp [14:47:14]File name is /storage/kkm_last_timestamp [14:47:14]Write 4 bytes [14:47:14]NVStorageSaveData done [14:47:14]ExternCall_PrintAddStr [14:47:14]wPrintStart [14:47:14]Write to MH i2c: 01 00 00 E5 0E F3 [14:47:14]Write i2c OK [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 [14:47:14]MH_I2C_Read... [14:47:14]Read from MH i2c: 01 07 00 E5 0E 00 00 00 00 00 FF 0F 08 [14:47:14]RasterBufferAndPrint [14:47:14]line Счет N : (1)319961 [14:47:14]line ИНН: 02508201610067 [14:47:14]line Контрольно-Кассовый Чек [14:47:14]line ПРОДАЖА [14:47:14]line ТРК (МРК, ГНК) : 11 [14:47:14]line Товар: 2710124130 [14:47:14]line Аи-92-К-5 [14:47:14]line 3.020 * 66.40 [14:47:14]line = 200.53 [14:47:14]line НДС 12% НСП 1% [14:47:14]line > о реализуемом товаре [14:47:14]line ОКРУГЛЕНИЕ: -0.53 [14:47:14]line ИТОГО: 200.00 [14:47:14]line Внесено: 200.00 [14:47:14]line СДАЧА: 0.00 [14:47:14]line НСП 1% : 1.77 [14:47:14]line НДС 12% : 21.29 [14:47:14]line Наличными: 200.00 [14:47:14]line Безнал.: 0.00 [14:47:14]line Место: АЗС № 65 "Партнер Нефть" [14:47:14]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:47:14]line СНО: Общий режим [14:47:14]line Чек 132 19.06.2024 14:47 [14:47:14]line Смена: 388 ФФД: 1.0 [14:47:14]line ЗНМ: 0300000198 [14:47:14]line РНМ: 0000000000092771 [14:47:14]line Версия ККМ: 001 [14:47:14]line ФМ: 0000000000875083 [14:47:14]line ФД: 111383 [14:47:14]line ФПД: 123998283831333 [14:47:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144716&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111383&fm=123998283831333&tin=02508201610067®Number=0000000000092771&sum=20000 [14:47:14]OFD Sender: Processing packet 111383 [packets to send 38, broken 37] [14:47:14]ProducePacketName [14:47:14]name=ofd_packets/00111383 [14:47:14]OFD Sender: To server: pG, [14:47:14]CommunicateWithHost lk.salyk.kg:30040 [14:47:14]ConnectInit lk.salyk.kg [14:47:14]written 0, free lines is 4095 [14:47:14]Connected sock=10 [14:47:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C4 D7 07 01 2F 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 74 EF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 17 B3 01 00 35 04 06 00 70 C6 99 A9 18 25 E2 E9 54 CC 4A 08 55 7A [14:47:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6F 1C 47 00 16 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 35 30 38 33 10 04 04 00 17 B3 01 00 F4 03 04 00 DB 86 72 66 B6 04 01 00 00 A1 48 39 B3 BC 17 62 36 [14:47:14]CommunicateWithHost err = 0 [14:47:14]CheckOFDResponse [14:47:14]1017 (14) - 77093643461234 [14:47:14]1041 (16) - 0000000000875083 [14:47:14]1040 (4) - 111383 [14:47:14]1012 (4) - 19.06.2024 07:20 [14:47:14]1206 (1) - 0 [14:47:14]OFD Sender: Remove packet 111383 [14:47:14]ProducePacketName [14:47:14]name=ofd_packets/00111383 [14:47:14]NVStorageDeleteData [14:47:15]Write to MH i2c: 01 00 00 10 0F 1F [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: 01 07 00 10 0F 00 00 00 00 00 CF 0C 01 [14:47:15]RasterBufferAndPrint [14:47:15]line [14:47:15]line [14:47:15]line [14:47:15]line [14:47:15]line [14:47:15]written 0, free lines is 3287 [14:47:15]MH_Cut [14:47:15]Write to MH i2c: D1 01 00 17 0F 01 F8 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D1 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D1 01 00 [14:47:15]MH_I2C_Read... [14:47:15]Read from MH i2c: D1 01 00 17 0F 00 F7 [14:47:15]Write to MH i2c: 01 00 00 18 0F 27 [14:47:15]Write i2c OK [14:47:15]MH_I2C_Read... [14:47:15]OFD Sender: No OFD packet to send [14:47:15]*** Cut start [14:47:15]*** Partial cut [14:47:15]*** CUTSNS_PIN = 1 [14:47:15]*** CUTSNS_PIN = 0 [14:47:16]*** Brake cut motor [14:47:16]Read from MH i2c: 01 [14:47:16]MH_I2C_Read... [14:47:16]*** Stop cut motor [14:47:16]*** Cut end [14:47:16]Read from MH i2c: 01 07 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: 01 07 00 18 0F 00 00 00 00 00 FF 0F 3C [14:47:16]process_action close_receipt done [14:47:16]requested_data is exist [14:47:16]produce_requested_data [14:47:16]requested_item fm.sn is exist - process it [14:47:16]wFMCommunicate request_size=4 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 11 00 00 [14:47:16]Write to MH i2c: E2 08 00 19 0F 80 11 00 00 00 00 00 00 A2 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 17 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 17 00 19 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [14:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:47:16]wFMCommunicate OK [14:47:16]requested_item fd.num is exist - process it [14:47:16]SAM_PROTO_GetFieldsCounters [14:47:16]wFMCommunicate request_size=4 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 13 00 00 [14:47:16]Write to MH i2c: E2 08 00 1A 0F 80 13 00 00 00 00 00 00 A5 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 62 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 62 00 1A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 17 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [14:47: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 17 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:16]wFMCommunicate OK [14:47:16]SAM_PROTO_GetFieldsCounters done [14:47:16]requested_item shift.num is exist - process it [14:47:16]requested_item shift.opened is exist - process it [14:47:16]req_shift_opened [14:47:16]FM_GetShiftState [14:47:16]SAM_PROTO_GetShiftState [14:47:16]wFMCommunicate request_size=4 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 13 01 00 [14:47:16]Write to MH i2c: E2 08 00 1B 0F 80 13 01 00 00 00 00 00 A7 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:16]Read from MH i2c: E2 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 0E 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: E2 0E 00 1B 0F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F1 [14:47:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:47:16]wFMCommunicate OK [14:47:16]SAM_PROTO_GetShiftState done [14:47:16]FM_GetShiftState done [14:47:16]req_shift_opened done [14:47:16]requested_item shift.open_date is exist - process it [14:47:16]req_shift_open_date [14:47:16]req_shift_open_date done [14:47:16]produce_requested_data done [14:47:16]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111383,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:47:16]process_action_free close_receipt [14:47:16]json_value_free [14:47:16]json_value_free done [14:47:16]process_json_proto returns [14:47:16]Send response to host [14:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111383,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:47:16]free response buf [14:47:16]execute_script done [14:47:16]execute_script returns [14:47:16]free content buf [14:47:16]Sock 7.Close socket [14:47:16]Sock 7.Thread stoped [14:47:16]accept exits with 9 [14:47:16]New connection [14:47:16]New thread 3067321700 created [14:47:16]Thread 3067465060 joined [14:47:16]Waiting for new connection... [14:47:16] Sock 9.Parse request [14:47:16]Sock 9.Check first char [14:47:16]Sock 9.First char is OK [14:47:16]request: POST /json_proto HTTP/1.0 [14:47:16]Method: POST [14:47:16]URL: /json_proto [14:47:16]Method is POST - this is cgi request [14:47:16]url: /json_proto [14:47:16]query_string will be loaded in cgi processing [14:47:16]execute_cgi json_proto POST (null) [14:47:16]execute_cgi path=json_proto method=POST [14:47:16]POST find Content-Length [14:47:16]Host: 172.17.59.68:8080 [14:47:16]Content-Length: 679 [14:47:16]Content-Type: application/json [14:47:16] [14:47:16]POST finish read [14:47:16]Found Content-Length = 679 [14:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:16]execute_script... [14:47: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)319960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 48.020, "sum" : 3500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:16]POST & json_proto [14:47:16]process_json_proto [14:47:16]json parsed OK: [14:47:16]protocol is kg_v1.0 [14:47:16]action value=close_receipt [14:47:16]process_action close_receipt [14:47:16]cmd_close_receipt [14:47:16]MH_GetDate [14:47:16]Write to MH i2c: F0 00 00 1C 0F 1A [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 09 00 [14:47:16]MH_I2C_Read... [14:47:16]Read from MH i2c: F0 09 00 1C 0F 00 78 EF 72 66 BC EC 60 65 CF [14:47:16]GetLastDocTimeStamp 1718808436 [14:47:16]current date 1718808440 [14:47:16]FM_GetShiftState [14:47:16]SAM_PROTO_GetShiftState [14:47:16]wFMCommunicate request_size=4 [14:47:16]MH_SAM_APDU [14:47:16]CAPDU: 80 13 01 00 [14:47:16]Write to MH i2c: E2 08 00 1D 0F 80 13 01 00 00 00 00 00 A9 [14:47:16]Write i2c OK [14:47:16]MH_I2C_Read... [14:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:17]Read from MH i2c: E2 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: E2 0E 00 [14:47:17]MH_I2C_Read... [14:47:17]Read from MH i2c: E2 0E 00 1D 0F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F3 [14:47:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:47:17]wFMCommunicate OK [14:47:17]SAM_PROTO_GetShiftState done [14:47:17]FM_GetShiftState done [14:47:17]opened in 1718760753 [14:47:17]opened+sec_in_day 1718847153 [14:47:17]quantity*price = 350065 [14:47:17]sum+1 = 350067 [14:47:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 133 19.06.2024 14:47 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111384 ФПД: 36947207556672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144720&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111384&fm=36947207556672&tin=02508201610067®Number=0000000000092771&sum=350000 [14:47:18]StoreToDocumentArchive [14:47:18]shift 388 fd 111384 [14:47:18]save to /storage/0388/doc_00111384 [14:47:18]save last doc name /storage/0388/doc_00111384 to /storage/kkm_last_doc_name [14:47:18]save OK [14:47:18]Clear old archive folders... [14:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:47:18]tlvbuf is 00F48E20 [14:47:18]SAM_PROTO_ClearQueue [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 09 00 00 [14:47:18]Write to MH i2c: E2 08 00 2A 0F 80 09 00 00 00 00 00 00 AB [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 2A 0F 00 90 00 AD [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]SAM_PROTO_ClearQueue done [14:47:18]KKMCreateOFDPacket [14:47:18]OFDProtocolAddRootSTLVToBuf [14:47:18]FM_MakeSignedData [14:47:18]FM_MakeSignedData [14:47:18]SAM_PROTO_SignData [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 01 02 [14:47:18]Write to MH i2c: E2 08 00 2B 0F 80 0D 01 02 00 00 00 00 B3 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 2B 0F 00 90 00 AE [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=255 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 78 EF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B3 01 00 35 04 06 00 21 9A 71 2E [14:47:18]Write to MH i2c: E2 02 01 2C 0F 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 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 78 EF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B3 01 00 35 04 06 00 21 9A 71 2E 00 00 38 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 2C 0F 00 90 00 AF [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=7 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 02 02 02 8E 40 [14:47:18]Write to MH i2c: E2 0A 00 2D 0F 80 0D 02 02 02 00 8E 40 00 00 88 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [14:47:18]RAPDU: 90 00 [14:47:18]wFMCommunicate OK [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 0D 03 02 [14:47:18]Write to MH i2c: E2 08 00 2E 0F 80 0D 03 02 00 00 00 00 B8 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:18]Read from MH i2c: E2 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 0B 00 [14:47:18]MH_I2C_Read... [14:47:18]Read from MH i2c: E2 0B 00 2E 0F 00 8A D4 C2 5B 94 4E B1 66 90 00 2D [14:47:18]RAPDU: 8A D4 C2 5B 94 4E B1 66 90 00 [14:47:18]wFMCommunicate OK [14:47:18]SAM_PROTO_SignData done [14:47:18]FM_MakeSignedData done [14:47:18]CreateOFDProtocolMessage [14:47:18]wFMCommunicate request_size=4 [14:47:18]MH_SAM_APDU [14:47:18]CAPDU: 80 11 00 00 [14:47:18]Write to MH i2c: E2 08 00 2F 0F 80 11 00 00 00 00 00 00 B8 [14:47:18]Write i2c OK [14:47:18]MH_I2C_Read... [14:47:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:19]Read from MH i2c: E2 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 17 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: E2 17 00 2F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0A [14:47:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:47:19]wFMCommunicate OK [14:47:19]CreateOFDProtocolMessage done [14:47:19]OFDSenderStorePacket 111384 [14:47:19]StoreOFDPacket docnum=111384 [14:47:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D7 02 04 01 CF FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 78 EF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B3 01 00 35 04 06 00 21 9A 71 2E 8E 40 8A D4 C2 5B 94 4E B1 66 [14:47:19]CheckFolder [14:47:19]dirname=/storage/ofd_packets [14:47:19]CheckFolder done [14:47:19]ProducePacketName [14:47:19]name=ofd_packets/00111384 [14:47:19]NVStorageSaveData ofd_packets/00111384 [14:47:19]File name is /storage/ofd_packets/00111384 [14:47:19]Write 298 bytes [14:47:19]NVStorageSaveData done [14:47:19]OFDSenderStorePacket done [14:47:19]KKMCreateOFDPacket done [14:47:19]NVStorageSaveData kkm_last_timestamp [14:47:19]File name is /storage/kkm_last_timestamp [14:47:19]Write 4 bytes [14:47:19]NVStorageSaveData done [14:47:19]ExternCall_PrintAddStr [14:47:19]wPrintStart [14:47:19]Write to MH i2c: 01 00 00 30 0F 3F [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 30 0F 00 00 00 00 00 FF 0F 54 [14:47:19]RasterBufferAndPrint [14:47:19]line Счет N : (1)319960 [14:47:19]line ИНН: 02508201610067 [14:47:19]line Контрольно-Кассовый Чек [14:47:19]line ПРОДАЖА [14:47:19]line ТРК (МРК, ГНК) : 22 [14:47:19]line Товар: 2710194210 [14:47:19]line ДТ-К-5 [14:47:19]line 48.020 * 72.90 [14:47:19]line = 3500.66 [14:47:19]line НДС 12% НСП 1% [14:47:19]line > о реализуемом товаре [14:47:19]line ОКРУГЛЕНИЕ: -0.66 [14:47:19]line ИТОГО: 3500.00 [14:47:19]line Внесено: 3500.00 [14:47:19]line СДАЧА: 0.00 [14:47:19]line НСП 1% : 30.98 [14:47:19]line НДС 12% : 371.75 [14:47:19]line Наличными: 3500.00 [14:47:19]line Безнал.: 0.00 [14:47:19]line Место: АЗС № 65 "Партнер Нефть" [14:47:19]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:47:19]line СНО: Общий режим [14:47:19]line Чек 133 19.06.2024 14:47 [14:47:19]line Смена: 388 ФФД: 1.0 [14:47:19]line ЗНМ: 0300000198 [14:47:19]line РНМ: 0000000000092771 [14:47:19]line Версия ККМ: 001 [14:47:19]line ФМ: 0000000000875083 [14:47:19]line ФД: 111384 [14:47:19]line ФПД: 36947207556672 [14:47:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144720&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111384&fm=36947207556672&tin=02508201610067®Number=0000000000092771&sum=350000 [14:47:19]OFD Sender: Processing packet 111384 [packets to send 38, broken 37] [14:47:19]ProducePacketName [14:47:19]name=ofd_packets/00111384 [14:47:19]OFD Sender: To server: pG, [14:47:19]CommunicateWithHost lk.salyk.kg:30040 [14:47:19]ConnectInit lk.salyk.kg [14:47:19]written 0, free lines is 4095 [14:47:19]Connected sock=10 [14:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D7 02 04 01 CF FF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 BB 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 72 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 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 78 EF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 18 B3 01 00 35 04 06 00 21 9A 71 2E 8E 40 8A D4 C2 5B 94 4E B1 66 [14:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 85 28 47 00 1D 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 35 30 38 33 10 04 04 00 18 B3 01 00 F4 03 04 00 DF 86 72 66 B6 04 01 00 00 FC B8 EA 92 E8 DE AD F9 [14:47:19]CommunicateWithHost err = 0 [14:47:19]CheckOFDResponse [14:47:19]1017 (14) - 77093643461234 [14:47:19]1041 (16) - 0000000000875083 [14:47:19]1040 (4) - 111384 [14:47:19]1012 (4) - 19.06.2024 07:21 [14:47:19]1206 (1) - 0 [14:47:19]OFD Sender: Remove packet 111384 [14:47:19]ProducePacketName [14:47:19]name=ofd_packets/00111384 [14:47:19]NVStorageDeleteData [14:47:19]Write to MH i2c: 01 00 00 5B 0F 6A [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 E8 0C 65 [14:47:19]RasterBufferAndPrint [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]line [14:47:19]written 0, free lines is 3316 [14:47:19]MH_Cut [14:47:19]Write to MH i2c: D1 01 00 62 0F 01 43 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D1 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D1 01 00 [14:47:19]MH_I2C_Read... [14:47:19]Read from MH i2c: D1 01 00 62 0F 00 42 [14:47:19]Write to MH i2c: 01 00 00 63 0F 72 [14:47:19]Write i2c OK [14:47:19]MH_I2C_Read... [14:47:20]OFD Sender: No OFD packet to send [14:47:20]*** Cut start [14:47:20]*** Partial cut [14:47:20]*** CUTSNS_PIN = 1 [14:47:20]*** CUTSNS_PIN = 0 [14:47:20]*** Brake cut motor [14:47:21]Read from MH i2c: 01 [14:47:21]MH_I2C_Read... [14:47:21]*** Stop cut motor [14:47:21]*** Cut end [14:47:21]Read from MH i2c: 01 07 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: 01 07 00 63 0F 00 00 00 00 00 FF 0F 87 [14:47:21]process_action close_receipt done [14:47:21]requested_data is exist [14:47:21]produce_requested_data [14:47:21]requested_item fm.sn is exist - process it [14:47:21]wFMCommunicate request_size=4 [14:47:21]MH_SAM_APDU [14:47:21]CAPDU: 80 11 00 00 [14:47:21]Write to MH i2c: E2 08 00 64 0F 80 11 00 00 00 00 00 00 ED [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:21]Read from MH i2c: E2 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 17 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 17 00 64 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3F [14:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:47:21]wFMCommunicate OK [14:47:21]requested_item fd.num is exist - process it [14:47:21]SAM_PROTO_GetFieldsCounters [14:47:21]wFMCommunicate request_size=4 [14:47:21]MH_SAM_APDU [14:47:21]CAPDU: 80 13 00 00 [14:47:21]Write to MH i2c: E2 08 00 65 0F 80 13 00 00 00 00 00 00 F0 [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:21]Read from MH i2c: E2 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 62 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 62 00 65 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 18 B3 01 00 0E 04 04 00 84 01 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 F1 [14:47: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 18 B3 01 00 0E 04 04 00 84 01 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 [14:47:21]wFMCommunicate OK [14:47:21]SAM_PROTO_GetFieldsCounters done [14:47:21]requested_item shift.num is exist - process it [14:47:21]requested_item shift.opened is exist - process it [14:47:21]req_shift_opened [14:47:21]FM_GetShiftState [14:47:21]SAM_PROTO_GetShiftState [14:47:21]wFMCommunicate request_size=4 [14:47:21]MH_SAM_APDU [14:47:21]CAPDU: 80 13 01 00 [14:47:21]Write to MH i2c: E2 08 00 66 0F 80 13 01 00 00 00 00 00 F2 [14:47:21]Write i2c OK [14:47:21]MH_I2C_Read... [14:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:21]Read from MH i2c: E2 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 0E 00 [14:47:21]MH_I2C_Read... [14:47:21]Read from MH i2c: E2 0E 00 66 0F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3C [14:47:21]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:47:21]wFMCommunicate OK [14:47:21]SAM_PROTO_GetShiftState done [14:47:21]FM_GetShiftState done [14:47:21]req_shift_opened done [14:47:21]requested_item shift.open_date is exist - process it [14:47:21]req_shift_open_date [14:47:21]req_shift_open_date done [14:47:21]produce_requested_data done [14:47:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111384,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:47:21]process_action_free close_receipt [14:47:21]json_value_free [14:47:21]json_value_free done [14:47:21]process_json_proto returns [14:47:21]Send response to host [14:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111384,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:47:21]free response buf [14:47:21]execute_script done [14:47:21]execute_script returns [14:47:21]free content buf [14:47:21]Sock 9.Close socket [14:47:21]Sock 9.Thread stoped [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:44]accept exits with 7 [14:49:44]New connection [14:49:44]New thread 3067465060 created [14:49:44]Thread 3067321700 joined [14:49:44]Waiting for new connection... [14:49:44] Sock 7.Parse request [14:49:44]Sock 7.Check first char [14:49:44]Sock 7.First char is OK [14:49:44]request: POST /json_proto HTTP/1.0 [14:49:44]Method: POST [14:49:44]URL: /json_proto [14:49:44]Method is POST - this is cgi request [14:49:44]url: /json_proto [14:49:44]query_string will be loaded in cgi processing [14:49:44]execute_cgi json_proto POST (null) [14:49:44]execute_cgi path=json_proto method=POST [14:49:44]POST find Content-Length [14:49:44]Host: 172.17.59.68:8080 [14:49:44]Content-Length: 682 [14:49:44]Content-Type: application/json [14:49:44] [14:49:44]POST finish read [14:49:44]Found Content-Length = 682 [14:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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:49:44]execute_script... [14:49: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)319963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 20.300, "sum" : 1500.17, "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:49:44]POST & json_proto [14:49:44]process_json_proto [14:49:44]json parsed OK: [14:49:44]protocol is kg_v1.0 [14:49:44]action value=close_receipt [14:49:44]process_action close_receipt [14:49:44]cmd_close_receipt [14:49:44]MH_GetDate [14:49:44]Write to MH i2c: F0 00 00 67 0F 65 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: F0 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: F0 09 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: F0 09 00 67 0F 00 0B F0 72 66 BC EC 60 65 AE [14:49:44]GetLastDocTimeStamp 1718808440 [14:49:44]current date 1718808587 [14:49:44]FM_GetShiftState [14:49:44]SAM_PROTO_GetShiftState [14:49:44]wFMCommunicate request_size=4 [14:49:44]MH_SAM_APDU [14:49:44]CAPDU: 80 13 01 00 [14:49:44]Write to MH i2c: E2 08 00 68 0F 80 13 01 00 00 00 00 00 F4 [14:49:44]Write i2c OK [14:49:44]MH_I2C_Read... [14:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:44]Read from MH i2c: E2 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0E 00 [14:49:44]MH_I2C_Read... [14:49:44]Read from MH i2c: E2 0E 00 68 0F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3E [14:49:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:49:44]wFMCommunicate OK [14:49:44]SAM_PROTO_GetShiftState done [14:49:44]FM_GetShiftState done [14:49:44]opened in 1718760753 [14:49:44]opened+sec_in_day 1718847153 [14:49:44]quantity*price = 150017 [14:49:44]sum+1 = 150018 [14:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 134 19.06.2024 14:49 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111385 ФПД: 89564610394321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144948&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111385&fm=89564610394321&tin=02508201610067®Number=0000000000092771&sum=150000 [14:49:45]StoreToDocumentArchive [14:49:45]shift 388 fd 111385 [14:49:45]save to /storage/0388/doc_00111385 [14:49:45]save last doc name /storage/0388/doc_00111385 to /storage/kkm_last_doc_name [14:49:45]save OK [14:49:45]Clear old archive folders... [14:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:45]tlvbuf is 00F1A9D0 [14:49:45]SAM_PROTO_ClearQueue [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 09 00 00 [14:49:45]Write to MH i2c: E2 08 00 75 0F 80 09 00 00 00 00 00 00 F6 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 75 0F 00 90 00 F8 [14:49:45]RAPDU: 90 00 [14:49:45]wFMCommunicate OK [14:49:45]SAM_PROTO_ClearQueue done [14:49:45]KKMCreateOFDPacket [14:49:45]OFDProtocolAddRootSTLVToBuf [14:49:45]FM_MakeSignedData [14:49:45]FM_MakeSignedData [14:49:45]SAM_PROTO_SignData [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 0D 01 02 [14:49:45]Write to MH i2c: E2 08 00 76 0F 80 0D 01 02 00 00 00 00 FE [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]OFD Sender: No OFD packet to send [14:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 76 0F 00 90 00 F9 [14:49:45]RAPDU: 90 00 [14:49:45]wFMCommunicate OK [14:49:45]wFMCommunicate request_size=255 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 0C F0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B3 01 00 35 04 06 00 51 [14:49:45]Write to MH i2c: E2 02 01 77 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 0C F0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B3 01 00 35 04 06 00 51 00 00 0F [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 77 0F 00 90 00 FA [14:49:45]RAPDU: 90 00 [14:49:45]wFMCommunicate OK [14:49:45]wFMCommunicate request_size=10 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 0D 02 02 05 75 62 C9 78 D1 [14:49:45]Write to MH i2c: E2 0D 00 78 0F 80 0D 02 02 05 00 75 62 C9 78 D1 00 00 F4 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 03 00 78 0F 00 90 00 FB [14:49:45]RAPDU: 90 00 [14:49:45]wFMCommunicate OK [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 0D 03 02 [14:49:45]Write to MH i2c: E2 08 00 79 0F 80 0D 03 02 00 00 00 00 03 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 0B 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 0B 00 79 0F 00 64 C0 2D 0F 8D 77 09 C1 90 00 32 [14:49:45]RAPDU: 64 C0 2D 0F 8D 77 09 C1 90 00 [14:49:45]wFMCommunicate OK [14:49:45]SAM_PROTO_SignData done [14:49:45]FM_MakeSignedData done [14:49:45]CreateOFDProtocolMessage [14:49:45]wFMCommunicate request_size=4 [14:49:45]MH_SAM_APDU [14:49:45]CAPDU: 80 11 00 00 [14:49:45]Write to MH i2c: E2 08 00 7A 0F 80 11 00 00 00 00 00 00 03 [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:45]Read from MH i2c: E2 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 17 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: E2 17 00 7A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 55 [14:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:49:45]wFMCommunicate OK [14:49:45]CreateOFDProtocolMessage done [14:49:45]OFDSenderStorePacket 111385 [14:49:45]StoreOFDPacket docnum=111385 [14:49:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 62 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 0C F0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B3 01 00 35 04 06 00 51 75 62 C9 78 D1 64 C0 2D 0F 8D 77 09 C1 [14:49:45]CheckFolder [14:49:45]dirname=/storage/ofd_packets [14:49:45]CheckFolder done [14:49:45]ProducePacketName [14:49:45]name=ofd_packets/00111385 [14:49:45]NVStorageSaveData ofd_packets/00111385 [14:49:45]File name is /storage/ofd_packets/00111385 [14:49:45]Write 301 bytes [14:49:45]NVStorageSaveData done [14:49:45]OFDSenderStorePacket done [14:49:45]KKMCreateOFDPacket done [14:49:45]NVStorageSaveData kkm_last_timestamp [14:49:45]File name is /storage/kkm_last_timestamp [14:49:45]Write 4 bytes [14:49:45]NVStorageSaveData done [14:49:45]ExternCall_PrintAddStr [14:49:45]wPrintStart [14:49:45]Write to MH i2c: 01 00 00 7B 0F 8A [14:49:45]Write i2c OK [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 07 00 [14:49:45]MH_I2C_Read... [14:49:45]Read from MH i2c: 01 07 00 7B 0F 00 00 00 00 00 FF 0F 9F [14:49:45]RasterBufferAndPrint [14:49:45]line Счет N : (1)319963 [14:49:45]line ИНН: 02508201610067 [14:49:45]line Контрольно-Кассовый Чек [14:49:45]line ПРОДАЖА [14:49:45]line ТРК (МРК, ГНК) : 12 [14:49:45]line Товар: 2710124500 [14:49:45]line Аи-95-К-5 [14:49:45]line 20.300 * 73.90 [14:49:45]line = 1500.17 [14:49:45]line НДС 12% НСП 1% [14:49:45]line > о реализуемом товаре [14:49:45]line ОКРУГЛЕНИЕ: -0.17 [14:49:45]line ИТОГО: 1500.00 [14:49:45]line Внесено: 1500.00 [14:49:45]line СДАЧА: 0.00 [14:49:45]line НСП 1% : 13.28 [14:49:45]line НДС 12% : 159.31 [14:49:45]line Наличными: 1500.00 [14:49:45]line Безнал.: 0.00 [14:49:45]line Место: АЗС № 65 "Партнер Нефть" [14:49:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:49:45]line СНО: Общий режим [14:49:45]line Чек 134 19.06.2024 14:49 [14:49:45]line Смена: 388 ФФД: 1.0 [14:49:45]line ЗНМ: 0300000198 [14:49:45]line РНМ: 0000000000092771 [14:49:45]line Версия ККМ: 001 [14:49:45]line ФМ: 0000000000875083 [14:49:45]line ФД: 111385 [14:49:45]line ФПД: 89564610394321 [14:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T144948&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111385&fm=89564610394321&tin=02508201610067®Number=0000000000092771&sum=150000 [14:49:46]OFD Sender: Processing packet 111385 [packets to send 38, broken 37] [14:49:46]ProducePacketName [14:49:46]name=ofd_packets/00111385 [14:49:46]OFD Sender: To server: pG, [14:49:46]CommunicateWithHost lk.salyk.kg:30040 [14:49:46]ConnectInit lk.salyk.kg [14:49:46]written 0, free lines is 4095 [14:49:46]Connected sock=10 [14:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 62 F3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C 4F 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 01 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 3B 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 0C F0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 19 B3 01 00 35 04 06 00 51 75 62 C9 78 D1 64 C0 2D 0F 8D 77 09 C1 [14:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EF D4 47 00 BE 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 35 30 38 33 10 04 04 00 19 B3 01 00 F4 03 04 00 72 87 72 66 B6 04 01 00 00 15 CF 6C AF 50 EB CE 6D [14:49:46]CommunicateWithHost err = 0 [14:49:46]CheckOFDResponse [14:49:46]1017 (14) - 77093643461234 [14:49:46]1041 (16) - 0000000000875083 [14:49:46]1040 (4) - 111385 [14:49:46]1012 (4) - 19.06.2024 07:23 [14:49:46]1206 (1) - 0 [14:49:46]OFD Sender: Remove packet 111385 [14:49:46]ProducePacketName [14:49:46]name=ofd_packets/00111385 [14:49:46]NVStorageDeleteData [14:49:46]Write to MH i2c: 01 00 00 A6 0F B5 [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 07 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: 01 07 00 A6 0F 00 00 00 00 00 CE 0C 96 [14:49:46]RasterBufferAndPrint [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]line [14:49:46]written 0, free lines is 3286 [14:49:46]MH_Cut [14:49:46]Write to MH i2c: D1 01 00 AD 0F 01 8E [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 01 00 [14:49:46]MH_I2C_Read... [14:49:46]Read from MH i2c: D1 01 00 AD 0F 00 8D [14:49:46]Write to MH i2c: 01 00 00 AE 0F BD [14:49:46]Write i2c OK [14:49:46]MH_I2C_Read... [14:49:47]OFD Sender: No OFD packet to send [14:49:47]*** Cut start [14:49:47]*** Partial cut [14:49:47]*** CUTSNS_PIN = 1 [14:49:47]*** CUTSNS_PIN = 0 [14:49:47]*** Brake cut motor [14:49:47]Read from MH i2c: 01 [14:49:47]MH_I2C_Read... [14:49:47]*** Stop cut motor [14:49:47]*** Cut end [14:49:47]Read from MH i2c: 01 07 00 [14:49:47]MH_I2C_Read... [14:49:47]Read from MH i2c: 01 07 00 AE 0F 00 00 00 00 00 FF 0F D2 [14:49:47]process_action close_receipt done [14:49:47]requested_data is exist [14:49:47]produce_requested_data [14:49:47]requested_item fm.sn is exist - process it [14:49:47]wFMCommunicate request_size=4 [14:49:47]MH_SAM_APDU [14:49:47]CAPDU: 80 11 00 00 [14:49:47]Write to MH i2c: E2 08 00 AF 0F 80 11 00 00 00 00 00 00 38 [14:49:47]Write i2c OK [14:49:47]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 17 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 17 00 AF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8A [14:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:49:48]wFMCommunicate OK [14:49:48]requested_item fd.num is exist - process it [14:49:48]SAM_PROTO_GetFieldsCounters [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 13 00 00 [14:49:48]Write to MH i2c: E2 08 00 B0 0F 80 13 00 00 00 00 00 00 3B [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 62 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 62 00 B0 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 19 B3 01 00 0E 04 04 00 84 01 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 40 [14:49: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 19 B3 01 00 0E 04 04 00 84 01 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 [14:49:48]wFMCommunicate OK [14:49:48]SAM_PROTO_GetFieldsCounters done [14:49:48]requested_item shift.num is exist - process it [14:49:48]requested_item shift.opened is exist - process it [14:49:48]req_shift_opened [14:49:48]FM_GetShiftState [14:49:48]SAM_PROTO_GetShiftState [14:49:48]wFMCommunicate request_size=4 [14:49:48]MH_SAM_APDU [14:49:48]CAPDU: 80 13 01 00 [14:49:48]Write to MH i2c: E2 08 00 B1 0F 80 13 01 00 00 00 00 00 3D [14:49:48]Write i2c OK [14:49:48]MH_I2C_Read... [14:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:48]Read from MH i2c: E2 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 0E 00 [14:49:48]MH_I2C_Read... [14:49:48]Read from MH i2c: E2 0E 00 B1 0F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 87 [14:49:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:49:48]wFMCommunicate OK [14:49:48]SAM_PROTO_GetShiftState done [14:49:48]FM_GetShiftState done [14:49:48]req_shift_opened done [14:49:48]requested_item shift.open_date is exist - process it [14:49:48]req_shift_open_date [14:49:48]req_shift_open_date done [14:49:48]produce_requested_data done [14:49:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111385,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:49:48]process_action_free close_receipt [14:49:48]json_value_free [14:49:48]json_value_free done [14:49:48]process_json_proto returns [14:49:48]Send response to host [14:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111385,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:49:48]free response buf [14:49:48]execute_script done [14:49:48]execute_script returns [14:49:48]free content buf [14:49:48]Sock 7.Close socket [14:49:48]Sock 7.Thread stoped [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:04]accept exits with 9 [14:52:04]New connection [14:52:04]New thread 3067321700 created [14:52:04]Thread 3067465060 joined [14:52:04]Waiting for new connection... [14:52:04] Sock 9.Parse request [14:52:04]Sock 9.Check first char [14:52:04]Sock 9.First char is OK [14:52:04]request: POST /json_proto HTTP/1.0 [14:52:04]Method: POST [14:52:04]URL: /json_proto [14:52:04]Method is POST - this is cgi request [14:52:04]url: /json_proto [14:52:04]query_string will be loaded in cgi processing [14:52:04]execute_cgi json_proto POST (null) [14:52:04]execute_cgi path=json_proto method=POST [14:52:04]POST find Content-Length [14:52:04]Host: 172.17.59.68:8080 [14:52:04]Content-Length: 678 [14:52:04]Content-Type: application/json [14:52:04] [14:52:04]POST finish read [14:52:04]Found Content-Length = 678 [14:52:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:52:04]execute_script... [14:52: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)319964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:52:04]POST & json_proto [14:52:04]process_json_proto [14:52:04]json parsed OK: [14:52:04]protocol is kg_v1.0 [14:52:04]action value=close_receipt [14:52:04]process_action close_receipt [14:52:04]cmd_close_receipt [14:52:04]MH_GetDate [14:52:04]Write to MH i2c: F0 00 00 B2 0F B0 [14:52:04]Write i2c OK [14:52:04]MH_I2C_Read... [14:52:04]Read from MH i2c: F0 [14:52:04]MH_I2C_Read... [14:52:04]Read from MH i2c: F0 09 00 [14:52:04]MH_I2C_Read... [14:52:04]Read from MH i2c: F0 09 00 B2 0F 00 98 F0 72 66 BC EC 60 65 86 [14:52:04]GetLastDocTimeStamp 1718808588 [14:52:04]current date 1718808728 [14:52:04]FM_GetShiftState [14:52:04]SAM_PROTO_GetShiftState [14:52:04]wFMCommunicate request_size=4 [14:52:04]MH_SAM_APDU [14:52:04]CAPDU: 80 13 01 00 [14:52:04]Write to MH i2c: E2 08 00 B3 0F 80 13 01 00 00 00 00 00 3F [14:52:04]Write i2c OK [14:52:04]MH_I2C_Read... [14:52:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:04]Read from MH i2c: E2 [14:52:04]MH_I2C_Read... [14:52:04]Read from MH i2c: E2 0E 00 [14:52:04]MH_I2C_Read... [14:52:04]Read from MH i2c: E2 0E 00 B3 0F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 89 [14:52:04]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:52:04]wFMCommunicate OK [14:52:04]SAM_PROTO_GetShiftState done [14:52:04]FM_GetShiftState done [14:52:04]opened in 1718760753 [14:52:04]opened+sec_in_day 1718847153 [14:52:04]quantity*price = 70052 [14:52:04]sum+1 = 70053 [14:52:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 135 19.06.2024 14:52 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111386 ФПД: 210482711328733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145208&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111386&fm=210482711328733&tin=02508201610067®Number=0000000000092771&sum=70000 [14:52:05]StoreToDocumentArchive [14:52:05]shift 388 fd 111386 [14:52:05]save to /storage/0388/doc_00111386 [14:52:05]save last doc name /storage/0388/doc_00111386 to /storage/kkm_last_doc_name [14:52:05]save OK [14:52:05]Clear old archive folders... [14:52:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:05]tlvbuf is 00EDA640 [14:52:05]SAM_PROTO_ClearQueue [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 09 00 00 [14:52:05]Write to MH i2c: E2 08 00 C0 0F 80 09 00 00 00 00 00 00 41 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 C0 0F 00 90 00 43 [14:52:05]RAPDU: 90 00 [14:52:05]wFMCommunicate OK [14:52:05]SAM_PROTO_ClearQueue done [14:52:05]KKMCreateOFDPacket [14:52:05]OFDProtocolAddRootSTLVToBuf [14:52:05]FM_MakeSignedData [14:52:05]FM_MakeSignedData [14:52:05]SAM_PROTO_SignData [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 0D 01 02 [14:52:05]Write to MH i2c: E2 08 00 C1 0F 80 0D 01 02 00 00 00 00 49 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 C1 0F 00 90 00 44 [14:52:05]RAPDU: 90 00 [14:52:05]wFMCommunicate OK [14:52:05]wFMCommunicate request_size=255 [14:52:05]MH_SAM_APDU [14:52: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 87 00 00 00 F4 03 04 00 98 F0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B3 01 00 35 04 06 00 BF [14:52:05]Write to MH i2c: E2 02 01 C2 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 87 00 00 00 F4 03 04 00 98 F0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B3 01 00 35 04 06 00 BF 00 00 08 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 C2 0F 00 90 00 45 [14:52:05]RAPDU: 90 00 [14:52:05]wFMCommunicate OK [14:52:05]wFMCommunicate request_size=10 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 0D 02 02 05 6E D3 3D 77 DD [14:52:05]Write to MH i2c: E2 0D 00 C3 0F 80 0D 02 02 05 00 6E D3 3D 77 DD 00 00 28 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 03 00 C3 0F 00 90 00 46 [14:52:05]RAPDU: 90 00 [14:52:05]wFMCommunicate OK [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 0D 03 02 [14:52:05]Write to MH i2c: E2 08 00 C4 0F 80 0D 03 02 00 00 00 00 4E [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 0B 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 0B 00 C4 0F 00 5C 98 B5 0D 7B F2 33 43 90 00 E8 [14:52:05]RAPDU: 5C 98 B5 0D 7B F2 33 43 90 00 [14:52:05]wFMCommunicate OK [14:52:05]SAM_PROTO_SignData done [14:52:05]FM_MakeSignedData done [14:52:05]CreateOFDProtocolMessage [14:52:05]wFMCommunicate request_size=4 [14:52:05]MH_SAM_APDU [14:52:05]CAPDU: 80 11 00 00 [14:52:05]Write to MH i2c: E2 08 00 C5 0F 80 11 00 00 00 00 00 00 4E [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:05]Read from MH i2c: E2 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 17 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: E2 17 00 C5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A0 [14:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:52:05]wFMCommunicate OK [14:52:05]CreateOFDProtocolMessage done [14:52:05]OFDSenderStorePacket 111386 [14:52:05]StoreOFDPacket docnum=111386 [14:52:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 7F 07 01 F9 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 87 00 00 00 F4 03 04 00 98 F0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B3 01 00 35 04 06 00 BF 6E D3 3D 77 DD 5C 98 B5 0D 7B F2 33 43 [14:52:05]CheckFolder [14:52:05]dirname=/storage/ofd_packets [14:52:05]CheckFolder done [14:52:05]ProducePacketName [14:52:05]name=ofd_packets/00111386 [14:52:05]NVStorageSaveData ofd_packets/00111386 [14:52:05]File name is /storage/ofd_packets/00111386 [14:52:05]Write 301 bytes [14:52:05]NVStorageSaveData done [14:52:05]OFDSenderStorePacket done [14:52:05]KKMCreateOFDPacket done [14:52:05]NVStorageSaveData kkm_last_timestamp [14:52:05]File name is /storage/kkm_last_timestamp [14:52:05]Write 4 bytes [14:52:05]NVStorageSaveData done [14:52:05]ExternCall_PrintAddStr [14:52:05]wPrintStart [14:52:05]Write to MH i2c: 01 00 00 C6 0F D5 [14:52:05]Write i2c OK [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: 01 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: 01 07 00 [14:52:05]MH_I2C_Read... [14:52:05]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 FF 0F EA [14:52:05]RasterBufferAndPrint [14:52:05]line Счет N : (1)319964 [14:52:05]line ИНН: 02508201610067 [14:52:05]line Контрольно-Кассовый Чек [14:52:05]line ПРОДАЖА [14:52:05]line ТРК (МРК, ГНК) : 11 [14:52:05]line Товар: 2710124130 [14:52:05]line Аи-92-К-5 [14:52:05]line 10.550 * 66.40 [14:52:05]line = 700.52 [14:52:05]line НДС 12% НСП 1% [14:52:05]line > о реализуемом товаре [14:52:05]line ОКРУГЛЕНИЕ: -0.52 [14:52:05]line ИТОГО: 700.00 [14:52:05]line Внесено: 700.00 [14:52:05]line СДАЧА: 0.00 [14:52:05]line НСП 1% : 6.20 [14:52:05]line НДС 12% : 74.39 [14:52:05]line Наличными: 700.00 [14:52:05]line Безнал.: 0.00 [14:52:05]line Место: АЗС № 65 "Партнер Нефть" [14:52:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [14:52:05]line СНО: Общий режим [14:52:05]line Чек 135 19.06.2024 14:52 [14:52:05]line Смена: 388 ФФД: 1.0 [14:52:05]line ЗНМ: 0300000198 [14:52:05]line РНМ: 0000000000092771 [14:52:05]line Версия ККМ: 001 [14:52:05]line ФМ: 0000000000875083 [14:52:05]line ФД: 111386 [14:52:05]line ФПД: 210482711328733 [14:52:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T145208&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111386&fm=210482711328733&tin=02508201610067®Number=0000000000092771&sum=70000 [14:52:06]OFD Sender: Processing packet 111386 [packets to send 38, broken 37] [14:52:06]ProducePacketName [14:52:06]name=ofd_packets/00111386 [14:52:06]OFD Sender: To server: pG, [14:52:06]CommunicateWithHost lk.salyk.kg:30040 [14:52:06]ConnectInit lk.salyk.kg [14:52:06]written 0, free lines is 4095 [14:52:06]Connected sock=10 [14:52:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 7F 07 01 F9 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 87 00 00 00 F4 03 04 00 98 F0 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1A B3 01 00 35 04 06 00 BF 6E D3 3D 77 DD 5C 98 B5 0D 7B F2 33 43 [14:52:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DF F9 47 00 C3 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 35 30 38 33 10 04 04 00 1A B3 01 00 F4 03 04 00 FE 87 72 66 B6 04 01 00 00 CE 1E FD BC 27 35 BF 9F [14:52:06]CommunicateWithHost err = 0 [14:52:06]CheckOFDResponse [14:52:06]1017 (14) - 77093643461234 [14:52:06]1041 (16) - 0000000000875083 [14:52:06]1040 (4) - 111386 [14:52:06]1012 (4) - 19.06.2024 07:25 [14:52:06]1206 (1) - 0 [14:52:06]OFD Sender: Remove packet 111386 [14:52:06]ProducePacketName [14:52:06]name=ofd_packets/00111386 [14:52:06]NVStorageDeleteData [14:52:06]Write to MH i2c: 01 00 00 F1 0F 00 [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: 01 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: 01 07 00 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: 01 07 00 F1 0F 00 00 00 00 00 D4 0C E7 [14:52:06]RasterBufferAndPrint [14:52:06]line [14:52:06]line [14:52:06]line [14:52:06]line [14:52:06]line [14:52:06]written 0, free lines is 3288 [14:52:06]MH_Cut [14:52:06]Write to MH i2c: D1 01 00 F8 0F 01 D9 [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: D1 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: D1 01 00 [14:52:06]MH_I2C_Read... [14:52:06]Read from MH i2c: D1 01 00 F8 0F 00 D8 [14:52:06]Write to MH i2c: 01 00 00 F9 0F 08 [14:52:06]Write i2c OK [14:52:06]MH_I2C_Read... [14:52:07]OFD Sender: No OFD packet to send [14:52:07]*** Cut start [14:52:07]*** Partial cut [14:52:07]*** CUTSNS_PIN = 1 [14:52:07]*** CUTSNS_PIN = 0 [14:52:07]*** Brake cut motor [14:52:07]Read from MH i2c: 01 [14:52:07]MH_I2C_Read... [14:52:08]*** Stop cut motor [14:52:08]*** Cut end [14:52:08]Read from MH i2c: 01 07 00 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: 01 07 00 F9 0F 00 00 00 00 00 FF 0F 1D [14:52:08]process_action close_receipt done [14:52:08]requested_data is exist [14:52:08]produce_requested_data [14:52:08]requested_item fm.sn is exist - process it [14:52:08]wFMCommunicate request_size=4 [14:52:08]MH_SAM_APDU [14:52:08]CAPDU: 80 11 00 00 [14:52:08]Write to MH i2c: E2 08 00 FA 0F 80 11 00 00 00 00 00 00 83 [14:52:08]Write i2c OK [14:52:08]MH_I2C_Read... [14:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:08]Read from MH i2c: E2 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: E2 17 00 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: E2 17 00 FA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [14:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:52:08]wFMCommunicate OK [14:52:08]requested_item fd.num is exist - process it [14:52:08]SAM_PROTO_GetFieldsCounters [14:52:08]wFMCommunicate request_size=4 [14:52:08]MH_SAM_APDU [14:52:08]CAPDU: 80 13 00 00 [14:52:08]Write to MH i2c: E2 08 00 FB 0F 80 13 00 00 00 00 00 00 86 [14:52:08]Write i2c OK [14:52:08]MH_I2C_Read... [14:52:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:08]Read from MH i2c: E2 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: E2 62 00 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: E2 62 00 FB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B3 01 00 0E 04 04 00 84 01 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 8F [14:52: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B3 01 00 0E 04 04 00 84 01 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 [14:52:08]wFMCommunicate OK [14:52:08]SAM_PROTO_GetFieldsCounters done [14:52:08]requested_item shift.num is exist - process it [14:52:08]requested_item shift.opened is exist - process it [14:52:08]req_shift_opened [14:52:08]FM_GetShiftState [14:52:08]SAM_PROTO_GetShiftState [14:52:08]wFMCommunicate request_size=4 [14:52:08]MH_SAM_APDU [14:52:08]CAPDU: 80 13 01 00 [14:52:08]Write to MH i2c: E2 08 00 FC 0F 80 13 01 00 00 00 00 00 88 [14:52:08]Write i2c OK [14:52:08]MH_I2C_Read... [14:52:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:08]Read from MH i2c: E2 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: E2 0E 00 [14:52:08]MH_I2C_Read... [14:52:08]Read from MH i2c: E2 0E 00 FC 0F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D2 [14:52:08]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:52:08]wFMCommunicate OK [14:52:08]SAM_PROTO_GetShiftState done [14:52:08]FM_GetShiftState done [14:52:08]req_shift_opened done [14:52:08]requested_item shift.open_date is exist - process it [14:52:08]req_shift_open_date [14:52:08]req_shift_open_date done [14:52:08]produce_requested_data done [14:52:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111386,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:52:08]process_action_free close_receipt [14:52:08]json_value_free [14:52:08]json_value_free done [14:52:08]process_json_proto returns [14:52:08]Send response to host [14:52:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111386,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:52:08]free response buf [14:52:08]execute_script done [14:52:08]execute_script returns [14:52:08]free content buf [14:52:08]Sock 9.Close socket [14:52:08]Sock 9.Thread stoped [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:00]accept exits with 7 [14:54:00]New connection [14:54:00]New thread 3067465060 created [14:54:00]Thread 3067321700 joined [14:54:00]Waiting for new connection... [14:54:00] Sock 7.Parse request [14:54:00]Sock 7.Check first char [14:54:00]Sock 7.First char is OK [14:54:00]request: POST /json_proto HTTP/1.0 [14:54:00]Method: POST [14:54:00]URL: /json_proto [14:54:00]Method is POST - this is cgi request [14:54:00]url: /json_proto [14:54:00]query_string will be loaded in cgi processing [14:54:00]execute_cgi json_proto POST (null) [14:54:00]execute_cgi path=json_proto method=POST [14:54:00]POST find Content-Length [14:54:00]Host: 172.17.59.68:8080 [14:54:00]Content-Length: 1198 [14:54:00]Content-Type: application/json [14:54:00] [14:54:00]POST finish read [14:54:00]Found Content-Length = 1198 [14:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319965\u000A19.06.2024 13:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:00]execute_script... [14:54:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319965\u000A19.06.2024 13:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:00]POST & json_proto [14:54:00]process_json_proto [14:54:00]json parsed OK: [14:54:00]protocol is kg_v1.0 [14:54:00]action value=print_text [14:54:00]process_action print_text [14:54:00]cmd_print_text [14:54:00]ExternCall_PrintAddStr [14:54:00]wPrintStart [14:54:00]Write to MH i2c: 01 00 00 FD 0F 0C [14:54:00]Write i2c OK [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 07 00 [14:54:00]MH_I2C_Read... [14:54:00]Read from MH i2c: 01 07 00 FD 0F 00 00 00 00 00 FF 0F 21 [14:54:00]RasterBufferAndPrint [14:54:00]line *****ТОВАРНЫЙ ЧЕК***** [14:54:00]line АЗС 65 [14:54:00]line Партнер нефть [14:54:00]line 02508201610067 [14:54:00]line Кассир : Амантуров Р. [14:54:00]line Счет N : (1)319965 [14:54:00]line 19.06.2024 13:22 [14:54:00]line ПРОДАЖА [14:54:00]line ТРК (МРК, ГНК): 22 [14:54:00]line Вид ГСМ : 2710194210 [14:54:00]line ДТ-К-5 [14:54:00]line 40.000 x 72.90 [14:54:00]line ИТОГ: 2916.00 [14:54:00]line Тип оплаты: Талоны: Топливная Карта [14:54:00]line 01591 [14:54:00]line ______________________ [14:54:00]line (подпись) [14:54:00]written 0, free lines is 4095 [14:54:01]Write to MH i2c: 01 00 00 11 10 21 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: 01 07 00 11 10 00 00 00 00 00 0E 0E 44 [14:54:01]RasterBufferAndPrint [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]line [14:54:01]written 0, free lines is 3600 [14:54:01]MH_Cut [14:54:01]Write to MH i2c: D1 01 00 18 10 01 FA [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 01 00 [14:54:01]MH_I2C_Read... [14:54:01]Read from MH i2c: D1 01 00 18 10 00 F9 [14:54:01]Write to MH i2c: 01 00 00 19 10 29 [14:54:01]Write i2c OK [14:54:01]MH_I2C_Read... [14:54:01]*** Cut start [14:54:01]*** Partial cut [14:54:01]*** CUTSNS_PIN = 1 [14:54:01]*** CUTSNS_PIN = 0 [14:54:01]*** Brake cut motor [14:54:02]OFD Sender: No OFD packet to send [14:54:02]Read from MH i2c: 01 [14:54:02]MH_I2C_Read... [14:54:02]*** Stop cut motor [14:54:02]*** Cut end [14:54:02]Read from MH i2c: 01 07 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: 01 07 00 19 10 00 00 00 00 00 FF 0F 3E [14:54:02]process_action print_text done [14:54:02]requested_data is exist [14:54:02]produce_requested_data [14:54:02]requested_item fm.sn is exist - process it [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 11 00 00 [14:54:02]Write to MH i2c: E2 08 00 1A 10 80 11 00 00 00 00 00 00 A4 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 17 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 17 00 1A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [14:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [14:54:02]wFMCommunicate OK [14:54:02]requested_item fd.num is exist - process it [14:54:02]SAM_PROTO_GetFieldsCounters [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 13 00 00 [14:54:02]Write to MH i2c: E2 08 00 1B 10 80 13 00 00 00 00 00 00 A7 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 62 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 62 00 1B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B3 01 00 0E 04 04 00 84 01 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 B0 [14:54: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1A B3 01 00 0E 04 04 00 84 01 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 [14:54:02]wFMCommunicate OK [14:54:02]SAM_PROTO_GetFieldsCounters done [14:54:02]requested_item shift.num is exist - process it [14:54:02]requested_item shift.opened is exist - process it [14:54:02]req_shift_opened [14:54:02]FM_GetShiftState [14:54:02]SAM_PROTO_GetShiftState [14:54:02]wFMCommunicate request_size=4 [14:54:02]MH_SAM_APDU [14:54:02]CAPDU: 80 13 01 00 [14:54:02]Write to MH i2c: E2 08 00 1C 10 80 13 01 00 00 00 00 00 A9 [14:54:02]Write i2c OK [14:54:02]MH_I2C_Read... [14:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:02]Read from MH i2c: E2 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 0E 00 [14:54:02]MH_I2C_Read... [14:54:02]Read from MH i2c: E2 0E 00 1C 10 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F3 [14:54:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [14:54:02]wFMCommunicate OK [14:54:02]SAM_PROTO_GetShiftState done [14:54:02]FM_GetShiftState done [14:54:02]req_shift_opened done [14:54:02]requested_item shift.open_date is exist - process it [14:54:02]req_shift_open_date [14:54:02]req_shift_open_date done [14:54:02]produce_requested_data done [14:54:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111386,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [14:54:02]process_action_free print_text [14:54:02]json_value_free [14:54:02]json_value_free done [14:54:02]process_json_proto returns [14:54:02]Send response to host [14:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111386,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [14:54:02]free response buf [14:54:02]execute_script done [14:54:02]execute_script returns [14:54:02]free content buf [14:54:02]Sock 7.Close socket [14:54:02]Sock 7.Thread stoped [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:27]accept exits with 9 [15:12:27]New connection [15:12:27]New thread 3067321700 created [15:12:27]Thread 3067465060 joined [15:12:27]Waiting for new connection... [15:12:27] Sock 9.Parse request [15:12:27]Sock 9.Check first char [15:12:27]Sock 9.First char is OK [15:12:27]request: POST /json_proto HTTP/1.0 [15:12:27]Method: POST [15:12:27]URL: /json_proto [15:12:27]Method is POST - this is cgi request [15:12:27]url: /json_proto [15:12:27]query_string will be loaded in cgi processing [15:12:27]execute_cgi json_proto POST (null) [15:12:27]execute_cgi path=json_proto method=POST [15:12:27]POST find Content-Length [15:12:27]Host: 172.17.59.68:8080 [15:12:27]Content-Length: 679 [15:12:27]Content-Type: application/json [15:12:27] [15:12:27]POST finish read [15:12:27]Found Content-Length = 679 [15:12:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:27]execute_script... [15:12: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)319966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:27]POST & json_proto [15:12:27]process_json_proto [15:12:27]json parsed OK: [15:12:27]protocol is kg_v1.0 [15:12:27]action value=close_receipt [15:12:27]process_action close_receipt [15:12:27]cmd_close_receipt [15:12:27]MH_GetDate [15:12:27]Write to MH i2c: F0 00 00 1D 10 1C [15:12:27]Write i2c OK [15:12:27]MH_I2C_Read... [15:12:27]Read from MH i2c: F0 [15:12:27]MH_I2C_Read... [15:12:27]Read from MH i2c: F0 09 00 [15:12:27]MH_I2C_Read... [15:12:27]Read from MH i2c: F0 09 00 1D 10 00 5F F5 72 66 BC EC 60 65 BE [15:12:27]GetLastDocTimeStamp 1718808728 [15:12:27]current date 1718809951 [15:12:27]FM_GetShiftState [15:12:27]SAM_PROTO_GetShiftState [15:12:27]wFMCommunicate request_size=4 [15:12:27]MH_SAM_APDU [15:12:27]CAPDU: 80 13 01 00 [15:12:27]Write to MH i2c: E2 08 00 1E 10 80 13 01 00 00 00 00 00 AB [15:12:27]Write i2c OK [15:12:27]MH_I2C_Read... [15:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:27]Read from MH i2c: E2 [15:12:27]MH_I2C_Read... [15:12:27]Read from MH i2c: E2 0E 00 [15:12:27]MH_I2C_Read... [15:12:27]Read from MH i2c: E2 0E 00 1E 10 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F5 [15:12:27]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:12:27]wFMCommunicate OK [15:12:27]SAM_PROTO_GetShiftState done [15:12:27]FM_GetShiftState done [15:12:27]opened in 1718760753 [15:12:27]opened+sec_in_day 1718847153 [15:12:27]quantity*price = 100018 [15:12:27]sum+1 = 100020 [15:12:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 136 19.06.2024 15:12 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111387 ФПД: 9084935113902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T151231&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111387&fm=9084935113902&tin=02508201610067®Number=0000000000092771&sum=100000 [15:12:28]StoreToDocumentArchive [15:12:28]shift 388 fd 111387 [15:12:28]save to /storage/0388/doc_00111387 [15:12:28]save last doc name /storage/0388/doc_00111387 to /storage/kkm_last_doc_name [15:12:28]save OK [15:12:28]Clear old archive folders... [15:12:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:12:28]tlvbuf is 00EDED00 [15:12:28]SAM_PROTO_ClearQueue [15:12:28]wFMCommunicate request_size=4 [15:12:28]MH_SAM_APDU [15:12:28]CAPDU: 80 09 00 00 [15:12:28]Write to MH i2c: E2 08 00 2B 10 80 09 00 00 00 00 00 00 AD [15:12:28]Write i2c OK [15:12:28]MH_I2C_Read... [15:12:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:28]Read from MH i2c: E2 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 03 00 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [15:12:28]RAPDU: 90 00 [15:12:28]wFMCommunicate OK [15:12:28]SAM_PROTO_ClearQueue done [15:12:28]KKMCreateOFDPacket [15:12:28]OFDProtocolAddRootSTLVToBuf [15:12:28]FM_MakeSignedData [15:12:28]FM_MakeSignedData [15:12:28]SAM_PROTO_SignData [15:12:28]wFMCommunicate request_size=4 [15:12:28]MH_SAM_APDU [15:12:28]CAPDU: 80 0D 01 02 [15:12:28]Write to MH i2c: E2 08 00 2C 10 80 0D 01 02 00 00 00 00 B5 [15:12:28]Write i2c OK [15:12:28]MH_I2C_Read... [15:12:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:28]Read from MH i2c: E2 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 03 00 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [15:12:28]RAPDU: 90 00 [15:12:28]wFMCommunicate OK [15:12:28]wFMCommunicate request_size=255 [15:12:28]MH_SAM_APDU [15:12:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 5F F5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B3 01 00 35 04 06 00 08 43 40 54 [15:12:28]Write to MH i2c: E2 02 01 2D 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 5F F5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B3 01 00 35 04 06 00 08 43 40 54 00 00 02 [15:12:28]Write i2c OK [15:12:28]MH_I2C_Read... [15:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:28]Read from MH i2c: E2 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 03 00 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [15:12:28]RAPDU: 90 00 [15:12:28]wFMCommunicate OK [15:12:28]wFMCommunicate request_size=7 [15:12:28]MH_SAM_APDU [15:12:28]CAPDU: 80 0D 02 02 02 8C AE [15:12:28]Write to MH i2c: E2 0A 00 2E 10 80 0D 02 02 02 00 8C AE 00 00 F6 [15:12:28]Write i2c OK [15:12:28]MH_I2C_Read... [15:12:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:28]Read from MH i2c: E2 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 03 00 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [15:12:28]RAPDU: 90 00 [15:12:28]wFMCommunicate OK [15:12:28]wFMCommunicate request_size=4 [15:12:28]MH_SAM_APDU [15:12:28]CAPDU: 80 0D 03 02 [15:12:28]Write to MH i2c: E2 08 00 2F 10 80 0D 03 02 00 00 00 00 BA [15:12:28]Write i2c OK [15:12:28]MH_I2C_Read... [15:12:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:28]Read from MH i2c: E2 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 0B 00 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 0B 00 2F 10 00 D3 01 65 F9 15 98 81 51 90 00 6C [15:12:28]RAPDU: D3 01 65 F9 15 98 81 51 90 00 [15:12:28]wFMCommunicate OK [15:12:28]SAM_PROTO_SignData done [15:12:28]FM_MakeSignedData done [15:12:28]CreateOFDProtocolMessage [15:12:28]wFMCommunicate request_size=4 [15:12:28]MH_SAM_APDU [15:12:28]CAPDU: 80 11 00 00 [15:12:28]Write to MH i2c: E2 08 00 30 10 80 11 00 00 00 00 00 00 BA [15:12:28]Write i2c OK [15:12:28]MH_I2C_Read... [15:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:28]Read from MH i2c: E2 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 17 00 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: E2 17 00 30 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [15:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:12:28]wFMCommunicate OK [15:12:28]CreateOFDProtocolMessage done [15:12:28]OFDSenderStorePacket 111387 [15:12:28]StoreOFDPacket docnum=111387 [15:12:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4F 0C 04 01 47 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 5F F5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B3 01 00 35 04 06 00 08 43 40 54 8C AE D3 01 65 F9 15 98 81 51 [15:12:28]CheckFolder [15:12:28]dirname=/storage/ofd_packets [15:12:28]CheckFolder done [15:12:28]ProducePacketName [15:12:28]name=ofd_packets/00111387 [15:12:28]NVStorageSaveData ofd_packets/00111387 [15:12:28]File name is /storage/ofd_packets/00111387 [15:12:28]Write 298 bytes [15:12:28]NVStorageSaveData done [15:12:28]OFDSenderStorePacket done [15:12:28]KKMCreateOFDPacket done [15:12:28]NVStorageSaveData kkm_last_timestamp [15:12:28]File name is /storage/kkm_last_timestamp [15:12:28]Write 4 bytes [15:12:28]NVStorageSaveData done [15:12:28]ExternCall_PrintAddStr [15:12:28]wPrintStart [15:12:28]Write to MH i2c: 01 00 00 31 10 41 [15:12:28]Write i2c OK [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: 01 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: 01 07 00 [15:12:28]MH_I2C_Read... [15:12:28]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 FF 0F 56 [15:12:28]RasterBufferAndPrint [15:12:28]line Счет N : (1)319966 [15:12:28]line ИНН: 02508201610067 [15:12:28]line Контрольно-Кассовый Чек [15:12:28]line ПРОДАЖА [15:12:28]line ТРК (МРК, ГНК) : 22 [15:12:28]line Товар: 2710194210 [15:12:28]line ДТ-К-5 [15:12:28]line 13.720 * 72.90 [15:12:28]line = 1000.19 [15:12:28]line НДС 12% НСП 1% [15:12:28]line > о реализуемом товаре [15:12:28]line ОКРУГЛЕНИЕ: -0.19 [15:12:28]line ИТОГО: 1000.00 [15:12:28]line Внесено: 1000.00 [15:12:28]line СДАЧА: 0.00 [15:12:28]line НСП 1% : 8.85 [15:12:28]line НДС 12% : 106.21 [15:12:28]line Наличными: 1000.00 [15:12:28]line Безнал.: 0.00 [15:12:28]line Место: АЗС № 65 "Партнер Нефть" [15:12:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:12:28]line СНО: Общий режим [15:12:28]line Чек 136 19.06.2024 15:12 [15:12:28]line Смена: 388 ФФД: 1.0 [15:12:28]line ЗНМ: 0300000198 [15:12:28]line РНМ: 0000000000092771 [15:12:28]line Версия ККМ: 001 [15:12:28]line ФМ: 0000000000875083 [15:12:28]line ФД: 111387 [15:12:28]line ФПД: 9084935113902 [15:12:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T151231&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111387&fm=9084935113902&tin=02508201610067®Number=0000000000092771&sum=100000 [15:12:29]OFD Sender: Processing packet 111387 [packets to send 38, broken 37] [15:12:29]ProducePacketName [15:12:29]name=ofd_packets/00111387 [15:12:29]OFD Sender: To server: pG, [15:12:29]CommunicateWithHost lk.salyk.kg:30040 [15:12:29]ConnectInit lk.salyk.kg [15:12:29]written 0, free lines is 4095 [15:12:29]Connected sock=10 [15:12:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 4F 0C 04 01 47 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 5F F5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1B B3 01 00 35 04 06 00 08 43 40 54 8C AE D3 01 65 F9 15 98 81 51 [15:12:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F9 C7 47 00 D1 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 35 30 38 33 10 04 04 00 1B B3 01 00 F4 03 04 00 C5 8C 72 66 B6 04 01 00 00 D6 2C E8 E9 D8 C3 8B 49 [15:12:29]CommunicateWithHost err = 0 [15:12:29]CheckOFDResponse [15:12:29]1017 (14) - 77093643461234 [15:12:29]1041 (16) - 0000000000875083 [15:12:29]1040 (4) - 111387 [15:12:29]1012 (4) - 19.06.2024 07:46 [15:12:29]1206 (1) - 0 [15:12:29]OFD Sender: Remove packet 111387 [15:12:29]ProducePacketName [15:12:29]name=ofd_packets/00111387 [15:12:29]NVStorageDeleteData [15:12:29]Write to MH i2c: 01 00 00 5C 10 6C [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: 01 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: 01 07 00 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 D0 0C 4F [15:12:29]RasterBufferAndPrint [15:12:29]line [15:12:29]line [15:12:29]line [15:12:29]line [15:12:29]line [15:12:29]written 0, free lines is 3287 [15:12:29]MH_Cut [15:12:29]Write to MH i2c: D1 01 00 63 10 01 45 [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: D1 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: D1 01 00 [15:12:29]MH_I2C_Read... [15:12:29]Read from MH i2c: D1 01 00 63 10 00 44 [15:12:29]Write to MH i2c: 01 00 00 64 10 74 [15:12:29]Write i2c OK [15:12:29]MH_I2C_Read... [15:12:30]OFD Sender: No OFD packet to send [15:12:30]*** Cut start [15:12:30]*** Partial cut [15:12:30]*** CUTSNS_PIN = 1 [15:12:30]*** CUTSNS_PIN = 0 [15:12:30]*** Brake cut motor [15:12:31]Read from MH i2c: 01 [15:12:31]MH_I2C_Read... [15:12:31]*** Stop cut motor [15:12:31]*** Cut end [15:12:31]Read from MH i2c: 01 07 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: 01 07 00 64 10 00 00 00 00 00 FF 0F 89 [15:12:31]process_action close_receipt done [15:12:31]requested_data is exist [15:12:31]produce_requested_data [15:12:31]requested_item fm.sn is exist - process it [15:12:31]wFMCommunicate request_size=4 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 11 00 00 [15:12:31]Write to MH i2c: E2 08 00 65 10 80 11 00 00 00 00 00 00 EF [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 17 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 17 00 65 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 41 [15:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:12:31]wFMCommunicate OK [15:12:31]requested_item fd.num is exist - process it [15:12:31]SAM_PROTO_GetFieldsCounters [15:12:31]wFMCommunicate request_size=4 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 13 00 00 [15:12:31]Write to MH i2c: E2 08 00 66 10 80 13 00 00 00 00 00 00 F2 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 62 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 62 00 66 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1B B3 01 00 0E 04 04 00 84 01 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 FF [15:12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1B B3 01 00 0E 04 04 00 84 01 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 [15:12:31]wFMCommunicate OK [15:12:31]SAM_PROTO_GetFieldsCounters done [15:12:31]requested_item shift.num is exist - process it [15:12:31]requested_item shift.opened is exist - process it [15:12:31]req_shift_opened [15:12:31]FM_GetShiftState [15:12:31]SAM_PROTO_GetShiftState [15:12:31]wFMCommunicate request_size=4 [15:12:31]MH_SAM_APDU [15:12:31]CAPDU: 80 13 01 00 [15:12:31]Write to MH i2c: E2 08 00 67 10 80 13 01 00 00 00 00 00 F4 [15:12:31]Write i2c OK [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 [15:12:31]MH_I2C_Read... [15:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:31]Read from MH i2c: E2 0E 00 [15:12:31]MH_I2C_Read... [15:12:31]Read from MH i2c: E2 0E 00 67 10 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3E [15:12:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:12:31]wFMCommunicate OK [15:12:31]SAM_PROTO_GetShiftState done [15:12:31]FM_GetShiftState done [15:12:31]req_shift_opened done [15:12:31]requested_item shift.open_date is exist - process it [15:12:31]req_shift_open_date [15:12:31]req_shift_open_date done [15:12:31]produce_requested_data done [15:12:31]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111387,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:12:31]process_action_free close_receipt [15:12:31]json_value_free [15:12:31]json_value_free done [15:12:31]process_json_proto returns [15:12:31]Send response to host [15:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111387,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:12:31]free response buf [15:12:31]execute_script done [15:12:31]execute_script returns [15:12:31]free content buf [15:12:31]Sock 9.Close socket [15:12:31]Sock 9.Thread stoped [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:22]accept exits with 7 [15:14:22]New connection [15:14:22]New thread 3067465060 created [15:14:22]Thread 3067321700 joined [15:14:22]Waiting for new connection... [15:14:22] Sock 7.Parse request [15:14:22]Sock 7.Check first char [15:14:22]Sock 7.First char is OK [15:14:22]request: POST /json_proto HTTP/1.0 [15:14:22]Method: POST [15:14:22]URL: /json_proto [15:14:22]Method is POST - this is cgi request [15:14:22]url: /json_proto [15:14:22]query_string will be loaded in cgi processing [15:14:22]execute_cgi json_proto POST (null) [15:14:22]execute_cgi path=json_proto method=POST [15:14:22]POST find Content-Length [15:14:22]Host: 172.17.59.68:8080 [15:14:22]Content-Length: 808 [15:14:22]Content-Type: application/json [15:14:22] [15:14:22]POST finish read [15:14:22]Found Content-Length = 808 [15:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:22]execute_script... [15:14: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)319967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:22]POST & json_proto [15:14:22]process_json_proto [15:14:22]json parsed OK: [15:14:22]protocol is kg_v1.0 [15:14:22]action value=close_receipt [15:14:22]process_action close_receipt [15:14:22]cmd_close_receipt [15:14:22]MH_GetDate [15:14:22]Write to MH i2c: F0 00 00 68 10 67 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 09 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: F0 09 00 68 10 00 D2 F5 72 66 BC EC 60 65 7C [15:14:22]GetLastDocTimeStamp 1718809951 [15:14:22]current date 1718810066 [15:14:22]FM_GetShiftState [15:14:22]SAM_PROTO_GetShiftState [15:14:22]wFMCommunicate request_size=4 [15:14:22]MH_SAM_APDU [15:14:22]CAPDU: 80 13 01 00 [15:14:22]Write to MH i2c: E2 08 00 69 10 80 13 01 00 00 00 00 00 F6 [15:14:22]Write i2c OK [15:14:22]MH_I2C_Read... [15:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:22]Read from MH i2c: E2 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 0E 00 [15:14:22]MH_I2C_Read... [15:14:22]Read from MH i2c: E2 0E 00 69 10 00 09 00 01 31 35 72 66 00 00 00 00 90 00 40 [15:14:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:14:22]wFMCommunicate OK [15:14:22]SAM_PROTO_GetShiftState done [15:14:22]FM_GetShiftState done [15:14:22]opened in 1718760753 [15:14:22]opened+sec_in_day 1718847153 [15:14:22]quantity*price = 100064 [15:14:22]sum+1 = 100066 [15:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 137 19.06.2024 15:14 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111388 ФПД: 98803820150014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T151426&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111388&fm=98803820150014&tin=02508201610067®Number=0000000000092771&sum=100065 [15:14:23]StoreToDocumentArchive [15:14:23]shift 388 fd 111388 [15:14:23]save to /storage/0388/doc_00111388 [15:14:23]save last doc name /storage/0388/doc_00111388 to /storage/kkm_last_doc_name [15:14:23]save OK [15:14:23]Clear old archive folders... [15:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:23]tlvbuf is 00EBC3A0 [15:14:23]SAM_PROTO_ClearQueue [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 09 00 00 [15:14:23]Write to MH i2c: E2 08 00 76 10 80 09 00 00 00 00 00 00 F8 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 03 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 03 00 76 10 00 90 00 FA [15:14:23]RAPDU: 90 00 [15:14:23]wFMCommunicate OK [15:14:23]SAM_PROTO_ClearQueue done [15:14:23]KKMCreateOFDPacket [15:14:23]OFDProtocolAddRootSTLVToBuf [15:14:23]FM_MakeSignedData [15:14:23]FM_MakeSignedData [15:14:23]SAM_PROTO_SignData [15:14:23]wFMCommunicate request_size=4 [15:14:23]MH_SAM_APDU [15:14:23]CAPDU: 80 0D 01 02 [15:14:23]Write to MH i2c: E2 08 00 77 10 80 0D 01 02 00 00 00 00 00 [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:23]Read from MH i2c: E2 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 03 00 [15:14:23]MH_I2C_Read... [15:14:23]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [15:14:23]RAPDU: 90 00 [15:14:23]wFMCommunicate OK [15:14:23]wFMCommunicate request_size=255 [15:14:23]MH_SAM_APDU [15:14: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D2 F5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B3 01 00 35 04 06 00 59 [15:14:23]Write to MH i2c: E2 02 01 78 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D2 F5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B3 01 00 35 04 06 00 59 00 00 5C [15:14:23]Write i2c OK [15:14:23]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=10 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 02 02 05 DC 8E 9A 3C FE [15:14:24]Write to MH i2c: E2 0D 00 79 10 80 0D 02 02 05 00 DC 8E 9A 3C FE 00 00 4B [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [15:14:24]RAPDU: 90 00 [15:14:24]wFMCommunicate OK [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 0D 03 02 [15:14:24]Write to MH i2c: E2 08 00 7A 10 80 0D 03 02 00 00 00 00 05 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 0B 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 0B 00 7A 10 00 62 EA 48 F4 C5 4B DD D3 90 00 4E [15:14:24]RAPDU: 62 EA 48 F4 C5 4B DD D3 90 00 [15:14:24]wFMCommunicate OK [15:14:24]SAM_PROTO_SignData done [15:14:24]FM_MakeSignedData done [15:14:24]CreateOFDProtocolMessage [15:14:24]wFMCommunicate request_size=4 [15:14:24]MH_SAM_APDU [15:14:24]CAPDU: 80 11 00 00 [15:14:24]Write to MH i2c: E2 08 00 7B 10 80 11 00 00 00 00 00 00 05 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:24]Read from MH i2c: E2 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 17 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: E2 17 00 7B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [15:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:14:24]wFMCommunicate OK [15:14:24]CreateOFDProtocolMessage done [15:14:24]OFDSenderStorePacket 111388 [15:14:24]StoreOFDPacket docnum=111388 [15:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 9D 07 01 6B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D2 F5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B3 01 00 35 04 06 00 59 DC 8E 9A 3C FE 62 EA 48 F4 C5 4B DD D3 [15:14:24]CheckFolder [15:14:24]dirname=/storage/ofd_packets [15:14:24]CheckFolder done [15:14:24]ProducePacketName [15:14:24]name=ofd_packets/00111388 [15:14:24]NVStorageSaveData ofd_packets/00111388 [15:14:24]File name is /storage/ofd_packets/00111388 [15:14:24]Write 301 bytes [15:14:24]NVStorageSaveData done [15:14:24]OFDSenderStorePacket done [15:14:24]KKMCreateOFDPacket done [15:14:24]NVStorageSaveData kkm_last_timestamp [15:14:24]File name is /storage/kkm_last_timestamp [15:14:24]Write 4 bytes [15:14:24]NVStorageSaveData done [15:14:24]ExternCall_PrintAddStr [15:14:24]wPrintStart [15:14:24]Write to MH i2c: 01 00 00 7C 10 8C [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 7C 10 00 00 00 00 00 FF 0F A1 [15:14:24]RasterBufferAndPrint [15:14:24]line Счет N : (1)319967 [15:14:24]line ИНН: 02508201610067 [15:14:24]line Контрольно-Кассовый Чек [15:14:24]line ПРОДАЖА [15:14:24]line ТРК (МРК, ГНК) : 11 [15:14:24]line Товар: 2710124130 [15:14:24]line Аи-92-К-5 [15:14:24]line 15.070 * 66.40 [15:14:24]line = 1000.65 [15:14:24]line НДС 12% НСП 1% [15:14:24]line > о реализуемом товаре [15:14:24]line ИТОГО: 1000.65 [15:14:24]line НСП 1% : 8.85 [15:14:24]line НДС 12% : 106.26 [15:14:24]line Наличными: 0.00 [15:14:24]line Безнал.: 1000.65 [15:14:24]line Место: АЗС № 65 "Партнер Нефть" [15:14:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:14:24]line СНО: Общий режим [15:14:24]line Чек 137 19.06.2024 15:14 [15:14:24]line Смена: 388 ФФД: 1.0 [15:14:24]line ЗНМ: 0300000198 [15:14:24]line РНМ: 0000000000092771 [15:14:24]line Версия ККМ: 001 [15:14:24]line Платежная система: О! деньги [15:14:24]line ФМ: 0000000000875083 [15:14:24]line ФД: 111388 [15:14:24]line ФПД: 98803820150014 [15:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T151426&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111388&fm=98803820150014&tin=02508201610067®Number=0000000000092771&sum=100065 [15:14:24]OFD Sender: Processing packet 111388 [packets to send 38, broken 37] [15:14:24]ProducePacketName [15:14:24]name=ofd_packets/00111388 [15:14:24]OFD Sender: To server: pG, [15:14:24]CommunicateWithHost lk.salyk.kg:30040 [15:14:24]ConnectInit lk.salyk.kg [15:14:24]written 0, free lines is 4095 [15:14:24]Connected sock=10 [15:14:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 9D 07 01 6B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D2 F5 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1C B3 01 00 35 04 06 00 59 DC 8E 9A 3C FE 62 EA 48 F4 C5 4B DD D3 [15:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C6 5E 47 00 9A 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 35 30 38 33 10 04 04 00 1C B3 01 00 F4 03 04 00 39 8D 72 66 B6 04 01 00 00 CC ED E0 25 6D 65 A8 4C [15:14:24]CommunicateWithHost err = 0 [15:14:24]CheckOFDResponse [15:14:24]1017 (14) - 77093643461234 [15:14:24]1041 (16) - 0000000000875083 [15:14:24]1040 (4) - 111388 [15:14:24]1012 (4) - 19.06.2024 07:48 [15:14:24]1206 (1) - 0 [15:14:24]OFD Sender: Remove packet 111388 [15:14:24]ProducePacketName [15:14:24]name=ofd_packets/00111388 [15:14:24]NVStorageDeleteData [15:14:24]Write to MH i2c: 01 00 00 A6 10 B6 [15:14:24]Write i2c OK [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 [15:14:24]MH_I2C_Read... [15:14:24]Read from MH i2c: 01 07 00 A6 10 00 00 00 00 00 DC 0C A5 [15:14:24]RasterBufferAndPrint [15:14:24]line [15:14:24]line [15:14:25]line [15:14:25]line [15:14:25]line [15:14:25]written 0, free lines is 3298 [15:14:25]MH_Cut [15:14:25]Write to MH i2c: D1 01 00 AD 10 01 8F [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 01 00 [15:14:25]MH_I2C_Read... [15:14:25]Read from MH i2c: D1 01 00 AD 10 00 8E [15:14:25]Write to MH i2c: 01 00 00 AE 10 BE [15:14:25]Write i2c OK [15:14:25]MH_I2C_Read... [15:14:25]OFD Sender: No OFD packet to send [15:14:25]*** Cut start [15:14:25]*** Partial cut [15:14:25]*** CUTSNS_PIN = 1 [15:14:25]*** CUTSNS_PIN = 0 [15:14:25]*** Brake cut motor [15:14:26]Read from MH i2c: 01 [15:14:26]MH_I2C_Read... [15:14:26]*** Stop cut motor [15:14:26]*** Cut end [15:14:26]Read from MH i2c: 01 07 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 FF 0F D3 [15:14:26]process_action close_receipt done [15:14:26]requested_data is exist [15:14:26]produce_requested_data [15:14:26]requested_item fm.sn is exist - process it [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 11 00 00 [15:14:26]Write to MH i2c: E2 08 00 AF 10 80 11 00 00 00 00 00 00 39 [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 17 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 17 00 AF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8B [15:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:14:26]wFMCommunicate OK [15:14:26]requested_item fd.num is exist - process it [15:14:26]SAM_PROTO_GetFieldsCounters [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 13 00 00 [15:14:26]Write to MH i2c: E2 08 00 B0 10 80 13 00 00 00 00 00 00 3C [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 62 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 62 00 B0 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1C B3 01 00 0E 04 04 00 84 01 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 4D [15:14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1C B3 01 00 0E 04 04 00 84 01 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 [15:14:26]wFMCommunicate OK [15:14:26]SAM_PROTO_GetFieldsCounters done [15:14:26]requested_item shift.num is exist - process it [15:14:26]requested_item shift.opened is exist - process it [15:14:26]req_shift_opened [15:14:26]FM_GetShiftState [15:14:26]SAM_PROTO_GetShiftState [15:14:26]wFMCommunicate request_size=4 [15:14:26]MH_SAM_APDU [15:14:26]CAPDU: 80 13 01 00 [15:14:26]Write to MH i2c: E2 08 00 B1 10 80 13 01 00 00 00 00 00 3E [15:14:26]Write i2c OK [15:14:26]MH_I2C_Read... [15:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:26]Read from MH i2c: E2 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 0E 00 [15:14:26]MH_I2C_Read... [15:14:26]Read from MH i2c: E2 0E 00 B1 10 00 09 00 01 31 35 72 66 00 00 00 00 90 00 88 [15:14:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:14:26]wFMCommunicate OK [15:14:26]SAM_PROTO_GetShiftState done [15:14:26]FM_GetShiftState done [15:14:26]req_shift_opened done [15:14:26]requested_item shift.open_date is exist - process it [15:14:26]req_shift_open_date [15:14:26]req_shift_open_date done [15:14:26]produce_requested_data done [15:14:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111388,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:14:26]process_action_free close_receipt [15:14:26]json_value_free [15:14:26]json_value_free done [15:14:26]process_json_proto returns [15:14:26]Send response to host [15:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111388,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:14:26]free response buf [15:14:26]execute_script done [15:14:26]execute_script returns [15:14:26]free content buf [15:14:26]Sock 7.Close socket [15:14:26]Sock 7.Thread stoped [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:16]accept exits with 9 [15:16:16]New connection [15:16:16]New thread 3067321700 created [15:16:16]Thread 3067465060 joined [15:16:16]Waiting for new connection... [15:16:16] Sock 9.Parse request [15:16:16]Sock 9.Check first char [15:16:16]Sock 9.First char is OK [15:16:16]request: POST /json_proto HTTP/1.0 [15:16:16]Method: POST [15:16:16]URL: /json_proto [15:16:16]Method is POST - this is cgi request [15:16:16]url: /json_proto [15:16:16]query_string will be loaded in cgi processing [15:16:16]execute_cgi json_proto POST (null) [15:16:16]execute_cgi path=json_proto method=POST [15:16:16]POST find Content-Length [15:16:16]Host: 172.17.59.68:8080 [15:16:16]Content-Length: 678 [15:16:16]Content-Type: application/json [15:16:16] [15:16:16]POST finish read [15:16:16]Found Content-Length = 678 [15:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:16]execute_script... [15:16: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)319968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:16]POST & json_proto [15:16:16]process_json_proto [15:16:16]json parsed OK: [15:16:16]protocol is kg_v1.0 [15:16:16]action value=close_receipt [15:16:16]process_action close_receipt [15:16:16]cmd_close_receipt [15:16:16]MH_GetDate [15:16:16]Write to MH i2c: F0 00 00 B2 10 B1 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 09 00 [15:16:16]MH_I2C_Read... [15:16:16]Read from MH i2c: F0 09 00 B2 10 00 45 F6 72 66 BC EC 60 65 3A [15:16:16]GetLastDocTimeStamp 1718810066 [15:16:16]current date 1718810181 [15:16:16]FM_GetShiftState [15:16:16]SAM_PROTO_GetShiftState [15:16:16]wFMCommunicate request_size=4 [15:16:16]MH_SAM_APDU [15:16:16]CAPDU: 80 13 01 00 [15:16:16]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [15:16:16]Write i2c OK [15:16:16]MH_I2C_Read... [15:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:17]Read from MH i2c: E2 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 0E 00 [15:16:17]MH_I2C_Read... [15:16:17]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8A [15:16:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:16:17]wFMCommunicate OK [15:16:17]SAM_PROTO_GetShiftState done [15:16:17]FM_GetShiftState done [15:16:17]opened in 1718760753 [15:16:17]opened+sec_in_day 1718847153 [15:16:17]quantity*price = 66532 [15:16:17]sum+1 = 66534 [15:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.65 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 138 19.06.2024 15:16 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111389 ФПД: 71068670037176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T151621&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111389&fm=71068670037176&tin=02508201610067®Number=0000000000092771&sum=66500 [15:16:18]StoreToDocumentArchive [15:16:18]shift 388 fd 111389 [15:16:18]save to /storage/0388/doc_00111389 [15:16:18]save last doc name /storage/0388/doc_00111389 to /storage/kkm_last_doc_name [15:16:18]save OK [15:16:18]Clear old archive folders... [15:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:18]tlvbuf is 00ECA700 [15:16:18]SAM_PROTO_ClearQueue [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 09 00 00 [15:16:18]Write to MH i2c: E2 08 00 C0 10 80 09 00 00 00 00 00 00 42 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 C0 10 00 90 00 44 [15:16:18]RAPDU: 90 00 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_ClearQueue done [15:16:18]KKMCreateOFDPacket [15:16:18]OFDProtocolAddRootSTLVToBuf [15:16:18]FM_MakeSignedData [15:16:18]FM_MakeSignedData [15:16:18]SAM_PROTO_SignData [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 0D 01 02 [15:16:18]Write to MH i2c: E2 08 00 C1 10 80 0D 01 02 00 00 00 00 4A [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [15:16:18]RAPDU: 90 00 [15:16:18]wFMCommunicate OK [15:16:18]wFMCommunicate request_size=255 [15:16:18]MH_SAM_APDU [15:16: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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 45 F6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B3 01 00 35 04 06 00 40 [15:16:18]Write to MH i2c: E2 02 01 C2 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 45 F6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B3 01 00 35 04 06 00 40 00 00 57 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [15:16:18]RAPDU: 90 00 [15:16:18]wFMCommunicate OK [15:16:18]wFMCommunicate request_size=10 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 0D 02 02 05 A2 F6 D5 0C B8 [15:16:18]Write to MH i2c: E2 0D 00 C3 10 80 0D 02 02 05 00 A2 F6 D5 0C B8 00 00 88 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [15:16:18]RAPDU: 90 00 [15:16:18]wFMCommunicate OK [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 0D 03 02 [15:16:18]Write to MH i2c: E2 08 00 C4 10 80 0D 03 02 00 00 00 00 4F [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0B 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 0B 00 C4 10 00 06 EB 8A 1B BA 69 00 95 90 00 9E [15:16:18]RAPDU: 06 EB 8A 1B BA 69 00 95 90 00 [15:16:18]wFMCommunicate OK [15:16:18]SAM_PROTO_SignData done [15:16:18]FM_MakeSignedData done [15:16:18]CreateOFDProtocolMessage [15:16:18]wFMCommunicate request_size=4 [15:16:18]MH_SAM_APDU [15:16:18]CAPDU: 80 11 00 00 [15:16:18]Write to MH i2c: E2 08 00 C5 10 80 11 00 00 00 00 00 00 4F [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:18]Read from MH i2c: E2 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 17 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: E2 17 00 C5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [15:16:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:16:18]wFMCommunicate OK [15:16:18]CreateOFDProtocolMessage done [15:16:18]OFDSenderStorePacket 111389 [15:16:18]StoreOFDPacket docnum=111389 [15:16:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C BA 07 01 88 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 45 F6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B3 01 00 35 04 06 00 40 A2 F6 D5 0C B8 06 EB 8A 1B BA 69 00 95 [15:16:18]CheckFolder [15:16:18]dirname=/storage/ofd_packets [15:16:18]CheckFolder done [15:16:18]ProducePacketName [15:16:18]name=ofd_packets/00111389 [15:16:18]NVStorageSaveData ofd_packets/00111389 [15:16:18]File name is /storage/ofd_packets/00111389 [15:16:18]Write 301 bytes [15:16:18]NVStorageSaveData done [15:16:18]OFDSenderStorePacket done [15:16:18]KKMCreateOFDPacket done [15:16:18]NVStorageSaveData kkm_last_timestamp [15:16:18]File name is /storage/kkm_last_timestamp [15:16:18]Write 4 bytes [15:16:18]NVStorageSaveData done [15:16:18]ExternCall_PrintAddStr [15:16:18]wPrintStart [15:16:18]Write to MH i2c: 01 00 00 C6 10 D6 [15:16:18]Write i2c OK [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 [15:16:18]MH_I2C_Read... [15:16:18]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [15:16:18]RasterBufferAndPrint [15:16:18]line Счет N : (1)319968 [15:16:18]line ИНН: 02508201610067 [15:16:18]line Контрольно-Кассовый Чек [15:16:18]line ПРОДАЖА [15:16:18]line ТРК (МРК, ГНК) : 11 [15:16:18]line Товар: 2710124130 [15:16:18]line Аи-92-К-5 [15:16:18]line 10.020 * 66.40 [15:16:18]line = 665.33 [15:16:18]line НДС 12% НСП 1% [15:16:18]line > о реализуемом товаре [15:16:18]line ОКРУГЛЕНИЕ: -0.33 [15:16:18]line ИТОГО: 665.00 [15:16:18]line Внесено: 665.00 [15:16:18]line СДАЧА: 0.00 [15:16:18]line НСП 1% : 5.89 [15:16:18]line НДС 12% : 70.65 [15:16:18]line Наличными: 665.00 [15:16:18]line Безнал.: 0.00 [15:16:18]line Место: АЗС № 65 "Партнер Нефть" [15:16:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:16:18]line СНО: Общий режим [15:16:18]line Чек 138 19.06.2024 15:16 [15:16:18]line Смена: 388 ФФД: 1.0 [15:16:18]line ЗНМ: 0300000198 [15:16:18]line РНМ: 0000000000092771 [15:16:18]line Версия ККМ: 001 [15:16:18]line ФМ: 0000000000875083 [15:16:18]line ФД: 111389 [15:16:18]line ФПД: 71068670037176 [15:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T151621&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111389&fm=71068670037176&tin=02508201610067®Number=0000000000092771&sum=66500 [15:16:19]OFD Sender: Processing packet 111389 [packets to send 38, broken 37] [15:16:19]ProducePacketName [15:16:19]name=ofd_packets/00111389 [15:16:19]OFD Sender: To server: pG, [15:16:19]CommunicateWithHost lk.salyk.kg:30040 [15:16:19]ConnectInit lk.salyk.kg [15:16:19]written 0, free lines is 4095 [15:16:19]Connected sock=10 [15:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C BA 07 01 88 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 45 F6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1D B3 01 00 35 04 06 00 40 A2 F6 D5 0C B8 06 EB 8A 1B BA 69 00 95 [15:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E2 49 47 00 65 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 35 30 38 33 10 04 04 00 1D B3 01 00 F4 03 04 00 AB 8D 72 66 B6 04 01 00 00 2A 24 A8 AC 0F BD 32 37 [15:16:19]CommunicateWithHost err = 0 [15:16:19]CheckOFDResponse [15:16:19]1017 (14) - 77093643461234 [15:16:19]1041 (16) - 0000000000875083 [15:16:19]1040 (4) - 111389 [15:16:19]1012 (4) - 19.06.2024 07:50 [15:16:19]1206 (1) - 0 [15:16:19]OFD Sender: Remove packet 111389 [15:16:19]ProducePacketName [15:16:19]name=ofd_packets/00111389 [15:16:19]NVStorageDeleteData [15:16:19]Write to MH i2c: 01 00 00 F1 10 01 [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: 01 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: 01 07 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: 01 07 00 F1 10 00 00 00 00 00 E3 0C F7 [15:16:19]RasterBufferAndPrint [15:16:19]line [15:16:19]line [15:16:19]line [15:16:19]line [15:16:19]line [15:16:19]written 0, free lines is 3305 [15:16:19]MH_Cut [15:16:19]Write to MH i2c: D1 01 00 F8 10 01 DA [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: D1 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: D1 01 00 [15:16:19]MH_I2C_Read... [15:16:19]Read from MH i2c: D1 01 00 F8 10 00 D9 [15:16:19]Write to MH i2c: 01 00 00 F9 10 09 [15:16:19]Write i2c OK [15:16:19]MH_I2C_Read... [15:16:19]OFD Sender: No OFD packet to send [15:16:20]*** Cut start [15:16:20]*** Partial cut [15:16:20]*** CUTSNS_PIN = 1 [15:16:20]*** CUTSNS_PIN = 0 [15:16:20]*** Brake cut motor [15:16:20]Read from MH i2c: 01 [15:16:20]MH_I2C_Read... [15:16:20]*** Stop cut motor [15:16:20]*** Cut end [15:16:20]Read from MH i2c: 01 07 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 FF 0F 1E [15:16:20]process_action close_receipt done [15:16:20]requested_data is exist [15:16:20]produce_requested_data [15:16:20]requested_item fm.sn is exist - process it [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 11 00 00 [15:16:20]Write to MH i2c: E2 08 00 FA 10 80 11 00 00 00 00 00 00 84 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:20]Read from MH i2c: E2 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 17 00 [15:16:20]MH_I2C_Read... [15:16:20]Read from MH i2c: E2 17 00 FA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [15:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:16:20]wFMCommunicate OK [15:16:20]requested_item fd.num is exist - process it [15:16:20]SAM_PROTO_GetFieldsCounters [15:16:20]wFMCommunicate request_size=4 [15:16:20]MH_SAM_APDU [15:16:20]CAPDU: 80 13 00 00 [15:16:20]Write to MH i2c: E2 08 00 FB 10 80 13 00 00 00 00 00 00 87 [15:16:20]Write i2c OK [15:16:20]MH_I2C_Read... [15:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:21]Read from MH i2c: E2 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: E2 62 00 [15:16:21]MH_I2C_Read... [15:16:21]Read from MH i2c: E2 62 00 FB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B3 01 00 0E 04 04 00 84 01 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 9C [15:16: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B3 01 00 0E 04 04 00 84 01 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 [15:16:21]wFMCommunicate OK [15:16:21]SAM_PROTO_GetFieldsCounters done [15:16:21]requested_item shift.num is exist - process it [15:16:21]requested_item shift.opened is exist - process it [15:16:21]req_shift_opened [15:16:21]FM_GetShiftState [15:16:21]SAM_PROTO_GetShiftState [15:16:21]wFMCommunicate request_size=4 [15:16:21]MH_SAM_APDU [15:16:21]CAPDU: 80 13 01 00 [15:16:21]Write to MH i2c: E2 08 00 FC 10 80 13 01 00 00 00 00 00 89 [15:16:21]Write i2c OK [15:16:21]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 FC 10 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D3 [15:16:21]RAPDU: 09 00 01 31 35 72 66 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]req_shift_opened done [15:16:21]requested_item shift.open_date is exist - process it [15:16:21]req_shift_open_date [15:16:21]req_shift_open_date done [15:16:21]produce_requested_data done [15:16:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111389,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:16:21]process_action_free close_receipt [15:16:21]json_value_free [15:16:21]json_value_free done [15:16:21]process_json_proto returns [15:16:21]Send response to host [15:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111389,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:16:21]free response buf [15:16:21]execute_script done [15:16:21]execute_script returns [15:16:21]free content buf [15:16:21]Sock 9.Close socket [15:16:21]Sock 9.Thread stoped [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]accept exits with 7 [15:18:09]New connection [15:18:09]New thread 3067465060 created [15:18:09]Thread 3067321700 joined [15:18:09]Waiting for new connection... [15:18:09] Sock 7.Parse request [15:18:09]Sock 7.Check first char [15:18:09]Sock 7.First char is OK [15:18:09]request: POST /json_proto HTTP/1.0 [15:18:09]Method: POST [15:18:09]URL: /json_proto [15:18:09]Method is POST - this is cgi request [15:18:09]url: /json_proto [15:18:09]query_string will be loaded in cgi processing [15:18:09]execute_cgi json_proto POST (null) [15:18:09]execute_cgi path=json_proto method=POST [15:18:09]POST find Content-Length [15:18:09]Host: 172.17.59.68:8080 [15:18:09]Content-Length: 1199 [15:18:09]Content-Type: application/json [15:18:09] [15:18:09]POST finish read [15:18:09]Found Content-Length = 1199 [15:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319969\u000A19.06.2024 13:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3887295;3887294\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:09]execute_script... [15:18:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319969\u000A19.06.2024 13:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3887295;3887294\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:09]POST & json_proto [15:18:09]process_json_proto [15:18:09]json parsed OK: [15:18:09]protocol is kg_v1.0 [15:18:09]action value=print_text [15:18:09]process_action print_text [15:18:09]cmd_print_text [15:18:09]ExternCall_PrintAddStr [15:18:09]wPrintStart [15:18:09]Write to MH i2c: 01 00 00 FD 10 0D [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 07 00 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 07 00 FD 10 00 00 00 00 00 FF 0F 22 [15:18:09]RasterBufferAndPrint [15:18:09]line *****ТОВАРНЫЙ ЧЕК***** [15:18:09]line АЗС 65 [15:18:09]line Партнер нефть [15:18:09]line 02508201610067 [15:18:09]line Кассир : Амантуров Р. [15:18:09]line Счет N : (1)319969 [15:18:09]line 19.06.2024 13:46 [15:18:09]line ПРОДАЖА [15:18:09]line ТРК (МРК, ГНК): 11 [15:18:09]line Вид ГСМ : 2710124130 [15:18:09]line Аи-92-К-5 [15:18:09]line 20.000 x 66.40 [15:18:09]line ИТОГ: 1328.00 [15:18:09]line Тип оплаты: Талоны: Партнер нефть [15:18:09]line 3887295;3887294 [15:18:09]line ______________________ [15:18:09]line (подпись) [15:18:09]written 0, free lines is 4095 [15:18:09]Write to MH i2c: 01 00 00 11 11 22 [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 07 00 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 07 00 11 11 00 00 00 00 00 16 0E 4D [15:18:09]RasterBufferAndPrint [15:18:09]line [15:18:09]line [15:18:09]line [15:18:09]line [15:18:09]line [15:18:09]written 0, free lines is 3608 [15:18:09]MH_Cut [15:18:09]Write to MH i2c: D1 01 00 18 11 01 FB [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: D1 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: D1 01 00 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: D1 01 00 18 11 00 FA [15:18:09]Write to MH i2c: 01 00 00 19 11 2A [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]OFD Sender: No OFD packet to send [15:18:10]*** Cut start [15:18:10]*** Partial cut [15:18:10]*** CUTSNS_PIN = 1 [15:18:10]*** CUTSNS_PIN = 0 [15:18:10]*** Brake cut motor [15:18:10]Read from MH i2c: 01 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: 01 07 00 [15:18:10]MH_I2C_Read... [15:18:10]*** Stop cut motor [15:18:10]*** Cut end [15:18:10]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 FF 0F 3F [15:18:10]process_action print_text done [15:18:10]requested_data is exist [15:18:10]produce_requested_data [15:18:10]requested_item fm.sn is exist - process it [15:18:10]wFMCommunicate request_size=4 [15:18:10]MH_SAM_APDU [15:18:10]CAPDU: 80 11 00 00 [15:18:10]Write to MH i2c: E2 08 00 1A 11 80 11 00 00 00 00 00 00 A5 [15:18:10]Write i2c OK [15:18:10]MH_I2C_Read... [15:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:10]Read from MH i2c: E2 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 17 00 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: E2 17 00 1A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [15:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:18:10]wFMCommunicate OK [15:18:10]requested_item fd.num is exist - process it [15:18:10]SAM_PROTO_GetFieldsCounters [15:18:10]wFMCommunicate request_size=4 [15:18:10]MH_SAM_APDU [15:18:10]CAPDU: 80 13 00 00 [15:18:10]Write to MH i2c: E2 08 00 1B 11 80 13 00 00 00 00 00 00 A8 [15:18:10]Write i2c OK [15:18:10]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 [15:18:11]MH_I2C_Read... [15:18:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:11]Read from MH i2c: E2 62 00 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 62 00 1B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B3 01 00 0E 04 04 00 84 01 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 BD [15:18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1D B3 01 00 0E 04 04 00 84 01 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 [15:18:11]wFMCommunicate OK [15:18:11]SAM_PROTO_GetFieldsCounters done [15:18:11]requested_item shift.num is exist - process it [15:18:11]requested_item shift.opened is exist - process it [15:18:11]req_shift_opened [15:18:11]FM_GetShiftState [15:18:11]SAM_PROTO_GetShiftState [15:18:11]wFMCommunicate request_size=4 [15:18:11]MH_SAM_APDU [15:18:11]CAPDU: 80 13 01 00 [15:18:11]Write to MH i2c: E2 08 00 1C 11 80 13 01 00 00 00 00 00 AA [15:18:11]Write i2c OK [15:18:11]MH_I2C_Read... [15:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:11]Read from MH i2c: E2 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 0E 00 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 0E 00 1C 11 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F4 [15:18:11]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:18:11]wFMCommunicate OK [15:18:11]SAM_PROTO_GetShiftState done [15:18:11]FM_GetShiftState done [15:18:11]req_shift_opened done [15:18:11]requested_item shift.open_date is exist - process it [15:18:11]req_shift_open_date [15:18:11]req_shift_open_date done [15:18:11]produce_requested_data done [15:18:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111389,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:18:11]process_action_free print_text [15:18:11]json_value_free [15:18:11]json_value_free done [15:18:11]process_json_proto returns [15:18:11]Send response to host [15:18:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111389,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:18:11]free response buf [15:18:11]execute_script done [15:18:11]execute_script returns [15:18:11]free content buf [15:18:11]Sock 7.Close socket [15:18:11]Sock 7.Thread stoped [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:11]accept exits with 9 [15:19:11]New connection [15:19:11]New thread 3067321700 created [15:19:11]Thread 3067465060 joined [15:19:11]Waiting for new connection... [15:19:11] Sock 9.Parse request [15:19:11]Sock 9.Check first char [15:19:11]Sock 9.First char is OK [15:19:11]request: POST /json_proto HTTP/1.0 [15:19:11]Method: POST [15:19:11]URL: /json_proto [15:19:11]Method is POST - this is cgi request [15:19:11]url: /json_proto [15:19:11]query_string will be loaded in cgi processing [15:19:11]execute_cgi json_proto POST (null) [15:19:11]execute_cgi path=json_proto method=POST [15:19:11]POST find Content-Length [15:19:11]Host: 172.17.59.68:8080 [15:19:11]Content-Length: 677 [15:19:11]Content-Type: application/json [15:19:11] [15:19:11]POST finish read [15:19:11]Found Content-Length = 677 [15:19:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:11]execute_script... [15:19: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)319970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:11]POST & json_proto [15:19:11]process_json_proto [15:19:11]json parsed OK: [15:19:11]protocol is kg_v1.0 [15:19:11]action value=close_receipt [15:19:11]process_action close_receipt [15:19:11]cmd_close_receipt [15:19:11]MH_GetDate [15:19:11]Write to MH i2c: F0 00 00 1D 11 1D [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: F0 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: F0 09 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: F0 09 00 1D 11 00 F3 F6 72 66 BC EC 60 65 54 [15:19:11]GetLastDocTimeStamp 1718810181 [15:19:11]current date 1718810355 [15:19:11]FM_GetShiftState [15:19:11]SAM_PROTO_GetShiftState [15:19:11]wFMCommunicate request_size=4 [15:19:11]MH_SAM_APDU [15:19:11]CAPDU: 80 13 01 00 [15:19:11]Write to MH i2c: E2 08 00 1E 11 80 13 01 00 00 00 00 00 AC [15:19:11]Write i2c OK [15:19:11]MH_I2C_Read... [15:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:11]Read from MH i2c: E2 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 0E 00 [15:19:11]MH_I2C_Read... [15:19:11]Read from MH i2c: E2 0E 00 1E 11 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F6 [15:19:11]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:19:11]wFMCommunicate OK [15:19:11]SAM_PROTO_GetShiftState done [15:19:11]FM_GetShiftState done [15:19:11]opened in 1718760753 [15:19:11]opened+sec_in_day 1718847153 [15:19:11]quantity*price = 30012 [15:19:11]sum+1 = 30014 [15:19:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 139 19.06.2024 15:19 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111390 ФПД: 149864585683441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T151915&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111390&fm=149864585683441&tin=02508201610067®Number=0000000000092771&sum=30000 [15:19:12]StoreToDocumentArchive [15:19:12]shift 388 fd 111390 [15:19:12]save to /storage/0388/doc_00111390 [15:19:12]save last doc name /storage/0388/doc_00111390 to /storage/kkm_last_doc_name [15:19:12]save OK [15:19:12]Clear old archive folders... [15:19:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:12]tlvbuf is 00ECB530 [15:19:12]SAM_PROTO_ClearQueue [15:19:12]wFMCommunicate request_size=4 [15:19:12]MH_SAM_APDU [15:19:12]CAPDU: 80 09 00 00 [15:19:12]Write to MH i2c: E2 08 00 2B 11 80 09 00 00 00 00 00 00 AE [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:12]Read from MH i2c: E2 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 03 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 03 00 2B 11 00 90 00 B0 [15:19:12]RAPDU: 90 00 [15:19:12]wFMCommunicate OK [15:19:12]SAM_PROTO_ClearQueue done [15:19:12]KKMCreateOFDPacket [15:19:12]OFDProtocolAddRootSTLVToBuf [15:19:12]FM_MakeSignedData [15:19:12]FM_MakeSignedData [15:19:12]SAM_PROTO_SignData [15:19:12]wFMCommunicate request_size=4 [15:19:12]MH_SAM_APDU [15:19:12]CAPDU: 80 0D 01 02 [15:19:12]Write to MH i2c: E2 08 00 2C 11 80 0D 01 02 00 00 00 00 B6 [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:12]Read from MH i2c: E2 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 03 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 03 00 2C 11 00 90 00 B1 [15:19:12]RAPDU: 90 00 [15:19:12]wFMCommunicate OK [15:19:12]wFMCommunicate request_size=255 [15:19:12]MH_SAM_APDU [15:19: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 F3 F6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B3 01 00 35 04 06 00 88 [15:19:12]Write to MH i2c: E2 02 01 2D 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 F3 F6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B3 01 00 35 04 06 00 88 00 00 33 [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:12]Read from MH i2c: E2 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 03 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 03 00 2D 11 00 90 00 B2 [15:19:12]RAPDU: 90 00 [15:19:12]wFMCommunicate OK [15:19:12]wFMCommunicate request_size=10 [15:19:12]MH_SAM_APDU [15:19:12]CAPDU: 80 0D 02 02 05 4D 11 64 E1 F1 [15:19:12]Write to MH i2c: E2 0D 00 2E 11 80 0D 02 02 05 00 4D 11 64 E1 F1 00 00 57 [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:12]Read from MH i2c: E2 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 03 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 03 00 2E 11 00 90 00 B3 [15:19:12]RAPDU: 90 00 [15:19:12]wFMCommunicate OK [15:19:12]wFMCommunicate request_size=4 [15:19:12]MH_SAM_APDU [15:19:12]CAPDU: 80 0D 03 02 [15:19:12]Write to MH i2c: E2 08 00 2F 11 80 0D 03 02 00 00 00 00 BB [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:12]Read from MH i2c: E2 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 0B 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 0B 00 2F 11 00 D6 D1 93 87 C1 A1 4D DE 90 00 0A [15:19:12]RAPDU: D6 D1 93 87 C1 A1 4D DE 90 00 [15:19:12]wFMCommunicate OK [15:19:12]SAM_PROTO_SignData done [15:19:12]FM_MakeSignedData done [15:19:12]CreateOFDProtocolMessage [15:19:12]wFMCommunicate request_size=4 [15:19:12]MH_SAM_APDU [15:19:12]CAPDU: 80 11 00 00 [15:19:12]Write to MH i2c: E2 08 00 30 11 80 11 00 00 00 00 00 00 BB [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:12]Read from MH i2c: E2 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 17 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: E2 17 00 30 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [15:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:19:12]wFMCommunicate OK [15:19:12]CreateOFDProtocolMessage done [15:19:12]OFDSenderStorePacket 111390 [15:19:12]StoreOFDPacket docnum=111390 [15:19:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 55 25 07 01 F1 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 F3 F6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B3 01 00 35 04 06 00 88 4D 11 64 E1 F1 D6 D1 93 87 C1 A1 4D DE [15:19:12]CheckFolder [15:19:12]dirname=/storage/ofd_packets [15:19:12]CheckFolder done [15:19:12]ProducePacketName [15:19:12]name=ofd_packets/00111390 [15:19:12]NVStorageSaveData ofd_packets/00111390 [15:19:12]File name is /storage/ofd_packets/00111390 [15:19:12]Write 301 bytes [15:19:12]NVStorageSaveData done [15:19:12]OFDSenderStorePacket done [15:19:12]KKMCreateOFDPacket done [15:19:12]NVStorageSaveData kkm_last_timestamp [15:19:12]File name is /storage/kkm_last_timestamp [15:19:12]Write 4 bytes [15:19:12]NVStorageSaveData done [15:19:12]ExternCall_PrintAddStr [15:19:12]wPrintStart [15:19:12]Write to MH i2c: 01 00 00 31 11 42 [15:19:12]Write i2c OK [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: 01 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: 01 07 00 [15:19:12]MH_I2C_Read... [15:19:12]Read from MH i2c: 01 07 00 31 11 00 00 00 00 00 FF 0F 57 [15:19:12]RasterBufferAndPrint [15:19:12]line Счет N : (1)319970 [15:19:12]line ИНН: 02508201610067 [15:19:12]line Контрольно-Кассовый Чек [15:19:12]line ПРОДАЖА [15:19:12]line ТРК (МРК, ГНК) : 11 [15:19:12]line Товар: 2710124130 [15:19:12]line Аи-92-К-5 [15:19:12]line 4.520 * 66.40 [15:19:12]line = 300.13 [15:19:12]line НДС 12% НСП 1% [15:19:12]line > о реализуемом товаре [15:19:12]line ОКРУГЛЕНИЕ: -0.13 [15:19:12]line ИТОГО: 300.00 [15:19:12]line Внесено: 300.00 [15:19:12]line СДАЧА: 0.00 [15:19:12]line НСП 1% : 2.66 [15:19:12]line НДС 12% : 31.87 [15:19:12]line Наличными: 300.00 [15:19:12]line Безнал.: 0.00 [15:19:12]line Место: АЗС № 65 "Партнер Нефть" [15:19:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:19:12]line СНО: Общий режим [15:19:12]line Чек 139 19.06.2024 15:19 [15:19:12]line Смена: 388 ФФД: 1.0 [15:19:12]line ЗНМ: 0300000198 [15:19:12]line РНМ: 0000000000092771 [15:19:12]line Версия ККМ: 001 [15:19:12]line ФМ: 0000000000875083 [15:19:12]line ФД: 111390 [15:19:12]line ФПД: 149864585683441 [15:19:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T151915&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111390&fm=149864585683441&tin=02508201610067®Number=0000000000092771&sum=30000 [15:19:13]OFD Sender: Processing packet 111390 [packets to send 38, broken 37] [15:19:13]ProducePacketName [15:19:13]name=ofd_packets/00111390 [15:19:13]OFD Sender: To server: pG, [15:19:13]CommunicateWithHost lk.salyk.kg:30040 [15:19:13]ConnectInit lk.salyk.kg [15:19:13]written 0, free lines is 4095 [15:19:13]Write to MH i2c: 01 00 00 5C 11 6D [15:19:13]Write i2c OK [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: 01 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: 01 07 00 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: 01 07 00 5C 11 00 00 00 00 00 D4 0C 54 [15:19:13]RasterBufferAndPrint [15:19:13]line [15:19:13]line [15:19:13]line [15:19:13]line [15:19:13]line [15:19:13]written 0, free lines is 3288 [15:19:13]MH_Cut [15:19:13]Write to MH i2c: D1 01 00 63 11 01 46 [15:19:13]Write i2c OK [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: D1 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: D1 01 00 [15:19:13]MH_I2C_Read... [15:19:13]Read from MH i2c: D1 01 00 63 11 00 45 [15:19:13]Write to MH i2c: 01 00 00 64 11 75 [15:19:13]Write i2c OK [15:19:13]MH_I2C_Read... [15:19:14]*** Cut start [15:19:14]*** Partial cut [15:19:14]*** CUTSNS_PIN = 1 [15:19:14]*** CUTSNS_PIN = 0 [15:19:14]*** Brake cut motor [15:19:14]Read from MH i2c: 01 [15:19:14]MH_I2C_Read... [15:19:14]*** Stop cut motor [15:19:14]*** Cut end [15:19:14]Read from MH i2c: 01 07 00 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: 01 07 00 64 11 00 00 00 00 00 FF 0F 8A [15:19:14]process_action close_receipt done [15:19:14]requested_data is exist [15:19:14]produce_requested_data [15:19:14]requested_item fm.sn is exist - process it [15:19:14]wFMCommunicate request_size=4 [15:19:14]MH_SAM_APDU [15:19:14]CAPDU: 80 11 00 00 [15:19:14]Write to MH i2c: E2 08 00 65 11 80 11 00 00 00 00 00 00 F0 [15:19:14]Write i2c OK [15:19:14]MH_I2C_Read... [15:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:14]Read from MH i2c: E2 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 17 00 [15:19:14]MH_I2C_Read... [15:19:14]Read from MH i2c: E2 17 00 65 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 42 [15:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:19:14]wFMCommunicate OK [15:19:14]requested_item fd.num is exist - process it [15:19:14]SAM_PROTO_GetFieldsCounters [15:19:14]wFMCommunicate request_size=4 [15:19:14]MH_SAM_APDU [15:19:14]CAPDU: 80 13 00 00 [15:19:14]Write to MH i2c: E2 08 00 66 11 80 13 00 00 00 00 00 00 F3 [15:19:14]Write i2c OK [15:19:14]MH_I2C_Read... [15:19:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:15]Read from MH i2c: E2 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 62 00 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 62 00 66 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [15:19: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:15]wFMCommunicate OK [15:19:15]SAM_PROTO_GetFieldsCounters done [15:19:15]requested_item shift.num is exist - process it [15:19:15]requested_item shift.opened is exist - process it [15:19:15]req_shift_opened [15:19:15]FM_GetShiftState [15:19:15]SAM_PROTO_GetShiftState [15:19:15]wFMCommunicate request_size=4 [15:19:15]MH_SAM_APDU [15:19:15]CAPDU: 80 13 01 00 [15:19:15]Write to MH i2c: E2 08 00 67 11 80 13 01 00 00 00 00 00 F5 [15:19:15]Write i2c OK [15:19:15]MH_I2C_Read... [15:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:15]Read from MH i2c: E2 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 0E 00 [15:19:15]MH_I2C_Read... [15:19:15]Read from MH i2c: E2 0E 00 67 11 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3F [15:19:15]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:19:15]wFMCommunicate OK [15:19:15]SAM_PROTO_GetShiftState done [15:19:15]FM_GetShiftState done [15:19:15]req_shift_opened done [15:19:15]requested_item shift.open_date is exist - process it [15:19:15]req_shift_open_date [15:19:15]req_shift_open_date done [15:19:15]produce_requested_data done [15:19:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111390,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:19:15]process_action_free close_receipt [15:19:15]json_value_free [15:19:15]json_value_free done [15:19:15]process_json_proto returns [15:19:15]Send response to host [15:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111390,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:19:15]free response buf [15:19:15]execute_script done [15:19:15]execute_script returns [15:19:15]free content buf [15:19:15]Sock 9.Close socket [15:19:15]Sock 9.Thread stoped [15:21:26]ConnectInit Can't connect to host [15:21:26]CommunicateWithHost connect error [15:21:26]CommunicateWithHost err = -1 [15:21:26]OFD Sender: Server communicate error [15:21:31]OFD Sender: Processing packet 111390 [packets to send 38, broken 37] [15:21:31]ProducePacketName [15:21:31]name=ofd_packets/00111390 [15:21:31]OFD Sender: To server: pG, [15:21:31]CommunicateWithHost lk.salyk.kg:30040 [15:21:31]ConnectInit lk.salyk.kg [15:21:31]Connected sock=9 [15:21:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 55 25 07 01 F1 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 F3 F6 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1E B3 01 00 35 04 06 00 88 4D 11 64 E1 F1 D6 D1 93 87 C1 A1 4D DE [15:21:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 04 48 47 00 AC 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 35 30 38 33 10 04 04 00 1E B3 01 00 F4 03 04 00 E4 8E 72 66 B6 04 01 00 00 C5 FF 6D D2 45 47 86 5B [15:21:32]CommunicateWithHost err = 0 [15:21:32]CheckOFDResponse [15:21:32]1017 (14) - 77093643461234 [15:21:32]1041 (16) - 0000000000875083 [15:21:32]1040 (4) - 111390 [15:21:32]1012 (4) - 19.06.2024 07:55 [15:21:32]1206 (1) - 0 [15:21:32]OFD Sender: Remove packet 111390 [15:21:32]ProducePacketName [15:21:32]name=ofd_packets/00111390 [15:21:32]NVStorageDeleteData [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:31]accept exits with 7 [15:22:31]New connection [15:22:31]New thread 3067465060 created [15:22:31]Thread 3067321700 joined [15:22:31]Waiting for new connection... [15:22:31] Sock 7.Parse request [15:22:31]Sock 7.Check first char [15:22:31]Sock 7.First char is OK [15:22:31]request: POST /json_proto HTTP/1.0 [15:22:31]Method: POST [15:22:31]URL: /json_proto [15:22:31]Method is POST - this is cgi request [15:22:31]url: /json_proto [15:22:31]query_string will be loaded in cgi processing [15:22:31]execute_cgi json_proto POST (null) [15:22:31]execute_cgi path=json_proto method=POST [15:22:31]POST find Content-Length [15:22:31]Host: 172.17.59.68:8080 [15:22:31]Content-Length: 805 [15:22:31]Content-Type: application/json [15:22:31] [15:22:31]POST finish read [15:22:31]Found Content-Length = 805 [15:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:31]execute_script... [15:22:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 68.590, "sum" : 5000.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 5000.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:31]POST & json_proto [15:22:31]process_json_proto [15:22:31]json parsed OK: [15:22:31]protocol is kg_v1.0 [15:22:31]action value=close_receipt [15:22:31]process_action close_receipt [15:22:31]cmd_close_receipt [15:22:31]MH_GetDate [15:22:31]Write to MH i2c: F0 00 00 68 11 68 [15:22:31]Write i2c OK [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: F0 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: F0 09 00 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: F0 09 00 68 11 00 BC F7 72 66 BC EC 60 65 69 [15:22:31]GetLastDocTimeStamp 1718810355 [15:22:31]current date 1718810556 [15:22:31]FM_GetShiftState [15:22:31]SAM_PROTO_GetShiftState [15:22:31]wFMCommunicate request_size=4 [15:22:31]MH_SAM_APDU [15:22:31]CAPDU: 80 13 01 00 [15:22:31]Write to MH i2c: E2 08 00 69 11 80 13 01 00 00 00 00 00 F7 [15:22:31]Write i2c OK [15:22:31]MH_I2C_Read... [15:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:31]Read from MH i2c: E2 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 0E 00 [15:22:31]MH_I2C_Read... [15:22:31]Read from MH i2c: E2 0E 00 69 11 00 09 00 01 31 35 72 66 00 00 00 00 90 00 41 [15:22:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:22:31]wFMCommunicate OK [15:22:31]SAM_PROTO_GetShiftState done [15:22:31]FM_GetShiftState done [15:22:31]opened in 1718760753 [15:22:31]opened+sec_in_day 1718847153 [15:22:31]quantity*price = 500021 [15:22:31]sum+1 = 500022 [15:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.21 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.21 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 140 19.06.2024 15:22 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111391 ФПД: 99848674616984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111391&fm=99848674616984&tin=02508201610067®Number=0000000000092771&sum=500021 [15:22:32]StoreToDocumentArchive [15:22:32]shift 388 fd 111391 [15:22:32]save to /storage/0388/doc_00111391 [15:22:32]save last doc name /storage/0388/doc_00111391 to /storage/kkm_last_doc_name [15:22:32]save OK [15:22:32]Clear old archive folders... [15:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:22:32]tlvbuf is B6F3E0E0 [15:22:32]SAM_PROTO_ClearQueue [15:22:32]wFMCommunicate request_size=4 [15:22:32]MH_SAM_APDU [15:22:32]CAPDU: 80 09 00 00 [15:22:32]Write to MH i2c: E2 08 00 76 11 80 09 00 00 00 00 00 00 F9 [15:22:32]Write i2c OK [15:22:32]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 76 11 00 90 00 FB [15:22:33]RAPDU: 90 00 [15:22:33]wFMCommunicate OK [15:22:33]SAM_PROTO_ClearQueue done [15:22:33]KKMCreateOFDPacket [15:22:33]OFDProtocolAddRootSTLVToBuf [15:22:33]FM_MakeSignedData [15:22:33]FM_MakeSignedData [15:22:33]SAM_PROTO_SignData [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 0D 01 02 [15:22:33]Write to MH i2c: E2 08 00 77 11 80 0D 01 02 00 00 00 00 01 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 77 11 00 90 00 FC [15:22:33]RAPDU: 90 00 [15:22:33]wFMCommunicate OK [15:22:33]wFMCommunicate request_size=255 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 BC F7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B3 01 00 35 04 06 00 5A CF D4 C8 [15:22:33]Write to MH i2c: E2 02 01 78 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 BC F7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B3 01 00 35 04 06 00 5A CF D4 C8 00 00 4E [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 78 11 00 90 00 FD [15:22:33]RAPDU: 90 00 [15:22:33]wFMCommunicate OK [15:22:33]wFMCommunicate request_size=7 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 0D 02 02 02 26 98 [15:22:33]Write to MH i2c: E2 0A 00 79 11 80 0D 02 02 02 00 26 98 00 00 C6 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 03 00 79 11 00 90 00 FE [15:22:33]RAPDU: 90 00 [15:22:33]wFMCommunicate OK [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 0D 03 02 [15:22:33]Write to MH i2c: E2 08 00 7A 11 80 0D 03 02 00 00 00 00 06 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 0B 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 0B 00 7A 11 00 80 E2 91 5C 2A 7A 70 24 90 00 8E [15:22:33]RAPDU: 80 E2 91 5C 2A 7A 70 24 90 00 [15:22:33]wFMCommunicate OK [15:22:33]SAM_PROTO_SignData done [15:22:33]FM_MakeSignedData done [15:22:33]CreateOFDProtocolMessage [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 11 00 00 [15:22:33]Write to MH i2c: E2 08 00 7B 11 80 11 00 00 00 00 00 00 06 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 17 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 17 00 7B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [15:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:22:33]wFMCommunicate OK [15:22:33]CreateOFDProtocolMessage done [15:22:33]OFDSenderStorePacket 111391 [15:22:33]StoreOFDPacket docnum=111391 [15:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CC 80 04 01 8F A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 BC F7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B3 01 00 35 04 06 00 5A CF D4 C8 26 98 80 E2 91 5C 2A 7A 70 24 [15:22:33]CheckFolder [15:22:33]dirname=/storage/ofd_packets [15:22:33]CheckFolder done [15:22:33]ProducePacketName [15:22:33]name=ofd_packets/00111391 [15:22:33]NVStorageSaveData ofd_packets/00111391 [15:22:33]File name is /storage/ofd_packets/00111391 [15:22:33]Write 298 bytes [15:22:33]NVStorageSaveData done [15:22:33]OFDSenderStorePacket done [15:22:33]KKMCreateOFDPacket done [15:22:33]NVStorageSaveData kkm_last_timestamp [15:22:33]File name is /storage/kkm_last_timestamp [15:22:33]Write 4 bytes [15:22:33]NVStorageSaveData done [15:22:33]ExternCall_PrintAddStr [15:22:33]wPrintStart [15:22:33]Write to MH i2c: 01 00 00 7C 11 8D [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 07 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: 01 07 00 7C 11 00 00 00 00 00 FF 0F A2 [15:22:33]RasterBufferAndPrint [15:22:33]line Счет N : (1)319971 [15:22:33]line ИНН: 02508201610067 [15:22:33]line Контрольно-Кассовый Чек [15:22:33]line ПРОДАЖА [15:22:33]line ТРК (МРК, ГНК) : 22 [15:22:33]line Товар: 2710194210 [15:22:33]line ДТ-К-5 [15:22:33]line 68.590 * 72.90 [15:22:33]line = 5000.21 [15:22:33]line НДС 12% НСП 1% [15:22:33]line > о реализуемом товаре [15:22:33]line ИТОГО: 5000.21 [15:22:33]line НСП 1% : 44.25 [15:22:33]line НДС 12% : 531.00 [15:22:33]line Наличными: 0.00 [15:22:33]line Безнал.: 5000.21 [15:22:33]line Место: АЗС № 65 "Партнер Нефть" [15:22:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:22:33]line СНО: Общий режим [15:22:33]line Чек 140 19.06.2024 15:22 [15:22:33]line Смена: 388 ФФД: 1.0 [15:22:33]line ЗНМ: 0300000198 [15:22:33]line РНМ: 0000000000092771 [15:22:33]line Версия ККМ: 001 [15:22:33]line Платежная система: О! деньги [15:22:33]line ФМ: 0000000000875083 [15:22:33]line ФД: 111391 [15:22:33]line ФПД: 99848674616984 [15:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152236&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111391&fm=99848674616984&tin=02508201610067®Number=0000000000092771&sum=500021 [15:22:33]OFD Sender: Processing packet 111391 [packets to send 38, broken 37] [15:22:33]ProducePacketName [15:22:33]name=ofd_packets/00111391 [15:22:33]OFD Sender: To server: pG, [15:22:33]CommunicateWithHost lk.salyk.kg:30040 [15:22:33]ConnectInit lk.salyk.kg [15:22:33]written 0, free lines is 4095 [15:22:33]Connected sock=10 [15:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CC 80 04 01 8F A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EE 0B 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 35 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 35 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 35 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 BC F7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 1F B3 01 00 35 04 06 00 5A CF D4 C8 26 98 80 E2 91 5C 2A 7A 70 24 [15:22:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 57 28 47 00 33 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 35 30 38 33 10 04 04 00 1F B3 01 00 F4 03 04 00 22 8F 72 66 B6 04 01 00 00 8A B6 F1 98 3F A3 9A 30 [15:22:34]CommunicateWithHost err = 0 [15:22:34]CheckOFDResponse [15:22:34]1017 (14) - 77093643461234 [15:22:34]1041 (16) - 0000000000875083 [15:22:34]1040 (4) - 111391 [15:22:34]1012 (4) - 19.06.2024 07:56 [15:22:34]1206 (1) - 0 [15:22:34]OFD Sender: Remove packet 111391 [15:22:34]ProducePacketName [15:22:34]name=ofd_packets/00111391 [15:22:34]NVStorageDeleteData [15:22:34]Write to MH i2c: 01 00 00 A6 11 B7 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: 01 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: 01 07 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: 01 07 00 A6 11 00 00 00 00 00 DF 0C A9 [15:22:34]RasterBufferAndPrint [15:22:34]line [15:22:34]line [15:22:34]line [15:22:34]line [15:22:34]line [15:22:34]written 0, free lines is 3301 [15:22:34]MH_Cut [15:22:34]Write to MH i2c: D1 01 00 AD 11 01 90 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: D1 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: D1 01 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: D1 01 00 AD 11 00 8F [15:22:34]Write to MH i2c: 01 00 00 AE 11 BF [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]OFD Sender: No OFD packet to send [15:22:35]*** Cut start [15:22:35]*** Partial cut [15:22:35]*** CUTSNS_PIN = 1 [15:22:35]*** CUTSNS_PIN = 0 [15:22:35]*** Brake cut motor [15:22:35]Read from MH i2c: 01 [15:22:35]MH_I2C_Read... [15:22:35]*** Stop cut motor [15:22:35]*** Cut end [15:22:35]Read from MH i2c: 01 07 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: 01 07 00 AE 11 00 00 00 00 00 FF 0F D4 [15:22:35]process_action close_receipt done [15:22:35]requested_data is exist [15:22:35]produce_requested_data [15:22:35]requested_item fm.sn is exist - process it [15:22:35]wFMCommunicate request_size=4 [15:22:35]MH_SAM_APDU [15:22:35]CAPDU: 80 11 00 00 [15:22:35]Write to MH i2c: E2 08 00 AF 11 80 11 00 00 00 00 00 00 3A [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 17 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 17 00 AF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8C [15:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:22:35]wFMCommunicate OK [15:22:35]requested_item fd.num is exist - process it [15:22:35]SAM_PROTO_GetFieldsCounters [15:22:35]wFMCommunicate request_size=4 [15:22:35]MH_SAM_APDU [15:22:35]CAPDU: 80 13 00 00 [15:22:35]Write to MH i2c: E2 08 00 B0 11 80 13 00 00 00 00 00 00 3D [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 62 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 62 00 B0 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1F B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [15:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 1F B3 01 00 0E 04 04 00 84 01 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 [15:22:35]wFMCommunicate OK [15:22:35]SAM_PROTO_GetFieldsCounters done [15:22:35]requested_item shift.num is exist - process it [15:22:35]requested_item shift.opened is exist - process it [15:22:35]req_shift_opened [15:22:35]FM_GetShiftState [15:22:35]SAM_PROTO_GetShiftState [15:22:35]wFMCommunicate request_size=4 [15:22:35]MH_SAM_APDU [15:22:35]CAPDU: 80 13 01 00 [15:22:35]Write to MH i2c: E2 08 00 B1 11 80 13 01 00 00 00 00 00 3F [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:35]Read from MH i2c: E2 0E 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 0E 00 B1 11 00 09 00 01 31 35 72 66 00 00 00 00 90 00 89 [15:22:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:22:35]wFMCommunicate OK [15:22:35]SAM_PROTO_GetShiftState done [15:22:35]FM_GetShiftState done [15:22:35]req_shift_opened done [15:22:35]requested_item shift.open_date is exist - process it [15:22:35]req_shift_open_date [15:22:35]req_shift_open_date done [15:22:35]produce_requested_data done [15:22:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111391,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:22:35]process_action_free close_receipt [15:22:35]json_value_free [15:22:35]json_value_free done [15:22:35]process_json_proto returns [15:22:35]Send response to host [15:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111391,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:22:35]free response buf [15:22:35]execute_script done [15:22:35]execute_script returns [15:22:35]free content buf [15:22:35]Sock 7.Close socket [15:22:35]Sock 7.Thread stoped [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]accept exits with 9 [15:23:29]New connection [15:23:29]New thread 3067321700 created [15:23:29]Thread 3067465060 joined [15:23:29]Waiting for new connection... [15:23:29] Sock 9.Parse request [15:23:29]Sock 9.Check first char [15:23:29]Sock 9.First char is OK [15:23:29]request: POST /json_proto HTTP/1.0 [15:23:29]Method: POST [15:23:29]URL: /json_proto [15:23:29]Method is POST - this is cgi request [15:23:29]url: /json_proto [15:23:29]query_string will be loaded in cgi processing [15:23:29]execute_cgi json_proto POST (null) [15:23:29]execute_cgi path=json_proto method=POST [15:23:29]POST find Content-Length [15:23:29]Host: 172.17.59.68:8080 [15:23:29]Content-Length: 677 [15:23:29]Content-Type: application/json [15:23:29] [15:23:29]POST finish read [15:23:29]Found Content-Length = 677 [15:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:23:29]execute_script... [15:23: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)319972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:23:29]POST & json_proto [15:23:29]process_json_proto [15:23:29]json parsed OK: [15:23:29]protocol is kg_v1.0 [15:23:29]action value=close_receipt [15:23:29]process_action close_receipt [15:23:29]cmd_close_receipt [15:23:29]MH_GetDate [15:23:29]Write to MH i2c: F0 00 00 B2 11 B2 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 09 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: F0 09 00 B2 11 00 F5 F7 72 66 BC EC 60 65 EC [15:23:29]GetLastDocTimeStamp 1718810556 [15:23:29]current date 1718810613 [15:23:29]FM_GetShiftState [15:23:29]SAM_PROTO_GetShiftState [15:23:29]wFMCommunicate request_size=4 [15:23:29]MH_SAM_APDU [15:23:29]CAPDU: 80 13 01 00 [15:23:29]Write to MH i2c: E2 08 00 B3 11 80 13 01 00 00 00 00 00 41 [15:23:29]Write i2c OK [15:23:29]MH_I2C_Read... [15:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:29]Read from MH i2c: E2 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 [15:23:29]MH_I2C_Read... [15:23:29]Read from MH i2c: E2 0E 00 B3 11 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8B [15:23:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:23:29]wFMCommunicate OK [15:23:29]SAM_PROTO_GetShiftState done [15:23:29]FM_GetShiftState done [15:23:29]opened in 1718760753 [15:23:29]opened+sec_in_day 1718847153 [15:23:29]quantity*price = 20052 [15:23:29]sum+1 = 20054 [15:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 141 19.06.2024 15:23 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111392 ФПД: 96270462691559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111392&fm=96270462691559&tin=02508201610067®Number=0000000000092771&sum=20000 [15:23:30]StoreToDocumentArchive [15:23:30]shift 388 fd 111392 [15:23:30]save to /storage/0388/doc_00111392 [15:23:30]save last doc name /storage/0388/doc_00111392 to /storage/kkm_last_doc_name [15:23:30]save OK [15:23:30]Clear old archive folders... [15:23:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:30]tlvbuf is 00F1A750 [15:23:30]SAM_PROTO_ClearQueue [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 09 00 00 [15:23:30]Write to MH i2c: E2 08 00 C0 11 80 09 00 00 00 00 00 00 43 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 C0 11 00 90 00 45 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_ClearQueue done [15:23:30]KKMCreateOFDPacket [15:23:30]OFDProtocolAddRootSTLVToBuf [15:23:30]FM_MakeSignedData [15:23:30]FM_MakeSignedData [15:23:30]SAM_PROTO_SignData [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 01 02 [15:23:30]Write to MH i2c: E2 08 00 C1 11 80 0D 01 02 00 00 00 00 4B [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 C1 11 00 90 00 46 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=255 [15:23:30]MH_SAM_APDU [15:23: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F5 F7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B3 01 00 35 04 06 00 57 [15:23:30]Write to MH i2c: E2 02 01 C2 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F5 F7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B3 01 00 35 04 06 00 57 00 00 BF [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 C2 11 00 90 00 47 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=10 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 02 02 05 8E B6 BB 28 E7 [15:23:30]Write to MH i2c: E2 0D 00 C3 11 80 0D 02 02 05 00 8E B6 BB 28 E7 00 00 66 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 03 00 C3 11 00 90 00 48 [15:23:30]RAPDU: 90 00 [15:23:30]wFMCommunicate OK [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 0D 03 02 [15:23:30]Write to MH i2c: E2 08 00 C4 11 80 0D 03 02 00 00 00 00 50 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:30]Read from MH i2c: E2 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 0B 00 [15:23:30]MH_I2C_Read... [15:23:30]Read from MH i2c: E2 0B 00 C4 11 00 8E 34 A1 F1 76 82 0F A6 90 00 52 [15:23:30]RAPDU: 8E 34 A1 F1 76 82 0F A6 90 00 [15:23:30]wFMCommunicate OK [15:23:30]SAM_PROTO_SignData done [15:23:30]FM_MakeSignedData done [15:23:30]CreateOFDProtocolMessage [15:23:30]wFMCommunicate request_size=4 [15:23:30]MH_SAM_APDU [15:23:30]CAPDU: 80 11 00 00 [15:23:30]Write to MH i2c: E2 08 00 C5 11 80 11 00 00 00 00 00 00 50 [15:23:30]Write i2c OK [15:23:30]MH_I2C_Read... [15:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:31]Read from MH i2c: E2 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 17 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: E2 17 00 C5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [15:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:23:31]wFMCommunicate OK [15:23:31]CreateOFDProtocolMessage done [15:23:31]OFDSenderStorePacket 111392 [15:23:31]StoreOFDPacket docnum=111392 [15:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 04 07 01 2A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F5 F7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B3 01 00 35 04 06 00 57 8E B6 BB 28 E7 8E 34 A1 F1 76 82 0F A6 [15:23:31]CheckFolder [15:23:31]dirname=/storage/ofd_packets [15:23:31]CheckFolder done [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00111392 [15:23:31]NVStorageSaveData ofd_packets/00111392 [15:23:31]File name is /storage/ofd_packets/00111392 [15:23:31]Write 301 bytes [15:23:31]NVStorageSaveData done [15:23:31]OFDSenderStorePacket done [15:23:31]KKMCreateOFDPacket done [15:23:31]NVStorageSaveData kkm_last_timestamp [15:23:31]File name is /storage/kkm_last_timestamp [15:23:31]Write 4 bytes [15:23:31]NVStorageSaveData done [15:23:31]ExternCall_PrintAddStr [15:23:31]wPrintStart [15:23:31]Write to MH i2c: 01 00 00 C6 11 D7 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 C6 11 00 00 00 00 00 FF 0F EC [15:23:31]RasterBufferAndPrint [15:23:31]line Счет N : (1)319972 [15:23:31]line ИНН: 02508201610067 [15:23:31]line Контрольно-Кассовый Чек [15:23:31]line ПРОДАЖА [15:23:31]line ТРК (МРК, ГНК) : 11 [15:23:31]line Товар: 2710124130 [15:23:31]line Аи-92-К-5 [15:23:31]line 3.020 * 66.40 [15:23:31]line = 200.53 [15:23:31]line НДС 12% НСП 1% [15:23:31]line > о реализуемом товаре [15:23:31]line ОКРУГЛЕНИЕ: -0.53 [15:23:31]line ИТОГО: 200.00 [15:23:31]line Внесено: 200.00 [15:23:31]line СДАЧА: 0.00 [15:23:31]line НСП 1% : 1.77 [15:23:31]line НДС 12% : 21.29 [15:23:31]line Наличными: 200.00 [15:23:31]line Безнал.: 0.00 [15:23:31]line Место: АЗС № 65 "Партнер Нефть" [15:23:31]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:23:31]line СНО: Общий режим [15:23:31]line Чек 141 19.06.2024 15:23 [15:23:31]line Смена: 388 ФФД: 1.0 [15:23:31]line ЗНМ: 0300000198 [15:23:31]line РНМ: 0000000000092771 [15:23:31]line Версия ККМ: 001 [15:23:31]line ФМ: 0000000000875083 [15:23:31]line ФД: 111392 [15:23:31]line ФПД: 96270462691559 [15:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T152333&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111392&fm=96270462691559&tin=02508201610067®Number=0000000000092771&sum=20000 [15:23:31]OFD Sender: Processing packet 111392 [packets to send 38, broken 37] [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00111392 [15:23:31]OFD Sender: To server: pG, [15:23:31]CommunicateWithHost lk.salyk.kg:30040 [15:23:31]ConnectInit lk.salyk.kg [15:23:31]written 0, free lines is 4095 [15:23:31]Connected sock=10 [15:23:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 04 07 01 2A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 F5 F7 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B3 01 00 35 04 06 00 57 8E B6 BB 28 E7 8E 34 A1 F1 76 82 0F A6 [15:23:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 24 B9 47 00 CC A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 20 B3 01 00 F4 03 04 00 5B 8F 72 66 B6 04 01 00 00 D9 15 0A 93 36 B5 91 C5 [15:23:31]CommunicateWithHost err = 0 [15:23:31]CheckOFDResponse [15:23:31]1017 (14) - 77093643461234 [15:23:31]1041 (16) - 0000000000875083 [15:23:31]1040 (4) - 111392 [15:23:31]1012 (4) - 19.06.2024 07:57 [15:23:31]1206 (1) - 0 [15:23:31]OFD Sender: Remove packet 111392 [15:23:31]ProducePacketName [15:23:31]name=ofd_packets/00111392 [15:23:31]NVStorageDeleteData [15:23:31]Write to MH i2c: 01 00 00 F1 11 02 [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: 01 07 00 F1 11 00 00 00 00 00 E1 0C F6 [15:23:31]RasterBufferAndPrint [15:23:31]line [15:23:31]line [15:23:31]line [15:23:31]line [15:23:31]line [15:23:31]written 0, free lines is 3303 [15:23:31]MH_Cut [15:23:31]Write to MH i2c: D1 01 00 F8 11 01 DB [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 01 00 [15:23:31]MH_I2C_Read... [15:23:31]Read from MH i2c: D1 01 00 F8 11 00 DA [15:23:31]Write to MH i2c: 01 00 00 F9 11 0A [15:23:31]Write i2c OK [15:23:31]MH_I2C_Read... [15:23:32]OFD Sender: No OFD packet to send [15:23:32]*** Cut start [15:23:32]*** Partial cut [15:23:32]*** CUTSNS_PIN = 1 [15:23:32]*** CUTSNS_PIN = 0 [15:23:32]*** Brake cut motor [15:23:33]Read from MH i2c: 01 [15:23:33]MH_I2C_Read... [15:23:33]*** Stop cut motor [15:23:33]*** Cut end [15:23:33]Read from MH i2c: 01 07 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: 01 07 00 F9 11 00 00 00 00 00 FF 0F 1F [15:23:33]process_action close_receipt done [15:23:33]requested_data is exist [15:23:33]produce_requested_data [15:23:33]requested_item fm.sn is exist - process it [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 11 00 00 [15:23:33]Write to MH i2c: E2 08 00 FA 11 80 11 00 00 00 00 00 00 85 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 17 00 FA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [15:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:23:33]wFMCommunicate OK [15:23:33]requested_item fd.num is exist - process it [15:23:33]SAM_PROTO_GetFieldsCounters [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 13 00 00 [15:23:33]Write to MH i2c: E2 08 00 FB 11 80 13 00 00 00 00 00 00 88 [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 62 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 62 00 FB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 20 B3 01 00 0E 04 04 00 84 01 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 A9 [15:23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 20 B3 01 00 0E 04 04 00 84 01 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 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_GetFieldsCounters done [15:23:33]requested_item shift.num is exist - process it [15:23:33]requested_item shift.opened is exist - process it [15:23:33]req_shift_opened [15:23:33]FM_GetShiftState [15:23:33]SAM_PROTO_GetShiftState [15:23:33]wFMCommunicate request_size=4 [15:23:33]MH_SAM_APDU [15:23:33]CAPDU: 80 13 01 00 [15:23:33]Write to MH i2c: E2 08 00 FC 11 80 13 01 00 00 00 00 00 8A [15:23:33]Write i2c OK [15:23:33]MH_I2C_Read... [15:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:33]Read from MH i2c: E2 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0E 00 [15:23:33]MH_I2C_Read... [15:23:33]Read from MH i2c: E2 0E 00 FC 11 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D4 [15:23:33]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:23:33]wFMCommunicate OK [15:23:33]SAM_PROTO_GetShiftState done [15:23:33]FM_GetShiftState done [15:23:33]req_shift_opened done [15:23:33]requested_item shift.open_date is exist - process it [15:23:33]req_shift_open_date [15:23:33]req_shift_open_date done [15:23:33]produce_requested_data done [15:23:33]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111392,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:23:33]process_action_free close_receipt [15:23:33]json_value_free [15:23:33]json_value_free done [15:23:33]process_json_proto returns [15:23:33]Send response to host [15:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111392,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:23:33]free response buf [15:23:33]execute_script done [15:23:33]execute_script returns [15:23:33]free content buf [15:23:33]Sock 9.Close socket [15:23:33]Sock 9.Thread stoped [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:05]accept exits with 7 [15:32:05]New connection [15:32:05]New thread 3067465060 created [15:32:05]Thread 3067321700 joined [15:32:05]Waiting for new connection... [15:32:05] Sock 7.Parse request [15:32:05]Sock 7.Check first char [15:32:05]Sock 7.First char is OK [15:32:05]request: POST /json_proto HTTP/1.0 [15:32:05]Method: POST [15:32:05]URL: /json_proto [15:32:05]Method is POST - this is cgi request [15:32:05]url: /json_proto [15:32:05]query_string will be loaded in cgi processing [15:32:05]execute_cgi json_proto POST (null) [15:32:05]execute_cgi path=json_proto method=POST [15:32:05]POST find Content-Length [15:32:05]Host: 172.17.59.68:8080 [15:32:05]Content-Length: 677 [15:32:05]Content-Type: application/json [15:32:05] [15:32:05]POST finish read [15:32:05]Found Content-Length = 677 [15:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [15:32:05]execute_script... [15:32: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)319973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [15:32:05]POST & json_proto [15:32:05]process_json_proto [15:32:05]json parsed OK: [15:32:05]protocol is kg_v1.0 [15:32:05]action value=close_receipt [15:32:05]process_action close_receipt [15:32:05]cmd_close_receipt [15:32:05]MH_GetDate [15:32:05]Write to MH i2c: F0 00 00 FD 11 FD [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: F0 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: F0 09 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: F0 09 00 FD 11 00 FA F9 72 66 BC EC 60 65 3E [15:32:05]GetLastDocTimeStamp 1718810613 [15:32:05]current date 1718811130 [15:32:05]FM_GetShiftState [15:32:05]SAM_PROTO_GetShiftState [15:32:05]wFMCommunicate request_size=4 [15:32:05]MH_SAM_APDU [15:32:05]CAPDU: 80 13 01 00 [15:32:05]Write to MH i2c: E2 08 00 FE 11 80 13 01 00 00 00 00 00 8C [15:32:05]Write i2c OK [15:32:05]MH_I2C_Read... [15:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:05]Read from MH i2c: E2 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 0E 00 [15:32:05]MH_I2C_Read... [15:32:05]Read from MH i2c: E2 0E 00 FE 11 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D6 [15:32:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:32:05]wFMCommunicate OK [15:32:05]SAM_PROTO_GetShiftState done [15:32:05]FM_GetShiftState done [15:32:05]opened in 1718760753 [15:32:05]opened+sec_in_day 1718847153 [15:32:05]quantity*price = 25032 [15:32:05]sum+1 = 25034 [15:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 142 19.06.2024 15:32 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111393 ФПД: 238068134470171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111393&fm=238068134470171&tin=02508201610067®Number=0000000000092771&sum=25000 [15:32:07]StoreToDocumentArchive [15:32:07]shift 388 fd 111393 [15:32:07]save to /storage/0388/doc_00111393 [15:32:07]save last doc name /storage/0388/doc_00111393 to /storage/kkm_last_doc_name [15:32:07]save OK [15:32:07]Clear old archive folders... [15:32:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:07]tlvbuf is 00F306B0 [15:32:07]SAM_PROTO_ClearQueue [15:32:07]wFMCommunicate request_size=4 [15:32:07]MH_SAM_APDU [15:32:07]CAPDU: 80 09 00 00 [15:32:07]Write to MH i2c: E2 08 00 0B 12 80 09 00 00 00 00 00 00 8F [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:07]Read from MH i2c: E2 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 03 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [15:32:07]RAPDU: 90 00 [15:32:07]wFMCommunicate OK [15:32:07]SAM_PROTO_ClearQueue done [15:32:07]KKMCreateOFDPacket [15:32:07]OFDProtocolAddRootSTLVToBuf [15:32:07]FM_MakeSignedData [15:32:07]FM_MakeSignedData [15:32:07]SAM_PROTO_SignData [15:32:07]wFMCommunicate request_size=4 [15:32:07]MH_SAM_APDU [15:32:07]CAPDU: 80 0D 01 02 [15:32:07]Write to MH i2c: E2 08 00 0C 12 80 0D 01 02 00 00 00 00 97 [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:07]Read from MH i2c: E2 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 03 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [15:32:07]RAPDU: 90 00 [15:32:07]wFMCommunicate OK [15:32:07]wFMCommunicate request_size=255 [15:32:07]MH_SAM_APDU [15:32: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 8E 00 00 00 F4 03 04 00 FA F9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B3 01 00 35 04 06 00 D8 [15:32:07]Write to MH i2c: E2 02 01 0D 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 8E 00 00 00 F4 03 04 00 FA F9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B3 01 00 35 04 06 00 D8 00 00 82 [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:07]Read from MH i2c: E2 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 03 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 03 00 0D 12 00 90 00 93 [15:32:07]RAPDU: 90 00 [15:32:07]wFMCommunicate OK [15:32:07]wFMCommunicate request_size=10 [15:32:07]MH_SAM_APDU [15:32:07]CAPDU: 80 0D 02 02 05 85 8E 96 62 1B [15:32:07]Write to MH i2c: E2 0D 00 0E 12 80 0D 02 02 05 00 85 8E 96 62 1B 00 00 CA [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:07]Read from MH i2c: E2 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 03 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 03 00 0E 12 00 90 00 94 [15:32:07]RAPDU: 90 00 [15:32:07]wFMCommunicate OK [15:32:07]wFMCommunicate request_size=4 [15:32:07]MH_SAM_APDU [15:32:07]CAPDU: 80 0D 03 02 [15:32:07]Write to MH i2c: E2 08 00 0F 12 80 0D 03 02 00 00 00 00 9C [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:07]Read from MH i2c: E2 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 0B 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 0B 00 0F 12 00 AE A6 73 80 A1 80 9B A9 90 00 49 [15:32:07]RAPDU: AE A6 73 80 A1 80 9B A9 90 00 [15:32:07]wFMCommunicate OK [15:32:07]SAM_PROTO_SignData done [15:32:07]FM_MakeSignedData done [15:32:07]CreateOFDProtocolMessage [15:32:07]wFMCommunicate request_size=4 [15:32:07]MH_SAM_APDU [15:32:07]CAPDU: 80 11 00 00 [15:32:07]Write to MH i2c: E2 08 00 10 12 80 11 00 00 00 00 00 00 9C [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:07]Read from MH i2c: E2 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 17 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: E2 17 00 10 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [15:32:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:32:07]wFMCommunicate OK [15:32:07]CreateOFDProtocolMessage done [15:32:07]OFDSenderStorePacket 111393 [15:32:07]StoreOFDPacket docnum=111393 [15:32:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AE B4 07 01 51 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 8E 00 00 00 F4 03 04 00 FA F9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B3 01 00 35 04 06 00 D8 85 8E 96 62 1B AE A6 73 80 A1 80 9B A9 [15:32:07]CheckFolder [15:32:07]dirname=/storage/ofd_packets [15:32:07]CheckFolder done [15:32:07]ProducePacketName [15:32:07]name=ofd_packets/00111393 [15:32:07]NVStorageSaveData ofd_packets/00111393 [15:32:07]File name is /storage/ofd_packets/00111393 [15:32:07]Write 301 bytes [15:32:07]NVStorageSaveData done [15:32:07]OFDSenderStorePacket done [15:32:07]KKMCreateOFDPacket done [15:32:07]NVStorageSaveData kkm_last_timestamp [15:32:07]File name is /storage/kkm_last_timestamp [15:32:07]Write 4 bytes [15:32:07]NVStorageSaveData done [15:32:07]ExternCall_PrintAddStr [15:32:07]wPrintStart [15:32:07]Write to MH i2c: 01 00 00 11 12 23 [15:32:07]Write i2c OK [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 07 00 [15:32:07]MH_I2C_Read... [15:32:07]Read from MH i2c: 01 07 00 11 12 00 00 00 00 00 FF 0F 38 [15:32:07]RasterBufferAndPrint [15:32:07]line Счет N : (1)319973 [15:32:07]line ИНН: 02508201610067 [15:32:07]line Контрольно-Кассовый Чек [15:32:07]line ПРОДАЖА [15:32:07]line ТРК (МРК, ГНК) : 11 [15:32:07]line Товар: 2710124130 [15:32:07]line Аи-92-К-5 [15:32:07]line 3.770 * 66.40 [15:32:07]line = 250.33 [15:32:07]line НДС 12% НСП 1% [15:32:07]line > о реализуемом товаре [15:32:07]line ОКРУГЛЕНИЕ: -0.33 [15:32:07]line ИТОГО: 250.00 [15:32:07]line Внесено: 250.00 [15:32:07]line СДАЧА: 0.00 [15:32:07]line НСП 1% : 2.21 [15:32:07]line НДС 12% : 26.58 [15:32:07]line Наличными: 250.00 [15:32:07]line Безнал.: 0.00 [15:32:07]line Место: АЗС № 65 "Партнер Нефть" [15:32:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:32:07]line СНО: Общий режим [15:32:07]line Чек 142 19.06.2024 15:32 [15:32:07]line Смена: 388 ФФД: 1.0 [15:32:07]line ЗНМ: 0300000198 [15:32:07]line РНМ: 0000000000092771 [15:32:07]line Версия ККМ: 001 [15:32:07]line ФМ: 0000000000875083 [15:32:07]line ФД: 111393 [15:32:07]line ФПД: 238068134470171 [15:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153210&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111393&fm=238068134470171&tin=02508201610067®Number=0000000000092771&sum=25000 [15:32:07]OFD Sender: Processing packet 111393 [packets to send 38, broken 37] [15:32:07]ProducePacketName [15:32:07]name=ofd_packets/00111393 [15:32:07]OFD Sender: To server: pG, [15:32:07]CommunicateWithHost lk.salyk.kg:30040 [15:32:07]ConnectInit lk.salyk.kg [15:32:07]written 0, free lines is 4095 [15:32:07]Connected sock=10 [15:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AE B4 07 01 51 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 8E 00 00 00 F4 03 04 00 FA F9 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 21 B3 01 00 35 04 06 00 D8 85 8E 96 62 1B AE A6 73 80 A1 80 9B A9 [15:32:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9A 70 47 00 79 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 35 30 38 33 10 04 04 00 21 B3 01 00 F4 03 04 00 60 91 72 66 B6 04 01 00 00 59 9F 19 70 F1 E8 38 36 [15:32:08]CommunicateWithHost err = 0 [15:32:08]CheckOFDResponse [15:32:08]1017 (14) - 77093643461234 [15:32:08]1041 (16) - 0000000000875083 [15:32:08]1040 (4) - 111393 [15:32:08]1012 (4) - 19.06.2024 08:05 [15:32:08]1206 (1) - 0 [15:32:08]OFD Sender: Remove packet 111393 [15:32:08]ProducePacketName [15:32:08]name=ofd_packets/00111393 [15:32:08]NVStorageDeleteData [15:32:08]Write to MH i2c: 01 00 00 3C 12 4E [15:32:08]Write i2c OK [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: 01 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: 01 07 00 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: 01 07 00 3C 12 00 00 00 00 00 C9 0C 2A [15:32:08]RasterBufferAndPrint [15:32:08]line [15:32:08]line [15:32:08]line [15:32:08]line [15:32:08]line [15:32:08]written 0, free lines is 3280 [15:32:08]MH_Cut [15:32:08]Write to MH i2c: D1 01 00 43 12 01 27 [15:32:08]Write i2c OK [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: D1 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: D1 01 00 [15:32:08]MH_I2C_Read... [15:32:08]Read from MH i2c: D1 01 00 43 12 00 26 [15:32:08]Write to MH i2c: 01 00 00 44 12 56 [15:32:08]Write i2c OK [15:32:08]MH_I2C_Read... [15:32:08]OFD Sender: No OFD packet to send [15:32:09]*** Cut start [15:32:09]*** Partial cut [15:32:09]*** CUTSNS_PIN = 1 [15:32:09]*** CUTSNS_PIN = 0 [15:32:09]*** Brake cut motor [15:32:09]Read from MH i2c: 01 [15:32:09]MH_I2C_Read... [15:32:09]*** Stop cut motor [15:32:09]*** Cut end [15:32:09]Read from MH i2c: 01 07 00 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: 01 07 00 44 12 00 00 00 00 00 FF 0F 6B [15:32:09]process_action close_receipt done [15:32:09]requested_data is exist [15:32:09]produce_requested_data [15:32:09]requested_item fm.sn is exist - process it [15:32:09]wFMCommunicate request_size=4 [15:32:09]MH_SAM_APDU [15:32:09]CAPDU: 80 11 00 00 [15:32:09]Write to MH i2c: E2 08 00 45 12 80 11 00 00 00 00 00 00 D1 [15:32:09]Write i2c OK [15:32:09]MH_I2C_Read... [15:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:09]Read from MH i2c: E2 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 17 00 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 17 00 45 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [15:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:32:09]wFMCommunicate OK [15:32:09]requested_item fd.num is exist - process it [15:32:09]SAM_PROTO_GetFieldsCounters [15:32:09]wFMCommunicate request_size=4 [15:32:09]MH_SAM_APDU [15:32:09]CAPDU: 80 13 00 00 [15:32:09]Write to MH i2c: E2 08 00 46 12 80 13 00 00 00 00 00 00 D4 [15:32:09]Write i2c OK [15:32:09]MH_I2C_Read... [15:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:09]Read from MH i2c: E2 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 62 00 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 62 00 46 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 21 B3 01 00 0E 04 04 00 84 01 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 F9 [15:32: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 21 B3 01 00 0E 04 04 00 84 01 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 [15:32:09]wFMCommunicate OK [15:32:09]SAM_PROTO_GetFieldsCounters done [15:32:09]requested_item shift.num is exist - process it [15:32:09]requested_item shift.opened is exist - process it [15:32:09]req_shift_opened [15:32:09]FM_GetShiftState [15:32:09]SAM_PROTO_GetShiftState [15:32:09]wFMCommunicate request_size=4 [15:32:09]MH_SAM_APDU [15:32:09]CAPDU: 80 13 01 00 [15:32:09]Write to MH i2c: E2 08 00 47 12 80 13 01 00 00 00 00 00 D6 [15:32:09]Write i2c OK [15:32:09]MH_I2C_Read... [15:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:09]Read from MH i2c: E2 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 0E 00 [15:32:09]MH_I2C_Read... [15:32:09]Read from MH i2c: E2 0E 00 47 12 00 09 00 01 31 35 72 66 00 00 00 00 90 00 20 [15:32:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:32:09]wFMCommunicate OK [15:32:09]SAM_PROTO_GetShiftState done [15:32:09]FM_GetShiftState done [15:32:09]req_shift_opened done [15:32:09]requested_item shift.open_date is exist - process it [15:32:09]req_shift_open_date [15:32:09]req_shift_open_date done [15:32:09]produce_requested_data done [15:32:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111393,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:32:09]process_action_free close_receipt [15:32:09]json_value_free [15:32:09]json_value_free done [15:32:09]process_json_proto returns [15:32:09]Send response to host [15:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111393,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:32:09]free response buf [15:32:09]execute_script done [15:32:09]execute_script returns [15:32:09]free content buf [15:32:09]Sock 7.Close socket [15:32:09]Sock 7.Thread stoped [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:49]accept exits with 9 [15:34:49]New connection [15:34:49]New thread 3067321700 created [15:34:49]Thread 3067465060 joined [15:34:49]Waiting for new connection... [15:34:49] Sock 9.Parse request [15:34:49]Sock 9.Check first char [15:34:49]Sock 9.First char is OK [15:34:49]request: POST /json_proto HTTP/1.0 [15:34:49]Method: POST [15:34:49]URL: /json_proto [15:34:49]Method is POST - this is cgi request [15:34:49]url: /json_proto [15:34:49]query_string will be loaded in cgi processing [15:34:49]execute_cgi json_proto POST (null) [15:34:49]execute_cgi path=json_proto method=POST [15:34:49]POST find Content-Length [15:34:49]Host: 172.17.59.68:8080 [15:34:49]Content-Length: 678 [15:34:49]Content-Type: application/json [15:34:49] [15:34:49]POST finish read [15:34:49]Found Content-Length = 678 [15:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:34:49]execute_script... [15:34:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:34:49]POST & json_proto [15:34:49]process_json_proto [15:34:49]json parsed OK: [15:34:49]protocol is kg_v1.0 [15:34:49]action value=close_receipt [15:34:49]process_action close_receipt [15:34:49]cmd_close_receipt [15:34:49]MH_GetDate [15:34:49]Write to MH i2c: F0 00 00 48 12 49 [15:34:49]Write i2c OK [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: F0 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: F0 09 00 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: F0 09 00 48 12 00 9E FA 72 66 BC EC 60 65 2F [15:34:49]GetLastDocTimeStamp 1718811130 [15:34:49]current date 1718811294 [15:34:49]FM_GetShiftState [15:34:49]SAM_PROTO_GetShiftState [15:34:49]wFMCommunicate request_size=4 [15:34:49]MH_SAM_APDU [15:34:49]CAPDU: 80 13 01 00 [15:34:49]Write to MH i2c: E2 08 00 49 12 80 13 01 00 00 00 00 00 D8 [15:34:49]Write i2c OK [15:34:49]MH_I2C_Read... [15:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:49]Read from MH i2c: E2 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: E2 0E 00 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: E2 0E 00 49 12 00 09 00 01 31 35 72 66 00 00 00 00 90 00 22 [15:34:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:34:49]wFMCommunicate OK [15:34:49]SAM_PROTO_GetShiftState done [15:34:49]FM_GetShiftState done [15:34:49]opened in 1718760753 [15:34:49]opened+sec_in_day 1718847153 [15:34:49]quantity*price = 70052 [15:34:49]sum+1 = 70053 [15:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 143 19.06.2024 15:34 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111394 ФПД: 70530824994113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153454&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111394&fm=70530824994113&tin=02508201610067®Number=0000000000092771&sum=70000 [15:34:50]StoreToDocumentArchive [15:34:50]shift 388 fd 111394 [15:34:50]save to /storage/0388/doc_00111394 [15:34:50]save last doc name /storage/0388/doc_00111394 to /storage/kkm_last_doc_name [15:34:51]save OK [15:34:51]Clear old archive folders... [15:34:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:51]tlvbuf is 00EF9190 [15:34:51]SAM_PROTO_ClearQueue [15:34:51]wFMCommunicate request_size=4 [15:34:51]MH_SAM_APDU [15:34:51]CAPDU: 80 09 00 00 [15:34:51]Write to MH i2c: E2 08 00 56 12 80 09 00 00 00 00 00 00 DA [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:51]Read from MH i2c: E2 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 56 12 00 90 00 DC [15:34:51]RAPDU: 90 00 [15:34:51]wFMCommunicate OK [15:34:51]SAM_PROTO_ClearQueue done [15:34:51]KKMCreateOFDPacket [15:34:51]OFDProtocolAddRootSTLVToBuf [15:34:51]FM_MakeSignedData [15:34:51]FM_MakeSignedData [15:34:51]SAM_PROTO_SignData [15:34:51]wFMCommunicate request_size=4 [15:34:51]MH_SAM_APDU [15:34:51]CAPDU: 80 0D 01 02 [15:34:51]Write to MH i2c: E2 08 00 57 12 80 0D 01 02 00 00 00 00 E2 [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:51]Read from MH i2c: E2 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 57 12 00 90 00 DD [15:34:51]RAPDU: 90 00 [15:34:51]wFMCommunicate OK [15:34:51]wFMCommunicate request_size=255 [15:34:51]MH_SAM_APDU [15:34: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9E FA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B3 01 00 35 04 06 00 40 [15:34:51]Write to MH i2c: E2 02 01 58 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9E FA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B3 01 00 35 04 06 00 40 00 00 42 [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:51]Read from MH i2c: E2 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 58 12 00 90 00 DE [15:34:51]RAPDU: 90 00 [15:34:51]wFMCommunicate OK [15:34:51]wFMCommunicate request_size=10 [15:34:51]MH_SAM_APDU [15:34:51]CAPDU: 80 0D 02 02 05 25 BC C4 FD 41 [15:34:51]Write to MH i2c: E2 0D 00 59 12 80 0D 02 02 05 00 25 BC C4 FD 41 00 00 D2 [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:51]Read from MH i2c: E2 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [15:34:51]RAPDU: 90 00 [15:34:51]wFMCommunicate OK [15:34:51]wFMCommunicate request_size=4 [15:34:51]MH_SAM_APDU [15:34:51]CAPDU: 80 0D 03 02 [15:34:51]Write to MH i2c: E2 08 00 5A 12 80 0D 03 02 00 00 00 00 E7 [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:51]Read from MH i2c: E2 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 0B 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 0B 00 5A 12 00 30 65 5A 52 30 69 CC 6B 90 00 F9 [15:34:51]RAPDU: 30 65 5A 52 30 69 CC 6B 90 00 [15:34:51]wFMCommunicate OK [15:34:51]SAM_PROTO_SignData done [15:34:51]FM_MakeSignedData done [15:34:51]CreateOFDProtocolMessage [15:34:51]wFMCommunicate request_size=4 [15:34:51]MH_SAM_APDU [15:34:51]CAPDU: 80 11 00 00 [15:34:51]Write to MH i2c: E2 08 00 5B 12 80 11 00 00 00 00 00 00 E7 [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:51]Read from MH i2c: E2 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 17 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: E2 17 00 5B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [15:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:34:51]wFMCommunicate OK [15:34:51]CreateOFDProtocolMessage done [15:34:51]OFDSenderStorePacket 111394 [15:34:51]StoreOFDPacket docnum=111394 [15:34:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 77 6D 07 01 D1 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9E FA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B3 01 00 35 04 06 00 40 25 BC C4 FD 41 30 65 5A 52 30 69 CC 6B [15:34:51]CheckFolder [15:34:51]dirname=/storage/ofd_packets [15:34:51]CheckFolder done [15:34:51]ProducePacketName [15:34:51]name=ofd_packets/00111394 [15:34:51]NVStorageSaveData ofd_packets/00111394 [15:34:51]File name is /storage/ofd_packets/00111394 [15:34:51]Write 301 bytes [15:34:51]NVStorageSaveData done [15:34:51]OFDSenderStorePacket done [15:34:51]KKMCreateOFDPacket done [15:34:51]NVStorageSaveData kkm_last_timestamp [15:34:51]File name is /storage/kkm_last_timestamp [15:34:51]Write 4 bytes [15:34:51]NVStorageSaveData done [15:34:51]ExternCall_PrintAddStr [15:34:51]wPrintStart [15:34:51]Write to MH i2c: 01 00 00 5C 12 6E [15:34:51]Write i2c OK [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: 01 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: 01 07 00 [15:34:51]MH_I2C_Read... [15:34:51]Read from MH i2c: 01 07 00 5C 12 00 00 00 00 00 FF 0F 83 [15:34:51]RasterBufferAndPrint [15:34:51]line Счет N : (1)319974 [15:34:51]line ИНН: 02508201610067 [15:34:51]line Контрольно-Кассовый Чек [15:34:51]line ПРОДАЖА [15:34:51]line ТРК (МРК, ГНК) : 11 [15:34:51]line Товар: 2710124130 [15:34:51]line Аи-92-К-5 [15:34:51]line 10.550 * 66.40 [15:34:51]line = 700.52 [15:34:51]line НДС 12% НСП 1% [15:34:51]line > о реализуемом товаре [15:34:51]line ОКРУГЛЕНИЕ: -0.52 [15:34:51]line ИТОГО: 700.00 [15:34:51]line Внесено: 700.00 [15:34:51]line СДАЧА: 0.00 [15:34:51]line НСП 1% : 6.20 [15:34:51]line НДС 12% : 74.39 [15:34:51]line Наличными: 700.00 [15:34:51]line Безнал.: 0.00 [15:34:51]line Место: АЗС № 65 "Партнер Нефть" [15:34:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:34:51]line СНО: Общий режим [15:34:51]line Чек 143 19.06.2024 15:34 [15:34:51]line Смена: 388 ФФД: 1.0 [15:34:51]line ЗНМ: 0300000198 [15:34:51]line РНМ: 0000000000092771 [15:34:51]line Версия ККМ: 001 [15:34:51]line ФМ: 0000000000875083 [15:34:51]line ФД: 111394 [15:34:51]line ФПД: 70530824994113 [15:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153454&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111394&fm=70530824994113&tin=02508201610067®Number=0000000000092771&sum=70000 [15:34:51]OFD Sender: Processing packet 111394 [packets to send 38, broken 37] [15:34:51]ProducePacketName [15:34:51]name=ofd_packets/00111394 [15:34:51]OFD Sender: To server: pG, [15:34:51]CommunicateWithHost lk.salyk.kg:30040 [15:34:51]ConnectInit lk.salyk.kg [15:34:51]written 0, free lines is 4095 [15:34:52]Connected sock=10 [15:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 77 6D 07 01 D1 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 9E FA 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 22 B3 01 00 35 04 06 00 40 25 BC C4 FD 41 30 65 5A 52 30 69 CC 6B [15:34:52]Write to MH i2c: 01 00 00 87 12 99 [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: 01 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: 01 07 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: 01 07 00 87 12 00 00 00 00 00 CB 0C 77 [15:34:52]RasterBufferAndPrint [15:34:52]line [15:34:52]line [15:34:52]line [15:34:52]line [15:34:52]line [15:34:52]written 0, free lines is 3278 [15:34:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A8 0C 47 00 41 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 35 30 38 33 10 04 04 00 22 B3 01 00 F4 03 04 00 04 92 72 66 B6 04 01 00 00 07 BB BF 33 04 CF 3B A3 [15:34:52]CommunicateWithHost err = 0 [15:34:52]CheckOFDResponse [15:34:52]1017 (14) - 77093643461234 [15:34:52]1041 (16) - 0000000000875083 [15:34:52]1040 (4) - 111394 [15:34:52]1012 (4) - 19.06.2024 08:08 [15:34:52]1206 (1) - 0 [15:34:52]OFD Sender: Remove packet 111394 [15:34:52]ProducePacketName [15:34:52]name=ofd_packets/00111394 [15:34:52]NVStorageDeleteData [15:34:52]MH_Cut [15:34:52]Write to MH i2c: D1 01 00 8E 12 01 72 [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: D1 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: D1 01 00 [15:34:52]MH_I2C_Read... [15:34:52]Read from MH i2c: D1 01 00 8E 12 00 71 [15:34:52]Write to MH i2c: 01 00 00 8F 12 A1 [15:34:52]Write i2c OK [15:34:52]MH_I2C_Read... [15:34:52]OFD Sender: No OFD packet to send [15:34:53]*** Cut start [15:34:53]*** Partial cut [15:34:53]*** CUTSNS_PIN = 1 [15:34:53]*** CUTSNS_PIN = 0 [15:34:53]*** Brake cut motor [15:34:53]Read from MH i2c: 01 [15:34:53]MH_I2C_Read... [15:34:53]*** Stop cut motor [15:34:53]*** Cut end [15:34:53]Read from MH i2c: 01 07 00 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: 01 07 00 8F 12 00 00 00 00 00 FF 0F B6 [15:34:53]process_action close_receipt done [15:34:53]requested_data is exist [15:34:53]produce_requested_data [15:34:53]requested_item fm.sn is exist - process it [15:34:53]wFMCommunicate request_size=4 [15:34:53]MH_SAM_APDU [15:34:53]CAPDU: 80 11 00 00 [15:34:53]Write to MH i2c: E2 08 00 90 12 80 11 00 00 00 00 00 00 1C [15:34:53]Write i2c OK [15:34:53]MH_I2C_Read... [15:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:53]Read from MH i2c: E2 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: E2 17 00 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: E2 17 00 90 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [15:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:34:53]wFMCommunicate OK [15:34:53]requested_item fd.num is exist - process it [15:34:53]SAM_PROTO_GetFieldsCounters [15:34:53]wFMCommunicate request_size=4 [15:34:53]MH_SAM_APDU [15:34:53]CAPDU: 80 13 00 00 [15:34:53]Write to MH i2c: E2 08 00 91 12 80 13 00 00 00 00 00 00 1F [15:34:53]Write i2c OK [15:34:53]MH_I2C_Read... [15:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:53]Read from MH i2c: E2 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: E2 62 00 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: E2 62 00 91 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 22 B3 01 00 0E 04 04 00 84 01 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 48 [15:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 22 B3 01 00 0E 04 04 00 84 01 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 [15:34:53]wFMCommunicate OK [15:34:53]SAM_PROTO_GetFieldsCounters done [15:34:53]requested_item shift.num is exist - process it [15:34:53]requested_item shift.opened is exist - process it [15:34:53]req_shift_opened [15:34:53]FM_GetShiftState [15:34:53]SAM_PROTO_GetShiftState [15:34:53]wFMCommunicate request_size=4 [15:34:53]MH_SAM_APDU [15:34:53]CAPDU: 80 13 01 00 [15:34:53]Write to MH i2c: E2 08 00 92 12 80 13 01 00 00 00 00 00 21 [15:34:53]Write i2c OK [15:34:53]MH_I2C_Read... [15:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:53]Read from MH i2c: E2 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: E2 0E 00 [15:34:53]MH_I2C_Read... [15:34:53]Read from MH i2c: E2 0E 00 92 12 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6B [15:34:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:34:53]wFMCommunicate OK [15:34:53]SAM_PROTO_GetShiftState done [15:34:53]FM_GetShiftState done [15:34:53]req_shift_opened done [15:34:53]requested_item shift.open_date is exist - process it [15:34:53]req_shift_open_date [15:34:53]req_shift_open_date done [15:34:53]produce_requested_data done [15:34:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111394,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:34:53]process_action_free close_receipt [15:34:53]json_value_free [15:34:53]json_value_free done [15:34:53]process_json_proto returns [15:34:53]Send response to host [15:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111394,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:34:53]free response buf [15:34:53]execute_script done [15:34:53]execute_script returns [15:34:53]free content buf [15:34:53]Sock 9.Close socket [15:34:53]Sock 9.Thread stoped [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:10]accept exits with 7 [15:38:10]New connection [15:38:10]New thread 3067465060 created [15:38:10]Thread 3067321700 joined [15:38:10]Waiting for new connection... [15:38:10] Sock 7.Parse request [15:38:10]Sock 7.Check first char [15:38:10]Sock 7.First char is OK [15:38:10]request: POST /json_proto HTTP/1.0 [15:38:10]Method: POST [15:38:10]URL: /json_proto [15:38:10]Method is POST - this is cgi request [15:38:10]url: /json_proto [15:38:10]query_string will be loaded in cgi processing [15:38:10]execute_cgi json_proto POST (null) [15:38:10]execute_cgi path=json_proto method=POST [15:38:10]POST find Content-Length [15:38:10]Host: 172.17.59.68:8080 [15:38:10]Content-Length: 677 [15:38:10]Content-Type: application/json [15:38:10] [15:38:10]POST finish read [15:38:10]Found Content-Length = 677 [15:38:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:38:10]execute_script... [15:38: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)319975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:38:10]POST & json_proto [15:38:10]process_json_proto [15:38:10]json parsed OK: [15:38:10]protocol is kg_v1.0 [15:38:10]action value=close_receipt [15:38:10]process_action close_receipt [15:38:10]cmd_close_receipt [15:38:10]MH_GetDate [15:38:10]Write to MH i2c: F0 00 00 93 12 94 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: F0 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: F0 09 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: F0 09 00 93 12 00 67 FB 72 66 BC EC 60 65 44 [15:38:10]GetLastDocTimeStamp 1718811294 [15:38:10]current date 1718811495 [15:38:10]FM_GetShiftState [15:38:10]SAM_PROTO_GetShiftState [15:38:10]wFMCommunicate request_size=4 [15:38:10]MH_SAM_APDU [15:38:10]CAPDU: 80 13 01 00 [15:38:10]Write to MH i2c: E2 08 00 94 12 80 13 01 00 00 00 00 00 23 [15:38:10]Write i2c OK [15:38:10]MH_I2C_Read... [15:38:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:10]Read from MH i2c: E2 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 0E 00 [15:38:10]MH_I2C_Read... [15:38:10]Read from MH i2c: E2 0E 00 94 12 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6D [15:38:10]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:38:10]wFMCommunicate OK [15:38:10]SAM_PROTO_GetShiftState done [15:38:10]FM_GetShiftState done [15:38:10]opened in 1718760753 [15:38:10]opened+sec_in_day 1718847153 [15:38:10]quantity*price = 20052 [15:38:10]sum+1 = 20054 [15:38:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 144 19.06.2024 15:38 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111395 ФПД: 266209896102486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111395&fm=266209896102486&tin=02508201610067®Number=0000000000092771&sum=20000 [15:38:11]StoreToDocumentArchive [15:38:11]shift 388 fd 111395 [15:38:11]save to /storage/0388/doc_00111395 [15:38:11]save last doc name /storage/0388/doc_00111395 to /storage/kkm_last_doc_name [15:38:11]save OK [15:38:11]Clear old archive folders... [15:38:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:11]tlvbuf is 00EFB6E0 [15:38:11]SAM_PROTO_ClearQueue [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 09 00 00 [15:38:11]Write to MH i2c: E2 08 00 A1 12 80 09 00 00 00 00 00 00 25 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 A1 12 00 90 00 27 [15:38:11]RAPDU: 90 00 [15:38:11]wFMCommunicate OK [15:38:11]SAM_PROTO_ClearQueue done [15:38:11]KKMCreateOFDPacket [15:38:11]OFDProtocolAddRootSTLVToBuf [15:38:11]FM_MakeSignedData [15:38:11]FM_MakeSignedData [15:38:11]SAM_PROTO_SignData [15:38:11]wFMCommunicate request_size=4 [15:38:11]MH_SAM_APDU [15:38:11]CAPDU: 80 0D 01 02 [15:38:11]Write to MH i2c: E2 08 00 A2 12 80 0D 01 02 00 00 00 00 2D [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:11]Read from MH i2c: E2 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 [15:38:11]MH_I2C_Read... [15:38:11]Read from MH i2c: E2 03 00 A2 12 00 90 00 28 [15:38:11]RAPDU: 90 00 [15:38:11]wFMCommunicate OK [15:38:11]wFMCommunicate request_size=255 [15:38:11]MH_SAM_APDU [15:38: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 67 FB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B3 01 00 35 04 06 00 F2 [15:38:11]Write to MH i2c: E2 02 01 A3 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 67 FB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B3 01 00 35 04 06 00 F2 00 00 B8 [15:38:11]Write i2c OK [15:38:11]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 03 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 03 00 A3 12 00 90 00 29 [15:38:12]RAPDU: 90 00 [15:38:12]wFMCommunicate OK [15:38:12]wFMCommunicate request_size=10 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 0D 02 02 05 1D D2 4A FA 56 [15:38:12]Write to MH i2c: E2 0D 00 A4 12 80 0D 02 02 05 00 1D D2 4A FA 56 00 00 C3 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 03 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [15:38:12]RAPDU: 90 00 [15:38:12]wFMCommunicate OK [15:38:12]wFMCommunicate request_size=4 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 0D 03 02 [15:38:12]Write to MH i2c: E2 08 00 A5 12 80 0D 03 02 00 00 00 00 32 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 0B 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 0B 00 A5 12 00 B3 E0 70 14 49 94 0B 54 90 00 86 [15:38:12]RAPDU: B3 E0 70 14 49 94 0B 54 90 00 [15:38:12]wFMCommunicate OK [15:38:12]SAM_PROTO_SignData done [15:38:12]FM_MakeSignedData done [15:38:12]CreateOFDProtocolMessage [15:38:12]wFMCommunicate request_size=4 [15:38:12]MH_SAM_APDU [15:38:12]CAPDU: 80 11 00 00 [15:38:12]Write to MH i2c: E2 08 00 A6 12 80 11 00 00 00 00 00 00 32 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:12]Read from MH i2c: E2 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 17 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: E2 17 00 A6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 84 [15:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:38:12]wFMCommunicate OK [15:38:12]CreateOFDProtocolMessage done [15:38:12]OFDSenderStorePacket 111395 [15:38:12]StoreOFDPacket docnum=111395 [15:38:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 72 07 01 0B 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 67 FB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B3 01 00 35 04 06 00 F2 1D D2 4A FA 56 B3 E0 70 14 49 94 0B 54 [15:38:12]CheckFolder [15:38:12]dirname=/storage/ofd_packets [15:38:12]CheckFolder done [15:38:12]ProducePacketName [15:38:12]name=ofd_packets/00111395 [15:38:12]NVStorageSaveData ofd_packets/00111395 [15:38:12]File name is /storage/ofd_packets/00111395 [15:38:12]Write 301 bytes [15:38:12]NVStorageSaveData done [15:38:12]OFDSenderStorePacket done [15:38:12]KKMCreateOFDPacket done [15:38:12]NVStorageSaveData kkm_last_timestamp [15:38:12]File name is /storage/kkm_last_timestamp [15:38:12]Write 4 bytes [15:38:12]NVStorageSaveData done [15:38:12]ExternCall_PrintAddStr [15:38:12]wPrintStart [15:38:12]Write to MH i2c: 01 00 00 A7 12 B9 [15:38:12]Write i2c OK [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 07 00 [15:38:12]MH_I2C_Read... [15:38:12]Read from MH i2c: 01 07 00 A7 12 00 00 00 00 00 FF 0F CE [15:38:12]RasterBufferAndPrint [15:38:12]line Счет N : (1)319975 [15:38:12]line ИНН: 02508201610067 [15:38:12]line Контрольно-Кассовый Чек [15:38:12]line ПРОДАЖА [15:38:12]line ТРК (МРК, ГНК) : 11 [15:38:12]line Товар: 2710124130 [15:38:12]line Аи-92-К-5 [15:38:12]line 3.020 * 66.40 [15:38:12]line = 200.53 [15:38:12]line НДС 12% НСП 1% [15:38:12]line > о реализуемом товаре [15:38:12]line ОКРУГЛЕНИЕ: -0.53 [15:38:12]line ИТОГО: 200.00 [15:38:12]line Внесено: 200.00 [15:38:12]line СДАЧА: 0.00 [15:38:12]line НСП 1% : 1.77 [15:38:12]line НДС 12% : 21.29 [15:38:12]line Наличными: 200.00 [15:38:12]line Безнал.: 0.00 [15:38:12]line Место: АЗС № 65 "Партнер Нефть" [15:38:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:38:12]line СНО: Общий режим [15:38:12]line Чек 144 19.06.2024 15:38 [15:38:12]line Смена: 388 ФФД: 1.0 [15:38:12]line ЗНМ: 0300000198 [15:38:12]line РНМ: 0000000000092771 [15:38:12]line Версия ККМ: 001 [15:38:12]line ФМ: 0000000000875083 [15:38:12]line ФД: 111395 [15:38:12]line ФПД: 266209896102486 [15:38:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T153815&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111395&fm=266209896102486&tin=02508201610067®Number=0000000000092771&sum=20000 [15:38:12]OFD Sender: Processing packet 111395 [packets to send 38, broken 37] [15:38:12]ProducePacketName [15:38:12]name=ofd_packets/00111395 [15:38:12]OFD Sender: To server: pG, [15:38:12]CommunicateWithHost lk.salyk.kg:30040 [15:38:12]ConnectInit lk.salyk.kg [15:38:12]written 0, free lines is 4095 [15:38:12]Connected sock=10 [15:38:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 72 07 01 0B 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 67 FB 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B3 01 00 35 04 06 00 F2 1D D2 4A FA 56 B3 E0 70 14 49 94 0B 54 [15:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 31 95 47 00 A7 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 23 B3 01 00 F4 03 04 00 CD 92 72 66 B6 04 01 00 00 8B 9B AB F0 41 33 E1 2E [15:38:12]CommunicateWithHost err = 0 [15:38:12]CheckOFDResponse [15:38:12]1017 (14) - 77093643461234 [15:38:12]1041 (16) - 0000000000875083 [15:38:12]1040 (4) - 111395 [15:38:12]1012 (4) - 19.06.2024 08:11 [15:38:12]1206 (1) - 0 [15:38:12]OFD Sender: Remove packet 111395 [15:38:12]ProducePacketName [15:38:12]name=ofd_packets/00111395 [15:38:12]NVStorageDeleteData [15:38:13]Write to MH i2c: 01 00 00 D2 12 E4 [15:38:13]Write i2c OK [15:38:13]MH_I2C_Read... [15:38:13]Read from MH i2c: 01 [15:38:13]MH_I2C_Read... [15:38:13]Read from MH i2c: 01 07 00 [15:38:13]MH_I2C_Read... [15:38:13]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 D0 0C C7 [15:38:13]RasterBufferAndPrint [15:38:13]line [15:38:13]line [15:38:13]line [15:38:13]line [15:38:13]line [15:38:13]written 0, free lines is 3284 [15:38:13]MH_Cut [15:38:13]Write to MH i2c: D1 01 00 D9 12 01 BD [15:38:13]Write i2c OK [15:38:13]MH_I2C_Read... [15:38:13]Read from MH i2c: D1 [15:38:13]MH_I2C_Read... [15:38:13]Read from MH i2c: D1 01 00 [15:38:13]MH_I2C_Read... [15:38:13]Read from MH i2c: D1 01 00 D9 12 00 BC [15:38:13]Write to MH i2c: 01 00 00 DA 12 EC [15:38:13]Write i2c OK [15:38:13]MH_I2C_Read... [15:38:13]OFD Sender: No OFD packet to send [15:38:13]*** Cut start [15:38:13]*** Partial cut [15:38:13]*** CUTSNS_PIN = 1 [15:38:13]*** CUTSNS_PIN = 0 [15:38:14]*** Brake cut motor [15:38:14]Read from MH i2c: 01 [15:38:14]MH_I2C_Read... [15:38:14]*** Stop cut motor [15:38:14]*** Cut end [15:38:14]Read from MH i2c: 01 07 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: 01 07 00 DA 12 00 00 00 00 00 FF 0F 01 [15:38:14]process_action close_receipt done [15:38:14]requested_data is exist [15:38:14]produce_requested_data [15:38:14]requested_item fm.sn is exist - process it [15:38:14]wFMCommunicate request_size=4 [15:38:14]MH_SAM_APDU [15:38:14]CAPDU: 80 11 00 00 [15:38:14]Write to MH i2c: E2 08 00 DB 12 80 11 00 00 00 00 00 00 67 [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:14]Read from MH i2c: E2 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: E2 17 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: E2 17 00 DB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [15:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:38:14]wFMCommunicate OK [15:38:14]requested_item fd.num is exist - process it [15:38:14]SAM_PROTO_GetFieldsCounters [15:38:14]wFMCommunicate request_size=4 [15:38:14]MH_SAM_APDU [15:38:14]CAPDU: 80 13 00 00 [15:38:14]Write to MH i2c: E2 08 00 DC 12 80 13 00 00 00 00 00 00 6A [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:14]Read from MH i2c: E2 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: E2 62 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: E2 62 00 DC 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B3 01 00 0E 04 04 00 84 01 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 97 [15:38: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 23 B3 01 00 0E 04 04 00 84 01 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 [15:38:14]wFMCommunicate OK [15:38:14]SAM_PROTO_GetFieldsCounters done [15:38:14]requested_item shift.num is exist - process it [15:38:14]requested_item shift.opened is exist - process it [15:38:14]req_shift_opened [15:38:14]FM_GetShiftState [15:38:14]SAM_PROTO_GetShiftState [15:38:14]wFMCommunicate request_size=4 [15:38:14]MH_SAM_APDU [15:38:14]CAPDU: 80 13 01 00 [15:38:14]Write to MH i2c: E2 08 00 DD 12 80 13 01 00 00 00 00 00 6C [15:38:14]Write i2c OK [15:38:14]MH_I2C_Read... [15:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:14]Read from MH i2c: E2 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: E2 0E 00 [15:38:14]MH_I2C_Read... [15:38:14]Read from MH i2c: E2 0E 00 DD 12 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B6 [15:38:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:38:14]wFMCommunicate OK [15:38:14]SAM_PROTO_GetShiftState done [15:38:14]FM_GetShiftState done [15:38:14]req_shift_opened done [15:38:14]requested_item shift.open_date is exist - process it [15:38:14]req_shift_open_date [15:38:14]req_shift_open_date done [15:38:14]produce_requested_data done [15:38:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111395,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:38:14]process_action_free close_receipt [15:38:14]json_value_free [15:38:14]json_value_free done [15:38:14]process_json_proto returns [15:38:14]Send response to host [15:38:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111395,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:38:14]free response buf [15:38:14]execute_script done [15:38:14]execute_script returns [15:38:14]free content buf [15:38:14]Sock 7.Close socket [15:38:14]Sock 7.Thread stoped [15:38:18]OFD Sender: No OFD packet to send [15:38:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:18]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:09]accept exits with 9 [15:41:09]New connection [15:41:09]New thread 3067321700 created [15:41:09]Thread 3067465060 joined [15:41:09]Waiting for new connection... [15:41:09] Sock 9.Parse request [15:41:09]Sock 9.Check first char [15:41:09]Sock 9.First char is OK [15:41:09]request: POST /json_proto HTTP/1.0 [15:41:09]Method: POST [15:41:09]URL: /json_proto [15:41:09]Method is POST - this is cgi request [15:41:09]url: /json_proto [15:41:09]query_string will be loaded in cgi processing [15:41:09]execute_cgi json_proto POST (null) [15:41:09]execute_cgi path=json_proto method=POST [15:41:09]POST find Content-Length [15:41:09]Host: 172.17.59.68:8080 [15:41:09]Content-Length: 808 [15:41:09]Content-Type: application/json [15:41:09] [15:41:09]POST finish read [15:41:09]Found Content-Length = 808 [15:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.000, "sum" : 1992.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:09]execute_script... [15:41: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)319976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.000, "sum" : 1992.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1992.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:09]POST & json_proto [15:41:09]process_json_proto [15:41:09]json parsed OK: [15:41:09]protocol is kg_v1.0 [15:41:09]action value=close_receipt [15:41:09]process_action close_receipt [15:41:09]cmd_close_receipt [15:41:09]MH_GetDate [15:41:09]Write to MH i2c: F0 00 00 DE 12 DF [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: F0 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: F0 09 00 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: F0 09 00 DE 12 00 1A FC 72 66 BC EC 60 65 43 [15:41:09]GetLastDocTimeStamp 1718811495 [15:41:09]current date 1718811674 [15:41:09]FM_GetShiftState [15:41:09]SAM_PROTO_GetShiftState [15:41:09]wFMCommunicate request_size=4 [15:41:09]MH_SAM_APDU [15:41:09]CAPDU: 80 13 01 00 [15:41:09]Write to MH i2c: E2 08 00 DF 12 80 13 01 00 00 00 00 00 6E [15:41:09]Write i2c OK [15:41:09]MH_I2C_Read... [15:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:09]Read from MH i2c: E2 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: E2 0E 00 [15:41:09]MH_I2C_Read... [15:41:09]Read from MH i2c: E2 0E 00 DF 12 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B8 [15:41:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:41:09]wFMCommunicate OK [15:41:09]SAM_PROTO_GetShiftState done [15:41:09]FM_GetShiftState done [15:41:09]opened in 1718760753 [15:41:09]opened+sec_in_day 1718847153 [15:41:09]quantity*price = 199200 [15:41:09]sum+1 = 199201 [15:41:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1992.00 НСП 1% : 17.63 НДС 12% : 211.54 Наличными: 0.00 Безнал.: 1992.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 145 19.06.2024 15:41 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111396 ФПД: 45061479463204 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111396&fm=45061479463204&tin=02508201610067®Number=0000000000092771&sum=199200 [15:41:10]StoreToDocumentArchive [15:41:10]shift 388 fd 111396 [15:41:10]save to /storage/0388/doc_00111396 [15:41:10]save last doc name /storage/0388/doc_00111396 to /storage/kkm_last_doc_name [15:41:10]save OK [15:41:10]Clear old archive folders... [15:41:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:10]tlvbuf is 00EECFE0 [15:41:10]SAM_PROTO_ClearQueue [15:41:10]wFMCommunicate request_size=4 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 09 00 00 [15:41:10]Write to MH i2c: E2 08 00 EC 12 80 09 00 00 00 00 00 00 70 [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 03 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 03 00 EC 12 00 90 00 72 [15:41:10]RAPDU: 90 00 [15:41:10]wFMCommunicate OK [15:41:10]SAM_PROTO_ClearQueue done [15:41:10]KKMCreateOFDPacket [15:41:10]OFDProtocolAddRootSTLVToBuf [15:41:10]FM_MakeSignedData [15:41:10]FM_MakeSignedData [15:41:10]SAM_PROTO_SignData [15:41:10]wFMCommunicate request_size=4 [15:41:10]MH_SAM_APDU [15:41:10]CAPDU: 80 0D 01 02 [15:41:10]Write to MH i2c: E2 08 00 ED 12 80 0D 01 02 00 00 00 00 78 [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:10]Read from MH i2c: E2 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 03 00 [15:41:10]MH_I2C_Read... [15:41:10]Read from MH i2c: E2 03 00 ED 12 00 90 00 73 [15:41:10]RAPDU: 90 00 [15:41:10]wFMCommunicate OK [15:41:10]wFMCommunicate request_size=255 [15:41:10]MH_SAM_APDU [15:41: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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 0A 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1A FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B3 01 00 35 04 06 00 28 [15:41:10]Write to MH i2c: E2 02 01 EE 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 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 0A 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1A FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B3 01 00 35 04 06 00 28 00 00 98 [15:41:10]Write i2c OK [15:41:10]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 03 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [15:41:11]RAPDU: 90 00 [15:41:11]wFMCommunicate OK [15:41:11]wFMCommunicate request_size=10 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 0D 02 02 05 FB B1 79 F9 24 [15:41:11]Write to MH i2c: E2 0D 00 EF 12 80 0D 02 02 05 00 FB B1 79 F9 24 00 00 C7 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 03 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [15:41:11]RAPDU: 90 00 [15:41:11]wFMCommunicate OK [15:41:11]wFMCommunicate request_size=4 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 0D 03 02 [15:41:11]Write to MH i2c: E2 08 00 F0 12 80 0D 03 02 00 00 00 00 7D [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0B 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0B 00 F0 12 00 41 1E B9 49 75 66 FC 9A 90 00 50 [15:41:11]RAPDU: 41 1E B9 49 75 66 FC 9A 90 00 [15:41:11]wFMCommunicate OK [15:41:11]SAM_PROTO_SignData done [15:41:11]FM_MakeSignedData done [15:41:11]CreateOFDProtocolMessage [15:41:11]wFMCommunicate request_size=4 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 11 00 00 [15:41:11]Write to MH i2c: E2 08 00 F1 12 80 11 00 00 00 00 00 00 7D [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 17 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 17 00 F1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CF [15:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:41:11]wFMCommunicate OK [15:41:11]CreateOFDProtocolMessage done [15:41:11]OFDSenderStorePacket 111396 [15:41:11]StoreOFDPacket docnum=111396 [15:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 EC 07 01 63 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 0A 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1A FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B3 01 00 35 04 06 00 28 FB B1 79 F9 24 41 1E B9 49 75 66 FC 9A [15:41:11]CheckFolder [15:41:11]dirname=/storage/ofd_packets [15:41:11]CheckFolder done [15:41:11]ProducePacketName [15:41:11]name=ofd_packets/00111396 [15:41:11]NVStorageSaveData ofd_packets/00111396 [15:41:11]File name is /storage/ofd_packets/00111396 [15:41:11]Write 301 bytes [15:41:11]NVStorageSaveData done [15:41:11]OFDSenderStorePacket done [15:41:11]KKMCreateOFDPacket done [15:41:11]NVStorageSaveData kkm_last_timestamp [15:41:11]File name is /storage/kkm_last_timestamp [15:41:11]Write 4 bytes [15:41:11]NVStorageSaveData done [15:41:11]ExternCall_PrintAddStr [15:41:11]wPrintStart [15:41:11]Write to MH i2c: 01 00 00 F2 12 04 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: 01 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: 01 07 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: 01 07 00 F2 12 00 00 00 00 00 FF 0F 19 [15:41:11]RasterBufferAndPrint [15:41:11]line Счет N : (1)319976 [15:41:11]line ИНН: 02508201610067 [15:41:11]line Контрольно-Кассовый Чек [15:41:11]line ПРОДАЖА [15:41:11]line ТРК (МРК, ГНК) : 11 [15:41:11]line Товар: 2710124130 [15:41:11]line Аи-92-К-5 [15:41:11]line 30.000 * 66.40 [15:41:11]line = 1992.00 [15:41:11]line НДС 12% НСП 1% [15:41:11]line > о реализуемом товаре [15:41:11]line ИТОГО: 1992.00 [15:41:11]line НСП 1% : 17.63 [15:41:11]line НДС 12% : 211.54 [15:41:11]line Наличными: 0.00 [15:41:11]line Безнал.: 1992.00 [15:41:11]line Место: АЗС № 65 "Партнер Нефть" [15:41:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:41:11]line СНО: Общий режим [15:41:11]line Чек 145 19.06.2024 15:41 [15:41:11]line Смена: 388 ФФД: 1.0 [15:41:11]line ЗНМ: 0300000198 [15:41:11]line РНМ: 0000000000092771 [15:41:11]line Версия ККМ: 001 [15:41:11]line Платежная система: О! деньги [15:41:11]line ФМ: 0000000000875083 [15:41:11]line ФД: 111396 [15:41:11]line ФПД: 45061479463204 [15:41:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154114&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111396&fm=45061479463204&tin=02508201610067®Number=0000000000092771&sum=199200 [15:41:11]written 0, free lines is 4095 [15:41:11]OFD Sender: Processing packet 111396 [packets to send 38, broken 37] [15:41:11]ProducePacketName [15:41:11]name=ofd_packets/00111396 [15:41:11]OFD Sender: To server: pG, [15:41:11]CommunicateWithHost lk.salyk.kg:30040 [15:41:11]ConnectInit lk.salyk.kg [15:41:11]Connected sock=11 [15:41:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 33 EC 07 01 63 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 20 0A 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 0A 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 0A 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 1A FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 24 B3 01 00 35 04 06 00 28 FB B1 79 F9 24 41 1E B9 49 75 66 FC 9A [15:41:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E8 49 47 00 9F 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 35 30 38 33 10 04 04 00 24 B3 01 00 F4 03 04 00 80 93 72 66 B6 04 01 00 00 1E 64 45 75 0F E2 BB 74 [15:41:11]CommunicateWithHost err = 0 [15:41:11]CheckOFDResponse [15:41:11]1017 (14) - 77093643461234 [15:41:11]1041 (16) - 0000000000875083 [15:41:11]1040 (4) - 111396 [15:41:11]1012 (4) - 19.06.2024 08:14 [15:41:11]1206 (1) - 0 [15:41:11]OFD Sender: Remove packet 111396 [15:41:11]ProducePacketName [15:41:11]name=ofd_packets/00111396 [15:41:11]NVStorageDeleteData [15:41:12]Write to MH i2c: 01 00 00 1C 13 2F [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 07 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 07 00 1C 13 00 00 00 00 00 F1 0C 33 [15:41:12]RasterBufferAndPrint [15:41:12]line [15:41:12]line [15:41:12]line [15:41:12]line [15:41:12]line [15:41:12]written 0, free lines is 3319 [15:41:12]MH_Cut [15:41:12]Write to MH i2c: D1 01 00 23 13 01 08 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: D1 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: D1 01 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: D1 01 00 23 13 00 07 [15:41:12]Write to MH i2c: 01 00 00 24 13 37 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]OFD Sender: No OFD packet to send [15:41:12]*** Cut start [15:41:12]*** Partial cut [15:41:12]*** CUTSNS_PIN = 1 [15:41:12]*** CUTSNS_PIN = 0 [15:41:13]*** Brake cut motor [15:41:13]Read from MH i2c: 01 [15:41:13]MH_I2C_Read... [15:41:13]*** Stop cut motor [15:41:13]*** Cut end [15:41:13]Read from MH i2c: 01 07 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 24 13 00 00 00 00 00 FF 0F 4C [15:41:13]process_action close_receipt done [15:41:13]requested_data is exist [15:41:13]produce_requested_data [15:41:13]requested_item fm.sn is exist - process it [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 11 00 00 [15:41:13]Write to MH i2c: E2 08 00 25 13 80 11 00 00 00 00 00 00 B2 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 17 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 17 00 25 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 04 [15:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:41:13]wFMCommunicate OK [15:41:13]requested_item fd.num is exist - process it [15:41:13]SAM_PROTO_GetFieldsCounters [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 13 00 00 [15:41:13]Write to MH i2c: E2 08 00 26 13 80 13 00 00 00 00 00 00 B5 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 62 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 62 00 26 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 24 B3 01 00 0E 04 04 00 84 01 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 E6 [15:41: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 24 B3 01 00 0E 04 04 00 84 01 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 [15:41:13]wFMCommunicate OK [15:41:13]SAM_PROTO_GetFieldsCounters done [15:41:13]requested_item shift.num is exist - process it [15:41:13]requested_item shift.opened is exist - process it [15:41:13]req_shift_opened [15:41:13]FM_GetShiftState [15:41:13]SAM_PROTO_GetShiftState [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 13 01 00 [15:41:13]Write to MH i2c: E2 08 00 27 13 80 13 01 00 00 00 00 00 B7 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 27 13 00 09 00 01 31 35 72 66 00 00 00 00 90 00 01 [15:41:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:41:13]wFMCommunicate OK [15:41:13]SAM_PROTO_GetShiftState done [15:41:13]FM_GetShiftState done [15:41:13]req_shift_opened done [15:41:13]requested_item shift.open_date is exist - process it [15:41:13]req_shift_open_date [15:41:13]req_shift_open_date done [15:41:13]produce_requested_data done [15:41:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111396,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:41:13]process_action_free close_receipt [15:41:13]json_value_free [15:41:13]json_value_free done [15:41:13]process_json_proto returns [15:41:13]Send response to host [15:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111396,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:41:13]free response buf [15:41:13]execute_script done [15:41:13]execute_script returns [15:41:13]free content buf [15:41:13]Sock 9.Close socket [15:41:13]Sock 9.Thread stoped [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:42]accept exits with 7 [15:41:42]New connection [15:41:42]New thread 3067465060 created [15:41:42]Thread 3067321700 joined [15:41:42]Waiting for new connection... [15:41:42] Sock 7.Parse request [15:41:42]Sock 7.Check first char [15:41:42]Sock 7.First char is OK [15:41:42]request: POST /json_proto HTTP/1.0 [15:41:42]Method: POST [15:41:42]URL: /json_proto [15:41:42]Method is POST - this is cgi request [15:41:42]url: /json_proto [15:41:42]query_string will be loaded in cgi processing [15:41:42]execute_cgi json_proto POST (null) [15:41:42]execute_cgi path=json_proto method=POST [15:41:42]POST find Content-Length [15:41:42]Host: 172.17.59.68:8080 [15:41:42]Content-Length: 677 [15:41:42]Content-Type: application/json [15:41:42] [15:41:42]POST finish read [15:41:42]Found Content-Length = 677 [15:41:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [15:41:42]execute_script... [15:41: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)319977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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" ] } } [15:41:42]POST & json_proto [15:41:42]process_json_proto [15:41:42]json parsed OK: [15:41:42]protocol is kg_v1.0 [15:41:42]action value=close_receipt [15:41:42]process_action close_receipt [15:41:42]cmd_close_receipt [15:41:42]MH_GetDate [15:41:42]Write to MH i2c: F0 00 00 28 13 2A [15:41:42]Write i2c OK [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: F0 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: F0 09 00 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: F0 09 00 28 13 00 3B FC 72 66 BC EC 60 65 AF [15:41:42]GetLastDocTimeStamp 1718811674 [15:41:42]current date 1718811707 [15:41:42]FM_GetShiftState [15:41:42]SAM_PROTO_GetShiftState [15:41:42]wFMCommunicate request_size=4 [15:41:42]MH_SAM_APDU [15:41:42]CAPDU: 80 13 01 00 [15:41:42]Write to MH i2c: E2 08 00 29 13 80 13 01 00 00 00 00 00 B9 [15:41:42]Write i2c OK [15:41:42]MH_I2C_Read... [15:41:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:42]Read from MH i2c: E2 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: E2 0E 00 [15:41:42]MH_I2C_Read... [15:41:42]Read from MH i2c: E2 0E 00 29 13 00 09 00 01 31 35 72 66 00 00 00 00 90 00 03 [15:41:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:41:42]wFMCommunicate OK [15:41:42]SAM_PROTO_GetShiftState done [15:41:42]FM_GetShiftState done [15:41:42]opened in 1718760753 [15:41:42]opened+sec_in_day 1718847153 [15:41:42]quantity*price = 25032 [15:41:42]sum+1 = 25034 [15:41:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 146 19.06.2024 15:41 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111397 ФПД: 8567116620184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154147&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111397&fm=8567116620184&tin=02508201610067®Number=0000000000092771&sum=25000 [15:41:43]StoreToDocumentArchive [15:41:43]shift 388 fd 111397 [15:41:43]save to /storage/0388/doc_00111397 [15:41:43]save last doc name /storage/0388/doc_00111397 to /storage/kkm_last_doc_name [15:41:43]save OK [15:41:43]Clear old archive folders... [15:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:43]tlvbuf is 00EDA6C0 [15:41:43]SAM_PROTO_ClearQueue [15:41:43]wFMCommunicate request_size=4 [15:41:43]MH_SAM_APDU [15:41:43]CAPDU: 80 09 00 00 [15:41:43]Write to MH i2c: E2 08 00 36 13 80 09 00 00 00 00 00 00 BB [15:41:43]Write i2c OK [15:41:43]MH_I2C_Read... [15:41:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:43]Read from MH i2c: E2 [15:41:43]MH_I2C_Read... [15:41:43]Read from MH i2c: E2 03 00 [15:41:43]MH_I2C_Read... [15:41:43]Read from MH i2c: E2 03 00 36 13 00 90 00 BD [15:41:43]RAPDU: 90 00 [15:41:43]wFMCommunicate OK [15:41:43]SAM_PROTO_ClearQueue done [15:41:43]KKMCreateOFDPacket [15:41:43]OFDProtocolAddRootSTLVToBuf [15:41:43]FM_MakeSignedData [15:41:43]FM_MakeSignedData [15:41:43]SAM_PROTO_SignData [15:41:43]wFMCommunicate request_size=4 [15:41:43]MH_SAM_APDU [15:41:43]CAPDU: 80 0D 01 02 [15:41:43]Write to MH i2c: E2 08 00 37 13 80 0D 01 02 00 00 00 00 C3 [15:41:43]Write i2c OK [15:41:43]MH_I2C_Read... [15:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:43]Read from MH i2c: E2 [15:41:43]MH_I2C_Read... [15:41:43]Read from MH i2c: E2 03 00 [15:41:43]MH_I2C_Read... [15:41:43]Read from MH i2c: E2 03 00 37 13 00 90 00 BE [15:41:43]RAPDU: 90 00 [15:41:43]wFMCommunicate OK [15:41:43]wFMCommunicate request_size=255 [15:41:43]MH_SAM_APDU [15:41: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 92 00 00 00 F4 03 04 00 3B FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B3 01 00 35 04 06 00 07 [15:41:43]Write to MH i2c: E2 02 01 38 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 92 00 00 00 F4 03 04 00 3B FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B3 01 00 35 04 06 00 07 00 00 29 [15:41:43]Write i2c OK [15:41:43]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 03 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 03 00 38 13 00 90 00 BF [15:41:44]RAPDU: 90 00 [15:41:44]wFMCommunicate OK [15:41:44]wFMCommunicate request_size=10 [15:41:44]MH_SAM_APDU [15:41:44]CAPDU: 80 0D 02 02 05 CA AF F1 61 98 [15:41:44]Write to MH i2c: E2 0D 00 39 13 80 0D 02 02 05 00 CA AF F1 61 98 00 00 33 [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 03 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [15:41:44]RAPDU: 90 00 [15:41:44]wFMCommunicate OK [15:41:44]wFMCommunicate request_size=4 [15:41:44]MH_SAM_APDU [15:41:44]CAPDU: 80 0D 03 02 [15:41:44]Write to MH i2c: E2 08 00 3A 13 80 0D 03 02 00 00 00 00 C8 [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 0B 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 0B 00 3A 13 00 EE E8 D8 2E CE B0 57 3A 90 00 B4 [15:41:44]RAPDU: EE E8 D8 2E CE B0 57 3A 90 00 [15:41:44]wFMCommunicate OK [15:41:44]SAM_PROTO_SignData done [15:41:44]FM_MakeSignedData done [15:41:44]CreateOFDProtocolMessage [15:41:44]wFMCommunicate request_size=4 [15:41:44]MH_SAM_APDU [15:41:44]CAPDU: 80 11 00 00 [15:41:44]Write to MH i2c: E2 08 00 3B 13 80 11 00 00 00 00 00 00 C8 [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:44]Read from MH i2c: E2 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 17 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: E2 17 00 3B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [15:41:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:41:44]wFMCommunicate OK [15:41:44]CreateOFDProtocolMessage done [15:41:44]OFDSenderStorePacket 111397 [15:41:44]StoreOFDPacket docnum=111397 [15:41:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB A9 07 01 F1 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 92 00 00 00 F4 03 04 00 3B FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B3 01 00 35 04 06 00 07 CA AF F1 61 98 EE E8 D8 2E CE B0 57 3A [15:41:44]CheckFolder [15:41:44]dirname=/storage/ofd_packets [15:41:44]CheckFolder done [15:41:44]ProducePacketName [15:41:44]name=ofd_packets/00111397 [15:41:44]NVStorageSaveData ofd_packets/00111397 [15:41:44]File name is /storage/ofd_packets/00111397 [15:41:44]Write 301 bytes [15:41:44]NVStorageSaveData done [15:41:44]OFDSenderStorePacket done [15:41:44]KKMCreateOFDPacket done [15:41:44]NVStorageSaveData kkm_last_timestamp [15:41:44]File name is /storage/kkm_last_timestamp [15:41:44]Write 4 bytes [15:41:44]NVStorageSaveData done [15:41:44]ExternCall_PrintAddStr [15:41:44]wPrintStart [15:41:44]Write to MH i2c: 01 00 00 3C 13 4F [15:41:44]Write i2c OK [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: 01 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: 01 07 00 [15:41:44]MH_I2C_Read... [15:41:44]Read from MH i2c: 01 07 00 3C 13 00 00 00 00 00 FF 0F 64 [15:41:44]RasterBufferAndPrint [15:41:44]line Счет N : (1)319977 [15:41:44]line ИНН: 02508201610067 [15:41:44]line Контрольно-Кассовый Чек [15:41:44]line ПРОДАЖА [15:41:44]line ТРК (МРК, ГНК) : 11 [15:41:44]line Товар: 2710124130 [15:41:44]line Аи-92-К-5 [15:41:44]line 3.770 * 66.40 [15:41:44]line = 250.33 [15:41:44]line НДС 12% НСП 1% [15:41:44]line > о реализуемом товаре [15:41:44]line ОКРУГЛЕНИЕ: -0.33 [15:41:44]line ИТОГО: 250.00 [15:41:44]line Внесено: 250.00 [15:41:44]line СДАЧА: 0.00 [15:41:44]line НСП 1% : 2.21 [15:41:44]line НДС 12% : 26.58 [15:41:44]line Наличными: 250.00 [15:41:44]line Безнал.: 0.00 [15:41:44]line Место: АЗС № 65 "Партнер Нефть" [15:41:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:41:44]line СНО: Общий режим [15:41:44]line Чек 146 19.06.2024 15:41 [15:41:44]line Смена: 388 ФФД: 1.0 [15:41:44]line ЗНМ: 0300000198 [15:41:44]line РНМ: 0000000000092771 [15:41:44]line Версия ККМ: 001 [15:41:44]line ФМ: 0000000000875083 [15:41:44]line ФД: 111397 [15:41:44]line ФПД: 8567116620184 [15:41:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154147&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111397&fm=8567116620184&tin=02508201610067®Number=0000000000092771&sum=25000 [15:41:44]OFD Sender: Processing packet 111397 [packets to send 38, broken 37] [15:41:44]ProducePacketName [15:41:44]name=ofd_packets/00111397 [15:41:44]OFD Sender: To server: pG, [15:41:44]CommunicateWithHost lk.salyk.kg:30040 [15:41:44]ConnectInit lk.salyk.kg [15:41:44]written 0, free lines is 4095 [15:41:44]Connected sock=10 [15:41:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB A9 07 01 F1 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 92 00 00 00 F4 03 04 00 3B FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 25 B3 01 00 35 04 06 00 07 CA AF F1 61 98 EE E8 D8 2E CE B0 57 3A [15:41:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 30 3D 47 00 DB 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 35 30 38 33 10 04 04 00 25 B3 01 00 F4 03 04 00 A1 93 72 66 B6 04 01 00 00 FF C8 5D 87 0F 55 10 D8 [15:41:45]CommunicateWithHost err = 0 [15:41:45]CheckOFDResponse [15:41:45]1017 (14) - 77093643461234 [15:41:45]1041 (16) - 0000000000875083 [15:41:45]1040 (4) - 111397 [15:41:45]1012 (4) - 19.06.2024 08:15 [15:41:45]1206 (1) - 0 [15:41:45]OFD Sender: Remove packet 111397 [15:41:45]ProducePacketName [15:41:45]name=ofd_packets/00111397 [15:41:45]NVStorageDeleteData [15:41:45]Write to MH i2c: 01 00 00 67 13 7A [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: 01 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: 01 07 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: 01 07 00 67 13 00 00 00 00 00 CE 0C 5B [15:41:45]RasterBufferAndPrint [15:41:45]line [15:41:45]line [15:41:45]line [15:41:45]line [15:41:45]line [15:41:45]written 0, free lines is 3285 [15:41:45]MH_Cut [15:41:45]Write to MH i2c: D1 01 00 6E 13 01 53 [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: D1 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: D1 01 00 [15:41:45]MH_I2C_Read... [15:41:45]Read from MH i2c: D1 01 00 6E 13 00 52 [15:41:45]Write to MH i2c: 01 00 00 6F 13 82 [15:41:45]Write i2c OK [15:41:45]MH_I2C_Read... [15:41:45]OFD Sender: No OFD packet to send [15:41:45]*** Cut start [15:41:45]*** Partial cut [15:41:45]*** CUTSNS_PIN = 1 [15:41:45]*** CUTSNS_PIN = 0 [15:41:46]*** Brake cut motor [15:41:46]Read from MH i2c: 01 [15:41:46]MH_I2C_Read... [15:41:46]*** Stop cut motor [15:41:46]*** Cut end [15:41:46]Read from MH i2c: 01 07 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: 01 07 00 6F 13 00 00 00 00 00 FF 0F 97 [15:41:46]process_action close_receipt done [15:41:46]requested_data is exist [15:41:46]produce_requested_data [15:41:46]requested_item fm.sn is exist - process it [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 11 00 00 [15:41:46]Write to MH i2c: E2 08 00 70 13 80 11 00 00 00 00 00 00 FD [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:46]Read from MH i2c: E2 17 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 17 00 70 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [15:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:41:46]wFMCommunicate OK [15:41:46]requested_item fd.num is exist - process it [15:41:46]SAM_PROTO_GetFieldsCounters [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 13 00 00 [15:41:46]Write to MH i2c: E2 08 00 71 13 80 13 00 00 00 00 00 00 00 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 62 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 62 00 71 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 25 B3 01 00 0E 04 04 00 84 01 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 35 [15:41: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 25 B3 01 00 0E 04 04 00 84 01 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 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_GetFieldsCounters done [15:41:46]requested_item shift.num is exist - process it [15:41:46]requested_item shift.opened is exist - process it [15:41:46]req_shift_opened [15:41:46]FM_GetShiftState [15:41:46]SAM_PROTO_GetShiftState [15:41:46]wFMCommunicate request_size=4 [15:41:46]MH_SAM_APDU [15:41:46]CAPDU: 80 13 01 00 [15:41:46]Write to MH i2c: E2 08 00 72 13 80 13 01 00 00 00 00 00 02 [15:41:46]Write i2c OK [15:41:46]MH_I2C_Read... [15:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:46]Read from MH i2c: E2 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0E 00 [15:41:46]MH_I2C_Read... [15:41:46]Read from MH i2c: E2 0E 00 72 13 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4C [15:41:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:41:46]wFMCommunicate OK [15:41:46]SAM_PROTO_GetShiftState done [15:41:46]FM_GetShiftState done [15:41:46]req_shift_opened done [15:41:46]requested_item shift.open_date is exist - process it [15:41:46]req_shift_open_date [15:41:46]req_shift_open_date done [15:41:46]produce_requested_data done [15:41:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111397,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:41:46]process_action_free close_receipt [15:41:46]json_value_free [15:41:46]json_value_free done [15:41:46]process_json_proto returns [15:41:46]Send response to host [15:41:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111397,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:41:46]free response buf [15:41:46]execute_script done [15:41:46]execute_script returns [15:41:46]free content buf [15:41:46]Sock 7.Close socket [15:41:46]Sock 7.Thread stoped [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:06]accept exits with 9 [15:43:06]New connection [15:43:06]New thread 3067321700 created [15:43:06]Thread 3067465060 joined [15:43:06]Waiting for new connection... [15:43:06] Sock 9.Parse request [15:43:06]Sock 9.Check first char [15:43:06]Sock 9.First char is OK [15:43:06]request: POST /json_proto HTTP/1.0 [15:43:06]Method: POST [15:43:06]URL: /json_proto [15:43:06]Method is POST - this is cgi request [15:43:06]url: /json_proto [15:43:06]query_string will be loaded in cgi processing [15:43:06]execute_cgi json_proto POST (null) [15:43:06]execute_cgi path=json_proto method=POST [15:43:06]POST find Content-Length [15:43:06]Host: 172.17.59.68:8080 [15:43:06]Content-Length: 677 [15:43:06]Content-Type: application/json [15:43:06] [15:43:06]POST finish read [15:43:06]Found Content-Length = 677 [15:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:43:06]execute_script... [15:43:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:43:06]POST & json_proto [15:43:06]process_json_proto [15:43:06]json parsed OK: [15:43:06]protocol is kg_v1.0 [15:43:06]action value=close_receipt [15:43:06]process_action close_receipt [15:43:06]cmd_close_receipt [15:43:06]MH_GetDate [15:43:06]Write to MH i2c: F0 00 00 73 13 75 [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: F0 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: F0 09 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: F0 09 00 73 13 00 8F FC 72 66 BC EC 60 65 4E [15:43:06]GetLastDocTimeStamp 1718811707 [15:43:06]current date 1718811791 [15:43:06]FM_GetShiftState [15:43:06]SAM_PROTO_GetShiftState [15:43:06]wFMCommunicate request_size=4 [15:43:06]MH_SAM_APDU [15:43:06]CAPDU: 80 13 01 00 [15:43:06]Write to MH i2c: E2 08 00 74 13 80 13 01 00 00 00 00 00 04 [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:06]Read from MH i2c: E2 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 0E 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 0E 00 74 13 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4E [15:43:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:43:06]wFMCommunicate OK [15:43:06]SAM_PROTO_GetShiftState done [15:43:06]FM_GetShiftState done [15:43:06]opened in 1718760753 [15:43:06]opened+sec_in_day 1718847153 [15:43:06]quantity*price = 40039 [15:43:06]sum+1 = 40040 [15:43:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 147 19.06.2024 15:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111398 ФПД: 66597140616076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154311&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111398&fm=66597140616076&tin=02508201610067®Number=0000000000092771&sum=40000 [15:43:08]StoreToDocumentArchive [15:43:08]shift 388 fd 111398 [15:43:08]save to /storage/0388/doc_00111398 [15:43:08]save last doc name /storage/0388/doc_00111398 to /storage/kkm_last_doc_name [15:43:08]save OK [15:43:08]Clear old archive folders... [15:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:08]tlvbuf is 00F1A950 [15:43:08]SAM_PROTO_ClearQueue [15:43:08]wFMCommunicate request_size=4 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 09 00 00 [15:43:08]Write to MH i2c: E2 08 00 81 13 80 09 00 00 00 00 00 00 06 [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 03 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 03 00 81 13 00 90 00 08 [15:43:08]RAPDU: 90 00 [15:43:08]wFMCommunicate OK [15:43:08]SAM_PROTO_ClearQueue done [15:43:08]KKMCreateOFDPacket [15:43:08]OFDProtocolAddRootSTLVToBuf [15:43:08]FM_MakeSignedData [15:43:08]FM_MakeSignedData [15:43:08]SAM_PROTO_SignData [15:43:08]wFMCommunicate request_size=4 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 0D 01 02 [15:43:08]Write to MH i2c: E2 08 00 82 13 80 0D 01 02 00 00 00 00 0E [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 03 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 03 00 82 13 00 90 00 09 [15:43:08]RAPDU: 90 00 [15:43:08]wFMCommunicate OK [15:43:08]wFMCommunicate request_size=255 [15:43:08]MH_SAM_APDU [15:43: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 8F FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B3 01 00 35 04 06 00 3C [15:43:08]Write to MH i2c: E2 02 01 83 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 8F FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B3 01 00 35 04 06 00 3C 00 00 21 [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 03 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 03 00 83 13 00 90 00 0A [15:43:08]RAPDU: 90 00 [15:43:08]wFMCommunicate OK [15:43:08]wFMCommunicate request_size=10 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 0D 02 02 05 91 DA E8 D3 8C [15:43:08]Write to MH i2c: E2 0D 00 84 13 80 0D 02 02 05 00 91 DA E8 D3 8C 00 00 CD [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 03 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 03 00 84 13 00 90 00 0B [15:43:08]RAPDU: 90 00 [15:43:08]wFMCommunicate OK [15:43:08]wFMCommunicate request_size=4 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 0D 03 02 [15:43:08]Write to MH i2c: E2 08 00 85 13 80 0D 03 02 00 00 00 00 13 [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 0B 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 0B 00 85 13 00 1E A7 3C 20 EE 40 74 4E 90 00 25 [15:43:08]RAPDU: 1E A7 3C 20 EE 40 74 4E 90 00 [15:43:08]wFMCommunicate OK [15:43:08]SAM_PROTO_SignData done [15:43:08]FM_MakeSignedData done [15:43:08]CreateOFDProtocolMessage [15:43:08]wFMCommunicate request_size=4 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 11 00 00 [15:43:08]Write to MH i2c: E2 08 00 86 13 80 11 00 00 00 00 00 00 13 [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 17 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 17 00 86 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [15:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:43:08]wFMCommunicate OK [15:43:08]CreateOFDProtocolMessage done [15:43:08]OFDSenderStorePacket 111398 [15:43:08]StoreOFDPacket docnum=111398 [15:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F A1 07 01 6B 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 8F FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B3 01 00 35 04 06 00 3C 91 DA E8 D3 8C 1E A7 3C 20 EE 40 74 4E [15:43:08]CheckFolder [15:43:08]dirname=/storage/ofd_packets [15:43:08]CheckFolder done [15:43:08]ProducePacketName [15:43:08]name=ofd_packets/00111398 [15:43:08]NVStorageSaveData ofd_packets/00111398 [15:43:08]File name is /storage/ofd_packets/00111398 [15:43:08]Write 301 bytes [15:43:08]NVStorageSaveData done [15:43:08]OFDSenderStorePacket done [15:43:08]KKMCreateOFDPacket done [15:43:08]NVStorageSaveData kkm_last_timestamp [15:43:08]File name is /storage/kkm_last_timestamp [15:43:08]Write 4 bytes [15:43:08]NVStorageSaveData done [15:43:08]ExternCall_PrintAddStr [15:43:08]wPrintStart [15:43:08]Write to MH i2c: 01 00 00 87 13 9A [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: 01 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: 01 07 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: 01 07 00 87 13 00 00 00 00 00 FF 0F AF [15:43:08]RasterBufferAndPrint [15:43:08]line Счет N : (1)319979 [15:43:08]line ИНН: 02508201610067 [15:43:08]line Контрольно-Кассовый Чек [15:43:08]line ПРОДАЖА [15:43:08]line ТРК (МРК, ГНК) : 11 [15:43:08]line Товар: 2710124130 [15:43:08]line Аи-92-К-5 [15:43:08]line 6.030 * 66.40 [15:43:08]line = 400.39 [15:43:08]line НДС 12% НСП 1% [15:43:08]line > о реализуемом товаре [15:43:08]line ОКРУГЛЕНИЕ: -0.39 [15:43:08]line ИТОГО: 400.00 [15:43:08]line Внесено: 400.00 [15:43:08]line СДАЧА: 0.00 [15:43:08]line НСП 1% : 3.54 [15:43:08]line НДС 12% : 42.52 [15:43:08]line Наличными: 400.00 [15:43:08]line Безнал.: 0.00 [15:43:08]line Место: АЗС № 65 "Партнер Нефть" [15:43:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:43:08]line СНО: Общий режим [15:43:08]line Чек 147 19.06.2024 15:43 [15:43:08]line Смена: 388 ФФД: 1.0 [15:43:08]line ЗНМ: 0300000198 [15:43:08]line РНМ: 0000000000092771 [15:43:08]line Версия ККМ: 001 [15:43:08]line ФМ: 0000000000875083 [15:43:08]line ФД: 111398 [15:43:08]line ФПД: 66597140616076 [15:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154311&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111398&fm=66597140616076&tin=02508201610067®Number=0000000000092771&sum=40000 [15:43:08]OFD Sender: Processing packet 111398 [packets to send 38, broken 37] [15:43:08]ProducePacketName [15:43:08]name=ofd_packets/00111398 [15:43:08]OFD Sender: To server: pG, [15:43:08]CommunicateWithHost lk.salyk.kg:30040 [15:43:08]ConnectInit lk.salyk.kg [15:43:08]written 0, free lines is 4095 [15:43:08]Connected sock=10 [15:43:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0F A1 07 01 6B 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 8F FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 26 B3 01 00 35 04 06 00 3C 91 DA E8 D3 8C 1E A7 3C 20 EE 40 74 4E [15:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B5 2D 47 00 5F 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 35 30 38 33 10 04 04 00 26 B3 01 00 F4 03 04 00 F5 93 72 66 B6 04 01 00 00 07 92 BF BC 22 1B 7D FA [15:43:09]CommunicateWithHost err = 0 [15:43:09]CheckOFDResponse [15:43:09]1017 (14) - 77093643461234 [15:43:09]1041 (16) - 0000000000875083 [15:43:09]1040 (4) - 111398 [15:43:09]1012 (4) - 19.06.2024 08:16 [15:43:09]1206 (1) - 0 [15:43:09]OFD Sender: Remove packet 111398 [15:43:09]ProducePacketName [15:43:09]name=ofd_packets/00111398 [15:43:09]NVStorageDeleteData [15:43:09]Write to MH i2c: 01 00 00 B2 13 C5 [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: 01 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: 01 07 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: 01 07 00 B2 13 00 00 00 00 00 D8 0C B0 [15:43:09]RasterBufferAndPrint [15:43:09]line [15:43:09]line [15:43:09]line [15:43:09]line [15:43:09]line [15:43:09]written 0, free lines is 3295 [15:43:09]MH_Cut [15:43:09]Write to MH i2c: D1 01 00 B9 13 01 9E [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: D1 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: D1 01 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: D1 01 00 B9 13 00 9D [15:43:09]Write to MH i2c: 01 00 00 BA 13 CD [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]OFD Sender: No OFD packet to send [15:43:10]*** Cut start [15:43:10]*** Partial cut [15:43:10]*** CUTSNS_PIN = 1 [15:43:10]*** CUTSNS_PIN = 0 [15:43:10]*** Brake cut motor [15:43:10]Read from MH i2c: 01 [15:43:10]MH_I2C_Read... [15:43:10]*** Stop cut motor [15:43:10]*** Cut end [15:43:10]Read from MH i2c: 01 07 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: 01 07 00 BA 13 00 00 00 00 00 FF 0F E2 [15:43:10]process_action close_receipt done [15:43:10]requested_data is exist [15:43:10]produce_requested_data [15:43:10]requested_item fm.sn is exist - process it [15:43:10]wFMCommunicate request_size=4 [15:43:10]MH_SAM_APDU [15:43:10]CAPDU: 80 11 00 00 [15:43:10]Write to MH i2c: E2 08 00 BB 13 80 11 00 00 00 00 00 00 48 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:10]Read from MH i2c: E2 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 17 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 17 00 BB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [15:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:43:10]wFMCommunicate OK [15:43:10]requested_item fd.num is exist - process it [15:43:10]SAM_PROTO_GetFieldsCounters [15:43:10]wFMCommunicate request_size=4 [15:43:10]MH_SAM_APDU [15:43:10]CAPDU: 80 13 00 00 [15:43:10]Write to MH i2c: E2 08 00 BC 13 80 13 00 00 00 00 00 00 4B [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:10]Read from MH i2c: E2 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 62 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 62 00 BC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 26 B3 01 00 0E 04 04 00 84 01 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 84 [15:43: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 26 B3 01 00 0E 04 04 00 84 01 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 [15:43:10]wFMCommunicate OK [15:43:10]SAM_PROTO_GetFieldsCounters done [15:43:10]requested_item shift.num is exist - process it [15:43:10]requested_item shift.opened is exist - process it [15:43:10]req_shift_opened [15:43:10]FM_GetShiftState [15:43:10]SAM_PROTO_GetShiftState [15:43:10]wFMCommunicate request_size=4 [15:43:10]MH_SAM_APDU [15:43:10]CAPDU: 80 13 01 00 [15:43:10]Write to MH i2c: E2 08 00 BD 13 80 13 01 00 00 00 00 00 4D [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:10]Read from MH i2c: E2 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 0E 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 0E 00 BD 13 00 09 00 01 31 35 72 66 00 00 00 00 90 00 97 [15:43:10]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:43:10]wFMCommunicate OK [15:43:10]SAM_PROTO_GetShiftState done [15:43:10]FM_GetShiftState done [15:43:10]req_shift_opened done [15:43:10]requested_item shift.open_date is exist - process it [15:43:10]req_shift_open_date [15:43:10]req_shift_open_date done [15:43:10]produce_requested_data done [15:43:10]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111398,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:43:10]process_action_free close_receipt [15:43:10]json_value_free [15:43:10]json_value_free done [15:43:10]process_json_proto returns [15:43:10]Send response to host [15:43:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111398,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:43:10]free response buf [15:43:10]execute_script done [15:43:10]execute_script returns [15:43:10]free content buf [15:43:10]Sock 9.Close socket [15:43:10]Sock 9.Thread stoped [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:43]accept exits with 7 [15:43:43]New connection [15:43:43]New thread 3067465060 created [15:43:43]Thread 3067321700 joined [15:43:43]Waiting for new connection... [15:43:43] Sock 7.Parse request [15:43:43]Sock 7.Check first char [15:43:43]Sock 7.First char is OK [15:43:43]request: POST /json_proto HTTP/1.0 [15:43:43]Method: POST [15:43:43]URL: /json_proto [15:43:43]Method is POST - this is cgi request [15:43:43]url: /json_proto [15:43:43]query_string will be loaded in cgi processing [15:43:43]execute_cgi json_proto POST (null) [15:43:43]execute_cgi path=json_proto method=POST [15:43:43]POST find Content-Length [15:43:43]Host: 172.17.59.68:8080 [15:43:43]Content-Length: 677 [15:43:43]Content-Type: application/json [15:43:43] [15:43:43]POST finish read [15:43:43]Found Content-Length = 677 [15:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:43:43]execute_script... [15:43: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)319980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:43:43]POST & json_proto [15:43:43]process_json_proto [15:43:43]json parsed OK: [15:43:43]protocol is kg_v1.0 [15:43:43]action value=close_receipt [15:43:43]process_action close_receipt [15:43:43]cmd_close_receipt [15:43:43]MH_GetDate [15:43:43]Write to MH i2c: F0 00 00 BE 13 C0 [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: F0 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: F0 09 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: F0 09 00 BE 13 00 B4 FC 72 66 BC EC 60 65 BE [15:43:43]GetLastDocTimeStamp 1718811791 [15:43:43]current date 1718811828 [15:43:43]FM_GetShiftState [15:43:43]SAM_PROTO_GetShiftState [15:43:43]wFMCommunicate request_size=4 [15:43:43]MH_SAM_APDU [15:43:43]CAPDU: 80 13 01 00 [15:43:43]Write to MH i2c: E2 08 00 BF 13 80 13 01 00 00 00 00 00 4F [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:43]Read from MH i2c: E2 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 0E 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 0E 00 BF 13 00 09 00 01 31 35 72 66 00 00 00 00 90 00 99 [15:43:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:43:43]wFMCommunicate OK [15:43:43]SAM_PROTO_GetShiftState done [15:43:43]FM_GetShiftState done [15:43:43]opened in 1718760753 [15:43:43]opened+sec_in_day 1718847153 [15:43:43]quantity*price = 60025 [15:43:43]sum+1 = 60027 [15:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 148 19.06.2024 15:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111399 ФПД: 149369913080999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154348&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111399&fm=149369913080999&tin=02508201610067®Number=0000000000092771&sum=60000 [15:43:44]StoreToDocumentArchive [15:43:44]shift 388 fd 111399 [15:43:44]save to /storage/0388/doc_00111399 [15:43:44]save last doc name /storage/0388/doc_00111399 to /storage/kkm_last_doc_name [15:43:44]save OK [15:43:44]Clear old archive folders... [15:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:43:44]tlvbuf is B6F3ECE0 [15:43:44]SAM_PROTO_ClearQueue [15:43:44]wFMCommunicate request_size=4 [15:43:44]MH_SAM_APDU [15:43:44]CAPDU: 80 09 00 00 [15:43:44]Write to MH i2c: E2 08 00 CC 13 80 09 00 00 00 00 00 00 51 [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 CC 13 00 90 00 53 [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]SAM_PROTO_ClearQueue done [15:43:45]KKMCreateOFDPacket [15:43:45]OFDProtocolAddRootSTLVToBuf [15:43:45]FM_MakeSignedData [15:43:45]FM_MakeSignedData [15:43:45]SAM_PROTO_SignData [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 0D 01 02 [15:43:45]Write to MH i2c: E2 08 00 CD 13 80 0D 01 02 00 00 00 00 59 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 CD 13 00 90 00 54 [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]wFMCommunicate request_size=255 [15:43:45]MH_SAM_APDU [15:43: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B4 FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B3 01 00 35 04 06 00 87 [15:43:45]Write to MH i2c: E2 02 01 CE 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B4 FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B3 01 00 35 04 06 00 87 00 00 ED [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 CE 13 00 90 00 55 [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]wFMCommunicate request_size=10 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 0D 02 02 05 D9 E4 9B FC A7 [15:43:45]Write to MH i2c: E2 0D 00 CF 13 80 0D 02 02 05 00 D9 E4 9B FC A7 00 00 61 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 CF 13 00 90 00 56 [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 0D 03 02 [15:43:45]Write to MH i2c: E2 08 00 D0 13 80 0D 03 02 00 00 00 00 5E [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 0B 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 0B 00 D0 13 00 07 4B 03 0F D0 19 44 3D 90 00 2D [15:43:45]RAPDU: 07 4B 03 0F D0 19 44 3D 90 00 [15:43:45]wFMCommunicate OK [15:43:45]SAM_PROTO_SignData done [15:43:45]FM_MakeSignedData done [15:43:45]CreateOFDProtocolMessage [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 11 00 00 [15:43:45]Write to MH i2c: E2 08 00 D1 13 80 11 00 00 00 00 00 00 5E [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 D1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [15:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:43:45]wFMCommunicate OK [15:43:45]CreateOFDProtocolMessage done [15:43:45]OFDSenderStorePacket 111399 [15:43:45]StoreOFDPacket docnum=111399 [15:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C6 2A 07 01 FD 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B4 FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B3 01 00 35 04 06 00 87 D9 E4 9B FC A7 07 4B 03 0F D0 19 44 3D [15:43:45]CheckFolder [15:43:45]dirname=/storage/ofd_packets [15:43:45]CheckFolder done [15:43:45]ProducePacketName [15:43:45]name=ofd_packets/00111399 [15:43:45]NVStorageSaveData ofd_packets/00111399 [15:43:45]File name is /storage/ofd_packets/00111399 [15:43:45]Write 301 bytes [15:43:45]NVStorageSaveData done [15:43:45]OFDSenderStorePacket done [15:43:45]KKMCreateOFDPacket done [15:43:45]NVStorageSaveData kkm_last_timestamp [15:43:45]File name is /storage/kkm_last_timestamp [15:43:45]Write 4 bytes [15:43:45]NVStorageSaveData done [15:43:45]ExternCall_PrintAddStr [15:43:45]wPrintStart [15:43:45]Write to MH i2c: 01 00 00 D2 13 E5 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 D2 13 00 00 00 00 00 FF 0F FA [15:43:45]RasterBufferAndPrint [15:43:45]line Счет N : (1)319980 [15:43:45]line ИНН: 02508201610067 [15:43:45]line Контрольно-Кассовый Чек [15:43:45]line ПРОДАЖА [15:43:45]line ТРК (МРК, ГНК) : 11 [15:43:45]line Товар: 2710124130 [15:43:45]line Аи-92-К-5 [15:43:45]line 9.040 * 66.40 [15:43:45]line = 600.26 [15:43:45]line НДС 12% НСП 1% [15:43:45]line > о реализуемом товаре [15:43:45]line ОКРУГЛЕНИЕ: -0.26 [15:43:45]line ИТОГО: 600.00 [15:43:45]line Внесено: 600.00 [15:43:45]line СДАЧА: 0.00 [15:43:45]line НСП 1% : 5.31 [15:43:45]line НДС 12% : 63.74 [15:43:45]line Наличными: 600.00 [15:43:45]line Безнал.: 0.00 [15:43:45]line Место: АЗС № 65 "Партнер Нефть" [15:43:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:43:45]line СНО: Общий режим [15:43:45]line Чек 148 19.06.2024 15:43 [15:43:45]line Смена: 388 ФФД: 1.0 [15:43:45]line ЗНМ: 0300000198 [15:43:45]line РНМ: 0000000000092771 [15:43:45]line Версия ККМ: 001 [15:43:45]line ФМ: 0000000000875083 [15:43:45]line ФД: 111399 [15:43:45]line ФПД: 149369913080999 [15:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154348&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111399&fm=149369913080999&tin=02508201610067®Number=0000000000092771&sum=60000 [15:43:45]OFD Sender: Processing packet 111399 [packets to send 38, broken 37] [15:43:45]ProducePacketName [15:43:45]name=ofd_packets/00111399 [15:43:45]OFD Sender: To server: pG, [15:43:45]CommunicateWithHost lk.salyk.kg:30040 [15:43:45]ConnectInit lk.salyk.kg [15:43:45]written 0, free lines is 4095 [15:43:45]Connected sock=10 [15:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C6 2A 07 01 FD 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B4 FC 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B3 01 00 35 04 06 00 87 D9 E4 9B FC A7 07 4B 03 0F D0 19 44 3D [15:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 63 A7 47 00 6B 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 27 B3 01 00 F4 03 04 00 1A 94 72 66 B6 04 01 00 00 CA AA 8E 44 5B 88 2D E2 [15:43:46]CommunicateWithHost err = 0 [15:43:46]CheckOFDResponse [15:43:46]1017 (14) - 77093643461234 [15:43:46]1041 (16) - 0000000000875083 [15:43:46]1040 (4) - 111399 [15:43:46]1012 (4) - 19.06.2024 08:17 [15:43:46]1206 (1) - 0 [15:43:46]OFD Sender: Remove packet 111399 [15:43:46]ProducePacketName [15:43:46]name=ofd_packets/00111399 [15:43:46]NVStorageDeleteData [15:43:46]Write to MH i2c: 01 00 00 FD 13 10 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 07 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: 01 07 00 FD 13 00 00 00 00 00 DC 0C FF [15:43:46]RasterBufferAndPrint [15:43:46]line [15:43:46]line [15:43:46]line [15:43:46]line [15:43:46]line [15:43:46]written 0, free lines is 3298 [15:43:46]MH_Cut [15:43:46]Write to MH i2c: D1 01 00 04 14 01 EA [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: D1 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: D1 01 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: D1 01 00 04 14 00 E9 [15:43:46]Write to MH i2c: 01 00 00 05 14 19 [15:43:46]Write i2c OK [15:43:46]MH_I2C_Read... [15:43:46]OFD Sender: No OFD packet to send [15:43:47]*** Cut start [15:43:47]*** Partial cut [15:43:47]*** CUTSNS_PIN = 1 [15:43:47]*** CUTSNS_PIN = 0 [15:43:47]*** Brake cut motor [15:43:47]Read from MH i2c: 01 [15:43:47]MH_I2C_Read... [15:43:47]*** Stop cut motor [15:43:47]*** Cut end [15:43:47]Read from MH i2c: 01 07 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 05 14 00 00 00 00 00 FF 0F 2E [15:43:47]process_action close_receipt done [15:43:47]requested_data is exist [15:43:47]produce_requested_data [15:43:47]requested_item fm.sn is exist - process it [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 11 00 00 [15:43:47]Write to MH i2c: E2 08 00 06 14 80 11 00 00 00 00 00 00 94 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 17 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 17 00 06 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [15:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:43:47]wFMCommunicate OK [15:43:47]requested_item fd.num is exist - process it [15:43:47]SAM_PROTO_GetFieldsCounters [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 13 00 00 [15:43:47]Write to MH i2c: E2 08 00 07 14 80 13 00 00 00 00 00 00 97 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 62 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 62 00 07 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 27 B3 01 00 0E 04 04 00 84 01 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 D4 [15:43: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 27 B3 01 00 0E 04 04 00 84 01 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 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_GetFieldsCounters done [15:43:47]requested_item shift.num is exist - process it [15:43:47]requested_item shift.opened is exist - process it [15:43:47]req_shift_opened [15:43:47]FM_GetShiftState [15:43:47]SAM_PROTO_GetShiftState [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 13 01 00 [15:43:47]Write to MH i2c: E2 08 00 08 14 80 13 01 00 00 00 00 00 99 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0E 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0E 00 08 14 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E3 [15:43:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_GetShiftState done [15:43:47]FM_GetShiftState done [15:43:47]req_shift_opened done [15:43:47]requested_item shift.open_date is exist - process it [15:43:47]req_shift_open_date [15:43:47]req_shift_open_date done [15:43:47]produce_requested_data done [15:43:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111399,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:43:47]process_action_free close_receipt [15:43:47]json_value_free [15:43:47]json_value_free done [15:43:47]process_json_proto returns [15:43:47]Send response to host [15:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111399,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:43:47]free response buf [15:43:47]execute_script done [15:43:47]execute_script returns [15:43:47]free content buf [15:43:47]Sock 7.Close socket [15:43:47]Sock 7.Thread stoped [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:22]accept exits with 9 [15:45:22]New connection [15:45:22]New thread 3067321700 created [15:45:22]Thread 3067465060 joined [15:45:22]Waiting for new connection... [15:45:22] Sock 9.Parse request [15:45:22]Sock 9.Check first char [15:45:22]Sock 9.First char is OK [15:45:22]request: POST /json_proto HTTP/1.0 [15:45:22]Method: POST [15:45:22]URL: /json_proto [15:45:22]Method is POST - this is cgi request [15:45:22]url: /json_proto [15:45:22]query_string will be loaded in cgi processing [15:45:22]execute_cgi json_proto POST (null) [15:45:22]execute_cgi path=json_proto method=POST [15:45:22]POST find Content-Length [15:45:22]Host: 172.17.59.68:8080 [15:45:22]Content-Length: 678 [15:45:22]Content-Type: application/json [15:45:22] [15:45:22]POST finish read [15:45:22]Found Content-Length = 678 [15:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:22]execute_script... [15:45:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:22]POST & json_proto [15:45:22]process_json_proto [15:45:22]json parsed OK: [15:45:22]protocol is kg_v1.0 [15:45:22]action value=close_receipt [15:45:22]process_action close_receipt [15:45:22]cmd_close_receipt [15:45:22]MH_GetDate [15:45:22]Write to MH i2c: F0 00 00 09 14 0C [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: F0 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: F0 09 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: F0 09 00 09 14 00 17 FD 72 66 BC EC 60 65 6E [15:45:22]GetLastDocTimeStamp 1718811828 [15:45:22]current date 1718811927 [15:45:22]FM_GetShiftState [15:45:22]SAM_PROTO_GetShiftState [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 13 01 00 [15:45:22]Write to MH i2c: E2 08 00 0A 14 80 13 01 00 00 00 00 00 9B [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0E 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0E 00 0A 14 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E5 [15:45:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:45:22]wFMCommunicate OK [15:45:22]SAM_PROTO_GetShiftState done [15:45:22]FM_GetShiftState done [15:45:22]opened in 1718760753 [15:45:22]opened+sec_in_day 1718847153 [15:45:22]quantity*price = 66532 [15:45:22]sum+1 = 66534 [15:45:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.65 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 149 19.06.2024 15:45 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111400 ФПД: 108254985258008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154527&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111400&fm=108254985258008&tin=02508201610067®Number=0000000000092771&sum=66500 [15:45:23]StoreToDocumentArchive [15:45:23]shift 388 fd 111400 [15:45:23]save to /storage/0388/doc_00111400 [15:45:23]save last doc name /storage/0388/doc_00111400 to /storage/kkm_last_doc_name [15:45:23]save OK [15:45:23]Clear old archive folders... [15:45:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:23]tlvbuf is 00EED360 [15:45:23]SAM_PROTO_ClearQueue [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 09 00 00 [15:45:23]Write to MH i2c: E2 08 00 17 14 80 09 00 00 00 00 00 00 9D [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 17 14 00 90 00 9F [15:45:23]RAPDU: 90 00 [15:45:23]wFMCommunicate OK [15:45:23]SAM_PROTO_ClearQueue done [15:45:23]KKMCreateOFDPacket [15:45:23]OFDProtocolAddRootSTLVToBuf [15:45:23]FM_MakeSignedData [15:45:23]FM_MakeSignedData [15:45:23]SAM_PROTO_SignData [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 0D 01 02 [15:45:23]Write to MH i2c: E2 08 00 18 14 80 0D 01 02 00 00 00 00 A5 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 18 14 00 90 00 A0 [15:45:23]RAPDU: 90 00 [15:45:23]wFMCommunicate OK [15:45:23]wFMCommunicate request_size=255 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 17 FD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B3 01 00 35 04 06 00 62 [15:45:23]Write to MH i2c: E2 02 01 19 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 17 FD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B3 01 00 35 04 06 00 62 00 00 C3 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 19 14 00 90 00 A1 [15:45:23]RAPDU: 90 00 [15:45:23]wFMCommunicate OK [15:45:23]wFMCommunicate request_size=10 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 0D 02 02 05 75 13 F1 04 18 [15:45:23]Write to MH i2c: E2 0D 00 1A 14 80 0D 02 02 05 00 75 13 F1 04 18 00 00 47 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 03 00 1A 14 00 90 00 A2 [15:45:23]RAPDU: 90 00 [15:45:23]wFMCommunicate OK [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 0D 03 02 [15:45:23]Write to MH i2c: E2 08 00 1B 14 80 0D 03 02 00 00 00 00 AA [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 0B 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 0B 00 1B 14 00 3D A2 17 6E 2A 48 70 75 90 00 66 [15:45:23]RAPDU: 3D A2 17 6E 2A 48 70 75 90 00 [15:45:23]wFMCommunicate OK [15:45:23]SAM_PROTO_SignData done [15:45:23]FM_MakeSignedData done [15:45:23]CreateOFDProtocolMessage [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 11 00 00 [15:45:23]Write to MH i2c: E2 08 00 1C 14 80 11 00 00 00 00 00 00 AA [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 17 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 17 00 1C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FC [15:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:45:23]wFMCommunicate OK [15:45:23]CreateOFDProtocolMessage done [15:45:23]OFDSenderStorePacket 111400 [15:45:23]StoreOFDPacket docnum=111400 [15:45:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 69 F4 07 01 A5 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 17 FD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B3 01 00 35 04 06 00 62 75 13 F1 04 18 3D A2 17 6E 2A 48 70 75 [15:45:23]CheckFolder [15:45:23]dirname=/storage/ofd_packets [15:45:23]CheckFolder done [15:45:23]ProducePacketName [15:45:23]name=ofd_packets/00111400 [15:45:23]NVStorageSaveData ofd_packets/00111400 [15:45:23]File name is /storage/ofd_packets/00111400 [15:45:23]Write 301 bytes [15:45:23]NVStorageSaveData done [15:45:23]OFDSenderStorePacket done [15:45:23]KKMCreateOFDPacket done [15:45:23]NVStorageSaveData kkm_last_timestamp [15:45:23]File name is /storage/kkm_last_timestamp [15:45:23]Write 4 bytes [15:45:23]NVStorageSaveData done [15:45:23]ExternCall_PrintAddStr [15:45:23]wPrintStart [15:45:23]Write to MH i2c: 01 00 00 1D 14 31 [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 07 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 07 00 1D 14 00 00 00 00 00 FF 0F 46 [15:45:23]RasterBufferAndPrint [15:45:23]line Счет N : (1)319981 [15:45:23]line ИНН: 02508201610067 [15:45:23]line Контрольно-Кассовый Чек [15:45:23]line ПРОДАЖА [15:45:23]line ТРК (МРК, ГНК) : 11 [15:45:23]line Товар: 2710124130 [15:45:23]line Аи-92-К-5 [15:45:23]line 10.020 * 66.40 [15:45:23]line = 665.33 [15:45:23]line НДС 12% НСП 1% [15:45:23]line > о реализуемом товаре [15:45:23]line ОКРУГЛЕНИЕ: -0.33 [15:45:23]line ИТОГО: 665.00 [15:45:23]line Внесено: 665.00 [15:45:23]line СДАЧА: 0.00 [15:45:23]line НСП 1% : 5.89 [15:45:23]line НДС 12% : 70.65 [15:45:23]line Наличными: 665.00 [15:45:23]line Безнал.: 0.00 [15:45:23]line Место: АЗС № 65 "Партнер Нефть" [15:45:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:45:23]line СНО: Общий режим [15:45:23]line Чек 149 19.06.2024 15:45 [15:45:23]line Смена: 388 ФФД: 1.0 [15:45:23]line ЗНМ: 0300000198 [15:45:23]line РНМ: 0000000000092771 [15:45:23]line Версия ККМ: 001 [15:45:23]line ФМ: 0000000000875083 [15:45:23]line ФД: 111400 [15:45:23]line ФПД: 108254985258008 [15:45:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154527&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111400&fm=108254985258008&tin=02508201610067®Number=0000000000092771&sum=66500 [15:45:24]OFD Sender: Processing packet 111400 [packets to send 38, broken 37] [15:45:24]ProducePacketName [15:45:24]name=ofd_packets/00111400 [15:45:24]OFD Sender: To server: pG, [15:45:24]CommunicateWithHost lk.salyk.kg:30040 [15:45:24]ConnectInit lk.salyk.kg [15:45:24]written 0, free lines is 4095 [15:45:24]Connected sock=10 [15:45:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 69 F4 07 01 A5 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 17 FD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 28 B3 01 00 35 04 06 00 62 75 13 F1 04 18 3D A2 17 6E 2A 48 70 75 [15:45:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 85 E1 47 00 89 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 35 30 38 33 10 04 04 00 28 B3 01 00 F4 03 04 00 7C 94 72 66 B6 04 01 00 00 48 54 B7 A0 7E 79 17 87 [15:45:24]CommunicateWithHost err = 0 [15:45:24]CheckOFDResponse [15:45:24]1017 (14) - 77093643461234 [15:45:24]1041 (16) - 0000000000875083 [15:45:24]1040 (4) - 111400 [15:45:24]1012 (4) - 19.06.2024 08:19 [15:45:24]1206 (1) - 0 [15:45:24]OFD Sender: Remove packet 111400 [15:45:24]ProducePacketName [15:45:24]name=ofd_packets/00111400 [15:45:24]NVStorageDeleteData [15:45:24]Write to MH i2c: 01 00 00 48 14 5C [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: 01 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: 01 07 00 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: 01 07 00 48 14 00 00 00 00 00 D4 0C 43 [15:45:24]RasterBufferAndPrint [15:45:24]line [15:45:24]line [15:45:24]line [15:45:24]line [15:45:24]line [15:45:24]written 0, free lines is 3292 [15:45:24]MH_Cut [15:45:24]Write to MH i2c: D1 01 00 4F 14 01 35 [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: D1 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: D1 01 00 [15:45:24]MH_I2C_Read... [15:45:24]Read from MH i2c: D1 01 00 4F 14 00 34 [15:45:24]Write to MH i2c: 01 00 00 50 14 64 [15:45:24]Write i2c OK [15:45:24]MH_I2C_Read... [15:45:25]OFD Sender: No OFD packet to send [15:45:25]*** Cut start [15:45:25]*** Partial cut [15:45:25]*** CUTSNS_PIN = 1 [15:45:25]*** CUTSNS_PIN = 0 [15:45:25]*** Brake cut motor [15:45:26]Read from MH i2c: 01 [15:45:26]MH_I2C_Read... [15:45:26]*** Stop cut motor [15:45:26]*** Cut end [15:45:26]Read from MH i2c: 01 07 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: 01 07 00 50 14 00 00 00 00 00 FF 0F 79 [15:45:26]process_action close_receipt done [15:45:26]requested_data is exist [15:45:26]produce_requested_data [15:45:26]requested_item fm.sn is exist - process it [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 11 00 00 [15:45:26]Write to MH i2c: E2 08 00 51 14 80 11 00 00 00 00 00 00 DF [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 17 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 17 00 51 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [15:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:45:26]wFMCommunicate OK [15:45:26]requested_item fd.num is exist - process it [15:45:26]SAM_PROTO_GetFieldsCounters [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 13 00 00 [15:45:26]Write to MH i2c: E2 08 00 52 14 80 13 00 00 00 00 00 00 E2 [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 62 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 62 00 52 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 28 B3 01 00 0E 04 04 00 84 01 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 23 [15:45: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 28 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:26]wFMCommunicate OK [15:45:26]SAM_PROTO_GetFieldsCounters done [15:45:26]requested_item shift.num is exist - process it [15:45:26]requested_item shift.opened is exist - process it [15:45:26]req_shift_opened [15:45:26]FM_GetShiftState [15:45:26]SAM_PROTO_GetShiftState [15:45:26]wFMCommunicate request_size=4 [15:45:26]MH_SAM_APDU [15:45:26]CAPDU: 80 13 01 00 [15:45:26]Write to MH i2c: E2 08 00 53 14 80 13 01 00 00 00 00 00 E4 [15:45:26]Write i2c OK [15:45:26]MH_I2C_Read... [15:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:26]Read from MH i2c: E2 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 0E 00 [15:45:26]MH_I2C_Read... [15:45:26]Read from MH i2c: E2 0E 00 53 14 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2E [15:45:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:45:26]wFMCommunicate OK [15:45:26]SAM_PROTO_GetShiftState done [15:45:26]FM_GetShiftState done [15:45:26]req_shift_opened done [15:45:26]requested_item shift.open_date is exist - process it [15:45:26]req_shift_open_date [15:45:26]req_shift_open_date done [15:45:26]produce_requested_data done [15:45:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111400,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:45:26]process_action_free close_receipt [15:45:26]json_value_free [15:45:26]json_value_free done [15:45:26]process_json_proto returns [15:45:26]Send response to host [15:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111400,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:45:26]free response buf [15:45:26]execute_script done [15:45:26]execute_script returns [15:45:26]free content buf [15:45:26]Sock 9.Close socket [15:45:26]Sock 9.Thread stoped [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:47:57]accept exits with 7 [15:47:57]New connection [15:47:57]New thread 3067465060 created [15:47:57]Thread 3067321700 joined [15:47:57]Waiting for new connection... [15:47:57] Sock 7.Parse request [15:47:57]Sock 7.Check first char [15:47:57]Sock 7.First char is OK [15:47:57]request: POST /json_proto HTTP/1.0 [15:47:57]Method: POST [15:47:57]URL: /json_proto [15:47:57]Method is POST - this is cgi request [15:47:57]url: /json_proto [15:47:57]query_string will be loaded in cgi processing [15:47:57]execute_cgi json_proto POST (null) [15:47:57]execute_cgi path=json_proto method=POST [15:47:57]POST find Content-Length [15:47:57]Host: 172.17.59.68:8080 [15:47:57]Content-Length: 677 [15:47:57]Content-Type: application/json [15:47:57] [15:47:57]POST finish read [15:47:57]Found Content-Length = 677 [15:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:57]execute_script... [15:47: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)319982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:57]POST & json_proto [15:47:57]process_json_proto [15:47:57]json parsed OK: [15:47:57]protocol is kg_v1.0 [15:47:57]action value=close_receipt [15:47:57]process_action close_receipt [15:47:57]cmd_close_receipt [15:47:57]MH_GetDate [15:47:57]Write to MH i2c: F0 00 00 54 14 57 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: F0 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: F0 09 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: F0 09 00 54 14 00 B2 FD 72 66 BC EC 60 65 54 [15:47:57]GetLastDocTimeStamp 1718811927 [15:47:57]current date 1718812082 [15:47:57]FM_GetShiftState [15:47:57]SAM_PROTO_GetShiftState [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 13 01 00 [15:47:57]Write to MH i2c: E2 08 00 55 14 80 13 01 00 00 00 00 00 E6 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 55 14 00 09 00 01 31 35 72 66 00 00 00 00 90 00 30 [15:47:57]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_GetShiftState done [15:47:57]FM_GetShiftState done [15:47:57]opened in 1718760753 [15:47:57]opened+sec_in_day 1718847153 [15:47:57]quantity*price = 50065 [15:47:57]sum+1 = 50067 [15:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 150 19.06.2024 15:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111401 ФПД: 273553341731683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154802&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111401&fm=273553341731683&tin=02508201610067®Number=0000000000092771&sum=50000 [15:47:58]StoreToDocumentArchive [15:47:58]shift 388 fd 111401 [15:47:58]save to /storage/0388/doc_00111401 [15:47:58]save last doc name /storage/0388/doc_00111401 to /storage/kkm_last_doc_name [15:47:58]save OK [15:47:58]Clear old archive folders... [15:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:58]tlvbuf is B6F3EBA0 [15:47:58]SAM_PROTO_ClearQueue [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 09 00 00 [15:47:58]Write to MH i2c: E2 08 00 62 14 80 09 00 00 00 00 00 00 E8 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 62 14 00 90 00 EA [15:47:58]RAPDU: 90 00 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_ClearQueue done [15:47:58]KKMCreateOFDPacket [15:47:58]OFDProtocolAddRootSTLVToBuf [15:47:58]FM_MakeSignedData [15:47:58]FM_MakeSignedData [15:47:58]SAM_PROTO_SignData [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 0D 01 02 [15:47:58]Write to MH i2c: E2 08 00 63 14 80 0D 01 02 00 00 00 00 F0 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 63 14 00 90 00 EB [15:47:58]RAPDU: 90 00 [15:47:58]wFMCommunicate OK [15:47:58]wFMCommunicate request_size=255 [15:47:58]MH_SAM_APDU [15:47: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B2 FD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B3 01 00 35 04 06 00 F8 [15:47:58]Write to MH i2c: E2 02 01 64 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B2 FD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B3 01 00 35 04 06 00 F8 00 00 1B [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 64 14 00 90 00 EC [15:47:58]RAPDU: 90 00 [15:47:58]wFMCommunicate OK [15:47:58]wFMCommunicate request_size=10 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 0D 02 02 05 CB 99 C2 D3 63 [15:47:58]Write to MH i2c: E2 0D 00 65 14 80 0D 02 02 05 00 CB 99 C2 D3 63 00 00 59 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [15:47:58]RAPDU: 90 00 [15:47:58]wFMCommunicate OK [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 0D 03 02 [15:47:58]Write to MH i2c: E2 08 00 66 14 80 0D 03 02 00 00 00 00 F5 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0B 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 0B 00 66 14 00 9B 87 8C CE 7E B1 95 43 90 00 79 [15:47:58]RAPDU: 9B 87 8C CE 7E B1 95 43 90 00 [15:47:58]wFMCommunicate OK [15:47:58]SAM_PROTO_SignData done [15:47:58]FM_MakeSignedData done [15:47:58]CreateOFDProtocolMessage [15:47:58]wFMCommunicate request_size=4 [15:47:58]MH_SAM_APDU [15:47:58]CAPDU: 80 11 00 00 [15:47:58]Write to MH i2c: E2 08 00 67 14 80 11 00 00 00 00 00 00 F5 [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:58]Read from MH i2c: E2 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 17 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: E2 17 00 67 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [15:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:47:58]wFMCommunicate OK [15:47:58]CreateOFDProtocolMessage done [15:47:58]OFDSenderStorePacket 111401 [15:47:58]StoreOFDPacket docnum=111401 [15:47:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5C 49 07 01 90 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B2 FD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B3 01 00 35 04 06 00 F8 CB 99 C2 D3 63 9B 87 8C CE 7E B1 95 43 [15:47:58]CheckFolder [15:47:58]dirname=/storage/ofd_packets [15:47:58]CheckFolder done [15:47:58]ProducePacketName [15:47:58]name=ofd_packets/00111401 [15:47:58]NVStorageSaveData ofd_packets/00111401 [15:47:58]File name is /storage/ofd_packets/00111401 [15:47:58]Write 301 bytes [15:47:58]NVStorageSaveData done [15:47:58]OFDSenderStorePacket done [15:47:58]KKMCreateOFDPacket done [15:47:58]NVStorageSaveData kkm_last_timestamp [15:47:58]File name is /storage/kkm_last_timestamp [15:47:58]Write 4 bytes [15:47:58]NVStorageSaveData done [15:47:58]ExternCall_PrintAddStr [15:47:58]wPrintStart [15:47:58]Write to MH i2c: 01 00 00 68 14 7C [15:47:58]Write i2c OK [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 07 00 [15:47:58]MH_I2C_Read... [15:47:58]Read from MH i2c: 01 07 00 68 14 00 00 00 00 00 FF 0F 91 [15:47:58]RasterBufferAndPrint [15:47:58]line Счет N : (1)319982 [15:47:58]line ИНН: 02508201610067 [15:47:58]line Контрольно-Кассовый Чек [15:47:58]line ПРОДАЖА [15:47:58]line ТРК (МРК, ГНК) : 11 [15:47:58]line Товар: 2710124130 [15:47:58]line Аи-92-К-5 [15:47:58]line 7.540 * 66.40 [15:47:58]line = 500.66 [15:47:58]line НДС 12% НСП 1% [15:47:58]line > о реализуемом товаре [15:47:58]line ОКРУГЛЕНИЕ: -0.66 [15:47:58]line ИТОГО: 500.00 [15:47:58]line Внесено: 500.00 [15:47:58]line СДАЧА: 0.00 [15:47:58]line НСП 1% : 4.43 [15:47:58]line НДС 12% : 53.17 [15:47:58]line Наличными: 500.00 [15:47:58]line Безнал.: 0.00 [15:47:58]line Место: АЗС № 65 "Партнер Нефть" [15:47:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:47:58]line СНО: Общий режим [15:47:58]line Чек 150 19.06.2024 15:48 [15:47:58]line Смена: 388 ФФД: 1.0 [15:47:58]line ЗНМ: 0300000198 [15:47:58]line РНМ: 0000000000092771 [15:47:58]line Версия ККМ: 001 [15:47:58]line ФМ: 0000000000875083 [15:47:58]line ФД: 111401 [15:47:58]line ФПД: 273553341731683 [15:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T154802&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111401&fm=273553341731683&tin=02508201610067®Number=0000000000092771&sum=50000 [15:47:59]OFD Sender: Processing packet 111401 [packets to send 38, broken 37] [15:47:59]ProducePacketName [15:47:59]name=ofd_packets/00111401 [15:47:59]OFD Sender: To server: pG, [15:47:59]CommunicateWithHost lk.salyk.kg:30040 [15:47:59]ConnectInit lk.salyk.kg [15:47:59]written 0, free lines is 4095 [15:47:59]Connected sock=10 [15:47:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5C 49 07 01 90 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 B2 FD 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 29 B3 01 00 35 04 06 00 F8 CB 99 C2 D3 63 9B 87 8C CE 7E B1 95 43 [15:47:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0E 5C 47 00 58 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 35 30 38 33 10 04 04 00 29 B3 01 00 F4 03 04 00 17 95 72 66 B6 04 01 00 00 F4 19 CC EB F1 96 78 5C [15:47:59]CommunicateWithHost err = 0 [15:47:59]CheckOFDResponse [15:47:59]1017 (14) - 77093643461234 [15:47:59]1041 (16) - 0000000000875083 [15:47:59]1040 (4) - 111401 [15:47:59]1012 (4) - 19.06.2024 08:21 [15:47:59]1206 (1) - 0 [15:47:59]OFD Sender: Remove packet 111401 [15:47:59]ProducePacketName [15:47:59]name=ofd_packets/00111401 [15:47:59]NVStorageDeleteData [15:47:59]Write to MH i2c: 01 00 00 93 14 A7 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 07 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: 01 07 00 93 14 00 00 00 00 00 CE 0C 88 [15:47:59]RasterBufferAndPrint [15:47:59]line [15:47:59]line [15:47:59]line [15:47:59]line [15:47:59]line [15:47:59]written 0, free lines is 3286 [15:47:59]MH_Cut [15:47:59]Write to MH i2c: D1 01 00 9A 14 01 80 [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: D1 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: D1 01 00 [15:47:59]MH_I2C_Read... [15:47:59]Read from MH i2c: D1 01 00 9A 14 00 7F [15:47:59]Write to MH i2c: 01 00 00 9B 14 AF [15:47:59]Write i2c OK [15:47:59]MH_I2C_Read... [15:48:00]OFD Sender: No OFD packet to send [15:48:00]*** Cut start [15:48:00]*** Partial cut [15:48:00]*** CUTSNS_PIN = 1 [15:48:00]*** CUTSNS_PIN = 0 [15:48:00]*** Brake cut motor [15:48:01]Read from MH i2c: 01 [15:48:01]MH_I2C_Read... [15:48:01]*** Stop cut motor [15:48:01]*** Cut end [15:48:01]Read from MH i2c: 01 07 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: 01 07 00 9B 14 00 00 00 00 00 FF 0F C4 [15:48:01]process_action close_receipt done [15:48:01]requested_data is exist [15:48:01]produce_requested_data [15:48:01]requested_item fm.sn is exist - process it [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 11 00 00 [15:48:01]Write to MH i2c: E2 08 00 9C 14 80 11 00 00 00 00 00 00 2A [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 17 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 17 00 9C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [15:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:48:01]wFMCommunicate OK [15:48:01]requested_item fd.num is exist - process it [15:48:01]SAM_PROTO_GetFieldsCounters [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 13 00 00 [15:48:01]Write to MH i2c: E2 08 00 9D 14 80 13 00 00 00 00 00 00 2D [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 62 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 62 00 9D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B3 01 00 0E 04 04 00 84 01 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 72 [15:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B3 01 00 0E 04 04 00 84 01 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 [15:48:01]wFMCommunicate OK [15:48:01]SAM_PROTO_GetFieldsCounters done [15:48:01]requested_item shift.num is exist - process it [15:48:01]requested_item shift.opened is exist - process it [15:48:01]req_shift_opened [15:48:01]FM_GetShiftState [15:48:01]SAM_PROTO_GetShiftState [15:48:01]wFMCommunicate request_size=4 [15:48:01]MH_SAM_APDU [15:48:01]CAPDU: 80 13 01 00 [15:48:01]Write to MH i2c: E2 08 00 9E 14 80 13 01 00 00 00 00 00 2F [15:48:01]Write i2c OK [15:48:01]MH_I2C_Read... [15:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:01]Read from MH i2c: E2 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 0E 00 [15:48:01]MH_I2C_Read... [15:48:01]Read from MH i2c: E2 0E 00 9E 14 00 09 00 01 31 35 72 66 00 00 00 00 90 00 79 [15:48:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:48:01]wFMCommunicate OK [15:48:01]SAM_PROTO_GetShiftState done [15:48:01]FM_GetShiftState done [15:48:01]req_shift_opened done [15:48:01]requested_item shift.open_date is exist - process it [15:48:01]req_shift_open_date [15:48:01]req_shift_open_date done [15:48:01]produce_requested_data done [15:48:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111401,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:48:01]process_action_free close_receipt [15:48:01]json_value_free [15:48:01]json_value_free done [15:48:01]process_json_proto returns [15:48:01]Send response to host [15:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111401,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:48:01]free response buf [15:48:01]execute_script done [15:48:01]execute_script returns [15:48:01]free content buf [15:48:01]Sock 7.Close socket [15:48:01]Sock 7.Thread stoped [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:50]accept exits with 9 [15:48:50]New connection [15:48:50]New thread 3067321700 created [15:48:50]Thread 3067465060 joined [15:48:50]Waiting for new connection... [15:48:50] Sock 9.Parse request [15:48:50]Sock 9.Check first char [15:48:50]Sock 9.First char is OK [15:48:50]request: POST /json_proto HTTP/1.0 [15:48:50]Method: POST [15:48:50]URL: /json_proto [15:48:50]Method is POST - this is cgi request [15:48:50]url: /json_proto [15:48:50]query_string will be loaded in cgi processing [15:48:50]execute_cgi json_proto POST (null) [15:48:50]execute_cgi path=json_proto method=POST [15:48:50]POST find Content-Length [15:48:50]Host: 172.17.59.68:8080 [15:48:50]Content-Length: 1200 [15:48:50]Content-Type: application/json [15:48:50] [15:48:50]POST finish read [15:48:50]Found Content-Length = 1200 [15:48:50]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319978\u000A19.06.2024 14:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:50]execute_script... [15:48:50]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)319978\u000A19.06.2024 14:17\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 200.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 14580.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:50]POST & json_proto [15:48:50]process_json_proto [15:48:50]json parsed OK: [15:48:50]protocol is kg_v1.0 [15:48:50]action value=print_text [15:48:50]process_action print_text [15:48:50]cmd_print_text [15:48:50]ExternCall_PrintAddStr [15:48:50]wPrintStart [15:48:50]Write to MH i2c: 01 00 00 9F 14 B3 [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 9F 14 00 00 00 00 00 FF 0F C8 [15:48:50]RasterBufferAndPrint [15:48:50]line *****ТОВАРНЫЙ ЧЕК***** [15:48:50]line АЗС 65 [15:48:50]line Партнер нефть [15:48:50]line 02508201610067 [15:48:50]line Кассир : Амантуров Р. [15:48:50]line Счет N : (1)319978 [15:48:50]line 19.06.2024 14:17 [15:48:50]line ПРОДАЖА [15:48:50]line ТРК (МРК, ГНК): 22 [15:48:50]line Вид ГСМ : 2710194210 [15:48:50]line ДТ-К-5 [15:48:50]line 200.000 x 72.90 [15:48:50]line ИТОГ: 14580.00 [15:48:50]line Тип оплаты: Талоны: Топливная Карта [15:48:50]line 54590 [15:48:50]line ______________________ [15:48:50]line (подпись) [15:48:50]written 0, free lines is 4095 [15:48:50]Write to MH i2c: 01 00 00 B3 14 C7 [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 0F 0E EB [15:48:50]RasterBufferAndPrint [15:48:50]line [15:48:50]line [15:48:50]line [15:48:50]line [15:48:50]line [15:48:50]written 0, free lines is 3600 [15:48:50]MH_Cut [15:48:50]Write to MH i2c: D1 01 00 BA 14 01 A0 [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: D1 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: D1 01 00 [15:48:50]MH_I2C_Read... [15:48:50]Read from MH i2c: D1 01 00 BA 14 00 9F [15:48:50]Write to MH i2c: 01 00 00 BB 14 CF [15:48:50]Write i2c OK [15:48:50]MH_I2C_Read... [15:48:51]*** Cut start [15:48:51]*** Partial cut [15:48:51]*** CUTSNS_PIN = 1 [15:48:51]*** CUTSNS_PIN = 0 [15:48:51]*** Brake cut motor [15:48:52]Read from MH i2c: 01 [15:48:52]MH_I2C_Read... [15:48:52]*** Stop cut motor [15:48:52]*** Cut end [15:48:52]Read from MH i2c: 01 07 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: 01 07 00 BB 14 00 00 00 00 00 FF 0F E4 [15:48:52]process_action print_text done [15:48:52]requested_data is exist [15:48:52]produce_requested_data [15:48:52]requested_item fm.sn is exist - process it [15:48:52]wFMCommunicate request_size=4 [15:48:52]MH_SAM_APDU [15:48:52]CAPDU: 80 11 00 00 [15:48:52]Write to MH i2c: E2 08 00 BC 14 80 11 00 00 00 00 00 00 4A [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:52]Read from MH i2c: E2 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 17 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 17 00 BC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9C [15:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:48:52]wFMCommunicate OK [15:48:52]requested_item fd.num is exist - process it [15:48:52]SAM_PROTO_GetFieldsCounters [15:48:52]wFMCommunicate request_size=4 [15:48:52]MH_SAM_APDU [15:48:52]CAPDU: 80 13 00 00 [15:48:52]Write to MH i2c: E2 08 00 BD 14 80 13 00 00 00 00 00 00 4D [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:52]Read from MH i2c: E2 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 62 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 62 00 BD 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B3 01 00 0E 04 04 00 84 01 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 92 [15:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 29 B3 01 00 0E 04 04 00 84 01 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 [15:48:52]wFMCommunicate OK [15:48:52]SAM_PROTO_GetFieldsCounters done [15:48:52]requested_item shift.num is exist - process it [15:48:52]requested_item shift.opened is exist - process it [15:48:52]req_shift_opened [15:48:52]FM_GetShiftState [15:48:52]SAM_PROTO_GetShiftState [15:48:52]wFMCommunicate request_size=4 [15:48:52]MH_SAM_APDU [15:48:52]CAPDU: 80 13 01 00 [15:48:52]Write to MH i2c: E2 08 00 BE 14 80 13 01 00 00 00 00 00 4F [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:52]Read from MH i2c: E2 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 0E 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 0E 00 BE 14 00 09 00 01 31 35 72 66 00 00 00 00 90 00 99 [15:48:52]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:48:52]wFMCommunicate OK [15:48:52]SAM_PROTO_GetShiftState done [15:48:52]FM_GetShiftState done [15:48:52]req_shift_opened done [15:48:52]requested_item shift.open_date is exist - process it [15:48:52]req_shift_open_date [15:48:52]req_shift_open_date done [15:48:52]produce_requested_data done [15:48:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111401,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:48:52]process_action_free print_text [15:48:52]json_value_free [15:48:52]json_value_free done [15:48:52]process_json_proto returns [15:48:52]Send response to host [15:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111401,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:48:52]free response buf [15:48:52]execute_script done [15:48:52]execute_script returns [15:48:52]free content buf [15:48:52]Sock 9.Close socket [15:48:52]Sock 9.Thread stoped [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:24]accept exits with 7 [15:50:24]New connection [15:50:24]New thread 3067465060 created [15:50:24]Thread 3067321700 joined [15:50:24]Waiting for new connection... [15:50:24] Sock 7.Parse request [15:50:24]Sock 7.Check first char [15:50:24]Sock 7.First char is OK [15:50:24]request: POST /json_proto HTTP/1.0 [15:50:24]Method: POST [15:50:24]URL: /json_proto [15:50:24]Method is POST - this is cgi request [15:50:24]url: /json_proto [15:50:24]query_string will be loaded in cgi processing [15:50:24]execute_cgi json_proto POST (null) [15:50:24]execute_cgi path=json_proto method=POST [15:50:24]POST find Content-Length [15:50:24]Host: 172.17.59.68:8080 [15:50:24]Content-Length: 674 [15:50:24]Content-Type: application/json [15:50:24] [15:50:24]POST finish read [15:50:24]Found Content-Length = 674 [15:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:24]execute_script... [15:50: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)319983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:50:24]POST & json_proto [15:50:24]process_json_proto [15:50:24]json parsed OK: [15:50:24]protocol is kg_v1.0 [15:50:24]action value=close_receipt [15:50:24]process_action close_receipt [15:50:24]cmd_close_receipt [15:50:24]MH_GetDate [15:50:24]Write to MH i2c: F0 00 00 BF 14 C2 [15:50:24]Write i2c OK [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: F0 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: F0 09 00 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: F0 09 00 BF 14 00 45 FE 72 66 BC EC 60 65 53 [15:50:24]GetLastDocTimeStamp 1718812082 [15:50:24]current date 1718812229 [15:50:24]FM_GetShiftState [15:50:24]SAM_PROTO_GetShiftState [15:50:24]wFMCommunicate request_size=4 [15:50:24]MH_SAM_APDU [15:50:24]CAPDU: 80 13 01 00 [15:50:24]Write to MH i2c: E2 08 00 C0 14 80 13 01 00 00 00 00 00 51 [15:50:24]Write i2c OK [15:50:24]MH_I2C_Read... [15:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:24]Read from MH i2c: E2 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: E2 0E 00 [15:50:24]MH_I2C_Read... [15:50:24]Read from MH i2c: E2 0E 00 C0 14 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9B [15:50:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:50:24]wFMCommunicate OK [15:50:24]SAM_PROTO_GetShiftState done [15:50:24]FM_GetShiftState done [15:50:24]opened in 1718760753 [15:50:24]opened+sec_in_day 1718847153 [15:50:24]quantity*price = 50009 [15:50:24]sum+1 = 50010 [15:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 151 19.06.2024 15:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111402 ФПД: 181047036714933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155029&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111402&fm=181047036714933&tin=02508201610067®Number=0000000000092771&sum=50000 [15:50:25]StoreToDocumentArchive [15:50:25]shift 388 fd 111402 [15:50:25]save to /storage/0388/doc_00111402 [15:50:25]save last doc name /storage/0388/doc_00111402 to /storage/kkm_last_doc_name [15:50:25]save OK [15:50:25]Clear old archive folders... [15:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:50:25]tlvbuf is 00F0C9E0 [15:50:25]SAM_PROTO_ClearQueue [15:50:25]wFMCommunicate request_size=4 [15:50:25]MH_SAM_APDU [15:50:25]CAPDU: 80 09 00 00 [15:50:25]Write to MH i2c: E2 08 00 CD 14 80 09 00 00 00 00 00 00 53 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 03 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 03 00 CD 14 00 90 00 55 [15:50:25]RAPDU: 90 00 [15:50:25]wFMCommunicate OK [15:50:25]SAM_PROTO_ClearQueue done [15:50:25]KKMCreateOFDPacket [15:50:25]OFDProtocolAddRootSTLVToBuf [15:50:25]FM_MakeSignedData [15:50:25]FM_MakeSignedData [15:50:25]SAM_PROTO_SignData [15:50:25]wFMCommunicate request_size=4 [15:50:25]MH_SAM_APDU [15:50:25]CAPDU: 80 0D 01 02 [15:50:25]Write to MH i2c: E2 08 00 CE 14 80 0D 01 02 00 00 00 00 5B [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 03 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 03 00 CE 14 00 90 00 56 [15:50:25]RAPDU: 90 00 [15:50:25]wFMCommunicate OK [15:50:25]wFMCommunicate request_size=255 [15:50:25]MH_SAM_APDU [15:50: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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 45 FE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B3 01 00 35 04 06 00 A4 A9 4C 4F [15:50:25]Write to MH i2c: E2 02 01 CF 14 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 45 FE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B3 01 00 35 04 06 00 A4 A9 4C 4F 00 00 02 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 03 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 03 00 CF 14 00 90 00 57 [15:50:25]RAPDU: 90 00 [15:50:25]wFMCommunicate OK [15:50:25]wFMCommunicate request_size=7 [15:50:25]MH_SAM_APDU [15:50:25]CAPDU: 80 0D 02 02 02 9F B5 [15:50:25]Write to MH i2c: E2 0A 00 D0 14 80 0D 02 02 02 00 9F B5 00 00 B6 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 03 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 03 00 D0 14 00 90 00 58 [15:50:25]RAPDU: 90 00 [15:50:25]wFMCommunicate OK [15:50:25]wFMCommunicate request_size=4 [15:50:25]MH_SAM_APDU [15:50:25]CAPDU: 80 0D 03 02 [15:50:25]Write to MH i2c: E2 08 00 D1 14 80 0D 03 02 00 00 00 00 60 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 0B 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 0B 00 D1 14 00 ED 83 B4 49 60 1D 23 87 90 00 F5 [15:50:25]RAPDU: ED 83 B4 49 60 1D 23 87 90 00 [15:50:25]wFMCommunicate OK [15:50:25]SAM_PROTO_SignData done [15:50:25]FM_MakeSignedData done [15:50:25]CreateOFDProtocolMessage [15:50:25]wFMCommunicate request_size=4 [15:50:25]MH_SAM_APDU [15:50:25]CAPDU: 80 11 00 00 [15:50:25]Write to MH i2c: E2 08 00 D2 14 80 11 00 00 00 00 00 00 60 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:25]Read from MH i2c: E2 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 17 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: E2 17 00 D2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [15:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:50:25]wFMCommunicate OK [15:50:25]CreateOFDProtocolMessage done [15:50:25]OFDSenderStorePacket 111402 [15:50:25]StoreOFDPacket docnum=111402 [15:50:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 78 BC 04 01 F1 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 45 FE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B3 01 00 35 04 06 00 A4 A9 4C 4F 9F B5 ED 83 B4 49 60 1D 23 87 [15:50:25]CheckFolder [15:50:25]dirname=/storage/ofd_packets [15:50:25]CheckFolder done [15:50:25]ProducePacketName [15:50:25]name=ofd_packets/00111402 [15:50:25]NVStorageSaveData ofd_packets/00111402 [15:50:25]File name is /storage/ofd_packets/00111402 [15:50:25]Write 298 bytes [15:50:25]NVStorageSaveData done [15:50:25]OFDSenderStorePacket done [15:50:25]KKMCreateOFDPacket done [15:50:25]NVStorageSaveData kkm_last_timestamp [15:50:25]File name is /storage/kkm_last_timestamp [15:50:25]Write 4 bytes [15:50:25]NVStorageSaveData done [15:50:25]ExternCall_PrintAddStr [15:50:25]wPrintStart [15:50:25]Write to MH i2c: 01 00 00 D3 14 E7 [15:50:25]Write i2c OK [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: 01 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: 01 07 00 [15:50:25]MH_I2C_Read... [15:50:25]Read from MH i2c: 01 07 00 D3 14 00 00 00 00 00 FF 0F FC [15:50:25]RasterBufferAndPrint [15:50:25]line Счет N : (1)319983 [15:50:25]line ИНН: 02508201610067 [15:50:25]line Контрольно-Кассовый Чек [15:50:25]line ПРОДАЖА [15:50:25]line ТРК (МРК, ГНК) : 22 [15:50:25]line Товар: 2710194210 [15:50:25]line ДТ-К-5 [15:50:25]line 6.860 * 72.90 [15:50:25]line = 500.09 [15:50:25]line НДС 12% НСП 1% [15:50:25]line > о реализуемом товаре [15:50:25]line ОКРУГЛЕНИЕ: -0.09 [15:50:25]line ИТОГО: 500.00 [15:50:25]line Внесено: 500.00 [15:50:25]line СДАЧА: 0.00 [15:50:25]line НСП 1% : 4.43 [15:50:25]line НДС 12% : 53.11 [15:50:25]line Наличными: 500.00 [15:50:25]line Безнал.: 0.00 [15:50:25]line Место: АЗС № 65 "Партнер Нефть" [15:50:25]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:50:25]line СНО: Общий режим [15:50:25]line Чек 151 19.06.2024 15:50 [15:50:25]line Смена: 388 ФФД: 1.0 [15:50:25]line ЗНМ: 0300000198 [15:50:25]line РНМ: 0000000000092771 [15:50:25]line Версия ККМ: 001 [15:50:25]line ФМ: 0000000000875083 [15:50:25]line ФД: 111402 [15:50:25]line ФПД: 181047036714933 [15:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155029&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111402&fm=181047036714933&tin=02508201610067®Number=0000000000092771&sum=50000 [15:50:26]OFD Sender: Processing packet 111402 [packets to send 38, broken 37] [15:50:26]ProducePacketName [15:50:26]name=ofd_packets/00111402 [15:50:26]OFD Sender: To server: pG, [15:50:26]CommunicateWithHost lk.salyk.kg:30040 [15:50:26]ConnectInit lk.salyk.kg [15:50:26]written 0, free lines is 4095 [15:50:26]Connected sock=10 [15:50:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 78 BC 04 01 F1 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 45 FE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B3 01 00 35 04 06 00 A4 A9 4C 4F 9F B5 ED 83 B4 49 60 1D 23 87 [15:50:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 A3 BC 47 00 94 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2A B3 01 00 F4 03 04 00 AA 95 72 66 B6 04 01 00 00 EC 01 71 3F DE 61 85 D9 [15:50:26]CommunicateWithHost err = 0 [15:50:26]CheckOFDResponse [15:50:26]1017 (14) - 77093643461234 [15:50:26]1041 (16) - 0000000000875083 [15:50:26]1040 (4) - 111402 [15:50:26]1012 (4) - 19.06.2024 08:24 [15:50:26]1206 (1) - 0 [15:50:26]OFD Sender: Remove packet 111402 [15:50:26]ProducePacketName [15:50:26]name=ofd_packets/00111402 [15:50:26]NVStorageDeleteData [15:50:26]Write to MH i2c: 01 00 00 FE 14 12 [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: 01 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: 01 07 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: 01 07 00 FE 14 00 00 00 00 00 C9 0C EE [15:50:26]RasterBufferAndPrint [15:50:26]line [15:50:26]line [15:50:26]line [15:50:26]line [15:50:26]line [15:50:26]written 0, free lines is 3279 [15:50:26]MH_Cut [15:50:26]Write to MH i2c: D1 01 00 05 15 01 EC [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: D1 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: D1 01 00 [15:50:26]MH_I2C_Read... [15:50:26]Read from MH i2c: D1 01 00 05 15 00 EB [15:50:26]Write to MH i2c: 01 00 00 06 15 1B [15:50:26]Write i2c OK [15:50:26]MH_I2C_Read... [15:50:27]OFD Sender: No OFD packet to send [15:50:27]*** Cut start [15:50:27]*** Partial cut [15:50:27]*** CUTSNS_PIN = 1 [15:50:27]*** CUTSNS_PIN = 0 [15:50:27]*** Brake cut motor [15:50:28]Read from MH i2c: 01 [15:50:28]MH_I2C_Read... [15:50:28]*** Stop cut motor [15:50:28]*** Cut end [15:50:28]Read from MH i2c: 01 07 00 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: 01 07 00 06 15 00 00 00 00 00 FF 0F 30 [15:50:28]process_action close_receipt done [15:50:28]requested_data is exist [15:50:28]produce_requested_data [15:50:28]requested_item fm.sn is exist - process it [15:50:28]wFMCommunicate request_size=4 [15:50:28]MH_SAM_APDU [15:50:28]CAPDU: 80 11 00 00 [15:50:28]Write to MH i2c: E2 08 00 07 15 80 11 00 00 00 00 00 00 96 [15:50:28]Write i2c OK [15:50:28]MH_I2C_Read... [15:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:28]Read from MH i2c: E2 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: E2 17 00 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: E2 17 00 07 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [15:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:50:28]wFMCommunicate OK [15:50:28]requested_item fd.num is exist - process it [15:50:28]SAM_PROTO_GetFieldsCounters [15:50:28]wFMCommunicate request_size=4 [15:50:28]MH_SAM_APDU [15:50:28]CAPDU: 80 13 00 00 [15:50:28]Write to MH i2c: E2 08 00 08 15 80 13 00 00 00 00 00 00 99 [15:50:28]Write i2c OK [15:50:28]MH_I2C_Read... [15:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:28]Read from MH i2c: E2 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: E2 62 00 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: E2 62 00 08 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2A B3 01 00 0E 04 04 00 84 01 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 E2 [15:50: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2A B3 01 00 0E 04 04 00 84 01 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 [15:50:28]wFMCommunicate OK [15:50:28]SAM_PROTO_GetFieldsCounters done [15:50:28]requested_item shift.num is exist - process it [15:50:28]requested_item shift.opened is exist - process it [15:50:28]req_shift_opened [15:50:28]FM_GetShiftState [15:50:28]SAM_PROTO_GetShiftState [15:50:28]wFMCommunicate request_size=4 [15:50:28]MH_SAM_APDU [15:50:28]CAPDU: 80 13 01 00 [15:50:28]Write to MH i2c: E2 08 00 09 15 80 13 01 00 00 00 00 00 9B [15:50:28]Write i2c OK [15:50:28]MH_I2C_Read... [15:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:28]Read from MH i2c: E2 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: E2 0E 00 [15:50:28]MH_I2C_Read... [15:50:28]Read from MH i2c: E2 0E 00 09 15 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E5 [15:50:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:50:28]wFMCommunicate OK [15:50:28]SAM_PROTO_GetShiftState done [15:50:28]FM_GetShiftState done [15:50:28]req_shift_opened done [15:50:28]requested_item shift.open_date is exist - process it [15:50:28]req_shift_open_date [15:50:28]req_shift_open_date done [15:50:28]produce_requested_data done [15:50:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111402,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:50:28]process_action_free close_receipt [15:50:28]json_value_free [15:50:28]json_value_free done [15:50:28]process_json_proto returns [15:50:28]Send response to host [15:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111402,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:50:28]free response buf [15:50:28]execute_script done [15:50:28]execute_script returns [15:50:28]free content buf [15:50:28]Sock 7.Close socket [15:50:28]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:54]accept exits with 9 [15:52:54]New connection [15:52:54]New thread 3067321700 created [15:52:54]Thread 3067465060 joined [15:52:54]Waiting for new connection... [15:52:54] Sock 9.Parse request [15:52:54]Sock 9.Check first char [15:52:54]Sock 9.First char is OK [15:52:54]request: POST /json_proto HTTP/1.0 [15:52:54]Method: POST [15:52:54]URL: /json_proto [15:52:54]Method is POST - this is cgi request [15:52:54]url: /json_proto [15:52:54]query_string will be loaded in cgi processing [15:52:54]execute_cgi json_proto POST (null) [15:52:54]execute_cgi path=json_proto method=POST [15:52:54]POST find Content-Length [15:52:54]Host: 172.17.59.68:8080 [15:52:54]Content-Length: 677 [15:52:54]Content-Type: application/json [15:52:54] [15:52:54]POST finish read [15:52:54]Found Content-Length = 677 [15:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:54]execute_script... [15:52: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)319984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:54]POST & json_proto [15:52:54]process_json_proto [15:52:54]json parsed OK: [15:52:54]protocol is kg_v1.0 [15:52:54]action value=close_receipt [15:52:54]process_action close_receipt [15:52:54]cmd_close_receipt [15:52:54]MH_GetDate [15:52:54]Write to MH i2c: F0 00 00 0A 15 0E [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: F0 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: F0 09 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: F0 09 00 0A 15 00 DB FE 72 66 BC EC 60 65 35 [15:52:54]GetLastDocTimeStamp 1718812229 [15:52:54]current date 1718812379 [15:52:54]FM_GetShiftState [15:52:54]SAM_PROTO_GetShiftState [15:52:54]wFMCommunicate request_size=4 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 13 01 00 [15:52:54]Write to MH i2c: E2 08 00 0B 15 80 13 01 00 00 00 00 00 9D [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:54]Read from MH i2c: E2 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 0E 00 [15:52:54]MH_I2C_Read... [15:52:54]Read from MH i2c: E2 0E 00 0B 15 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E7 [15:52:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:52:54]wFMCommunicate OK [15:52:54]SAM_PROTO_GetShiftState done [15:52:54]FM_GetShiftState done [15:52:54]opened in 1718760753 [15:52:54]opened+sec_in_day 1718847153 [15:52:54]quantity*price = 50065 [15:52:54]sum+1 = 50067 [15:52:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 152 19.06.2024 15:52 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111403 ФПД: 74576722256071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155259&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111403&fm=74576722256071&tin=02508201610067®Number=0000000000092771&sum=50000 [15:52:55]StoreToDocumentArchive [15:52:55]shift 388 fd 111403 [15:52:55]save to /storage/0388/doc_00111403 [15:52:55]save last doc name /storage/0388/doc_00111403 to /storage/kkm_last_doc_name [15:52:55]save OK [15:52:55]Clear old archive folders... [15:52:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:55]tlvbuf is 00EED390 [15:52:55]SAM_PROTO_ClearQueue [15:52:55]wFMCommunicate request_size=4 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 09 00 00 [15:52:55]Write to MH i2c: E2 08 00 18 15 80 09 00 00 00 00 00 00 9F [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 18 15 00 90 00 A1 [15:52:55]RAPDU: 90 00 [15:52:55]wFMCommunicate OK [15:52:55]SAM_PROTO_ClearQueue done [15:52:55]KKMCreateOFDPacket [15:52:55]OFDProtocolAddRootSTLVToBuf [15:52:55]FM_MakeSignedData [15:52:55]FM_MakeSignedData [15:52:55]SAM_PROTO_SignData [15:52:55]wFMCommunicate request_size=4 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 0D 01 02 [15:52:55]Write to MH i2c: E2 08 00 19 15 80 0D 01 02 00 00 00 00 A7 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 19 15 00 90 00 A2 [15:52:55]RAPDU: 90 00 [15:52:55]wFMCommunicate OK [15:52:55]wFMCommunicate request_size=255 [15:52:55]MH_SAM_APDU [15:52: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 DB FE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B3 01 00 35 04 06 00 43 [15:52:55]Write to MH i2c: E2 02 01 1A 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 DB FE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B3 01 00 35 04 06 00 43 00 00 4B [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 1A 15 00 90 00 A3 [15:52:55]RAPDU: 90 00 [15:52:55]wFMCommunicate OK [15:52:55]wFMCommunicate request_size=10 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 0D 02 02 05 D3 BF 09 E0 C7 [15:52:55]Write to MH i2c: E2 0D 00 1B 15 80 0D 02 02 05 00 D3 BF 09 E0 C7 00 00 F6 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 1B 15 00 90 00 A4 [15:52:55]RAPDU: 90 00 [15:52:55]wFMCommunicate OK [15:52:55]wFMCommunicate request_size=4 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 0D 03 02 [15:52:55]Write to MH i2c: E2 08 00 1C 15 80 0D 03 02 00 00 00 00 AC [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 0B 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 0B 00 1C 15 00 5C F9 63 51 73 35 BC 19 90 00 33 [15:52:55]RAPDU: 5C F9 63 51 73 35 BC 19 90 00 [15:52:55]wFMCommunicate OK [15:52:55]SAM_PROTO_SignData done [15:52:55]FM_MakeSignedData done [15:52:55]CreateOFDProtocolMessage [15:52:55]wFMCommunicate request_size=4 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 11 00 00 [15:52:55]Write to MH i2c: E2 08 00 1D 15 80 11 00 00 00 00 00 00 AC [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 17 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 17 00 1D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FE [15:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:52:55]wFMCommunicate OK [15:52:55]CreateOFDProtocolMessage done [15:52:55]OFDSenderStorePacket 111403 [15:52:55]StoreOFDPacket docnum=111403 [15:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD FC 07 01 91 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 DB FE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B3 01 00 35 04 06 00 43 D3 BF 09 E0 C7 5C F9 63 51 73 35 BC 19 [15:52:55]CheckFolder [15:52:55]dirname=/storage/ofd_packets [15:52:55]CheckFolder done [15:52:55]ProducePacketName [15:52:55]name=ofd_packets/00111403 [15:52:55]NVStorageSaveData ofd_packets/00111403 [15:52:55]File name is /storage/ofd_packets/00111403 [15:52:55]Write 301 bytes [15:52:55]NVStorageSaveData done [15:52:55]OFDSenderStorePacket done [15:52:55]KKMCreateOFDPacket done [15:52:55]NVStorageSaveData kkm_last_timestamp [15:52:55]File name is /storage/kkm_last_timestamp [15:52:55]Write 4 bytes [15:52:55]NVStorageSaveData done [15:52:55]ExternCall_PrintAddStr [15:52:55]wPrintStart [15:52:55]Write to MH i2c: 01 00 00 1E 15 33 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 07 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 07 00 1E 15 00 00 00 00 00 FF 0F 48 [15:52:55]RasterBufferAndPrint [15:52:55]line Счет N : (1)319984 [15:52:55]line ИНН: 02508201610067 [15:52:55]line Контрольно-Кассовый Чек [15:52:55]line ПРОДАЖА [15:52:55]line ТРК (МРК, ГНК) : 11 [15:52:55]line Товар: 2710124130 [15:52:55]line Аи-92-К-5 [15:52:55]line 7.540 * 66.40 [15:52:55]line = 500.66 [15:52:55]line НДС 12% НСП 1% [15:52:55]line > о реализуемом товаре [15:52:55]line ОКРУГЛЕНИЕ: -0.66 [15:52:55]line ИТОГО: 500.00 [15:52:55]line Внесено: 500.00 [15:52:55]line СДАЧА: 0.00 [15:52:55]line НСП 1% : 4.43 [15:52:55]line НДС 12% : 53.17 [15:52:55]line Наличными: 500.00 [15:52:55]line Безнал.: 0.00 [15:52:55]line Место: АЗС № 65 "Партнер Нефть" [15:52:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:52:55]line СНО: Общий режим [15:52:55]line Чек 152 19.06.2024 15:52 [15:52:55]line Смена: 388 ФФД: 1.0 [15:52:55]line ЗНМ: 0300000198 [15:52:55]line РНМ: 0000000000092771 [15:52:55]line Версия ККМ: 001 [15:52:55]line ФМ: 0000000000875083 [15:52:55]line ФД: 111403 [15:52:55]line ФПД: 74576722256071 [15:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155259&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111403&fm=74576722256071&tin=02508201610067®Number=0000000000092771&sum=50000 [15:52:56]OFD Sender: Processing packet 111403 [packets to send 38, broken 37] [15:52:56]ProducePacketName [15:52:56]name=ofd_packets/00111403 [15:52:56]OFD Sender: To server: pG, [15:52:56]CommunicateWithHost lk.salyk.kg:30040 [15:52:56]ConnectInit lk.salyk.kg [15:52:56]written 0, free lines is 4095 [15:52:56]Connected sock=10 [15:52:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD FC 07 01 91 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 DB FE 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2B B3 01 00 35 04 06 00 43 D3 BF 09 E0 C7 5C F9 63 51 73 35 BC 19 [15:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D2 F1 47 00 46 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 35 30 38 33 10 04 04 00 2B B3 01 00 F4 03 04 00 40 96 72 66 B6 04 01 00 00 73 D7 5F BF D7 D7 13 E9 [15:52:56]CommunicateWithHost err = 0 [15:52:56]CheckOFDResponse [15:52:56]1017 (14) - 77093643461234 [15:52:56]1041 (16) - 0000000000875083 [15:52:56]1040 (4) - 111403 [15:52:56]1012 (4) - 19.06.2024 08:26 [15:52:56]1206 (1) - 0 [15:52:56]OFD Sender: Remove packet 111403 [15:52:56]ProducePacketName [15:52:56]name=ofd_packets/00111403 [15:52:56]NVStorageDeleteData [15:52:56]Write to MH i2c: 01 00 00 49 15 5E [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: 01 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: 01 07 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: 01 07 00 49 15 00 00 00 00 00 CC 0C 3D [15:52:56]RasterBufferAndPrint [15:52:56]line [15:52:56]line [15:52:56]line [15:52:56]line [15:52:56]line [15:52:56]written 0, free lines is 3284 [15:52:56]MH_Cut [15:52:56]Write to MH i2c: D1 01 00 50 15 01 37 [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: D1 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: D1 01 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: D1 01 00 50 15 00 36 [15:52:56]Write to MH i2c: 01 00 00 51 15 66 [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]OFD Sender: No OFD packet to send [15:52:57]*** Cut start [15:52:57]*** Partial cut [15:52:57]*** CUTSNS_PIN = 1 [15:52:57]*** CUTSNS_PIN = 0 [15:52:57]*** Brake cut motor [15:52:57]Read from MH i2c: 01 [15:52:57]MH_I2C_Read... [15:52:57]*** Stop cut motor [15:52:57]*** Cut end [15:52:57]Read from MH i2c: 01 07 00 [15:52:57]MH_I2C_Read... [15:52:57]Read from MH i2c: 01 07 00 51 15 00 00 00 00 00 FF 0F 7B [15:52:57]process_action close_receipt done [15:52:57]requested_data is exist [15:52:57]produce_requested_data [15:52:57]requested_item fm.sn is exist - process it [15:52:57]wFMCommunicate request_size=4 [15:52:57]MH_SAM_APDU [15:52:57]CAPDU: 80 11 00 00 [15:52:57]Write to MH i2c: E2 08 00 52 15 80 11 00 00 00 00 00 00 E1 [15:52:57]Write i2c OK [15:52:57]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 17 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 17 00 52 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 33 [15:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:52:58]wFMCommunicate OK [15:52:58]requested_item fd.num is exist - process it [15:52:58]SAM_PROTO_GetFieldsCounters [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 13 00 00 [15:52:58]Write to MH i2c: E2 08 00 53 15 80 13 00 00 00 00 00 00 E4 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 62 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 62 00 53 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B3 01 00 0E 04 04 00 84 01 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 31 [15:52: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2B B3 01 00 0E 04 04 00 84 01 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 [15:52:58]wFMCommunicate OK [15:52:58]SAM_PROTO_GetFieldsCounters done [15:52:58]requested_item shift.num is exist - process it [15:52:58]requested_item shift.opened is exist - process it [15:52:58]req_shift_opened [15:52:58]FM_GetShiftState [15:52:58]SAM_PROTO_GetShiftState [15:52:58]wFMCommunicate request_size=4 [15:52:58]MH_SAM_APDU [15:52:58]CAPDU: 80 13 01 00 [15:52:58]Write to MH i2c: E2 08 00 54 15 80 13 01 00 00 00 00 00 E6 [15:52:58]Write i2c OK [15:52:58]MH_I2C_Read... [15:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:58]Read from MH i2c: E2 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 0E 00 [15:52:58]MH_I2C_Read... [15:52:58]Read from MH i2c: E2 0E 00 54 15 00 09 00 01 31 35 72 66 00 00 00 00 90 00 30 [15:52:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:52:58]wFMCommunicate OK [15:52:58]SAM_PROTO_GetShiftState done [15:52:58]FM_GetShiftState done [15:52:58]req_shift_opened done [15:52:58]requested_item shift.open_date is exist - process it [15:52:58]req_shift_open_date [15:52:58]req_shift_open_date done [15:52:58]produce_requested_data done [15:52:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111403,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:52:58]process_action_free close_receipt [15:52:58]json_value_free [15:52:58]json_value_free done [15:52:58]process_json_proto returns [15:52:58]Send response to host [15:52:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111403,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:52:58]free response buf [15:52:58]execute_script done [15:52:58]execute_script returns [15:52:58]free content buf [15:52:58]Sock 9.Close socket [15:52:58]Sock 9.Thread stoped [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:48]accept exits with 7 [15:56:48]New connection [15:56:48]New thread 3067465060 created [15:56:48]Thread 3067321700 joined [15:56:48]Waiting for new connection... [15:56:48] Sock 7.Parse request [15:56:48]Sock 7.Check first char [15:56:48]Sock 7.First char is OK [15:56:48]request: POST /json_proto HTTP/1.0 [15:56:48]Method: POST [15:56:48]URL: /json_proto [15:56:48]Method is POST - this is cgi request [15:56:48]url: /json_proto [15:56:48]query_string will be loaded in cgi processing [15:56:48]execute_cgi json_proto POST (null) [15:56:48]execute_cgi path=json_proto method=POST [15:56:48]POST find Content-Length [15:56:48]Host: 172.17.59.68:8080 [15:56:48]Content-Length: 674 [15:56:48]Content-Type: application/json [15:56:48] [15:56:48]POST finish read [15:56:48]Found Content-Length = 674 [15:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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:56:48]execute_script... [15:56: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)319985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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:56:48]POST & json_proto [15:56:48]process_json_proto [15:56:48]json parsed OK: [15:56:48]protocol is kg_v1.0 [15:56:48]action value=close_receipt [15:56:48]process_action close_receipt [15:56:48]cmd_close_receipt [15:56:48]MH_GetDate [15:56:48]Write to MH i2c: F0 00 00 55 15 59 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: F0 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: F0 09 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: F0 09 00 55 15 00 C5 FF 72 66 BC EC 60 65 6B [15:56:48]GetLastDocTimeStamp 1718812379 [15:56:48]current date 1718812613 [15:56:48]FM_GetShiftState [15:56:48]SAM_PROTO_GetShiftState [15:56:48]wFMCommunicate request_size=4 [15:56:48]MH_SAM_APDU [15:56:48]CAPDU: 80 13 01 00 [15:56:48]Write to MH i2c: E2 08 00 56 15 80 13 01 00 00 00 00 00 E8 [15:56:48]Write i2c OK [15:56:48]MH_I2C_Read... [15:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:48]Read from MH i2c: E2 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 0E 00 [15:56:48]MH_I2C_Read... [15:56:48]Read from MH i2c: E2 0E 00 56 15 00 09 00 01 31 35 72 66 00 00 00 00 90 00 32 [15:56:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:56:48]wFMCommunicate OK [15:56:48]SAM_PROTO_GetShiftState done [15:56:48]FM_GetShiftState done [15:56:48]opened in 1718760753 [15:56:48]opened+sec_in_day 1718847153 [15:56:48]quantity*price = 40022 [15:56:48]sum+1 = 40023 [15:56:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 153 19.06.2024 15:56 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111404 ФПД: 114945975518054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155653&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111404&fm=114945975518054&tin=02508201610067®Number=0000000000092771&sum=40000 [15:56:49]StoreToDocumentArchive [15:56:49]shift 388 fd 111404 [15:56:49]save to /storage/0388/doc_00111404 [15:56:49]save last doc name /storage/0388/doc_00111404 to /storage/kkm_last_doc_name [15:56:49]save OK [15:56:49]Clear old archive folders... [15:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:56:49]tlvbuf is 00EEC880 [15:56:49]SAM_PROTO_ClearQueue [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 09 00 00 [15:56:49]Write to MH i2c: E2 08 00 63 15 80 09 00 00 00 00 00 00 EA [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 63 15 00 90 00 EC [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_ClearQueue done [15:56:49]KKMCreateOFDPacket [15:56:49]OFDProtocolAddRootSTLVToBuf [15:56:49]FM_MakeSignedData [15:56:49]FM_MakeSignedData [15:56:49]SAM_PROTO_SignData [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 01 02 [15:56:49]Write to MH i2c: E2 08 00 64 15 80 0D 01 02 00 00 00 00 F2 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 64 15 00 90 00 ED [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=255 [15:56:49]MH_SAM_APDU [15:56: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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 99 00 00 00 F4 03 04 00 C5 FF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B3 01 00 35 04 06 00 68 8A F2 0A [15:56:49]Write to MH i2c: E2 02 01 65 15 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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 99 00 00 00 F4 03 04 00 C5 FF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B3 01 00 35 04 06 00 68 8A F2 0A 00 00 AB [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=7 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 02 02 02 03 66 [15:56:49]Write to MH i2c: E2 0A 00 66 15 80 0D 02 02 02 00 03 66 00 00 62 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [15:56:49]RAPDU: 90 00 [15:56:49]wFMCommunicate OK [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 0D 03 02 [15:56:49]Write to MH i2c: E2 08 00 67 15 80 0D 03 02 00 00 00 00 F7 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0B 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 0B 00 67 15 00 A6 0B BC EE 00 61 58 34 90 00 40 [15:56:49]RAPDU: A6 0B BC EE 00 61 58 34 90 00 [15:56:49]wFMCommunicate OK [15:56:49]SAM_PROTO_SignData done [15:56:49]FM_MakeSignedData done [15:56:49]CreateOFDProtocolMessage [15:56:49]wFMCommunicate request_size=4 [15:56:49]MH_SAM_APDU [15:56:49]CAPDU: 80 11 00 00 [15:56:49]Write to MH i2c: E2 08 00 68 15 80 11 00 00 00 00 00 00 F7 [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:49]Read from MH i2c: E2 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: E2 17 00 68 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 49 [15:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:56:49]wFMCommunicate OK [15:56:49]CreateOFDProtocolMessage done [15:56:49]OFDSenderStorePacket 111404 [15:56:49]StoreOFDPacket docnum=111404 [15:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 82 5D 04 01 38 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 99 00 00 00 F4 03 04 00 C5 FF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B3 01 00 35 04 06 00 68 8A F2 0A 03 66 A6 0B BC EE 00 61 58 34 [15:56:49]CheckFolder [15:56:49]dirname=/storage/ofd_packets [15:56:49]CheckFolder done [15:56:49]ProducePacketName [15:56:49]name=ofd_packets/00111404 [15:56:49]NVStorageSaveData ofd_packets/00111404 [15:56:49]File name is /storage/ofd_packets/00111404 [15:56:49]Write 298 bytes [15:56:49]NVStorageSaveData done [15:56:49]OFDSenderStorePacket done [15:56:49]KKMCreateOFDPacket done [15:56:49]NVStorageSaveData kkm_last_timestamp [15:56:49]File name is /storage/kkm_last_timestamp [15:56:49]Write 4 bytes [15:56:49]NVStorageSaveData done [15:56:49]ExternCall_PrintAddStr [15:56:49]wPrintStart [15:56:49]Write to MH i2c: 01 00 00 69 15 7E [15:56:49]Write i2c OK [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 [15:56:49]MH_I2C_Read... [15:56:49]Read from MH i2c: 01 07 00 69 15 00 00 00 00 00 FF 0F 93 [15:56:49]RasterBufferAndPrint [15:56:49]line Счет N : (1)319985 [15:56:49]line ИНН: 02508201610067 [15:56:49]line Контрольно-Кассовый Чек [15:56:49]line ПРОДАЖА [15:56:49]line ТРК (МРК, ГНК) : 22 [15:56:49]line Товар: 2710194210 [15:56:49]line ДТ-К-5 [15:56:49]line 5.490 * 72.90 [15:56:49]line = 400.22 [15:56:49]line НДС 12% НСП 1% [15:56:49]line > о реализуемом товаре [15:56:49]line ОКРУГЛЕНИЕ: -0.22 [15:56:49]line ИТОГО: 400.00 [15:56:49]line Внесено: 400.00 [15:56:49]line СДАЧА: 0.00 [15:56:49]line НСП 1% : 3.54 [15:56:49]line НДС 12% : 42.50 [15:56:49]line Наличными: 400.00 [15:56:49]line Безнал.: 0.00 [15:56:49]line Место: АЗС № 65 "Партнер Нефть" [15:56:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:56:49]line СНО: Общий режим [15:56:49]line Чек 153 19.06.2024 15:56 [15:56:49]line Смена: 388 ФФД: 1.0 [15:56:49]line ЗНМ: 0300000198 [15:56:49]line РНМ: 0000000000092771 [15:56:49]line Версия ККМ: 001 [15:56:49]line ФМ: 0000000000875083 [15:56:49]line ФД: 111404 [15:56:49]line ФПД: 114945975518054 [15:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155653&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111404&fm=114945975518054&tin=02508201610067®Number=0000000000092771&sum=40000 [15:56:50]OFD Sender: Processing packet 111404 [packets to send 38, broken 37] [15:56:50]ProducePacketName [15:56:50]name=ofd_packets/00111404 [15:56:50]OFD Sender: To server: pG, [15:56:50]CommunicateWithHost lk.salyk.kg:30040 [15:56:50]ConnectInit lk.salyk.kg [15:56:50]written 0, free lines is 4095 [15:56:50]Write to MH i2c: 01 00 00 94 15 A9 [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: 01 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: 01 07 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: 01 07 00 94 15 00 00 00 00 00 C8 0C 84 [15:56:50]RasterBufferAndPrint [15:56:50]line [15:56:50]line [15:56:50]line [15:56:50]line [15:56:50]line [15:56:50]written 0, free lines is 3276 [15:56:50]MH_Cut [15:56:50]Write to MH i2c: D1 01 00 9B 15 01 82 [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: D1 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: D1 01 00 [15:56:50]MH_I2C_Read... [15:56:50]Read from MH i2c: D1 01 00 9B 15 00 81 [15:56:50]Write to MH i2c: 01 00 00 9C 15 B1 [15:56:50]Write i2c OK [15:56:50]MH_I2C_Read... [15:56:51]*** Cut start [15:56:51]*** Partial cut [15:56:51]*** CUTSNS_PIN = 1 [15:56:51]*** CUTSNS_PIN = 0 [15:56:51]*** Brake cut motor [15:56:52]Read from MH i2c: 01 [15:56:52]MH_I2C_Read... [15:56:52]*** Stop cut motor [15:56:52]*** Cut end [15:56:52]Read from MH i2c: 01 07 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: 01 07 00 9C 15 00 00 00 00 00 FF 0F C6 [15:56:52]process_action close_receipt done [15:56:52]requested_data is exist [15:56:52]produce_requested_data [15:56:52]requested_item fm.sn is exist - process it [15:56:52]wFMCommunicate request_size=4 [15:56:52]MH_SAM_APDU [15:56:52]CAPDU: 80 11 00 00 [15:56:52]Write to MH i2c: E2 08 00 9D 15 80 11 00 00 00 00 00 00 2C [15:56:52]Write i2c OK [15:56:52]MH_I2C_Read... [15:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:52]Read from MH i2c: E2 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 17 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 17 00 9D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7E [15:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:56:52]wFMCommunicate OK [15:56:52]requested_item fd.num is exist - process it [15:56:52]SAM_PROTO_GetFieldsCounters [15:56:52]wFMCommunicate request_size=4 [15:56:52]MH_SAM_APDU [15:56:52]CAPDU: 80 13 00 00 [15:56:52]Write to MH i2c: E2 08 00 9E 15 80 13 00 00 00 00 00 00 2F [15:56:52]Write i2c OK [15:56:52]MH_I2C_Read... [15:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:52]Read from MH i2c: E2 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 62 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 62 00 9E 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2C B3 01 00 0E 04 04 00 84 01 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 80 [15:56: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2C B3 01 00 0E 04 04 00 84 01 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 [15:56:52]wFMCommunicate OK [15:56:52]SAM_PROTO_GetFieldsCounters done [15:56:52]requested_item shift.num is exist - process it [15:56:52]requested_item shift.opened is exist - process it [15:56:52]req_shift_opened [15:56:52]FM_GetShiftState [15:56:52]SAM_PROTO_GetShiftState [15:56:52]wFMCommunicate request_size=4 [15:56:52]MH_SAM_APDU [15:56:52]CAPDU: 80 13 01 00 [15:56:52]Write to MH i2c: E2 08 00 9F 15 80 13 01 00 00 00 00 00 31 [15:56:52]Write i2c OK [15:56:52]MH_I2C_Read... [15:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:52]Read from MH i2c: E2 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 0E 00 [15:56:52]MH_I2C_Read... [15:56:52]Read from MH i2c: E2 0E 00 9F 15 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7B [15:56:52]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:56:52]wFMCommunicate OK [15:56:52]SAM_PROTO_GetShiftState done [15:56:52]FM_GetShiftState done [15:56:52]req_shift_opened done [15:56:52]requested_item shift.open_date is exist - process it [15:56:52]req_shift_open_date [15:56:52]req_shift_open_date done [15:56:52]produce_requested_data done [15:56:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111404,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:56:52]process_action_free close_receipt [15:56:52]json_value_free [15:56:52]json_value_free done [15:56:52]process_json_proto returns [15:56:52]Send response to host [15:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111404,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:56:52]free response buf [15:56:52]execute_script done [15:56:52]execute_script returns [15:56:52]free content buf [15:56:52]Sock 7.Close socket [15:56:52]Sock 7.Thread stoped [15:58:59]ConnectInit Can't connect to host [15:58:59]CommunicateWithHost connect error [15:58:59]CommunicateWithHost err = -1 [15:58:59]OFD Sender: Server communicate error [15:59:01]accept exits with 9 [15:59:01]New connection [15:59:01]New thread 3067321700 created [15:59:01]Thread 3067465060 joined [15:59:01]Waiting for new connection... [15:59:01] Sock 9.Parse request [15:59:01]Sock 9.Check first char [15:59:01]Sock 9.First char is OK [15:59:01]request: POST /json_proto HTTP/1.0 [15:59:01]Method: POST [15:59:01]URL: /json_proto [15:59:01]Method is POST - this is cgi request [15:59:01]url: /json_proto [15:59:01]query_string will be loaded in cgi processing [15:59:01]execute_cgi json_proto POST (null) [15:59:01]execute_cgi path=json_proto method=POST [15:59:01]POST find Content-Length [15:59:01]Host: 172.17.59.68:8080 [15:59:01]Content-Length: 677 [15:59:01]Content-Type: application/json [15:59:01] [15:59:01]POST finish read [15:59:01]Found Content-Length = 677 [15:59:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:59:01]execute_script... [15:59: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)319986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:59:01]POST & json_proto [15:59:01]process_json_proto [15:59:01]json parsed OK: [15:59:01]protocol is kg_v1.0 [15:59:01]action value=close_receipt [15:59:01]process_action close_receipt [15:59:01]cmd_close_receipt [15:59:01]MH_GetDate [15:59:01]Write to MH i2c: F0 00 00 A0 15 A4 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: F0 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: F0 09 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: F0 09 00 A0 15 00 4B 00 73 66 BC EC 60 65 3E [15:59:02]GetLastDocTimeStamp 1718812613 [15:59:02]current date 1718812747 [15:59:02]FM_GetShiftState [15:59:02]SAM_PROTO_GetShiftState [15:59:02]wFMCommunicate request_size=4 [15:59:02]MH_SAM_APDU [15:59:02]CAPDU: 80 13 01 00 [15:59:02]Write to MH i2c: E2 08 00 A1 15 80 13 01 00 00 00 00 00 33 [15:59:02]Write i2c OK [15:59:02]MH_I2C_Read... [15:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:02]Read from MH i2c: E2 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0E 00 [15:59:02]MH_I2C_Read... [15:59:02]Read from MH i2c: E2 0E 00 A1 15 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7D [15:59:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:59:02]wFMCommunicate OK [15:59:02]SAM_PROTO_GetShiftState done [15:59:02]FM_GetShiftState done [15:59:02]opened in 1718760753 [15:59:02]opened+sec_in_day 1718847153 [15:59:02]quantity*price = 40039 [15:59:02]sum+1 = 40040 [15:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 154 19.06.2024 15:59 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111405 ФПД: 266635327633788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155907&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111405&fm=266635327633788&tin=02508201610067®Number=0000000000092771&sum=40000 [15:59:03]StoreToDocumentArchive [15:59:03]shift 388 fd 111405 [15:59:03]save to /storage/0388/doc_00111405 [15:59:03]save last doc name /storage/0388/doc_00111405 to /storage/kkm_last_doc_name [15:59:03]save OK [15:59:03]Clear old archive folders... [15:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:03]tlvbuf is B6F3EDC0 [15:59:03]SAM_PROTO_ClearQueue [15:59:03]wFMCommunicate request_size=4 [15:59:03]MH_SAM_APDU [15:59:03]CAPDU: 80 09 00 00 [15:59:03]Write to MH i2c: E2 08 00 AE 15 80 09 00 00 00 00 00 00 35 [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:03]Read from MH i2c: E2 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 03 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 03 00 AE 15 00 90 00 37 [15:59:03]RAPDU: 90 00 [15:59:03]wFMCommunicate OK [15:59:03]SAM_PROTO_ClearQueue done [15:59:03]KKMCreateOFDPacket [15:59:03]OFDProtocolAddRootSTLVToBuf [15:59:03]FM_MakeSignedData [15:59:03]FM_MakeSignedData [15:59:03]SAM_PROTO_SignData [15:59:03]wFMCommunicate request_size=4 [15:59:03]MH_SAM_APDU [15:59:03]CAPDU: 80 0D 01 02 [15:59:03]Write to MH i2c: E2 08 00 AF 15 80 0D 01 02 00 00 00 00 3D [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:03]Read from MH i2c: E2 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 03 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 03 00 AF 15 00 90 00 38 [15:59:03]RAPDU: 90 00 [15:59:03]wFMCommunicate OK [15:59:03]wFMCommunicate request_size=255 [15:59:03]MH_SAM_APDU [15:59: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 9A 00 00 00 F4 03 04 00 4B 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B3 01 00 35 04 06 00 F2 [15:59:03]Write to MH i2c: E2 02 01 B0 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 9A 00 00 00 F4 03 04 00 4B 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B3 01 00 35 04 06 00 F2 00 00 D5 [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:03]Read from MH i2c: E2 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 03 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 03 00 B0 15 00 90 00 39 [15:59:03]RAPDU: 90 00 [15:59:03]wFMCommunicate OK [15:59:03]wFMCommunicate request_size=10 [15:59:03]MH_SAM_APDU [15:59:03]CAPDU: 80 0D 02 02 05 80 DF FC F9 7C [15:59:03]Write to MH i2c: E2 0D 00 B1 15 80 0D 02 02 05 00 80 DF FC F9 7C 00 00 1A [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:03]Read from MH i2c: E2 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 03 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 03 00 B1 15 00 90 00 3A [15:59:03]RAPDU: 90 00 [15:59:03]wFMCommunicate OK [15:59:03]wFMCommunicate request_size=4 [15:59:03]MH_SAM_APDU [15:59:03]CAPDU: 80 0D 03 02 [15:59:03]Write to MH i2c: E2 08 00 B2 15 80 0D 03 02 00 00 00 00 42 [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:03]Read from MH i2c: E2 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 0B 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 0B 00 B2 15 00 66 B8 47 EE ED 6C ED 66 90 00 42 [15:59:03]RAPDU: 66 B8 47 EE ED 6C ED 66 90 00 [15:59:03]wFMCommunicate OK [15:59:03]SAM_PROTO_SignData done [15:59:03]FM_MakeSignedData done [15:59:03]CreateOFDProtocolMessage [15:59:03]wFMCommunicate request_size=4 [15:59:03]MH_SAM_APDU [15:59:03]CAPDU: 80 11 00 00 [15:59:03]Write to MH i2c: E2 08 00 B3 15 80 11 00 00 00 00 00 00 42 [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:03]Read from MH i2c: E2 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 17 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 17 00 B3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 94 [15:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:59:03]wFMCommunicate OK [15:59:03]CreateOFDProtocolMessage done [15:59:03]OFDSenderStorePacket 111405 [15:59:03]StoreOFDPacket docnum=111405 [15:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C 05 07 01 7A 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 9A 00 00 00 F4 03 04 00 4B 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B3 01 00 35 04 06 00 F2 80 DF FC F9 7C 66 B8 47 EE ED 6C ED 66 [15:59:03]CheckFolder [15:59:03]dirname=/storage/ofd_packets [15:59:03]CheckFolder done [15:59:03]ProducePacketName [15:59:03]name=ofd_packets/00111405 [15:59:03]NVStorageSaveData ofd_packets/00111405 [15:59:03]File name is /storage/ofd_packets/00111405 [15:59:03]Write 301 bytes [15:59:03]NVStorageSaveData done [15:59:03]OFDSenderStorePacket done [15:59:03]KKMCreateOFDPacket done [15:59:03]NVStorageSaveData kkm_last_timestamp [15:59:03]File name is /storage/kkm_last_timestamp [15:59:03]Write 4 bytes [15:59:03]NVStorageSaveData done [15:59:03]ExternCall_PrintAddStr [15:59:03]wPrintStart [15:59:03]Write to MH i2c: 01 00 00 B4 15 C9 [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 07 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: 01 07 00 B4 15 00 00 00 00 00 FF 0F DE [15:59:03]RasterBufferAndPrint [15:59:03]line Счет N : (1)319986 [15:59:03]line ИНН: 02508201610067 [15:59:03]line Контрольно-Кассовый Чек [15:59:03]line ПРОДАЖА [15:59:03]line ТРК (МРК, ГНК) : 11 [15:59:03]line Товар: 2710124130 [15:59:03]line Аи-92-К-5 [15:59:03]line 6.030 * 66.40 [15:59:03]line = 400.39 [15:59:03]line НДС 12% НСП 1% [15:59:03]line > о реализуемом товаре [15:59:03]line ОКРУГЛЕНИЕ: -0.39 [15:59:03]line ИТОГО: 400.00 [15:59:03]line Внесено: 400.00 [15:59:03]line СДАЧА: 0.00 [15:59:03]line НСП 1% : 3.54 [15:59:03]line НДС 12% : 42.52 [15:59:03]line Наличными: 400.00 [15:59:03]line Безнал.: 0.00 [15:59:03]line Место: АЗС № 65 "Партнер Нефть" [15:59:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [15:59:03]line СНО: Общий режим [15:59:03]line Чек 154 19.06.2024 15:59 [15:59:03]line Смена: 388 ФФД: 1.0 [15:59:03]line ЗНМ: 0300000198 [15:59:03]line РНМ: 0000000000092771 [15:59:03]line Версия ККМ: 001 [15:59:03]line ФМ: 0000000000875083 [15:59:03]line ФД: 111405 [15:59:03]line ФПД: 266635327633788 [15:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T155907&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111405&fm=266635327633788&tin=02508201610067®Number=0000000000092771&sum=40000 [15:59:04]OFD Sender: Processing packet 111404 [packets to send 39, broken 37] [15:59:04]ProducePacketName [15:59:04]name=ofd_packets/00111404 [15:59:04]OFD Sender: To server: pG, [15:59:04]CommunicateWithHost lk.salyk.kg:30040 [15:59:04]ConnectInit lk.salyk.kg [15:59:04]written 0, free lines is 4095 [15:59:04]Connected sock=10 [15:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 82 5D 04 01 38 E2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 99 00 00 00 F4 03 04 00 C5 FF 72 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2C B3 01 00 35 04 06 00 68 8A F2 0A 03 66 A6 0B BC EE 00 61 58 34 [15:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 64 47 00 B2 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 35 30 38 33 10 04 04 00 2C B3 01 00 F4 03 04 00 B0 97 72 66 B6 04 01 00 00 91 D9 54 6D 51 63 B2 FF [15:59:04]CommunicateWithHost err = 0 [15:59:04]CheckOFDResponse [15:59:04]1017 (14) - 77093643461234 [15:59:04]1041 (16) - 0000000000875083 [15:59:04]1040 (4) - 111404 [15:59:04]1012 (4) - 19.06.2024 08:32 [15:59:04]1206 (1) - 0 [15:59:04]OFD Sender: Remove packet 111404 [15:59:04]ProducePacketName [15:59:04]name=ofd_packets/00111404 [15:59:04]NVStorageDeleteData [15:59:04]Write to MH i2c: 01 00 00 DF 15 F4 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 DF 15 00 00 00 00 00 CC 0C D3 [15:59:04]RasterBufferAndPrint [15:59:04]line [15:59:04]line [15:59:04]line [15:59:04]line [15:59:04]line [15:59:04]written 0, free lines is 3282 [15:59:04]MH_Cut [15:59:04]Write to MH i2c: D1 01 00 E6 15 01 CD [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: D1 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: D1 01 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: D1 01 00 E6 15 00 CC [15:59:04]Write to MH i2c: 01 00 00 E7 15 FC [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]OFD Sender: Processing packet 111405 [packets to send 38, broken 37] [15:59:04]ProducePacketName [15:59:04]name=ofd_packets/00111405 [15:59:04]OFD Sender: To server: pG, [15:59:04]CommunicateWithHost lk.salyk.kg:30040 [15:59:04]ConnectInit lk.salyk.kg [15:59:04]Connected sock=10 [15:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C 05 07 01 7A 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 9A 00 00 00 F4 03 04 00 4B 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2D B3 01 00 35 04 06 00 F2 80 DF FC F9 7C 66 B8 47 EE ED 6C ED 66 [15:59:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 ED 38 47 00 B9 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 35 30 38 33 10 04 04 00 2D B3 01 00 F4 03 04 00 B1 97 72 66 B6 04 01 00 00 30 7B CB CB 86 AE 3D 74 [15:59:05]CommunicateWithHost err = 0 [15:59:05]CheckOFDResponse [15:59:05]1017 (14) - 77093643461234 [15:59:05]1041 (16) - 0000000000875083 [15:59:05]1040 (4) - 111405 [15:59:05]1012 (4) - 19.06.2024 08:32 [15:59:05]1206 (1) - 0 [15:59:05]OFD Sender: Remove packet 111405 [15:59:05]ProducePacketName [15:59:05]name=ofd_packets/00111405 [15:59:05]NVStorageDeleteData [15:59:05]*** Cut start [15:59:05]*** Partial cut [15:59:05]*** CUTSNS_PIN = 1 [15:59:05]*** CUTSNS_PIN = 0 [15:59:05]*** Brake cut motor [15:59:05]OFD Sender: No OFD packet to send [15:59:05]Read from MH i2c: 01 [15:59:05]MH_I2C_Read... [15:59:05]*** Stop cut motor [15:59:05]*** Cut end [15:59:05]Read from MH i2c: 01 07 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: 01 07 00 E7 15 00 00 00 00 00 FF 0F 11 [15:59:05]process_action close_receipt done [15:59:05]requested_data is exist [15:59:05]produce_requested_data [15:59:05]requested_item fm.sn is exist - process it [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 11 00 00 [15:59:05]Write to MH i2c: E2 08 00 E8 15 80 11 00 00 00 00 00 00 77 [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:05]Read from MH i2c: E2 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 17 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 17 00 E8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C9 [15:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [15:59:05]wFMCommunicate OK [15:59:05]requested_item fd.num is exist - process it [15:59:05]SAM_PROTO_GetFieldsCounters [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 13 00 00 [15:59:05]Write to MH i2c: E2 08 00 E9 15 80 13 00 00 00 00 00 00 7A [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 62 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 62 00 E9 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2D B3 01 00 0E 04 04 00 84 01 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 CF [15:59: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2D B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:06]wFMCommunicate OK [15:59:06]SAM_PROTO_GetFieldsCounters done [15:59:06]requested_item shift.num is exist - process it [15:59:06]requested_item shift.opened is exist - process it [15:59:06]req_shift_opened [15:59:06]FM_GetShiftState [15:59:06]SAM_PROTO_GetShiftState [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 13 01 00 [15:59:06]Write to MH i2c: E2 08 00 EA 15 80 13 01 00 00 00 00 00 7C [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0E 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 0E 00 EA 15 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C6 [15:59:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [15:59:06]wFMCommunicate OK [15:59:06]SAM_PROTO_GetShiftState done [15:59:06]FM_GetShiftState done [15:59:06]req_shift_opened done [15:59:06]requested_item shift.open_date is exist - process it [15:59:06]req_shift_open_date [15:59:06]req_shift_open_date done [15:59:06]produce_requested_data done [15:59:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111405,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [15:59:06]process_action_free close_receipt [15:59:06]json_value_free [15:59:06]json_value_free done [15:59:06]process_json_proto returns [15:59:06]Send response to host [15:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111405,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [15:59:06]free response buf [15:59:06]execute_script done [15:59:06]execute_script returns [15:59:06]free content buf [15:59:06]Sock 9.Close socket [15:59:06]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]accept exits with 7 [16:00:45]New connection [16:00:45]New thread 3067465060 created [16:00:45]Thread 3067321700 joined [16:00:45]Waiting for new connection... [16:00:45] Sock 7.Parse request [16:00:45]Sock 7.Check first char [16:00:45]Sock 7.First char is OK [16:00:45]request: POST /json_proto HTTP/1.0 [16:00:45]Method: POST [16:00:45]URL: /json_proto [16:00:45]Method is POST - this is cgi request [16:00:45]url: /json_proto [16:00:45]query_string will be loaded in cgi processing [16:00:45]execute_cgi json_proto POST (null) [16:00:45]execute_cgi path=json_proto method=POST [16:00:45]POST find Content-Length [16:00:45]Host: 172.17.59.68:8080 [16:00:45]Content-Length: 679 [16:00:45]Content-Type: application/json [16:00:45] [16:00:45]POST finish read [16:00:45]Found Content-Length = 679 [16:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:45]execute_script... [16:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:45]POST & json_proto [16:00:45]process_json_proto [16:00:45]json parsed OK: [16:00:45]protocol is kg_v1.0 [16:00:45]action value=close_receipt [16:00:45]process_action close_receipt [16:00:45]cmd_close_receipt [16:00:45]MH_GetDate [16:00:45]Write to MH i2c: F0 00 00 EB 15 EF [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 09 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 09 00 EB 15 00 B2 00 73 66 BC EC 60 65 F0 [16:00:45]GetLastDocTimeStamp 1718812747 [16:00:45]current date 1718812850 [16:00:45]FM_GetShiftState [16:00:45]SAM_PROTO_GetShiftState [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 13 01 00 [16:00:45]Write to MH i2c: E2 08 00 EC 15 80 13 01 00 00 00 00 00 7E [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 EC 15 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C8 [16:00:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:00:45]wFMCommunicate OK [16:00:45]SAM_PROTO_GetShiftState done [16:00:45]FM_GetShiftState done [16:00:45]opened in 1718760753 [16:00:45]opened+sec_in_day 1718847153 [16:00:45]quantity*price = 150028 [16:00:45]sum+1 = 150029 [16:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 155 19.06.2024 16:00 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111406 ФПД: 137155489107414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160051&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111406&fm=137155489107414&tin=02508201610067®Number=0000000000092771&sum=150000 [16:00:46]StoreToDocumentArchive [16:00:46]shift 388 fd 111406 [16:00:46]save to /storage/0388/doc_00111406 [16:00:46]save last doc name /storage/0388/doc_00111406 to /storage/kkm_last_doc_name [16:00:46]save OK [16:00:46]Clear old archive folders... [16:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:00:46]tlvbuf is 00F02880 [16:00:46]SAM_PROTO_ClearQueue [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 09 00 00 [16:00:46]Write to MH i2c: E2 08 00 F9 15 80 09 00 00 00 00 00 00 80 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 F9 15 00 90 00 82 [16:00:46]RAPDU: 90 00 [16:00:46]wFMCommunicate OK [16:00:46]SAM_PROTO_ClearQueue done [16:00:46]KKMCreateOFDPacket [16:00:46]OFDProtocolAddRootSTLVToBuf [16:00:46]FM_MakeSignedData [16:00:46]FM_MakeSignedData [16:00:46]SAM_PROTO_SignData [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 0D 01 02 [16:00:46]Write to MH i2c: E2 08 00 FA 15 80 0D 01 02 00 00 00 00 88 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [16:00:46]RAPDU: 90 00 [16:00:46]wFMCommunicate OK [16:00:46]wFMCommunicate request_size=255 [16:00:46]MH_SAM_APDU [16:00: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 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B3 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B3 01 00 35 04 06 00 7C BE 00 35 [16:00:46]Write to MH i2c: E2 02 01 FB 15 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 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B3 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B3 01 00 35 04 06 00 7C BE 00 35 00 00 A9 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [16:00:47]RAPDU: 90 00 [16:00:47]wFMCommunicate OK [16:00:47]wFMCommunicate request_size=7 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 0D 02 02 02 0D D6 [16:00:47]Write to MH i2c: E2 0A 00 FC 15 80 0D 02 02 02 00 0D D6 00 00 72 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [16:00:47]RAPDU: 90 00 [16:00:47]wFMCommunicate OK [16:00:47]wFMCommunicate request_size=4 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 0D 03 02 [16:00:47]Write to MH i2c: E2 08 00 FD 15 80 0D 03 02 00 00 00 00 8D [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 0B 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 0B 00 FD 15 00 EE 39 A8 89 C8 0A 36 4D 90 00 3B [16:00:47]RAPDU: EE 39 A8 89 C8 0A 36 4D 90 00 [16:00:47]wFMCommunicate OK [16:00:47]SAM_PROTO_SignData done [16:00:47]FM_MakeSignedData done [16:00:47]CreateOFDProtocolMessage [16:00:47]wFMCommunicate request_size=4 [16:00:47]MH_SAM_APDU [16:00:47]CAPDU: 80 11 00 00 [16:00:47]Write to MH i2c: E2 08 00 FE 15 80 11 00 00 00 00 00 00 8D [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:47]Read from MH i2c: E2 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 17 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: E2 17 00 FE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DF [16:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:00:47]wFMCommunicate OK [16:00:47]CreateOFDProtocolMessage done [16:00:47]OFDSenderStorePacket 111406 [16:00:47]StoreOFDPacket docnum=111406 [16:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B4 7F 04 01 C4 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B3 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B3 01 00 35 04 06 00 7C BE 00 35 0D D6 EE 39 A8 89 C8 0A 36 4D [16:00:47]CheckFolder [16:00:47]dirname=/storage/ofd_packets [16:00:47]CheckFolder done [16:00:47]ProducePacketName [16:00:47]name=ofd_packets/00111406 [16:00:47]NVStorageSaveData ofd_packets/00111406 [16:00:47]File name is /storage/ofd_packets/00111406 [16:00:47]Write 298 bytes [16:00:47]NVStorageSaveData done [16:00:47]OFDSenderStorePacket done [16:00:47]KKMCreateOFDPacket done [16:00:47]NVStorageSaveData kkm_last_timestamp [16:00:47]File name is /storage/kkm_last_timestamp [16:00:47]Write 4 bytes [16:00:47]NVStorageSaveData done [16:00:47]ExternCall_PrintAddStr [16:00:47]wPrintStart [16:00:47]Write to MH i2c: 01 00 00 FF 15 14 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 07 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 07 00 FF 15 00 00 00 00 00 FF 0F 29 [16:00:47]RasterBufferAndPrint [16:00:47]line Счет N : (1)319987 [16:00:47]line ИНН: 02508201610067 [16:00:47]line Контрольно-Кассовый Чек [16:00:47]line ПРОДАЖА [16:00:47]line ТРК (МРК, ГНК) : 22 [16:00:47]line Товар: 2710194210 [16:00:47]line ДТ-К-5 [16:00:47]line 20.580 * 72.90 [16:00:47]line = 1500.28 [16:00:47]line НДС 12% НСП 1% [16:00:47]line > о реализуемом товаре [16:00:47]line ОКРУГЛЕНИЕ: -0.28 [16:00:47]line ИТОГО: 1500.00 [16:00:47]line Внесено: 1500.00 [16:00:47]line СДАЧА: 0.00 [16:00:47]line НСП 1% : 13.28 [16:00:47]line НДС 12% : 159.32 [16:00:47]line Наличными: 1500.00 [16:00:47]line Безнал.: 0.00 [16:00:47]line Место: АЗС № 65 "Партнер Нефть" [16:00:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:00:47]line СНО: Общий режим [16:00:47]line Чек 155 19.06.2024 16:00 [16:00:47]line Смена: 388 ФФД: 1.0 [16:00:47]line ЗНМ: 0300000198 [16:00:47]line РНМ: 0000000000092771 [16:00:47]line Версия ККМ: 001 [16:00:47]line ФМ: 0000000000875083 [16:00:47]line ФД: 111406 [16:00:47]line ФПД: 137155489107414 [16:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160051&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111406&fm=137155489107414&tin=02508201610067®Number=0000000000092771&sum=150000 [16:00:47]OFD Sender: Processing packet 111406 [packets to send 38, broken 37] [16:00:47]ProducePacketName [16:00:47]name=ofd_packets/00111406 [16:00:47]OFD Sender: To server: pG, [16:00:47]CommunicateWithHost lk.salyk.kg:30040 [16:00:47]ConnectInit lk.salyk.kg [16:00:47]written 0, free lines is 4095 [16:00:47]Connected sock=10 [16: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 35 30 38 33 0C 01 00 00 B4 7F 04 01 C4 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B3 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B3 01 00 35 04 06 00 7C BE 00 35 0D D6 EE 39 A8 89 C8 0A 36 4D [16:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 43 CC 47 00 FC C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2E B3 01 00 F4 03 04 00 18 98 72 66 B6 04 01 00 00 1D 68 95 43 0E 56 8D 13 [16:00:47]CommunicateWithHost err = 0 [16:00:47]CheckOFDResponse [16:00:47]1017 (14) - 77093643461234 [16:00:47]1041 (16) - 0000000000875083 [16:00:47]1040 (4) - 111406 [16:00:47]1012 (4) - 19.06.2024 08:34 [16:00:47]1206 (1) - 0 [16:00:47]OFD Sender: Remove packet 111406 [16:00:47]ProducePacketName [16:00:47]name=ofd_packets/00111406 [16:00:47]NVStorageDeleteData [16:00:47]Write to MH i2c: 01 00 00 2A 16 40 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 07 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 D4 0C 27 [16:00:47]RasterBufferAndPrint [16:00:47]line [16:00:47]line [16:00:47]line [16:00:47]line [16:00:47]line [16:00:47]written 0, free lines is 3288 [16:00:47]MH_Cut [16:00:47]Write to MH i2c: D1 01 00 31 16 01 19 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: D1 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: D1 01 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: D1 01 00 31 16 00 18 [16:00:47]Write to MH i2c: 01 00 00 32 16 48 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:48]OFD Sender: No OFD packet to send [16:00:48]*** Cut start [16:00:48]*** Partial cut [16:00:48]*** CUTSNS_PIN = 1 [16:00:48]*** CUTSNS_PIN = 0 [16:00:48]*** Brake cut motor [16:00:49]Read from MH i2c: 01 [16:00:49]MH_I2C_Read... [16:00:49]*** Stop cut motor [16:00:49]*** Cut end [16:00:49]Read from MH i2c: 01 07 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: 01 07 00 32 16 00 00 00 00 00 FF 0F 5D [16:00:49]process_action close_receipt done [16:00:49]requested_data is exist [16:00:49]produce_requested_data [16:00:49]requested_item fm.sn is exist - process it [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 11 00 00 [16:00:49]Write to MH i2c: E2 08 00 33 16 80 11 00 00 00 00 00 00 C3 [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 17 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 17 00 33 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 15 [16:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:00:49]wFMCommunicate OK [16:00:49]requested_item fd.num is exist - process it [16:00:49]SAM_PROTO_GetFieldsCounters [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 13 00 00 [16:00:49]Write to MH i2c: E2 08 00 34 16 80 13 00 00 00 00 00 00 C6 [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 62 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 62 00 34 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2E B3 01 00 0E 04 04 00 84 01 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 1F [16: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2E B3 01 00 0E 04 04 00 84 01 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 [16:00:49]wFMCommunicate OK [16:00:49]SAM_PROTO_GetFieldsCounters done [16:00:49]requested_item shift.num is exist - process it [16:00:49]requested_item shift.opened is exist - process it [16:00:49]req_shift_opened [16:00:49]FM_GetShiftState [16:00:49]SAM_PROTO_GetShiftState [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 13 01 00 [16:00:49]Write to MH i2c: E2 08 00 35 16 80 13 01 00 00 00 00 00 C8 [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 0E 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 0E 00 35 16 00 09 00 01 31 35 72 66 00 00 00 00 90 00 12 [16:00:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:00:49]wFMCommunicate OK [16:00:49]SAM_PROTO_GetShiftState done [16:00:49]FM_GetShiftState done [16:00:49]req_shift_opened done [16:00:49]requested_item shift.open_date is exist - process it [16:00:49]req_shift_open_date [16:00:49]req_shift_open_date done [16:00:49]produce_requested_data done [16:00:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111406,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:00:49]process_action_free close_receipt [16:00:49]json_value_free [16:00:49]json_value_free done [16:00:49]process_json_proto returns [16:00:49]Send response to host [16:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111406,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:00:49]free response buf [16:00:49]execute_script done [16:00:49]execute_script returns [16:00:49]free content buf [16:00:49]Sock 7.Close socket [16:00:49]Sock 7.Thread stoped [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:50]accept exits with 9 [16:01:50]New connection [16:01:50]New thread 3067321700 created [16:01:50]Thread 3067465060 joined [16:01:50]Waiting for new connection... [16:01:50] Sock 9.Parse request [16:01:50]Sock 9.Check first char [16:01:50]Sock 9.First char is OK [16:01:50]request: POST /json_proto HTTP/1.0 [16:01:50]Method: POST [16:01:50]URL: /json_proto [16:01:50]Method is POST - this is cgi request [16:01:50]url: /json_proto [16:01:50]query_string will be loaded in cgi processing [16:01:50]execute_cgi json_proto POST (null) [16:01:50]execute_cgi path=json_proto method=POST [16:01:50]POST find Content-Length [16:01:50]Host: 172.17.59.68:8080 [16:01:50]Content-Length: 805 [16:01:50]Content-Type: application/json [16:01:50] [16:01:50]POST finish read [16:01:50]Found Content-Length = 805 [16:01:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:50]execute_script... [16: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)319988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:50]POST & json_proto [16:01:50]process_json_proto [16:01:50]json parsed OK: [16:01:50]protocol is kg_v1.0 [16:01:50]action value=close_receipt [16:01:50]process_action close_receipt [16:01:50]cmd_close_receipt [16:01:50]MH_GetDate [16:01:50]Write to MH i2c: F0 00 00 36 16 3B [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: F0 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: F0 09 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: F0 09 00 36 16 00 F3 00 73 66 BC EC 60 65 7D [16:01:50]GetLastDocTimeStamp 1718812851 [16:01:50]current date 1718812915 [16:01:50]FM_GetShiftState [16:01:50]SAM_PROTO_GetShiftState [16:01:50]wFMCommunicate request_size=4 [16:01:50]MH_SAM_APDU [16:01:50]CAPDU: 80 13 01 00 [16:01:50]Write to MH i2c: E2 08 00 37 16 80 13 01 00 00 00 00 00 CA [16:01:50]Write i2c OK [16:01:50]MH_I2C_Read... [16:01:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:50]Read from MH i2c: E2 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0E 00 [16:01:50]MH_I2C_Read... [16:01:50]Read from MH i2c: E2 0E 00 37 16 00 09 00 01 31 35 72 66 00 00 00 00 90 00 14 [16:01:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:01:50]wFMCommunicate OK [16:01:50]SAM_PROTO_GetShiftState done [16:01:50]FM_GetShiftState done [16:01:50]opened in 1718760753 [16:01:50]opened+sec_in_day 1718847153 [16:01:50]quantity*price = 30012 [16:01:50]sum+1 = 30014 [16:01:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 156 19.06.2024 16:01 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111407 ФПД: 161877599747519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160155&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111407&fm=161877599747519&tin=02508201610067®Number=0000000000092771&sum=30013 [16:01:51]StoreToDocumentArchive [16:01:51]shift 388 fd 111407 [16:01:51]save to /storage/0388/doc_00111407 [16:01:51]save last doc name /storage/0388/doc_00111407 to /storage/kkm_last_doc_name [16:01:51]save OK [16:01:51]Clear old archive folders... [16:01:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:51]tlvbuf is 00EED3F0 [16:01:51]SAM_PROTO_ClearQueue [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 09 00 00 [16:01:51]Write to MH i2c: E2 08 00 44 16 80 09 00 00 00 00 00 00 CC [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]SAM_PROTO_ClearQueue done [16:01:51]KKMCreateOFDPacket [16:01:51]OFDProtocolAddRootSTLVToBuf [16:01:51]FM_MakeSignedData [16:01:51]FM_MakeSignedData [16:01:51]SAM_PROTO_SignData [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 0D 01 02 [16:01:51]Write to MH i2c: E2 08 00 45 16 80 0D 01 02 00 00 00 00 D4 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]wFMCommunicate request_size=255 [16:01:51]MH_SAM_APDU [16: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F3 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B3 01 00 35 04 06 00 93 [16:01:51]Write to MH i2c: E2 02 01 46 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F3 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B3 01 00 35 04 06 00 93 00 00 A3 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [16:01:51]RAPDU: 90 00 [16:01:51]wFMCommunicate OK [16:01:51]wFMCommunicate request_size=10 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 0D 02 02 05 3A 10 D4 7D BF [16:01:51]Write to MH i2c: E2 0D 00 47 16 80 0D 02 02 05 00 3A 10 D4 7D BF 00 00 3B [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 03 00 47 16 00 90 00 D1 [16:01:52]RAPDU: 90 00 [16:01:52]wFMCommunicate OK [16:01:52]wFMCommunicate request_size=4 [16:01:52]MH_SAM_APDU [16:01:52]CAPDU: 80 0D 03 02 [16:01:52]Write to MH i2c: E2 08 00 48 16 80 0D 03 02 00 00 00 00 D9 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 0B 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 0B 00 48 16 00 9B EE 83 26 FC C4 58 2B 90 00 4F [16:01:52]RAPDU: 9B EE 83 26 FC C4 58 2B 90 00 [16:01:52]wFMCommunicate OK [16:01:52]SAM_PROTO_SignData done [16:01:52]FM_MakeSignedData done [16:01:52]CreateOFDProtocolMessage [16:01:52]wFMCommunicate request_size=4 [16:01:52]MH_SAM_APDU [16:01:52]CAPDU: 80 11 00 00 [16:01:52]Write to MH i2c: E2 08 00 49 16 80 11 00 00 00 00 00 00 D9 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:52]Read from MH i2c: E2 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 17 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: E2 17 00 49 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2B [16:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:01:52]wFMCommunicate OK [16:01:52]CreateOFDProtocolMessage done [16:01:52]OFDSenderStorePacket 111407 [16:01:52]StoreOFDPacket docnum=111407 [16:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0C 43 07 01 17 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F3 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B3 01 00 35 04 06 00 93 3A 10 D4 7D BF 9B EE 83 26 FC C4 58 2B [16:01:52]CheckFolder [16:01:52]dirname=/storage/ofd_packets [16:01:52]CheckFolder done [16:01:52]ProducePacketName [16:01:52]name=ofd_packets/00111407 [16:01:52]NVStorageSaveData ofd_packets/00111407 [16:01:52]File name is /storage/ofd_packets/00111407 [16:01:52]Write 301 bytes [16:01:52]NVStorageSaveData done [16:01:52]OFDSenderStorePacket done [16:01:52]KKMCreateOFDPacket done [16:01:52]NVStorageSaveData kkm_last_timestamp [16:01:52]File name is /storage/kkm_last_timestamp [16:01:52]Write 4 bytes [16:01:52]NVStorageSaveData done [16:01:52]ExternCall_PrintAddStr [16:01:52]wPrintStart [16:01:52]Write to MH i2c: 01 00 00 4A 16 60 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 07 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [16:01:52]RasterBufferAndPrint [16:01:52]line Счет N : (1)319988 [16:01:52]line ИНН: 02508201610067 [16:01:52]line Контрольно-Кассовый Чек [16:01:52]line ПРОДАЖА [16:01:52]line ТРК (МРК, ГНК) : 11 [16:01:52]line Товар: 2710124130 [16:01:52]line Аи-92-К-5 [16:01:52]line 4.520 * 66.40 [16:01:52]line = 300.13 [16:01:52]line НДС 12% НСП 1% [16:01:52]line > о реализуемом товаре [16:01:52]line ИТОГО: 300.13 [16:01:52]line НСП 1% : 2.66 [16:01:52]line НДС 12% : 31.87 [16:01:52]line Наличными: 0.00 [16:01:52]line Безнал.: 300.13 [16:01:52]line Место: АЗС № 65 "Партнер Нефть" [16:01:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:01:52]line СНО: Общий режим [16:01:52]line Чек 156 19.06.2024 16:01 [16:01:52]line Смена: 388 ФФД: 1.0 [16:01:52]line ЗНМ: 0300000198 [16:01:52]line РНМ: 0000000000092771 [16:01:52]line Версия ККМ: 001 [16:01:52]line Платежная система: О! деньги [16:01:52]line ФМ: 0000000000875083 [16:01:52]line ФД: 111407 [16:01:52]line ФПД: 161877599747519 [16:01:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160155&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111407&fm=161877599747519&tin=02508201610067®Number=0000000000092771&sum=30013 [16:01:52]written 0, free lines is 4095 [16:01:52]OFD Sender: Processing packet 111407 [packets to send 38, broken 37] [16:01:52]ProducePacketName [16:01:52]name=ofd_packets/00111407 [16:01:52]OFD Sender: To server: pG, [16:01:52]CommunicateWithHost lk.salyk.kg:30040 [16:01:52]ConnectInit lk.salyk.kg [16:01:52]Connected sock=10 [16: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 35 30 38 33 0F 01 00 00 0C 43 07 01 17 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 F3 00 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 2F B3 01 00 35 04 06 00 93 3A 10 D4 7D BF 9B EE 83 26 FC C4 58 2B [16:01:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 85 ED 47 00 92 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 35 30 38 33 10 04 04 00 2F B3 01 00 F4 03 04 00 59 98 72 66 B6 04 01 00 00 54 90 05 F8 A9 12 D8 F4 [16:01:52]CommunicateWithHost err = 0 [16:01:52]CheckOFDResponse [16:01:52]1017 (14) - 77093643461234 [16:01:52]1041 (16) - 0000000000875083 [16:01:52]1040 (4) - 111407 [16:01:52]1012 (4) - 19.06.2024 08:35 [16:01:52]1206 (1) - 0 [16:01:52]OFD Sender: Remove packet 111407 [16:01:52]ProducePacketName [16:01:52]name=ofd_packets/00111407 [16:01:52]NVStorageDeleteData [16:01:52]Write to MH i2c: 01 00 00 74 16 8A [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 07 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: 01 07 00 74 16 00 00 00 00 00 E2 0C 7F [16:01:52]RasterBufferAndPrint [16:01:52]line [16:01:52]line [16:01:52]line [16:01:52]line [16:01:52]line [16:01:52]written 0, free lines is 3303 [16:01:52]MH_Cut [16:01:52]Write to MH i2c: D1 01 00 7B 16 01 63 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: D1 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: D1 01 00 [16:01:52]MH_I2C_Read... [16:01:52]Read from MH i2c: D1 01 00 7B 16 00 62 [16:01:52]Write to MH i2c: 01 00 00 7C 16 92 [16:01:52]Write i2c OK [16:01:52]MH_I2C_Read... [16:01:53]OFD Sender: No OFD packet to send [16:01:53]*** Cut start [16:01:53]*** Partial cut [16:01:53]*** CUTSNS_PIN = 1 [16:01:53]*** CUTSNS_PIN = 0 [16:01:53]*** Brake cut motor [16:01:54]Read from MH i2c: 01 [16:01:54]MH_I2C_Read... [16:01:54]*** Stop cut motor [16:01:54]*** Cut end [16:01:54]Read from MH i2c: 01 07 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: 01 07 00 7C 16 00 00 00 00 00 FF 0F A7 [16:01:54]process_action close_receipt done [16:01:54]requested_data is exist [16:01:54]produce_requested_data [16:01:54]requested_item fm.sn is exist - process it [16:01:54]wFMCommunicate request_size=4 [16:01:54]MH_SAM_APDU [16:01:54]CAPDU: 80 11 00 00 [16:01:54]Write to MH i2c: E2 08 00 7D 16 80 11 00 00 00 00 00 00 0D [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:54]Read from MH i2c: E2 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 17 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 17 00 7D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5F [16:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:01:54]wFMCommunicate OK [16:01:54]requested_item fd.num is exist - process it [16:01:54]SAM_PROTO_GetFieldsCounters [16:01:54]wFMCommunicate request_size=4 [16:01:54]MH_SAM_APDU [16:01:54]CAPDU: 80 13 00 00 [16:01:54]Write to MH i2c: E2 08 00 7E 16 80 13 00 00 00 00 00 00 10 [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:54]Read from MH i2c: E2 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 62 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 62 00 7E 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2F B3 01 00 0E 04 04 00 84 01 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 6D [16: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 2F B3 01 00 0E 04 04 00 84 01 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 [16:01:54]wFMCommunicate OK [16:01:54]SAM_PROTO_GetFieldsCounters done [16:01:54]requested_item shift.num is exist - process it [16:01:54]requested_item shift.opened is exist - process it [16:01:54]req_shift_opened [16:01:54]FM_GetShiftState [16:01:54]SAM_PROTO_GetShiftState [16:01:54]wFMCommunicate request_size=4 [16:01:54]MH_SAM_APDU [16:01:54]CAPDU: 80 13 01 00 [16:01:54]Write to MH i2c: E2 08 00 7F 16 80 13 01 00 00 00 00 00 12 [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:54]Read from MH i2c: E2 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 0E 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 0E 00 7F 16 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5C [16:01:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:01:54]wFMCommunicate OK [16:01:54]SAM_PROTO_GetShiftState done [16:01:54]FM_GetShiftState done [16:01:54]req_shift_opened done [16:01:54]requested_item shift.open_date is exist - process it [16:01:54]req_shift_open_date [16:01:54]req_shift_open_date done [16:01:54]produce_requested_data done [16:01:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111407,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:01:54]process_action_free close_receipt [16:01:54]json_value_free [16:01:54]json_value_free done [16:01:54]process_json_proto returns [16:01:54]Send response to host [16:01:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111407,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:01:54]free response buf [16:01:54]execute_script done [16:01:54]execute_script returns [16:01:54]free content buf [16:01:54]Sock 9.Close socket [16:01:54]Sock 9.Thread stoped [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:25]accept exits with 7 [16:02:25]New connection [16:02:25]New thread 3067465060 created [16:02:25]Thread 3067321700 joined [16:02:25]Waiting for new connection... [16:02:25] Sock 7.Parse request [16:02:25]Sock 7.Check first char [16:02:25]Sock 7.First char is OK [16:02:25]request: POST /json_proto HTTP/1.0 [16:02:25]Method: POST [16:02:25]URL: /json_proto [16:02:25]Method is POST - this is cgi request [16:02:25]url: /json_proto [16:02:25]query_string will be loaded in cgi processing [16:02:25]execute_cgi json_proto POST (null) [16:02:25]execute_cgi path=json_proto method=POST [16:02:25]POST find Content-Length [16:02:25]Host: 172.17.59.68:8080 [16:02:25]Content-Length: 674 [16:02:25]Content-Type: application/json [16:02:25] [16:02:25]POST finish read [16:02:25]Found Content-Length = 674 [16:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.080, "sum" : 370.33, "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" ] } } [16:02:25]execute_script... [16:02: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)319989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.080, "sum" : 370.33, "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" ] } } [16:02:25]POST & json_proto [16:02:25]process_json_proto [16:02:25]json parsed OK: [16:02:25]protocol is kg_v1.0 [16:02:25]action value=close_receipt [16:02:25]process_action close_receipt [16:02:25]cmd_close_receipt [16:02:25]MH_GetDate [16:02:25]Write to MH i2c: F0 00 00 80 16 85 [16:02:25]Write i2c OK [16:02:25]MH_I2C_Read... [16:02:25]Read from MH i2c: F0 [16:02:25]MH_I2C_Read... [16:02:25]Read from MH i2c: F0 09 00 [16:02:25]MH_I2C_Read... [16:02:25]Read from MH i2c: F0 09 00 80 16 00 16 01 73 66 BC EC 60 65 EB [16:02:25]GetLastDocTimeStamp 1718812915 [16:02:25]current date 1718812950 [16:02:25]FM_GetShiftState [16:02:25]SAM_PROTO_GetShiftState [16:02:25]wFMCommunicate request_size=4 [16:02:25]MH_SAM_APDU [16:02:25]CAPDU: 80 13 01 00 [16:02:25]Write to MH i2c: E2 08 00 81 16 80 13 01 00 00 00 00 00 14 [16:02:25]Write i2c OK [16:02:25]MH_I2C_Read... [16:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:25]Read from MH i2c: E2 [16:02:25]MH_I2C_Read... [16:02:25]Read from MH i2c: E2 0E 00 [16:02:25]MH_I2C_Read... [16:02:25]Read from MH i2c: E2 0E 00 81 16 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5E [16:02:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:02:25]wFMCommunicate OK [16:02:25]SAM_PROTO_GetShiftState done [16:02:25]FM_GetShiftState done [16:02:25]opened in 1718760753 [16:02:25]opened+sec_in_day 1718847153 [16:02:25]quantity*price = 37033 [16:02:25]sum+1 = 37034 [16:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.33 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 157 19.06.2024 16:02 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111408 ФПД: 98572752814574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160231&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111408&fm=98572752814574&tin=02508201610067®Number=0000000000092771&sum=37000 [16:02:26]StoreToDocumentArchive [16:02:26]shift 388 fd 111408 [16:02:26]save to /storage/0388/doc_00111408 [16:02:26]save last doc name /storage/0388/doc_00111408 to /storage/kkm_last_doc_name [16:02:26]save OK [16:02:26]Clear old archive folders... [16:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:02:26]tlvbuf is 00ECE0E0 [16:02:26]SAM_PROTO_ClearQueue [16:02:26]wFMCommunicate request_size=4 [16:02:26]MH_SAM_APDU [16:02:26]CAPDU: 80 09 00 00 [16:02:26]Write to MH i2c: E2 08 00 8E 16 80 09 00 00 00 00 00 00 16 [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:26]Read from MH i2c: E2 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: E2 03 00 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: E2 03 00 8E 16 00 90 00 18 [16:02:26]RAPDU: 90 00 [16:02:26]wFMCommunicate OK [16:02:26]SAM_PROTO_ClearQueue done [16:02:26]KKMCreateOFDPacket [16:02:26]OFDProtocolAddRootSTLVToBuf [16:02:26]FM_MakeSignedData [16:02:26]FM_MakeSignedData [16:02:26]SAM_PROTO_SignData [16:02:26]wFMCommunicate request_size=4 [16:02:26]MH_SAM_APDU [16:02:26]CAPDU: 80 0D 01 02 [16:02:26]Write to MH i2c: E2 08 00 8F 16 80 0D 01 02 00 00 00 00 1E [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:26]Read from MH i2c: E2 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: E2 03 00 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: E2 03 00 8F 16 00 90 00 19 [16:02:26]RAPDU: 90 00 [16:02:26]wFMCommunicate OK [16:02:26]wFMCommunicate request_size=255 [16:02:26]MH_SAM_APDU [16:02: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 D8 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 5D 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 9D 00 00 00 F4 03 04 00 17 01 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B3 01 00 35 04 06 00 59 A6 C1 EA [16:02:26]Write to MH i2c: E2 02 01 90 16 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 D8 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 5D 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 9D 00 00 00 F4 03 04 00 17 01 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B3 01 00 35 04 06 00 59 A6 C1 EA 00 00 BB [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:26]Read from MH i2c: E2 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: E2 03 00 [16:02:26]MH_I2C_Read... [16:02:26]Read from MH i2c: E2 03 00 90 16 00 90 00 1A [16:02:26]RAPDU: 90 00 [16:02:26]wFMCommunicate OK [16:02:26]wFMCommunicate request_size=7 [16:02:26]MH_SAM_APDU [16:02:26]CAPDU: 80 0D 02 02 02 81 EE [16:02:26]Write to MH i2c: E2 0A 00 91 16 80 0D 02 02 02 00 81 EE 00 00 94 [16:02:26]Write i2c OK [16:02:26]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 03 00 91 16 00 90 00 1B [16:02:27]RAPDU: 90 00 [16:02:27]wFMCommunicate OK [16:02:27]wFMCommunicate request_size=4 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 0D 03 02 [16:02:27]Write to MH i2c: E2 08 00 92 16 80 0D 03 02 00 00 00 00 23 [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 0B 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 0B 00 92 16 00 0C 88 A7 13 EA 1F BF 1A 90 00 54 [16:02:27]RAPDU: 0C 88 A7 13 EA 1F BF 1A 90 00 [16:02:27]wFMCommunicate OK [16:02:27]SAM_PROTO_SignData done [16:02:27]FM_MakeSignedData done [16:02:27]CreateOFDProtocolMessage [16:02:27]wFMCommunicate request_size=4 [16:02:27]MH_SAM_APDU [16:02:27]CAPDU: 80 11 00 00 [16:02:27]Write to MH i2c: E2 08 00 93 16 80 11 00 00 00 00 00 00 23 [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:27]Read from MH i2c: E2 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 17 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: E2 17 00 93 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 75 [16:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:02:27]wFMCommunicate OK [16:02:27]CreateOFDProtocolMessage done [16:02:27]OFDSenderStorePacket 111408 [16:02:27]StoreOFDPacket docnum=111408 [16:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 6E C0 04 01 E8 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 5D 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 9D 00 00 00 F4 03 04 00 17 01 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B3 01 00 35 04 06 00 59 A6 C1 EA 81 EE 0C 88 A7 13 EA 1F BF 1A [16:02:27]CheckFolder [16:02:27]dirname=/storage/ofd_packets [16:02:27]CheckFolder done [16:02:27]ProducePacketName [16:02:27]name=ofd_packets/00111408 [16:02:27]NVStorageSaveData ofd_packets/00111408 [16:02:27]File name is /storage/ofd_packets/00111408 [16:02:27]Write 298 bytes [16:02:27]NVStorageSaveData done [16:02:27]OFDSenderStorePacket done [16:02:27]KKMCreateOFDPacket done [16:02:27]NVStorageSaveData kkm_last_timestamp [16:02:27]File name is /storage/kkm_last_timestamp [16:02:27]Write 4 bytes [16:02:27]NVStorageSaveData done [16:02:27]ExternCall_PrintAddStr [16:02:27]wPrintStart [16:02:27]Write to MH i2c: 01 00 00 94 16 AA [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 FF 0F BF [16:02:27]RasterBufferAndPrint [16:02:27]line Счет N : (1)319989 [16:02:27]line ИНН: 02508201610067 [16:02:27]line Контрольно-Кассовый Чек [16:02:27]line ПРОДАЖА [16:02:27]line ТРК (МРК, ГНК) : 22 [16:02:27]line Товар: 2710194210 [16:02:27]line ДТ-К-5 [16:02:27]line 5.080 * 72.90 [16:02:27]line = 370.33 [16:02:27]line НДС 12% НСП 1% [16:02:27]line > о реализуемом товаре [16:02:27]line ОКРУГЛЕНИЕ: -0.33 [16:02:27]line ИТОГО: 370.00 [16:02:27]line Внесено: 370.00 [16:02:27]line СДАЧА: 0.00 [16:02:27]line НСП 1% : 3.28 [16:02:27]line НДС 12% : 39.33 [16:02:27]line Наличными: 370.00 [16:02:27]line Безнал.: 0.00 [16:02:27]line Место: АЗС № 65 "Партнер Нефть" [16:02:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:02:27]line СНО: Общий режим [16:02:27]line Чек 157 19.06.2024 16:02 [16:02:27]line Смена: 388 ФФД: 1.0 [16:02:27]line ЗНМ: 0300000198 [16:02:27]line РНМ: 0000000000092771 [16:02:27]line Версия ККМ: 001 [16:02:27]line ФМ: 0000000000875083 [16:02:27]line ФД: 111408 [16:02:27]line ФПД: 98572752814574 [16:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160231&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111408&fm=98572752814574&tin=02508201610067®Number=0000000000092771&sum=37000 [16:02:27]OFD Sender: Processing packet 111408 [packets to send 38, broken 37] [16:02:27]ProducePacketName [16:02:27]name=ofd_packets/00111408 [16:02:27]OFD Sender: To server: pG, [16:02:27]CommunicateWithHost lk.salyk.kg:30040 [16:02:27]ConnectInit lk.salyk.kg [16:02:27]written 0, free lines is 4095 [16:02:27]Connected sock=10 [16:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 6E C0 04 01 E8 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 13 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 5D 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 9D 00 00 00 F4 03 04 00 17 01 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 30 B3 01 00 35 04 06 00 59 A6 C1 EA 81 EE 0C 88 A7 13 EA 1F BF 1A [16:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1F 1B 47 00 E7 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 35 30 38 33 10 04 04 00 30 B3 01 00 F4 03 04 00 7C 98 72 66 B6 04 01 00 00 92 03 2B 7B 6F A9 3D 82 [16:02:27]CommunicateWithHost err = 0 [16:02:27]CheckOFDResponse [16:02:27]1017 (14) - 77093643461234 [16:02:27]1041 (16) - 0000000000875083 [16:02:27]1040 (4) - 111408 [16:02:27]1012 (4) - 19.06.2024 08:36 [16:02:27]1206 (1) - 0 [16:02:27]OFD Sender: Remove packet 111408 [16:02:27]ProducePacketName [16:02:27]name=ofd_packets/00111408 [16:02:27]NVStorageDeleteData [16:02:27]Write to MH i2c: 01 00 00 BF 16 D5 [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: 01 07 00 BF 16 00 00 00 00 00 CD 0C B5 [16:02:27]RasterBufferAndPrint [16:02:27]line [16:02:27]line [16:02:27]line [16:02:27]line [16:02:27]line [16:02:27]written 0, free lines is 3284 [16:02:27]MH_Cut [16:02:27]Write to MH i2c: D1 01 00 C6 16 01 AE [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: D1 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: D1 01 00 [16:02:27]MH_I2C_Read... [16:02:27]Read from MH i2c: D1 01 00 C6 16 00 AD [16:02:27]Write to MH i2c: 01 00 00 C7 16 DD [16:02:27]Write i2c OK [16:02:27]MH_I2C_Read... [16:02:28]OFD Sender: No OFD packet to send [16:02:28]*** Cut start [16:02:28]*** Partial cut [16:02:28]*** CUTSNS_PIN = 1 [16:02:28]*** CUTSNS_PIN = 0 [16:02:28]*** Brake cut motor [16:02:29]Read from MH i2c: 01 [16:02:29]MH_I2C_Read... [16:02:29]*** Stop cut motor [16:02:29]*** Cut end [16:02:29]Read from MH i2c: 01 07 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: 01 07 00 C7 16 00 00 00 00 00 FF 0F F2 [16:02:29]process_action close_receipt done [16:02:29]requested_data is exist [16:02:29]produce_requested_data [16:02:29]requested_item fm.sn is exist - process it [16:02:29]wFMCommunicate request_size=4 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 11 00 00 [16:02:29]Write to MH i2c: E2 08 00 C8 16 80 11 00 00 00 00 00 00 58 [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 17 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 17 00 C8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AA [16:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:02:29]wFMCommunicate OK [16:02:29]requested_item fd.num is exist - process it [16:02:29]SAM_PROTO_GetFieldsCounters [16:02:29]wFMCommunicate request_size=4 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 13 00 00 [16:02:29]Write to MH i2c: E2 08 00 C9 16 80 13 00 00 00 00 00 00 5B [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 62 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 62 00 C9 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 30 B3 01 00 0E 04 04 00 84 01 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 BC [16:02: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 30 B3 01 00 0E 04 04 00 84 01 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 [16:02:29]wFMCommunicate OK [16:02:29]SAM_PROTO_GetFieldsCounters done [16:02:29]requested_item shift.num is exist - process it [16:02:29]requested_item shift.opened is exist - process it [16:02:29]req_shift_opened [16:02:29]FM_GetShiftState [16:02:29]SAM_PROTO_GetShiftState [16:02:29]wFMCommunicate request_size=4 [16:02:29]MH_SAM_APDU [16:02:29]CAPDU: 80 13 01 00 [16:02:29]Write to MH i2c: E2 08 00 CA 16 80 13 01 00 00 00 00 00 5D [16:02:29]Write i2c OK [16:02:29]MH_I2C_Read... [16:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:29]Read from MH i2c: E2 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 0E 00 [16:02:29]MH_I2C_Read... [16:02:29]Read from MH i2c: E2 0E 00 CA 16 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A7 [16:02:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:02:29]wFMCommunicate OK [16:02:29]SAM_PROTO_GetShiftState done [16:02:29]FM_GetShiftState done [16:02:29]req_shift_opened done [16:02:29]requested_item shift.open_date is exist - process it [16:02:29]req_shift_open_date [16:02:29]req_shift_open_date done [16:02:29]produce_requested_data done [16:02:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111408,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:02:29]process_action_free close_receipt [16:02:29]json_value_free [16:02:29]json_value_free done [16:02:29]process_json_proto returns [16:02:29]Send response to host [16:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111408,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:02:29]free response buf [16:02:29]execute_script done [16:02:29]execute_script returns [16:02:29]free content buf [16:02:29]Sock 7.Close socket [16:02:29]Sock 7.Thread stoped [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:14]accept exits with 9 [16:03:14]New connection [16:03:14]New thread 3067321700 created [16:03:14]Thread 3067465060 joined [16:03:14]Waiting for new connection... [16:03:14] Sock 9.Parse request [16:03:14]Sock 9.Check first char [16:03:14]Sock 9.First char is OK [16:03:14]request: POST /json_proto HTTP/1.0 [16:03:14]Method: POST [16:03:14]URL: /json_proto [16:03:14]Method is POST - this is cgi request [16:03:14]url: /json_proto [16:03:14]query_string will be loaded in cgi processing [16:03:14]execute_cgi json_proto POST (null) [16:03:14]execute_cgi path=json_proto method=POST [16:03:14]POST find Content-Length [16:03:14]Host: 172.17.59.68:8080 [16:03:14]Content-Length: 677 [16:03:14]Content-Type: application/json [16:03:14] [16:03:14]POST finish read [16:03:14]Found Content-Length = 677 [16:03:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:03:14]execute_script... [16:03: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)319990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:03:14]POST & json_proto [16:03:14]process_json_proto [16:03:14]json parsed OK: [16:03:14]protocol is kg_v1.0 [16:03:14]action value=close_receipt [16:03:14]process_action close_receipt [16:03:14]cmd_close_receipt [16:03:14]MH_GetDate [16:03:14]Write to MH i2c: F0 00 00 CB 16 D0 [16:03:14]Write i2c OK [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: F0 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: F0 09 00 [16:03:14]MH_I2C_Read... [16:03:14]Read from MH i2c: F0 09 00 CB 16 00 48 01 73 66 BC EC 60 65 68 [16:03:14]GetLastDocTimeStamp 1718812951 [16:03:14]current date 1718813000 [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 CC 16 80 13 01 00 00 00 00 00 5F [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 CC 16 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A9 [16:03:14]RAPDU: 09 00 01 31 35 72 66 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]opened in 1718760753 [16:03:14]opened+sec_in_day 1718847153 [16:03:14]quantity*price = 40039 [16:03:14]sum+1 = 40040 [16:03:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 158 19.06.2024 16:03 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111409 ФПД: 20039741376933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160320&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111409&fm=20039741376933&tin=02508201610067®Number=0000000000092771&sum=40000 [16:03:15]StoreToDocumentArchive [16:03:15]shift 388 fd 111409 [16:03:15]save to /storage/0388/doc_00111409 [16:03:15]save last doc name /storage/0388/doc_00111409 to /storage/kkm_last_doc_name [16:03:15]save OK [16:03:15]Clear old archive folders... [16:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:15]tlvbuf is 00EED0D0 [16:03:15]SAM_PROTO_ClearQueue [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 09 00 00 [16:03:15]Write to MH i2c: E2 08 00 D9 16 80 09 00 00 00 00 00 00 61 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 D9 16 00 90 00 63 [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]SAM_PROTO_ClearQueue done [16:03:15]KKMCreateOFDPacket [16:03:15]OFDProtocolAddRootSTLVToBuf [16:03:15]FM_MakeSignedData [16:03:15]FM_MakeSignedData [16:03:15]SAM_PROTO_SignData [16:03:15]wFMCommunicate request_size=4 [16:03:15]MH_SAM_APDU [16:03:15]CAPDU: 80 0D 01 02 [16:03:15]Write to MH i2c: E2 08 00 DA 16 80 0D 01 02 00 00 00 00 69 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:15]Read from MH i2c: E2 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 [16:03:15]MH_I2C_Read... [16:03:15]Read from MH i2c: E2 03 00 DA 16 00 90 00 64 [16:03:15]RAPDU: 90 00 [16:03:15]wFMCommunicate OK [16:03:15]wFMCommunicate request_size=255 [16:03:15]MH_SAM_APDU [16:03: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 9E 00 00 00 F4 03 04 00 48 01 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B3 01 00 35 04 06 00 12 [16:03:15]Write to MH i2c: E2 02 01 DB 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 9E 00 00 00 F4 03 04 00 48 01 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B3 01 00 35 04 06 00 12 00 00 27 [16:03:15]Write i2c OK [16:03:15]MH_I2C_Read... [16:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:16]Read from MH i2c: E2 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: E2 03 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: E2 03 00 DB 16 00 90 00 65 [16:03:16]RAPDU: 90 00 [16:03:16]wFMCommunicate OK [16:03:16]wFMCommunicate request_size=10 [16:03:16]MH_SAM_APDU [16:03:16]CAPDU: 80 0D 02 02 05 39 DD AA 89 A5 [16:03:16]Write to MH i2c: E2 0D 00 DC 16 80 0D 02 02 05 00 39 DD AA 89 A5 00 00 64 [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:16]Read from MH i2c: E2 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: E2 03 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: E2 03 00 DC 16 00 90 00 66 [16:03:16]RAPDU: 90 00 [16:03:16]wFMCommunicate OK [16:03:16]wFMCommunicate request_size=4 [16:03:16]MH_SAM_APDU [16:03:16]CAPDU: 80 0D 03 02 [16:03:16]Write to MH i2c: E2 08 00 DD 16 80 0D 03 02 00 00 00 00 6E [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:16]Read from MH i2c: E2 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: E2 0B 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: E2 0B 00 DD 16 00 B9 48 4A D1 AE 80 59 FC 90 00 0E [16:03:16]RAPDU: B9 48 4A D1 AE 80 59 FC 90 00 [16:03:16]wFMCommunicate OK [16:03:16]SAM_PROTO_SignData done [16:03:16]FM_MakeSignedData done [16:03:16]CreateOFDProtocolMessage [16:03:16]wFMCommunicate request_size=4 [16:03:16]MH_SAM_APDU [16:03:16]CAPDU: 80 11 00 00 [16:03:16]Write to MH i2c: E2 08 00 DE 16 80 11 00 00 00 00 00 00 6E [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:16]Read from MH i2c: E2 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: E2 17 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: E2 17 00 DE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C0 [16:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:03:16]wFMCommunicate OK [16:03:16]CreateOFDProtocolMessage done [16:03:16]OFDSenderStorePacket 111409 [16:03:16]StoreOFDPacket docnum=111409 [16:03:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC CA 07 01 91 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 9E 00 00 00 F4 03 04 00 48 01 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B3 01 00 35 04 06 00 12 39 DD AA 89 A5 B9 48 4A D1 AE 80 59 FC [16:03:16]CheckFolder [16:03:16]dirname=/storage/ofd_packets [16:03:16]CheckFolder done [16:03:16]ProducePacketName [16:03:16]name=ofd_packets/00111409 [16:03:16]NVStorageSaveData ofd_packets/00111409 [16:03:16]File name is /storage/ofd_packets/00111409 [16:03:16]Write 301 bytes [16:03:16]NVStorageSaveData done [16:03:16]OFDSenderStorePacket done [16:03:16]KKMCreateOFDPacket done [16:03:16]NVStorageSaveData kkm_last_timestamp [16:03:16]File name is /storage/kkm_last_timestamp [16:03:16]Write 4 bytes [16:03:16]NVStorageSaveData done [16:03:16]ExternCall_PrintAddStr [16:03:16]wPrintStart [16:03:16]Write to MH i2c: 01 00 00 DF 16 F5 [16:03:16]Write i2c OK [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 07 00 [16:03:16]MH_I2C_Read... [16:03:16]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 FF 0F 0A [16:03:16]RasterBufferAndPrint [16:03:16]line Счет N : (1)319990 [16:03:16]line ИНН: 02508201610067 [16:03:16]line Контрольно-Кассовый Чек [16:03:16]line ПРОДАЖА [16:03:16]line ТРК (МРК, ГНК) : 11 [16:03:16]line Товар: 2710124130 [16:03:16]line Аи-92-К-5 [16:03:16]line 6.030 * 66.40 [16:03:16]line = 400.39 [16:03:16]line НДС 12% НСП 1% [16:03:16]line > о реализуемом товаре [16:03:16]line ОКРУГЛЕНИЕ: -0.39 [16:03:16]line ИТОГО: 400.00 [16:03:16]line Внесено: 400.00 [16:03:16]line СДАЧА: 0.00 [16:03:16]line НСП 1% : 3.54 [16:03:16]line НДС 12% : 42.52 [16:03:16]line Наличными: 400.00 [16:03:16]line Безнал.: 0.00 [16:03:16]line Место: АЗС № 65 "Партнер Нефть" [16:03:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:03:16]line СНО: Общий режим [16:03:16]line Чек 158 19.06.2024 16:03 [16:03:16]line Смена: 388 ФФД: 1.0 [16:03:16]line ЗНМ: 0300000198 [16:03:16]line РНМ: 0000000000092771 [16:03:16]line Версия ККМ: 001 [16:03:16]line ФМ: 0000000000875083 [16:03:16]line ФД: 111409 [16:03:16]line ФПД: 20039741376933 [16:03:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160320&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111409&fm=20039741376933&tin=02508201610067®Number=0000000000092771&sum=40000 [16:03:16]OFD Sender: Processing packet 111409 [packets to send 38, broken 37] [16:03:16]ProducePacketName [16:03:16]name=ofd_packets/00111409 [16:03:16]OFD Sender: To server: pG, [16:03:16]CommunicateWithHost lk.salyk.kg:30040 [16:03:16]ConnectInit lk.salyk.kg [16:03:16]written 0, free lines is 4095 [16:03:16]Connected sock=10 [16:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EC CA 07 01 91 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 9E 00 00 00 F4 03 04 00 48 01 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 31 B3 01 00 35 04 06 00 12 39 DD AA 89 A5 B9 48 4A D1 AE 80 59 FC [16:03:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 95 19 47 00 93 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 35 30 38 33 10 04 04 00 31 B3 01 00 F4 03 04 00 AD 98 72 66 B6 04 01 00 00 0B 8D EB F1 73 6E 39 DD [16:03:16]CommunicateWithHost err = 0 [16:03:16]CheckOFDResponse [16:03:16]1017 (14) - 77093643461234 [16:03:16]1041 (16) - 0000000000875083 [16:03:16]1040 (4) - 111409 [16:03:16]1012 (4) - 19.06.2024 08:37 [16:03:16]1206 (1) - 0 [16:03:16]OFD Sender: Remove packet 111409 [16:03:16]ProducePacketName [16:03:16]name=ofd_packets/00111409 [16:03:16]NVStorageDeleteData [16:03:17]Write to MH i2c: 01 00 00 0A 17 21 [16:03:17]Write i2c OK [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: 01 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: 01 07 00 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: 01 07 00 0A 17 00 00 00 00 00 D4 0C 08 [16:03:17]RasterBufferAndPrint [16:03:17]line [16:03:17]line [16:03:17]line [16:03:17]line [16:03:17]line [16:03:17]written 0, free lines is 3292 [16:03:17]MH_Cut [16:03:17]Write to MH i2c: D1 01 00 11 17 01 FA [16:03:17]Write i2c OK [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: D1 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: D1 01 00 [16:03:17]MH_I2C_Read... [16:03:17]Read from MH i2c: D1 01 00 11 17 00 F9 [16:03:17]Write to MH i2c: 01 00 00 12 17 29 [16:03:17]Write i2c OK [16:03:17]MH_I2C_Read... [16:03:17]OFD Sender: No OFD packet to send [16:03:17]*** Cut start [16:03:17]*** Partial cut [16:03:17]*** CUTSNS_PIN = 1 [16:03:17]*** CUTSNS_PIN = 0 [16:03:18]*** Brake cut motor [16:03:18]Read from MH i2c: 01 [16:03:18]MH_I2C_Read... [16:03:18]*** Stop cut motor [16:03:18]*** Cut end [16:03:18]Read from MH i2c: 01 07 00 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: 01 07 00 12 17 00 00 00 00 00 FF 0F 3E [16:03:18]process_action close_receipt done [16:03:18]requested_data is exist [16:03:18]produce_requested_data [16:03:18]requested_item fm.sn is exist - process it [16:03:18]wFMCommunicate request_size=4 [16:03:18]MH_SAM_APDU [16:03:18]CAPDU: 80 11 00 00 [16:03:18]Write to MH i2c: E2 08 00 13 17 80 11 00 00 00 00 00 00 A4 [16:03:18]Write i2c OK [16:03:18]MH_I2C_Read... [16:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:18]Read from MH i2c: E2 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: E2 17 00 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: E2 17 00 13 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [16:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:03:18]wFMCommunicate OK [16:03:18]requested_item fd.num is exist - process it [16:03:18]SAM_PROTO_GetFieldsCounters [16:03:18]wFMCommunicate request_size=4 [16:03:18]MH_SAM_APDU [16:03:18]CAPDU: 80 13 00 00 [16:03:18]Write to MH i2c: E2 08 00 14 17 80 13 00 00 00 00 00 00 A7 [16:03:18]Write i2c OK [16:03:18]MH_I2C_Read... [16:03:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:18]Read from MH i2c: E2 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: E2 62 00 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: E2 62 00 14 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 31 B3 01 00 0E 04 04 00 84 01 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 0C [16:03: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 31 B3 01 00 0E 04 04 00 84 01 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 [16:03:18]wFMCommunicate OK [16:03:18]SAM_PROTO_GetFieldsCounters done [16:03:18]requested_item shift.num is exist - process it [16:03:18]requested_item shift.opened is exist - process it [16:03:18]req_shift_opened [16:03:18]FM_GetShiftState [16:03:18]SAM_PROTO_GetShiftState [16:03:18]wFMCommunicate request_size=4 [16:03:18]MH_SAM_APDU [16:03:18]CAPDU: 80 13 01 00 [16:03:18]Write to MH i2c: E2 08 00 15 17 80 13 01 00 00 00 00 00 A9 [16:03:18]Write i2c OK [16:03:18]MH_I2C_Read... [16:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:18]Read from MH i2c: E2 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: E2 0E 00 [16:03:18]MH_I2C_Read... [16:03:18]Read from MH i2c: E2 0E 00 15 17 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F3 [16:03:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:03:18]wFMCommunicate OK [16:03:18]SAM_PROTO_GetShiftState done [16:03:18]FM_GetShiftState done [16:03:18]req_shift_opened done [16:03:18]requested_item shift.open_date is exist - process it [16:03:18]req_shift_open_date [16:03:18]req_shift_open_date done [16:03:18]produce_requested_data done [16:03:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111409,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:03:18]process_action_free close_receipt [16:03:18]json_value_free [16:03:18]json_value_free done [16:03:18]process_json_proto returns [16:03:18]Send response to host [16:03:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111409,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:03:18]free response buf [16:03:18]execute_script done [16:03:18]execute_script returns [16:03:18]free content buf [16:03:18]Sock 9.Close socket [16:03:18]Sock 9.Thread stoped [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:38]accept exits with 7 [16:06:38]New connection [16:06:38]New thread 3067465060 created [16:06:38]Thread 3067321700 joined [16:06:38]Waiting for new connection... [16:06:38] Sock 7.Parse request [16:06:38]Sock 7.Check first char [16:06:38]Sock 7.First char is OK [16:06:38]request: POST /json_proto HTTP/1.0 [16:06:38]Method: POST [16:06:38]URL: /json_proto [16:06:38]Method is POST - this is cgi request [16:06:38]url: /json_proto [16:06:38]query_string will be loaded in cgi processing [16:06:38]execute_cgi json_proto POST (null) [16:06:38]execute_cgi path=json_proto method=POST [16:06:38]POST find Content-Length [16:06:38]Host: 172.17.59.68:8080 [16:06:38]Content-Length: 677 [16:06:38]Content-Type: application/json [16:06:38] [16:06:38]POST finish read [16:06:38]Found Content-Length = 677 [16:06:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:06:38]execute_script... [16:06: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)319991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:06:38]POST & json_proto [16:06:38]process_json_proto [16:06:38]json parsed OK: [16:06:38]protocol is kg_v1.0 [16:06:38]action value=close_receipt [16:06:38]process_action close_receipt [16:06:38]cmd_close_receipt [16:06:38]MH_GetDate [16:06:38]Write to MH i2c: F0 00 00 16 17 1C [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: F0 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: F0 09 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: F0 09 00 16 17 00 14 02 73 66 BC EC 60 65 81 [16:06:38]GetLastDocTimeStamp 1718813000 [16:06:38]current date 1718813204 [16:06:38]FM_GetShiftState [16:06:38]SAM_PROTO_GetShiftState [16:06:38]wFMCommunicate request_size=4 [16:06:38]MH_SAM_APDU [16:06:38]CAPDU: 80 13 01 00 [16:06:38]Write to MH i2c: E2 08 00 17 17 80 13 01 00 00 00 00 00 AB [16:06:38]Write i2c OK [16:06:38]MH_I2C_Read... [16:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:38]Read from MH i2c: E2 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 0E 00 [16:06:38]MH_I2C_Read... [16:06:38]Read from MH i2c: E2 0E 00 17 17 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F5 [16:06:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:06:38]wFMCommunicate OK [16:06:38]SAM_PROTO_GetShiftState done [16:06:38]FM_GetShiftState done [16:06:38]opened in 1718760753 [16:06:38]opened+sec_in_day 1718847153 [16:06:38]quantity*price = 20052 [16:06:38]sum+1 = 20054 [16:06:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 159 19.06.2024 16:06 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111410 ФПД: 58460303951439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160644&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111410&fm=58460303951439&tin=02508201610067®Number=0000000000092771&sum=20000 [16:06:39]StoreToDocumentArchive [16:06:39]shift 388 fd 111410 [16:06:39]save to /storage/0388/doc_00111410 [16:06:39]save last doc name /storage/0388/doc_00111410 to /storage/kkm_last_doc_name [16:06:39]save OK [16:06:39]Clear old archive folders... [16:06:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:39]tlvbuf is 00EC1D70 [16:06:39]SAM_PROTO_ClearQueue [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 09 00 00 [16:06:39]Write to MH i2c: E2 08 00 24 17 80 09 00 00 00 00 00 00 AD [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 03 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 03 00 24 17 00 90 00 AF [16:06:39]RAPDU: 90 00 [16:06:39]wFMCommunicate OK [16:06:39]SAM_PROTO_ClearQueue done [16:06:39]KKMCreateOFDPacket [16:06:39]OFDProtocolAddRootSTLVToBuf [16:06:39]FM_MakeSignedData [16:06:39]FM_MakeSignedData [16:06:39]SAM_PROTO_SignData [16:06:39]wFMCommunicate request_size=4 [16:06:39]MH_SAM_APDU [16:06:39]CAPDU: 80 0D 01 02 [16:06:39]Write to MH i2c: E2 08 00 25 17 80 0D 01 02 00 00 00 00 B5 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:39]Read from MH i2c: E2 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 03 00 [16:06:39]MH_I2C_Read... [16:06:39]Read from MH i2c: E2 03 00 25 17 00 90 00 B0 [16:06:39]RAPDU: 90 00 [16:06:39]wFMCommunicate OK [16:06:39]wFMCommunicate request_size=255 [16:06:39]MH_SAM_APDU [16:06: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 14 02 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B3 01 00 35 04 06 00 35 [16:06:39]Write to MH i2c: E2 02 01 26 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 14 02 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B3 01 00 35 04 06 00 35 00 00 56 [16:06:39]Write i2c OK [16:06:39]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 03 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 03 00 26 17 00 90 00 B1 [16:06:40]RAPDU: 90 00 [16:06:40]wFMCommunicate OK [16:06:40]wFMCommunicate request_size=10 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 0D 02 02 05 2B 59 A6 86 4F [16:06:40]Write to MH i2c: E2 0D 00 27 17 80 0D 02 02 05 00 2B 59 A6 86 4F 00 00 C1 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 03 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 03 00 27 17 00 90 00 B2 [16:06:40]RAPDU: 90 00 [16:06:40]wFMCommunicate OK [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 0D 03 02 [16:06:40]Write to MH i2c: E2 08 00 28 17 80 0D 03 02 00 00 00 00 BA [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 0B 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 0B 00 28 17 00 5A 7E 0A 82 3F 99 E6 73 90 00 50 [16:06:40]RAPDU: 5A 7E 0A 82 3F 99 E6 73 90 00 [16:06:40]wFMCommunicate OK [16:06:40]SAM_PROTO_SignData done [16:06:40]FM_MakeSignedData done [16:06:40]CreateOFDProtocolMessage [16:06:40]wFMCommunicate request_size=4 [16:06:40]MH_SAM_APDU [16:06:40]CAPDU: 80 11 00 00 [16:06:40]Write to MH i2c: E2 08 00 29 17 80 11 00 00 00 00 00 00 BA [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:40]Read from MH i2c: E2 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 17 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: E2 17 00 29 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0C [16:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:06:40]wFMCommunicate OK [16:06:40]CreateOFDProtocolMessage done [16:06:40]OFDSenderStorePacket 111410 [16:06:40]StoreOFDPacket docnum=111410 [16:06:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 46 07 01 96 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 14 02 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B3 01 00 35 04 06 00 35 2B 59 A6 86 4F 5A 7E 0A 82 3F 99 E6 73 [16:06:40]CheckFolder [16:06:40]dirname=/storage/ofd_packets [16:06:40]CheckFolder done [16:06:40]ProducePacketName [16:06:40]name=ofd_packets/00111410 [16:06:40]NVStorageSaveData ofd_packets/00111410 [16:06:40]File name is /storage/ofd_packets/00111410 [16:06:40]Write 301 bytes [16:06:40]NVStorageSaveData done [16:06:40]OFDSenderStorePacket done [16:06:40]KKMCreateOFDPacket done [16:06:40]NVStorageSaveData kkm_last_timestamp [16:06:40]File name is /storage/kkm_last_timestamp [16:06:40]Write 4 bytes [16:06:40]NVStorageSaveData done [16:06:40]ExternCall_PrintAddStr [16:06:40]wPrintStart [16:06:40]Write to MH i2c: 01 00 00 2A 17 41 [16:06:40]Write i2c OK [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: 01 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: 01 07 00 [16:06:40]MH_I2C_Read... [16:06:40]Read from MH i2c: 01 07 00 2A 17 00 00 00 00 00 FF 0F 56 [16:06:40]RasterBufferAndPrint [16:06:40]line Счет N : (1)319991 [16:06:40]line ИНН: 02508201610067 [16:06:40]line Контрольно-Кассовый Чек [16:06:40]line ПРОДАЖА [16:06:40]line ТРК (МРК, ГНК) : 11 [16:06:40]line Товар: 2710124130 [16:06:40]line Аи-92-К-5 [16:06:40]line 3.020 * 66.40 [16:06:40]line = 200.53 [16:06:40]line НДС 12% НСП 1% [16:06:40]line > о реализуемом товаре [16:06:40]line ОКРУГЛЕНИЕ: -0.53 [16:06:40]line ИТОГО: 200.00 [16:06:40]line Внесено: 200.00 [16:06:40]line СДАЧА: 0.00 [16:06:40]line НСП 1% : 1.77 [16:06:40]line НДС 12% : 21.29 [16:06:40]line Наличными: 200.00 [16:06:40]line Безнал.: 0.00 [16:06:40]line Место: АЗС № 65 "Партнер Нефть" [16:06:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:06:40]line СНО: Общий режим [16:06:40]line Чек 159 19.06.2024 16:06 [16:06:40]line Смена: 388 ФФД: 1.0 [16:06:40]line ЗНМ: 0300000198 [16:06:40]line РНМ: 0000000000092771 [16:06:40]line Версия ККМ: 001 [16:06:40]line ФМ: 0000000000875083 [16:06:40]line ФД: 111410 [16:06:40]line ФПД: 58460303951439 [16:06:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T160644&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111410&fm=58460303951439&tin=02508201610067®Number=0000000000092771&sum=20000 [16:06:40]OFD Sender: Processing packet 111410 [packets to send 38, broken 37] [16:06:40]ProducePacketName [16:06:40]name=ofd_packets/00111410 [16:06:40]OFD Sender: To server: pG, [16:06:40]CommunicateWithHost lk.salyk.kg:30040 [16:06:40]ConnectInit lk.salyk.kg [16:06:40]written 0, free lines is 4095 [16:06:40]Connected sock=10 [16:06:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 46 07 01 96 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 14 02 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 32 B3 01 00 35 04 06 00 35 2B 59 A6 86 4F 5A 7E 0A 82 3F 99 E6 73 [16:06:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9D 14 47 00 A0 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 35 30 38 33 10 04 04 00 32 B3 01 00 F4 03 04 00 79 99 72 66 B6 04 01 00 00 D7 B5 70 8C 22 37 2F 74 [16:06:40]CommunicateWithHost err = 0 [16:06:40]CheckOFDResponse [16:06:40]1017 (14) - 77093643461234 [16:06:40]1041 (16) - 0000000000875083 [16:06:40]1040 (4) - 111410 [16:06:40]1012 (4) - 19.06.2024 08:40 [16:06:40]1206 (1) - 0 [16:06:40]OFD Sender: Remove packet 111410 [16:06:40]ProducePacketName [16:06:40]name=ofd_packets/00111410 [16:06:40]NVStorageDeleteData [16:06:41]Write to MH i2c: 01 00 00 55 17 6C [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: 01 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: 01 07 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: 01 07 00 55 17 00 00 00 00 00 D8 0C 57 [16:06:41]RasterBufferAndPrint [16:06:41]line [16:06:41]line [16:06:41]line [16:06:41]line [16:06:41]line [16:06:41]written 0, free lines is 3295 [16:06:41]MH_Cut [16:06:41]Write to MH i2c: D1 01 00 5C 17 01 45 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: D1 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: D1 01 00 [16:06:41]MH_I2C_Read... [16:06:41]Read from MH i2c: D1 01 00 5C 17 00 44 [16:06:41]Write to MH i2c: 01 00 00 5D 17 74 [16:06:41]Write i2c OK [16:06:41]MH_I2C_Read... [16:06:41]OFD Sender: No OFD packet to send [16:06:41]*** Cut start [16:06:41]*** Partial cut [16:06:41]*** CUTSNS_PIN = 1 [16:06:41]*** CUTSNS_PIN = 0 [16:06:42]*** Brake cut motor [16:06:42]Read from MH i2c: 01 [16:06:42]MH_I2C_Read... [16:06:42]*** Stop cut motor [16:06:42]*** Cut end [16:06:42]Read from MH i2c: 01 07 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: 01 07 00 5D 17 00 00 00 00 00 FF 0F 89 [16:06:42]process_action close_receipt done [16:06:42]requested_data is exist [16:06:42]produce_requested_data [16:06:42]requested_item fm.sn is exist - process it [16:06:42]wFMCommunicate request_size=4 [16:06:42]MH_SAM_APDU [16:06:42]CAPDU: 80 11 00 00 [16:06:42]Write to MH i2c: E2 08 00 5E 17 80 11 00 00 00 00 00 00 EF [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:42]Read from MH i2c: E2 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 17 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 17 00 5E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 41 [16:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:06:42]wFMCommunicate OK [16:06:42]requested_item fd.num is exist - process it [16:06:42]SAM_PROTO_GetFieldsCounters [16:06:42]wFMCommunicate request_size=4 [16:06:42]MH_SAM_APDU [16:06:42]CAPDU: 80 13 00 00 [16:06:42]Write to MH i2c: E2 08 00 5F 17 80 13 00 00 00 00 00 00 F2 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:42]Read from MH i2c: E2 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 62 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 62 00 5F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 32 B3 01 00 0E 04 04 00 84 01 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 5B [16:06: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 32 B3 01 00 0E 04 04 00 84 01 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 [16:06:42]wFMCommunicate OK [16:06:42]SAM_PROTO_GetFieldsCounters done [16:06:42]requested_item shift.num is exist - process it [16:06:42]requested_item shift.opened is exist - process it [16:06:42]req_shift_opened [16:06:42]FM_GetShiftState [16:06:42]SAM_PROTO_GetShiftState [16:06:42]wFMCommunicate request_size=4 [16:06:42]MH_SAM_APDU [16:06:42]CAPDU: 80 13 01 00 [16:06:42]Write to MH i2c: E2 08 00 60 17 80 13 01 00 00 00 00 00 F4 [16:06:42]Write i2c OK [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 [16:06:42]MH_I2C_Read... [16:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:42]Read from MH i2c: E2 0E 00 [16:06:42]MH_I2C_Read... [16:06:42]Read from MH i2c: E2 0E 00 60 17 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3E [16:06:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:06:42]wFMCommunicate OK [16:06:42]SAM_PROTO_GetShiftState done [16:06:42]FM_GetShiftState done [16:06:42]req_shift_opened done [16:06:42]requested_item shift.open_date is exist - process it [16:06:42]req_shift_open_date [16:06:42]req_shift_open_date done [16:06:42]produce_requested_data done [16:06:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111410,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:06:42]process_action_free close_receipt [16:06:42]json_value_free [16:06:42]json_value_free done [16:06:42]process_json_proto returns [16:06:42]Send response to host [16:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111410,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:06:42]free response buf [16:06:42]execute_script done [16:06:42]execute_script returns [16:06:42]free content buf [16:06:42]Sock 7.Close socket [16:06:42]Sock 7.Thread stoped [16:06:46]OFD Sender: No OFD packet to send [16:06:51]OFD Sender: No OFD packet to send [16:06:56]OFD Sender: No OFD packet to send [16:07:01]OFD Sender: No OFD packet to send [16:07:06]OFD Sender: No OFD packet to send [16:07:11]OFD Sender: No OFD packet to send [16:07:16]OFD Sender: No OFD packet to send [16:07:21]OFD Sender: No OFD packet to send [16:07:26]OFD Sender: No OFD packet to send [16:07:31]OFD Sender: No OFD packet to send [16:07:36]OFD Sender: No OFD packet to send [16:07:41]OFD Sender: No OFD packet to send [16:07:46]OFD Sender: No OFD packet to send [16:07:51]OFD Sender: No OFD packet to send [16:07:56]OFD Sender: No OFD packet to send [16:08:01]OFD Sender: No OFD packet to send [16:08:06]OFD Sender: No OFD packet to send [16:08:11]OFD Sender: No OFD packet to send [16:08:16]OFD Sender: No OFD packet to send [16:08:21]OFD Sender: No OFD packet to send [16:08:26]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:31]OFD Sender: No OFD packet to send [16:09:36]OFD Sender: No OFD packet to send [16:09:41]OFD Sender: No OFD packet to send [16:09:46]OFD Sender: No OFD packet to send [16:09:51]OFD Sender: No OFD packet to send [16:09:56]OFD Sender: No OFD packet to send [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10: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:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]accept exits with 9 [16:11:51]New connection [16:11:51]New thread 3067321700 created [16:11:51]Thread 3067465060 joined [16:11:51]Waiting for new connection... [16:11:51] Sock 9.Parse request [16:11:51]Sock 9.Check first char [16:11:51]Sock 9.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.59.68:8080 [16:11:51]Content-Length: 682 [16:11:51]Content-Type: application/json [16:11:51] [16:11:51]POST finish read [16:11:51]Found Content-Length = 682 [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)319992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16: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)319992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16: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 61 17 67 [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 61 17 00 4D 03 73 66 BC EC 60 65 06 [16:11:51]GetLastDocTimeStamp 1718813204 [16:11:51]current date 1718813517 [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 62 17 80 13 01 00 00 00 00 00 F6 [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 62 17 00 09 00 01 31 35 72 66 00 00 00 00 90 00 40 [16:11:51]RAPDU: 09 00 01 31 35 72 66 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 1718760753 [16:11:51]opened+sec_in_day 1718847153 [16:11:51]quantity*price = 150064 [16:11:51]sum+1 = 150065 [16:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 160 19.06.2024 16:11 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111411 ФПД: 232769015025602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161157&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111411&fm=232769015025602&tin=02508201610067®Number=0000000000092771&sum=150000 [16:11:52]StoreToDocumentArchive [16:11:52]shift 388 fd 111411 [16:11:52]save to /storage/0388/doc_00111411 [16:11:52]save last doc name /storage/0388/doc_00111411 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 B6FD5A60 [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 6F 17 80 09 00 00 00 00 00 00 F8 [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 6F 17 00 90 00 FA [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 70 17 80 0D 01 02 00 00 00 00 00 [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 70 17 00 90 00 FB [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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 A0 00 00 00 F4 03 04 00 4D 03 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B3 01 00 35 04 06 00 D3 [16:11:52]Write to MH i2c: E2 02 01 71 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 A0 00 00 00 F4 03 04 00 4D 03 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B3 01 00 35 04 06 00 D3 00 00 60 [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 71 17 00 90 00 FC [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 B3 C2 74 8F C2 [16:11:52]Write to MH i2c: E2 0D 00 72 17 80 0D 02 02 05 00 B3 C2 74 8F C2 00 00 47 [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 72 17 00 90 00 FD [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 73 17 80 0D 03 02 00 00 00 00 05 [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 73 17 00 DD 0F C3 D3 E9 12 83 DE 90 00 E4 [16:11:52]RAPDU: DD 0F C3 D3 E9 12 83 DE 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 74 17 80 11 00 00 00 00 00 00 05 [16:11:52]Write i2c OK [16:11:52]MH_I2C_Read... [16:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:53]Read from MH i2c: E2 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: E2 17 00 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: E2 17 00 74 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [16:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:11:53]wFMCommunicate OK [16:11:53]CreateOFDProtocolMessage done [16:11:53]OFDSenderStorePacket 111411 [16:11:53]StoreOFDPacket docnum=111411 [16:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF 5F 07 01 40 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 A0 00 00 00 F4 03 04 00 4D 03 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B3 01 00 35 04 06 00 D3 B3 C2 74 8F C2 DD 0F C3 D3 E9 12 83 DE [16:11:53]CheckFolder [16:11:53]dirname=/storage/ofd_packets [16:11:53]CheckFolder done [16:11:53]ProducePacketName [16:11:53]name=ofd_packets/00111411 [16:11:53]NVStorageSaveData ofd_packets/00111411 [16:11:53]File name is /storage/ofd_packets/00111411 [16:11:53]Write 301 bytes [16:11:53]NVStorageSaveData done [16:11:53]OFDSenderStorePacket done [16:11:53]KKMCreateOFDPacket done [16:11:53]NVStorageSaveData kkm_last_timestamp [16:11:53]File name is /storage/kkm_last_timestamp [16:11:53]Write 4 bytes [16:11:53]NVStorageSaveData done [16:11:53]ExternCall_PrintAddStr [16:11:53]wPrintStart [16:11:53]Write to MH i2c: 01 00 00 75 17 8C [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 75 17 00 00 00 00 00 FF 0F A1 [16:11:53]RasterBufferAndPrint [16:11:53]line Счет N : (1)319992 [16:11:53]line ИНН: 02508201610067 [16:11:53]line Контрольно-Кассовый Чек [16:11:53]line ПРОДАЖА [16:11:53]line ТРК (МРК, ГНК) : 11 [16:11:53]line Товар: 2710124130 [16:11:53]line Аи-92-К-5 [16:11:53]line 22.600 * 66.40 [16:11:53]line = 1500.64 [16:11:53]line НДС 12% НСП 1% [16:11:53]line > о реализуемом товаре [16:11:53]line ОКРУГЛЕНИЕ: -0.64 [16:11:53]line ИТОГО: 1500.00 [16:11:53]line Внесено: 1500.00 [16:11:53]line СДАЧА: 0.00 [16:11:53]line НСП 1% : 13.28 [16:11:53]line НДС 12% : 159.36 [16:11:53]line Наличными: 1500.00 [16:11:53]line Безнал.: 0.00 [16:11:53]line Место: АЗС № 65 "Партнер Нефть" [16:11:53]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:11:53]line СНО: Общий режим [16:11:53]line Чек 160 19.06.2024 16:11 [16:11:53]line Смена: 388 ФФД: 1.0 [16:11:53]line ЗНМ: 0300000198 [16:11:53]line РНМ: 0000000000092771 [16:11:53]line Версия ККМ: 001 [16:11:53]line ФМ: 0000000000875083 [16:11:53]line ФД: 111411 [16:11:53]line ФПД: 232769015025602 [16:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161157&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111411&fm=232769015025602&tin=02508201610067®Number=0000000000092771&sum=150000 [16:11:53]OFD Sender: Processing packet 111411 [packets to send 38, broken 37] [16:11:53]ProducePacketName [16:11:53]name=ofd_packets/00111411 [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 35 30 38 33 0F 01 00 00 EF 5F 07 01 40 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 A0 00 00 00 F4 03 04 00 4D 03 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 33 B3 01 00 35 04 06 00 D3 B3 C2 74 8F C2 DD 0F C3 D3 E9 12 83 DE [16:11:53]Write to MH i2c: 01 00 00 A0 17 B7 [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 A0 17 00 00 00 00 00 DE 0C A8 [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 3300 [16:11:53]MH_Cut [16:11:53]Write to MH i2c: D1 01 00 A7 17 01 90 [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 A7 17 00 8F [16:11:53]Write to MH i2c: 01 00 00 A8 17 BF [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [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 35 30 38 33 4F 00 00 00 E5 CC 47 00 72 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 35 30 38 33 10 04 04 00 33 B3 01 00 F4 03 04 00 B2 9A 72 66 B6 04 01 00 00 1F 57 48 B0 D0 EC 6B 82 [16:11:53]CommunicateWithHost err = 0 [16:11:53]CheckOFDResponse [16:11:53]1017 (14) - 77093643461234 [16:11:53]1041 (16) - 0000000000875083 [16:11:53]1040 (4) - 111411 [16:11:53]1012 (4) - 19.06.2024 08:45 [16:11:53]1206 (1) - 0 [16:11:53]OFD Sender: Remove packet 111411 [16:11:53]ProducePacketName [16:11:53]name=ofd_packets/00111411 [16:11:53]NVStorageDeleteData [16:11:54]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 A8 17 00 00 00 00 00 FF 0F D4 [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 A9 17 80 11 00 00 00 00 00 00 3A [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 A9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8C [16:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 AA 17 80 13 00 00 00 00 00 00 3D [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 AA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 33 B3 01 00 0E 04 04 00 84 01 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 AA [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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 33 B3 01 00 0E 04 04 00 84 01 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 [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 AB 17 80 13 01 00 00 00 00 00 3F [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 AB 17 00 09 00 01 31 35 72 66 00 00 00 00 90 00 89 [16:11:55]RAPDU: 09 00 01 31 35 72 66 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":"0000000000875083","fd.num":111411,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [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":"0000000000875083","fd.num":111411,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [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 9.Close socket [16:11:55]Sock 9.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:28]accept exits with 7 [16:12:28]New connection [16:12:28]New thread 3067465060 created [16:12:28]Thread 3067321700 joined [16:12:28]Waiting for new connection... [16:12:28] Sock 7.Parse request [16:12:28]Sock 7.Check first char [16:12:28]Sock 7.First char is OK [16:12:28]request: POST /json_proto HTTP/1.0 [16:12:28]Method: POST [16:12:28]URL: /json_proto [16:12:28]Method is POST - this is cgi request [16:12:28]url: /json_proto [16:12:28]query_string will be loaded in cgi processing [16:12:28]execute_cgi json_proto POST (null) [16:12:28]execute_cgi path=json_proto method=POST [16:12:28]POST find Content-Length [16:12:28]Host: 172.17.59.68:8080 [16:12:28]Content-Length: 677 [16:12:28]Content-Type: application/json [16:12:28] [16:12:28]POST finish read [16:12:28]Found Content-Length = 677 [16:12:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.970, "sum" : 330.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:28]execute_script... [16:12: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)319993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.970, "sum" : 330.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:28]POST & json_proto [16:12:28]process_json_proto [16:12:28]json parsed OK: [16:12:28]protocol is kg_v1.0 [16:12:28]action value=close_receipt [16:12:28]process_action close_receipt [16:12:28]cmd_close_receipt [16:12:28]MH_GetDate [16:12:28]Write to MH i2c: F0 00 00 AC 17 B2 [16:12:28]Write i2c OK [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: F0 [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: F0 09 00 [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: F0 09 00 AC 17 00 72 03 73 66 BC EC 60 65 76 [16:12:28]GetLastDocTimeStamp 1718813517 [16:12:28]current date 1718813554 [16:12:28]FM_GetShiftState [16:12:28]SAM_PROTO_GetShiftState [16:12:28]wFMCommunicate request_size=4 [16:12:28]MH_SAM_APDU [16:12:28]CAPDU: 80 13 01 00 [16:12:28]Write to MH i2c: E2 08 00 AD 17 80 13 01 00 00 00 00 00 41 [16:12:28]Write i2c OK [16:12:28]MH_I2C_Read... [16:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:28]Read from MH i2c: E2 [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: E2 0E 00 [16:12:28]MH_I2C_Read... [16:12:28]Read from MH i2c: E2 0E 00 AD 17 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8B [16:12:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:12:28]wFMCommunicate OK [16:12:28]SAM_PROTO_GetShiftState done [16:12:28]FM_GetShiftState done [16:12:28]opened in 1718760753 [16:12:28]opened+sec_in_day 1718847153 [16:12:28]quantity*price = 33000 [16:12:28]sum+1 = 33002 [16:12:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 161 19.06.2024 16:12 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111412 ФПД: 79499589403690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161234&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111412&fm=79499589403690&tin=02508201610067®Number=0000000000092771&sum=33000 [16:12:29]StoreToDocumentArchive [16:12:29]shift 388 fd 111412 [16:12:29]save to /storage/0388/doc_00111412 [16:12:29]save last doc name /storage/0388/doc_00111412 to /storage/kkm_last_doc_name [16:12:29]save OK [16:12:29]Clear old archive folders... [16:12:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:29]tlvbuf is B6F3E7C0 [16:12:29]SAM_PROTO_ClearQueue [16:12:29]wFMCommunicate request_size=4 [16:12:29]MH_SAM_APDU [16:12:29]CAPDU: 80 09 00 00 [16:12:29]Write to MH i2c: E2 08 00 BA 17 80 09 00 00 00 00 00 00 43 [16:12:29]Write i2c OK [16:12:29]MH_I2C_Read... [16:12:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:29]Read from MH i2c: E2 [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: E2 03 00 [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: E2 03 00 BA 17 00 90 00 45 [16:12:29]RAPDU: 90 00 [16:12:29]wFMCommunicate OK [16:12:29]SAM_PROTO_ClearQueue done [16:12:29]KKMCreateOFDPacket [16:12:29]OFDProtocolAddRootSTLVToBuf [16:12:29]FM_MakeSignedData [16:12:29]FM_MakeSignedData [16:12:29]SAM_PROTO_SignData [16:12:29]wFMCommunicate request_size=4 [16:12:29]MH_SAM_APDU [16:12:29]CAPDU: 80 0D 01 02 [16:12:29]Write to MH i2c: E2 08 00 BB 17 80 0D 01 02 00 00 00 00 4B [16:12:29]Write i2c OK [16:12:29]MH_I2C_Read... [16:12:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:29]Read from MH i2c: E2 [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: E2 03 00 [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: E2 03 00 BB 17 00 90 00 46 [16:12:29]RAPDU: 90 00 [16:12:29]wFMCommunicate OK [16:12:29]wFMCommunicate request_size=255 [16:12:29]MH_SAM_APDU [16:12: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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 72 03 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B3 01 00 35 04 06 00 48 [16:12:29]Write to MH i2c: E2 02 01 BC 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 72 03 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B3 01 00 35 04 06 00 48 00 00 9A [16:12:29]Write i2c OK [16:12:29]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 BC 17 00 90 00 47 [16:12:30]RAPDU: 90 00 [16:12:30]wFMCommunicate OK [16:12:30]wFMCommunicate request_size=10 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 0D 02 02 05 4D F0 C9 44 2A [16:12:30]Write to MH i2c: E2 0D 00 BD 17 80 0D 02 02 05 00 4D F0 C9 44 2A 00 00 CC [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 BD 17 00 90 00 48 [16:12:30]RAPDU: 90 00 [16:12:30]wFMCommunicate OK [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 0D 03 02 [16:12:30]Write to MH i2c: E2 08 00 BE 17 80 0D 03 02 00 00 00 00 50 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 0B 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 0B 00 BE 17 00 84 93 0B 65 78 55 61 B0 90 00 B6 [16:12:30]RAPDU: 84 93 0B 65 78 55 61 B0 90 00 [16:12:30]wFMCommunicate OK [16:12:30]SAM_PROTO_SignData done [16:12:30]FM_MakeSignedData done [16:12:30]CreateOFDProtocolMessage [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 11 00 00 [16:12:30]Write to MH i2c: E2 08 00 BF 17 80 11 00 00 00 00 00 00 50 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 17 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 17 00 BF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A2 [16:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:12:30]wFMCommunicate OK [16:12:30]CreateOFDProtocolMessage done [16:12:30]OFDSenderStorePacket 111412 [16:12:30]StoreOFDPacket docnum=111412 [16:12:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 9A 07 01 68 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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 72 03 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B3 01 00 35 04 06 00 48 4D F0 C9 44 2A 84 93 0B 65 78 55 61 B0 [16:12:30]CheckFolder [16:12:30]dirname=/storage/ofd_packets [16:12:30]CheckFolder done [16:12:30]ProducePacketName [16:12:30]name=ofd_packets/00111412 [16:12:30]NVStorageSaveData ofd_packets/00111412 [16:12:30]File name is /storage/ofd_packets/00111412 [16:12:30]Write 301 bytes [16:12:30]NVStorageSaveData done [16:12:30]OFDSenderStorePacket done [16:12:30]KKMCreateOFDPacket done [16:12:30]NVStorageSaveData kkm_last_timestamp [16:12:30]File name is /storage/kkm_last_timestamp [16:12:30]Write 4 bytes [16:12:30]NVStorageSaveData done [16:12:30]ExternCall_PrintAddStr [16:12:30]wPrintStart [16:12:30]Write to MH i2c: 01 00 00 C0 17 D7 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 07 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 07 00 C0 17 00 00 00 00 00 FF 0F EC [16:12:30]RasterBufferAndPrint [16:12:30]line Счет N : (1)319993 [16:12:30]line ИНН: 02508201610067 [16:12:30]line Контрольно-Кассовый Чек [16:12:30]line ПРОДАЖА [16:12:30]line ТРК (МРК, ГНК) : 11 [16:12:30]line Товар: 2710124130 [16:12:30]line Аи-92-К-5 [16:12:30]line 4.970 * 66.40 [16:12:30]line = 330.01 [16:12:30]line НДС 12% НСП 1% [16:12:30]line > о реализуемом товаре [16:12:30]line ОКРУГЛЕНИЕ: -0.01 [16:12:30]line ИТОГО: 330.00 [16:12:30]line Внесено: 330.00 [16:12:30]line СДАЧА: 0.00 [16:12:30]line НСП 1% : 2.92 [16:12:30]line НДС 12% : 35.04 [16:12:30]line Наличными: 330.00 [16:12:30]line Безнал.: 0.00 [16:12:30]line Место: АЗС № 65 "Партнер Нефть" [16:12:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:12:30]line СНО: Общий режим [16:12:30]line Чек 161 19.06.2024 16:12 [16:12:30]line Смена: 388 ФФД: 1.0 [16:12:30]line ЗНМ: 0300000198 [16:12:30]line РНМ: 0000000000092771 [16:12:30]line Версия ККМ: 001 [16:12:30]line ФМ: 0000000000875083 [16:12:30]line ФД: 111412 [16:12:30]line ФПД: 79499589403690 [16:12:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161234&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111412&fm=79499589403690&tin=02508201610067®Number=0000000000092771&sum=33000 [16:12:30]OFD Sender: Processing packet 111412 [packets to send 38, broken 37] [16:12:30]ProducePacketName [16:12:30]name=ofd_packets/00111412 [16:12:30]OFD Sender: To server: pG, [16:12:30]CommunicateWithHost lk.salyk.kg:30040 [16:12:30]ConnectInit lk.salyk.kg [16:12:30]written 0, free lines is 4095 [16:12:30]Connected sock=10 [16:12:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 70 9A 07 01 68 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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 72 03 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B3 01 00 35 04 06 00 48 4D F0 C9 44 2A 84 93 0B 65 78 55 61 B0 [16:12:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 75 D8 47 00 E4 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 34 B3 01 00 F4 03 04 00 D7 9A 72 66 B6 04 01 00 00 45 0F 34 BB 68 04 90 CA [16:12:30]CommunicateWithHost err = 0 [16:12:30]CheckOFDResponse [16:12:30]1017 (14) - 77093643461234 [16:12:30]1041 (16) - 0000000000875083 [16:12:30]1040 (4) - 111412 [16:12:30]1012 (4) - 19.06.2024 08:46 [16:12:30]1206 (1) - 0 [16:12:30]OFD Sender: Remove packet 111412 [16:12:30]ProducePacketName [16:12:30]name=ofd_packets/00111412 [16:12:30]NVStorageDeleteData [16:12:30]Write to MH i2c: 01 00 00 EB 17 02 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 07 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: 01 07 00 EB 17 00 00 00 00 00 D1 0C E6 [16:12:30]RasterBufferAndPrint [16:12:30]line [16:12:30]line [16:12:30]line [16:12:30]line [16:12:30]line [16:12:30]written 0, free lines is 3289 [16:12:30]MH_Cut [16:12:30]Write to MH i2c: D1 01 00 F2 17 01 DB [16:12:30]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: D1 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: D1 01 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: D1 01 00 F2 17 00 DA [16:12:31]Write to MH i2c: 01 00 00 F3 17 0A [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]OFD Sender: No OFD packet to send [16:12:31]*** Cut start [16:12:31]*** Partial cut [16:12:31]*** CUTSNS_PIN = 1 [16:12:31]*** CUTSNS_PIN = 0 [16:12:31]*** Brake cut motor [16:12:32]Read from MH i2c: 01 [16:12:32]MH_I2C_Read... [16:12:32]*** Stop cut motor [16:12:32]*** Cut end [16:12:32]Read from MH i2c: 01 07 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: 01 07 00 F3 17 00 00 00 00 00 FF 0F 1F [16:12:32]process_action close_receipt done [16:12:32]requested_data is exist [16:12:32]produce_requested_data [16:12:32]requested_item fm.sn is exist - process it [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 11 00 00 [16:12:32]Write to MH i2c: E2 08 00 F4 17 80 11 00 00 00 00 00 00 85 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:32]Read from MH i2c: E2 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 17 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 17 00 F4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [16:12:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:12:32]wFMCommunicate OK [16:12:32]requested_item fd.num is exist - process it [16:12:32]SAM_PROTO_GetFieldsCounters [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 13 00 00 [16:12:32]Write to MH i2c: E2 08 00 F5 17 80 13 00 00 00 00 00 00 88 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:32]Read from MH i2c: E2 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 62 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 62 00 F5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [16:12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 34 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:32]wFMCommunicate OK [16:12:32]SAM_PROTO_GetFieldsCounters done [16:12:32]requested_item shift.num is exist - process it [16:12:32]requested_item shift.opened is exist - process it [16:12:32]req_shift_opened [16:12:32]FM_GetShiftState [16:12:32]SAM_PROTO_GetShiftState [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 13 01 00 [16:12:32]Write to MH i2c: E2 08 00 F6 17 80 13 01 00 00 00 00 00 8A [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:32]Read from MH i2c: E2 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 0E 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 0E 00 F6 17 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D4 [16:12:32]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:12:32]wFMCommunicate OK [16:12:32]SAM_PROTO_GetShiftState done [16:12:32]FM_GetShiftState done [16:12:32]req_shift_opened done [16:12:32]requested_item shift.open_date is exist - process it [16:12:32]req_shift_open_date [16:12:32]req_shift_open_date done [16:12:32]produce_requested_data done [16:12:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111412,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:12:32]process_action_free close_receipt [16:12:32]json_value_free [16:12:32]json_value_free done [16:12:32]process_json_proto returns [16:12:32]Send response to host [16:12:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111412,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:12:32]free response buf [16:12:32]execute_script done [16:12:32]execute_script returns [16:12:32]free content buf [16:12:32]Sock 7.Close socket [16:12:32]Sock 7.Thread stoped [16:12:36]OFD Sender: No OFD packet to send [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]accept exits with 9 [16:16:16]New connection [16:16:16]New thread 3067321700 created [16:16:16]Thread 3067465060 joined [16:16:16]Waiting for new connection... [16:16:16] Sock 9.Parse request [16:16:16]Sock 9.Check first char [16:16:16]Sock 9.First char is OK [16:16:16]request: POST /json_proto HTTP/1.0 [16:16:16]Method: POST [16:16:16]URL: /json_proto [16:16:16]Method is POST - this is cgi request [16:16:16]url: /json_proto [16:16:16]query_string will be loaded in cgi processing [16:16:16]execute_cgi json_proto POST (null) [16:16:16]execute_cgi path=json_proto method=POST [16:16:16]POST find Content-Length [16:16:16]Host: 172.17.59.68:8080 [16:16:16]Content-Length: 677 [16:16:16]Content-Type: application/json [16:16:16] [16:16:16]POST finish read [16:16:16]Found Content-Length = 677 [16:16:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:16]execute_script... [16:16: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)319994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:16:16]POST & json_proto [16:16:16]process_json_proto [16:16:16]json parsed OK: [16:16:16]protocol is kg_v1.0 [16:16:16]action value=close_receipt [16:16:16]process_action close_receipt [16:16:16]cmd_close_receipt [16:16:16]MH_GetDate [16:16:16]Write to MH i2c: F0 00 00 F7 17 FD [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: F0 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: F0 09 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: F0 09 00 F7 17 00 55 04 73 66 BC EC 60 65 A5 [16:16:16]GetLastDocTimeStamp 1718813554 [16:16:16]current date 1718813781 [16:16:16]FM_GetShiftState [16:16:16]SAM_PROTO_GetShiftState [16:16:16]wFMCommunicate request_size=4 [16:16:16]MH_SAM_APDU [16:16:16]CAPDU: 80 13 01 00 [16:16:16]Write to MH i2c: E2 08 00 F8 17 80 13 01 00 00 00 00 00 8C [16:16:16]Write i2c OK [16:16:16]MH_I2C_Read... [16:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:16]Read from MH i2c: E2 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 0E 00 [16:16:16]MH_I2C_Read... [16:16:16]Read from MH i2c: E2 0E 00 F8 17 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D6 [16:16:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:16:16]wFMCommunicate OK [16:16:16]SAM_PROTO_GetShiftState done [16:16:16]FM_GetShiftState done [16:16:16]opened in 1718760753 [16:16:16]opened+sec_in_day 1718847153 [16:16:16]quantity*price = 50065 [16:16:16]sum+1 = 50067 [16:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 162 19.06.2024 16:16 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111413 ФПД: 246465281864686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161621&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111413&fm=246465281864686&tin=02508201610067®Number=0000000000092771&sum=50000 [16:16:17]StoreToDocumentArchive [16:16:17]shift 388 fd 111413 [16:16:17]save to /storage/0388/doc_00111413 [16:16:17]save last doc name /storage/0388/doc_00111413 to /storage/kkm_last_doc_name [16:16:17]save OK [16:16:17]Clear old archive folders... [16:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:17]tlvbuf is B6F3E3D0 [16:16:17]SAM_PROTO_ClearQueue [16:16:17]wFMCommunicate request_size=4 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 09 00 00 [16:16:17]Write to MH i2c: E2 08 00 05 18 80 09 00 00 00 00 00 00 8F [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 05 18 00 90 00 91 [16:16:17]RAPDU: 90 00 [16:16:17]wFMCommunicate OK [16:16:17]SAM_PROTO_ClearQueue done [16:16:17]KKMCreateOFDPacket [16:16:17]OFDProtocolAddRootSTLVToBuf [16:16:17]FM_MakeSignedData [16:16:17]FM_MakeSignedData [16:16:17]SAM_PROTO_SignData [16:16:17]wFMCommunicate request_size=4 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 0D 01 02 [16:16:17]Write to MH i2c: E2 08 00 06 18 80 0D 01 02 00 00 00 00 97 [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 06 18 00 90 00 92 [16:16:17]RAPDU: 90 00 [16:16:17]wFMCommunicate OK [16:16:17]wFMCommunicate request_size=255 [16:16:17]MH_SAM_APDU [16:16: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 55 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B3 01 00 35 04 06 00 E0 [16:16:17]Write to MH i2c: E2 02 01 07 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 55 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B3 01 00 35 04 06 00 E0 00 00 6D [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 07 18 00 90 00 93 [16:16:17]RAPDU: 90 00 [16:16:17]wFMCommunicate OK [16:16:17]wFMCommunicate request_size=10 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 0D 02 02 05 28 AB 93 33 EE [16:16:17]Write to MH i2c: E2 0D 00 08 18 80 0D 02 02 05 00 28 AB 93 33 EE 00 00 2B [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 03 00 08 18 00 90 00 94 [16:16:17]RAPDU: 90 00 [16:16:17]wFMCommunicate OK [16:16:17]wFMCommunicate request_size=4 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 0D 03 02 [16:16:17]Write to MH i2c: E2 08 00 09 18 80 0D 03 02 00 00 00 00 9C [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 0B 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 0B 00 09 18 00 D6 A4 CE 39 5D B5 BB 57 90 00 42 [16:16:17]RAPDU: D6 A4 CE 39 5D B5 BB 57 90 00 [16:16:17]wFMCommunicate OK [16:16:17]SAM_PROTO_SignData done [16:16:17]FM_MakeSignedData done [16:16:17]CreateOFDProtocolMessage [16:16:17]wFMCommunicate request_size=4 [16:16:17]MH_SAM_APDU [16:16:17]CAPDU: 80 11 00 00 [16:16:17]Write to MH i2c: E2 08 00 0A 18 80 11 00 00 00 00 00 00 9C [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:17]Read from MH i2c: E2 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 17 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: E2 17 00 0A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EE [16:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:16:17]wFMCommunicate OK [16:16:17]CreateOFDProtocolMessage done [16:16:17]OFDSenderStorePacket 111413 [16:16:17]StoreOFDPacket docnum=111413 [16:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 BF 07 01 D8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 55 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B3 01 00 35 04 06 00 E0 28 AB 93 33 EE D6 A4 CE 39 5D B5 BB 57 [16:16:17]CheckFolder [16:16:17]dirname=/storage/ofd_packets [16:16:17]CheckFolder done [16:16:17]ProducePacketName [16:16:17]name=ofd_packets/00111413 [16:16:17]NVStorageSaveData ofd_packets/00111413 [16:16:17]File name is /storage/ofd_packets/00111413 [16:16:17]Write 301 bytes [16:16:17]NVStorageSaveData done [16:16:17]OFDSenderStorePacket done [16:16:17]KKMCreateOFDPacket done [16:16:17]NVStorageSaveData kkm_last_timestamp [16:16:17]File name is /storage/kkm_last_timestamp [16:16:17]Write 4 bytes [16:16:17]NVStorageSaveData done [16:16:17]ExternCall_PrintAddStr [16:16:17]wPrintStart [16:16:17]Write to MH i2c: 01 00 00 0B 18 23 [16:16:17]Write i2c OK [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 07 00 [16:16:17]MH_I2C_Read... [16:16:17]Read from MH i2c: 01 07 00 0B 18 00 00 00 00 00 FF 0F 38 [16:16:17]RasterBufferAndPrint [16:16:17]line Счет N : (1)319994 [16:16:17]line ИНН: 02508201610067 [16:16:17]line Контрольно-Кассовый Чек [16:16:17]line ПРОДАЖА [16:16:17]line ТРК (МРК, ГНК) : 11 [16:16:17]line Товар: 2710124130 [16:16:17]line Аи-92-К-5 [16:16:17]line 7.540 * 66.40 [16:16:17]line = 500.66 [16:16:17]line НДС 12% НСП 1% [16:16:17]line > о реализуемом товаре [16:16:17]line ОКРУГЛЕНИЕ: -0.66 [16:16:17]line ИТОГО: 500.00 [16:16:17]line Внесено: 500.00 [16:16:17]line СДАЧА: 0.00 [16:16:17]line НСП 1% : 4.43 [16:16:17]line НДС 12% : 53.17 [16:16:17]line Наличными: 500.00 [16:16:17]line Безнал.: 0.00 [16:16:17]line Место: АЗС № 65 "Партнер Нефть" [16:16:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:16:17]line СНО: Общий режим [16:16:17]line Чек 162 19.06.2024 16:16 [16:16:17]line Смена: 388 ФФД: 1.0 [16:16:17]line ЗНМ: 0300000198 [16:16:17]line РНМ: 0000000000092771 [16:16:17]line Версия ККМ: 001 [16:16:17]line ФМ: 0000000000875083 [16:16:17]line ФД: 111413 [16:16:17]line ФПД: 246465281864686 [16:16:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161621&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111413&fm=246465281864686&tin=02508201610067®Number=0000000000092771&sum=50000 [16:16:18]OFD Sender: Processing packet 111413 [packets to send 38, broken 37] [16:16:18]ProducePacketName [16:16:18]name=ofd_packets/00111413 [16:16:18]OFD Sender: To server: pG, [16:16:18]CommunicateWithHost lk.salyk.kg:30040 [16:16:18]ConnectInit lk.salyk.kg [16:16:18]written 0, free lines is 4095 [16:16:18]Connected sock=11 [16:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 BF 07 01 D8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 55 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 35 B3 01 00 35 04 06 00 E0 28 AB 93 33 EE D6 A4 CE 39 5D B5 BB 57 [16:16:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0B A3 47 00 C1 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 35 30 38 33 10 04 04 00 35 B3 01 00 F4 03 04 00 BA 9B 72 66 B6 04 01 00 00 FF 51 42 30 A2 C5 A0 3D [16:16:18]CommunicateWithHost err = 0 [16:16:18]CheckOFDResponse [16:16:18]1017 (14) - 77093643461234 [16:16:18]1041 (16) - 0000000000875083 [16:16:18]1040 (4) - 111413 [16:16:18]1012 (4) - 19.06.2024 08:50 [16:16:18]1206 (1) - 0 [16:16:18]OFD Sender: Remove packet 111413 [16:16:18]ProducePacketName [16:16:18]name=ofd_packets/00111413 [16:16:18]NVStorageDeleteData [16:16:18]Write to MH i2c: 01 00 00 36 18 4E [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 07 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: 01 07 00 36 18 00 00 00 00 00 E4 0C 45 [16:16:18]RasterBufferAndPrint [16:16:18]line [16:16:18]line [16:16:18]line [16:16:18]line [16:16:18]line [16:16:18]written 0, free lines is 3306 [16:16:18]MH_Cut [16:16:18]Write to MH i2c: D1 01 00 3D 18 01 27 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: D1 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: D1 01 00 [16:16:18]MH_I2C_Read... [16:16:18]Read from MH i2c: D1 01 00 3D 18 00 26 [16:16:18]Write to MH i2c: 01 00 00 3E 18 56 [16:16:18]Write i2c OK [16:16:18]MH_I2C_Read... [16:16:18]OFD Sender: No OFD packet to send [16:16:19]*** Cut start [16:16:19]*** Partial cut [16:16:19]*** CUTSNS_PIN = 1 [16:16:19]*** CUTSNS_PIN = 0 [16:16:19]*** Brake cut motor [16:16:19]Read from MH i2c: 01 [16:16:19]MH_I2C_Read... [16:16:19]*** Stop cut motor [16:16:19]*** Cut end [16:16:19]Read from MH i2c: 01 07 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: 01 07 00 3E 18 00 00 00 00 00 FF 0F 6B [16:16:19]process_action close_receipt done [16:16:19]requested_data is exist [16:16:19]produce_requested_data [16:16:19]requested_item fm.sn is exist - process it [16:16:19]wFMCommunicate request_size=4 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 11 00 00 [16:16:19]Write to MH i2c: E2 08 00 3F 18 80 11 00 00 00 00 00 00 D1 [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:19]Read from MH i2c: E2 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 17 00 [16:16:19]MH_I2C_Read... [16:16:19]Read from MH i2c: E2 17 00 3F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [16:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:16:19]wFMCommunicate OK [16:16:19]requested_item fd.num is exist - process it [16:16:19]SAM_PROTO_GetFieldsCounters [16:16:19]wFMCommunicate request_size=4 [16:16:19]MH_SAM_APDU [16:16:19]CAPDU: 80 13 00 00 [16:16:19]Write to MH i2c: E2 08 00 40 18 80 13 00 00 00 00 00 00 D4 [16:16:19]Write i2c OK [16:16:19]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 62 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 62 00 40 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 35 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [16:16: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 35 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:20]wFMCommunicate OK [16:16:20]SAM_PROTO_GetFieldsCounters done [16:16:20]requested_item shift.num is exist - process it [16:16:20]requested_item shift.opened is exist - process it [16:16:20]req_shift_opened [16:16:20]FM_GetShiftState [16:16:20]SAM_PROTO_GetShiftState [16:16:20]wFMCommunicate request_size=4 [16:16:20]MH_SAM_APDU [16:16:20]CAPDU: 80 13 01 00 [16:16:20]Write to MH i2c: E2 08 00 41 18 80 13 01 00 00 00 00 00 D6 [16:16:20]Write i2c OK [16:16:20]MH_I2C_Read... [16:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:20]Read from MH i2c: E2 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 0E 00 [16:16:20]MH_I2C_Read... [16:16:20]Read from MH i2c: E2 0E 00 41 18 00 09 00 01 31 35 72 66 00 00 00 00 90 00 20 [16:16:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:16:20]wFMCommunicate OK [16:16:20]SAM_PROTO_GetShiftState done [16:16:20]FM_GetShiftState done [16:16:20]req_shift_opened done [16:16:20]requested_item shift.open_date is exist - process it [16:16:20]req_shift_open_date [16:16:20]req_shift_open_date done [16:16:20]produce_requested_data done [16:16:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111413,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:16:20]process_action_free close_receipt [16:16:20]json_value_free [16:16:20]json_value_free done [16:16:20]process_json_proto returns [16:16:20]Send response to host [16:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111413,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:16:20]free response buf [16:16:20]execute_script done [16:16:20]execute_script returns [16:16:20]free content buf [16:16:20]Sock 9.Close socket [16:16:20]Sock 9.Thread stoped [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:46]accept exits with 7 [16:16:46]New connection [16:16:46]New thread 3067465060 created [16:16:46]Thread 3067321700 joined [16:16:46]Waiting for new connection... [16:16:46] Sock 7.Parse request [16:16:46]Sock 7.Check first char [16:16:46]Sock 7.First char is OK [16:16:46]request: POST /json_proto HTTP/1.0 [16:16:46]Method: POST [16:16:46]URL: /json_proto [16:16:46]Method is POST - this is cgi request [16:16:46]url: /json_proto [16:16:46]query_string will be loaded in cgi processing [16:16:46]execute_cgi json_proto POST (null) [16:16:46]execute_cgi path=json_proto method=POST [16:16:46]POST find Content-Length [16:16:46]Host: 172.17.59.68:8080 [16:16:46]Content-Length: 677 [16:16:46]Content-Type: application/json [16:16:46] [16:16:46]POST finish read [16:16:46]Found Content-Length = 677 [16:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:16:46]execute_script... [16:16:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:16:46]POST & json_proto [16:16:46]process_json_proto [16:16:46]json parsed OK: [16:16:46]protocol is kg_v1.0 [16:16:46]action value=close_receipt [16:16:46]process_action close_receipt [16:16:46]cmd_close_receipt [16:16:46]MH_GetDate [16:16:46]Write to MH i2c: F0 00 00 42 18 49 [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: F0 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: F0 09 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: F0 09 00 42 18 00 74 04 73 66 BC EC 60 65 10 [16:16:46]GetLastDocTimeStamp 1718813781 [16:16:46]current date 1718813812 [16:16:46]FM_GetShiftState [16:16:46]SAM_PROTO_GetShiftState [16:16:46]wFMCommunicate request_size=4 [16:16:46]MH_SAM_APDU [16:16:46]CAPDU: 80 13 01 00 [16:16:46]Write to MH i2c: E2 08 00 43 18 80 13 01 00 00 00 00 00 D8 [16:16:46]Write i2c OK [16:16:46]MH_I2C_Read... [16:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:46]Read from MH i2c: E2 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 0E 00 [16:16:46]MH_I2C_Read... [16:16:46]Read from MH i2c: E2 0E 00 43 18 00 09 00 01 31 35 72 66 00 00 00 00 90 00 22 [16:16:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:16:46]wFMCommunicate OK [16:16:46]SAM_PROTO_GetShiftState done [16:16:46]FM_GetShiftState done [16:16:46]opened in 1718760753 [16:16:46]opened+sec_in_day 1718847153 [16:16:46]quantity*price = 30012 [16:16:46]sum+1 = 30014 [16:16:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 163 19.06.2024 16:16 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111414 ФПД: 192687833234861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161652&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111414&fm=192687833234861&tin=02508201610067®Number=0000000000092771&sum=30000 [16:16:47]StoreToDocumentArchive [16:16:47]shift 388 fd 111414 [16:16:47]save to /storage/0388/doc_00111414 [16:16:47]save last doc name /storage/0388/doc_00111414 to /storage/kkm_last_doc_name [16:16:47]save OK [16:16:47]Clear old archive folders... [16:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:47]tlvbuf is B6F3ECC0 [16:16:47]SAM_PROTO_ClearQueue [16:16:47]wFMCommunicate request_size=4 [16:16:47]MH_SAM_APDU [16:16:47]CAPDU: 80 09 00 00 [16:16:47]Write to MH i2c: E2 08 00 50 18 80 09 00 00 00 00 00 00 DA [16:16:47]Write i2c OK [16:16:47]MH_I2C_Read... [16:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:47]Read from MH i2c: E2 [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: E2 03 00 [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: E2 03 00 50 18 00 90 00 DC [16:16:47]RAPDU: 90 00 [16:16:47]wFMCommunicate OK [16:16:47]SAM_PROTO_ClearQueue done [16:16:47]KKMCreateOFDPacket [16:16:47]OFDProtocolAddRootSTLVToBuf [16:16:47]FM_MakeSignedData [16:16:47]FM_MakeSignedData [16:16:47]SAM_PROTO_SignData [16:16:47]wFMCommunicate request_size=4 [16:16:47]MH_SAM_APDU [16:16:47]CAPDU: 80 0D 01 02 [16:16:47]Write to MH i2c: E2 08 00 51 18 80 0D 01 02 00 00 00 00 E2 [16:16:47]Write i2c OK [16:16:47]MH_I2C_Read... [16:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:47]Read from MH i2c: E2 [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: E2 03 00 [16:16:47]MH_I2C_Read... [16:16:47]Read from MH i2c: E2 03 00 51 18 00 90 00 DD [16:16:47]RAPDU: 90 00 [16:16:47]wFMCommunicate OK [16:16:47]wFMCommunicate request_size=255 [16:16:47]MH_SAM_APDU [16: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 A3 00 00 00 F4 03 04 00 74 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B3 01 00 35 04 06 00 AF [16:16:47]Write to MH i2c: E2 02 01 52 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 A3 00 00 00 F4 03 04 00 74 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B3 01 00 35 04 06 00 AF 00 00 46 [16:16:47]Write i2c OK [16:16:47]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 03 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 03 00 52 18 00 90 00 DE [16:16:48]RAPDU: 90 00 [16:16:48]wFMCommunicate OK [16:16:48]wFMCommunicate request_size=10 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 0D 02 02 05 3F A1 DA 3D AD [16:16:48]Write to MH i2c: E2 0D 00 53 18 80 0D 02 02 05 00 3F A1 DA 3D AD 00 00 93 [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 03 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 03 00 53 18 00 90 00 DF [16:16:48]RAPDU: 90 00 [16:16:48]wFMCommunicate OK [16:16:48]wFMCommunicate request_size=4 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 0D 03 02 [16:16:48]Write to MH i2c: E2 08 00 54 18 80 0D 03 02 00 00 00 00 E7 [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 0B 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 0B 00 54 18 00 85 6A 8D D4 91 A9 B5 49 90 00 70 [16:16:48]RAPDU: 85 6A 8D D4 91 A9 B5 49 90 00 [16:16:48]wFMCommunicate OK [16:16:48]SAM_PROTO_SignData done [16:16:48]FM_MakeSignedData done [16:16:48]CreateOFDProtocolMessage [16:16:48]wFMCommunicate request_size=4 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 11 00 00 [16:16:48]Write to MH i2c: E2 08 00 55 18 80 11 00 00 00 00 00 00 E7 [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 17 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 17 00 55 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 39 [16:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:16:48]wFMCommunicate OK [16:16:48]CreateOFDProtocolMessage done [16:16:48]OFDSenderStorePacket 111414 [16:16:48]StoreOFDPacket docnum=111414 [16:16:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B9 72 07 01 28 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 A3 00 00 00 F4 03 04 00 74 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B3 01 00 35 04 06 00 AF 3F A1 DA 3D AD 85 6A 8D D4 91 A9 B5 49 [16:16:48]CheckFolder [16:16:48]dirname=/storage/ofd_packets [16:16:48]CheckFolder done [16:16:48]ProducePacketName [16:16:48]name=ofd_packets/00111414 [16:16:48]NVStorageSaveData ofd_packets/00111414 [16:16:48]File name is /storage/ofd_packets/00111414 [16:16:48]Write 301 bytes [16:16:48]NVStorageSaveData done [16:16:48]OFDSenderStorePacket done [16:16:48]KKMCreateOFDPacket done [16:16:48]NVStorageSaveData kkm_last_timestamp [16:16:48]File name is /storage/kkm_last_timestamp [16:16:48]Write 4 bytes [16:16:48]NVStorageSaveData done [16:16:48]ExternCall_PrintAddStr [16:16:48]wPrintStart [16:16:48]Write to MH i2c: 01 00 00 56 18 6E [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: 01 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: 01 07 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: 01 07 00 56 18 00 00 00 00 00 FF 0F 83 [16:16:48]RasterBufferAndPrint [16:16:48]line Счет N : (1)319995 [16:16:48]line ИНН: 02508201610067 [16:16:48]line Контрольно-Кассовый Чек [16:16:48]line ПРОДАЖА [16:16:48]line ТРК (МРК, ГНК) : 11 [16:16:48]line Товар: 2710124130 [16:16:48]line Аи-92-К-5 [16:16:48]line 4.520 * 66.40 [16:16:48]line = 300.13 [16:16:48]line НДС 12% НСП 1% [16:16:48]line > о реализуемом товаре [16:16:48]line ОКРУГЛЕНИЕ: -0.13 [16:16:48]line ИТОГО: 300.00 [16:16:48]line Внесено: 300.00 [16:16:48]line СДАЧА: 0.00 [16:16:48]line НСП 1% : 2.66 [16:16:48]line НДС 12% : 31.87 [16:16:48]line Наличными: 300.00 [16:16:48]line Безнал.: 0.00 [16:16:48]line Место: АЗС № 65 "Партнер Нефть" [16:16:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:16:48]line СНО: Общий режим [16:16:48]line Чек 163 19.06.2024 16:16 [16:16:48]line Смена: 388 ФФД: 1.0 [16:16:48]line ЗНМ: 0300000198 [16:16:48]line РНМ: 0000000000092771 [16:16:48]line Версия ККМ: 001 [16:16:48]line ФМ: 0000000000875083 [16:16:48]line ФД: 111414 [16:16:48]line ФПД: 192687833234861 [16:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161652&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111414&fm=192687833234861&tin=02508201610067®Number=0000000000092771&sum=30000 [16:16:48]OFD Sender: Processing packet 111414 [packets to send 38, broken 37] [16:16:48]ProducePacketName [16:16:48]name=ofd_packets/00111414 [16:16:48]OFD Sender: To server: pG, [16:16:48]CommunicateWithHost lk.salyk.kg:30040 [16:16:48]ConnectInit lk.salyk.kg [16:16:48]written 0, free lines is 4095 [16:16:48]Connected sock=10 [16:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B9 72 07 01 28 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 A3 00 00 00 F4 03 04 00 74 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 36 B3 01 00 35 04 06 00 AF 3F A1 DA 3D AD 85 6A 8D D4 91 A9 B5 49 [16:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 38 E2 47 00 BE 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 35 30 38 33 10 04 04 00 36 B3 01 00 F4 03 04 00 D9 9B 72 66 B6 04 01 00 00 23 E2 41 10 E2 6D C9 5B [16:16:48]CommunicateWithHost err = 0 [16:16:48]CheckOFDResponse [16:16:48]1017 (14) - 77093643461234 [16:16:48]1041 (16) - 0000000000875083 [16:16:48]1040 (4) - 111414 [16:16:48]1012 (4) - 19.06.2024 08:50 [16:16:48]1206 (1) - 0 [16:16:48]OFD Sender: Remove packet 111414 [16:16:48]ProducePacketName [16:16:48]name=ofd_packets/00111414 [16:16:48]NVStorageDeleteData [16:16:49]Write to MH i2c: 01 00 00 81 18 99 [16:16:49]Write i2c OK [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: 01 [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: 01 07 00 [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: 01 07 00 81 18 00 00 00 00 00 EB 0C 97 [16:16:49]RasterBufferAndPrint [16:16:49]line [16:16:49]line [16:16:49]line [16:16:49]line [16:16:49]line [16:16:49]written 0, free lines is 3313 [16:16:49]MH_Cut [16:16:49]Write to MH i2c: D1 01 00 88 18 01 72 [16:16:49]Write i2c OK [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: D1 [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: D1 01 00 [16:16:49]MH_I2C_Read... [16:16:49]Read from MH i2c: D1 01 00 88 18 00 71 [16:16:49]Write to MH i2c: 01 00 00 89 18 A1 [16:16:49]Write i2c OK [16:16:49]MH_I2C_Read... [16:16:49]OFD Sender: No OFD packet to send [16:16:49]*** Cut start [16:16:49]*** Partial cut [16:16:49]*** CUTSNS_PIN = 1 [16:16:49]*** CUTSNS_PIN = 0 [16:16:50]*** Brake cut motor [16:16:50]Read from MH i2c: 01 [16:16:50]MH_I2C_Read... [16:16:50]*** Stop cut motor [16:16:50]*** Cut end [16:16:50]Read from MH i2c: 01 07 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: 01 07 00 89 18 00 00 00 00 00 FF 0F B6 [16:16:50]process_action close_receipt done [16:16:50]requested_data is exist [16:16:50]produce_requested_data [16:16:50]requested_item fm.sn is exist - process it [16:16:50]wFMCommunicate request_size=4 [16:16:50]MH_SAM_APDU [16:16:50]CAPDU: 80 11 00 00 [16:16:50]Write to MH i2c: E2 08 00 8A 18 80 11 00 00 00 00 00 00 1C [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 17 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 17 00 8A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6E [16:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:16:50]wFMCommunicate OK [16:16:50]requested_item fd.num is exist - process it [16:16:50]SAM_PROTO_GetFieldsCounters [16:16:50]wFMCommunicate request_size=4 [16:16:50]MH_SAM_APDU [16:16:50]CAPDU: 80 13 00 00 [16:16:50]Write to MH i2c: E2 08 00 8B 18 80 13 00 00 00 00 00 00 1F [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 62 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 62 00 8B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 36 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:16:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 36 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:50]wFMCommunicate OK [16:16:50]SAM_PROTO_GetFieldsCounters done [16:16:50]requested_item shift.num is exist - process it [16:16:50]requested_item shift.opened is exist - process it [16:16:50]req_shift_opened [16:16:50]FM_GetShiftState [16:16:50]SAM_PROTO_GetShiftState [16:16:50]wFMCommunicate request_size=4 [16:16:50]MH_SAM_APDU [16:16:50]CAPDU: 80 13 01 00 [16:16:50]Write to MH i2c: E2 08 00 8C 18 80 13 01 00 00 00 00 00 21 [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 0E 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 0E 00 8C 18 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6B [16:16:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:16:50]wFMCommunicate OK [16:16:50]SAM_PROTO_GetShiftState done [16:16:50]FM_GetShiftState done [16:16:50]req_shift_opened done [16:16:50]requested_item shift.open_date is exist - process it [16:16:50]req_shift_open_date [16:16:50]req_shift_open_date done [16:16:50]produce_requested_data done [16:16:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111414,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:16:50]process_action_free close_receipt [16:16:50]json_value_free [16:16:50]json_value_free done [16:16:50]process_json_proto returns [16:16:50]Send response to host [16:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111414,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:16:50]free response buf [16:16:50]execute_script done [16:16:50]execute_script returns [16:16:50]free content buf [16:16:50]Sock 7.Close socket [16:16:50]Sock 7.Thread stoped [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:19]accept exits with 9 [16:18:19]New connection [16:18:19]New thread 3067321700 created [16:18:19]Thread 3067465060 joined [16:18:19]Waiting for new connection... [16:18:19] Sock 9.Parse request [16:18:19]Sock 9.Check first char [16:18:19]Sock 9.First char is OK [16:18:19]request: POST /json_proto HTTP/1.0 [16:18:19]Method: POST [16:18:19]URL: /json_proto [16:18:19]Method is POST - this is cgi request [16:18:19]url: /json_proto [16:18:19]query_string will be loaded in cgi processing [16:18:19]execute_cgi json_proto POST (null) [16:18:19]execute_cgi path=json_proto method=POST [16:18:19]POST find Content-Length [16:18:19]Host: 172.17.59.68:8080 [16:18:19]Content-Length: 677 [16:18:19]Content-Type: application/json [16:18:19] [16:18:19]POST finish read [16:18:19]Found Content-Length = 677 [16:18:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:18:19]execute_script... [16:18: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)319996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:18:19]POST & json_proto [16:18:19]process_json_proto [16:18:19]json parsed OK: [16:18:19]protocol is kg_v1.0 [16:18:19]action value=close_receipt [16:18:19]process_action close_receipt [16:18:19]cmd_close_receipt [16:18:19]MH_GetDate [16:18:19]Write to MH i2c: F0 00 00 8D 18 94 [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: F0 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: F0 09 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: F0 09 00 8D 18 00 D1 04 73 66 BC EC 60 65 B8 [16:18:19]GetLastDocTimeStamp 1718813812 [16:18:19]current date 1718813905 [16:18:19]FM_GetShiftState [16:18:19]SAM_PROTO_GetShiftState [16:18:19]wFMCommunicate request_size=4 [16:18:19]MH_SAM_APDU [16:18:19]CAPDU: 80 13 01 00 [16:18:19]Write to MH i2c: E2 08 00 8E 18 80 13 01 00 00 00 00 00 23 [16:18:19]Write i2c OK [16:18:19]MH_I2C_Read... [16:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:19]Read from MH i2c: E2 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: E2 0E 00 [16:18:19]MH_I2C_Read... [16:18:19]Read from MH i2c: E2 0E 00 8E 18 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6D [16:18:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:18:19]wFMCommunicate OK [16:18:19]SAM_PROTO_GetShiftState done [16:18:19]FM_GetShiftState done [16:18:19]opened in 1718760753 [16:18:19]opened+sec_in_day 1718847153 [16:18:19]quantity*price = 40039 [16:18:19]sum+1 = 40040 [16:18:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 164 19.06.2024 16:18 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111415 ФПД: 207619285479326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161825&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111415&fm=207619285479326&tin=02508201610067®Number=0000000000092771&sum=40000 [16:18:20]StoreToDocumentArchive [16:18:20]shift 388 fd 111415 [16:18:20]save to /storage/0388/doc_00111415 [16:18:20]save last doc name /storage/0388/doc_00111415 to /storage/kkm_last_doc_name [16:18:20]save OK [16:18:20]Clear old archive folders... [16:18:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:20]tlvbuf is 00EBEEA0 [16:18:20]SAM_PROTO_ClearQueue [16:18:20]wFMCommunicate request_size=4 [16:18:20]MH_SAM_APDU [16:18:20]CAPDU: 80 09 00 00 [16:18:20]Write to MH i2c: E2 08 00 9B 18 80 09 00 00 00 00 00 00 25 [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 03 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 03 00 9B 18 00 90 00 27 [16:18:21]RAPDU: 90 00 [16:18:21]wFMCommunicate OK [16:18:21]SAM_PROTO_ClearQueue done [16:18:21]KKMCreateOFDPacket [16:18:21]OFDProtocolAddRootSTLVToBuf [16:18:21]FM_MakeSignedData [16:18:21]FM_MakeSignedData [16:18:21]SAM_PROTO_SignData [16:18:21]wFMCommunicate request_size=4 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 0D 01 02 [16:18:21]Write to MH i2c: E2 08 00 9C 18 80 0D 01 02 00 00 00 00 2D [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 03 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 03 00 9C 18 00 90 00 28 [16:18:21]RAPDU: 90 00 [16:18:21]wFMCommunicate OK [16:18:21]wFMCommunicate request_size=255 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 A4 00 00 00 F4 03 04 00 D1 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B3 01 00 35 04 06 00 BC [16:18:21]Write to MH i2c: E2 02 01 9D 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 A4 00 00 00 F4 03 04 00 D1 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B3 01 00 35 04 06 00 BC 00 00 2D [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 03 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 03 00 9D 18 00 90 00 29 [16:18:21]RAPDU: 90 00 [16:18:21]wFMCommunicate OK [16:18:21]wFMCommunicate request_size=10 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 0D 02 02 05 D4 21 C2 6F 9E [16:18:21]Write to MH i2c: E2 0D 00 9E 18 80 0D 02 02 05 00 D4 21 C2 6F 9E 00 00 FE [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 03 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 03 00 9E 18 00 90 00 2A [16:18:21]RAPDU: 90 00 [16:18:21]wFMCommunicate OK [16:18:21]wFMCommunicate request_size=4 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 0D 03 02 [16:18:21]Write to MH i2c: E2 08 00 9F 18 80 0D 03 02 00 00 00 00 32 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 0B 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 0B 00 9F 18 00 CF 72 FF 38 33 4E B1 03 90 00 E0 [16:18:21]RAPDU: CF 72 FF 38 33 4E B1 03 90 00 [16:18:21]wFMCommunicate OK [16:18:21]SAM_PROTO_SignData done [16:18:21]FM_MakeSignedData done [16:18:21]CreateOFDProtocolMessage [16:18:21]wFMCommunicate request_size=4 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 11 00 00 [16:18:21]Write to MH i2c: E2 08 00 A0 18 80 11 00 00 00 00 00 00 32 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 17 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 17 00 A0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 84 [16:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:18:21]wFMCommunicate OK [16:18:21]CreateOFDProtocolMessage done [16:18:21]OFDSenderStorePacket 111415 [16:18:21]StoreOFDPacket docnum=111415 [16:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 E5 07 01 BB F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 A4 00 00 00 F4 03 04 00 D1 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B3 01 00 35 04 06 00 BC D4 21 C2 6F 9E CF 72 FF 38 33 4E B1 03 [16:18:21]CheckFolder [16:18:21]dirname=/storage/ofd_packets [16:18:21]CheckFolder done [16:18:21]ProducePacketName [16:18:21]name=ofd_packets/00111415 [16:18:21]NVStorageSaveData ofd_packets/00111415 [16:18:21]File name is /storage/ofd_packets/00111415 [16:18:21]Write 301 bytes [16:18:21]NVStorageSaveData done [16:18:21]OFDSenderStorePacket done [16:18:21]KKMCreateOFDPacket done [16:18:21]NVStorageSaveData kkm_last_timestamp [16:18:21]File name is /storage/kkm_last_timestamp [16:18:21]Write 4 bytes [16:18:21]NVStorageSaveData done [16:18:21]ExternCall_PrintAddStr [16:18:21]wPrintStart [16:18:21]Write to MH i2c: 01 00 00 A1 18 B9 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 07 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 07 00 A1 18 00 00 00 00 00 FF 0F CE [16:18:21]RasterBufferAndPrint [16:18:21]line Счет N : (1)319996 [16:18:21]line ИНН: 02508201610067 [16:18:21]line Контрольно-Кассовый Чек [16:18:21]line ПРОДАЖА [16:18:21]line ТРК (МРК, ГНК) : 11 [16:18:21]line Товар: 2710124130 [16:18:21]line Аи-92-К-5 [16:18:21]line 6.030 * 66.40 [16:18:21]line = 400.39 [16:18:21]line НДС 12% НСП 1% [16:18:21]line > о реализуемом товаре [16:18:21]line ОКРУГЛЕНИЕ: -0.39 [16:18:21]line ИТОГО: 400.00 [16:18:21]line Внесено: 400.00 [16:18:21]line СДАЧА: 0.00 [16:18:21]line НСП 1% : 3.54 [16:18:21]line НДС 12% : 42.52 [16:18:21]line Наличными: 400.00 [16:18:21]line Безнал.: 0.00 [16:18:21]line Место: АЗС № 65 "Партнер Нефть" [16:18:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:18:21]line СНО: Общий режим [16:18:21]line Чек 164 19.06.2024 16:18 [16:18:21]line Смена: 388 ФФД: 1.0 [16:18:21]line ЗНМ: 0300000198 [16:18:21]line РНМ: 0000000000092771 [16:18:21]line Версия ККМ: 001 [16:18:21]line ФМ: 0000000000875083 [16:18:21]line ФД: 111415 [16:18:21]line ФПД: 207619285479326 [16:18:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T161825&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111415&fm=207619285479326&tin=02508201610067®Number=0000000000092771&sum=40000 [16:18:21]written 0, free lines is 4095 [16:18:21]OFD Sender: Processing packet 111415 [packets to send 38, broken 37] [16:18:21]ProducePacketName [16:18:21]name=ofd_packets/00111415 [16:18:21]OFD Sender: To server: pG, [16:18:21]CommunicateWithHost lk.salyk.kg:30040 [16:18:21]ConnectInit lk.salyk.kg [16:18:21]Connected sock=10 [16:18:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 53 E5 07 01 BB F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 A4 00 00 00 F4 03 04 00 D1 04 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 37 B3 01 00 35 04 06 00 BC D4 21 C2 6F 9E CF 72 FF 38 33 4E B1 03 [16:18:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 15 47 47 00 B2 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 35 30 38 33 10 04 04 00 37 B3 01 00 F4 03 04 00 36 9C 72 66 B6 04 01 00 00 7A A3 56 85 FB E0 8E 54 [16:18:21]CommunicateWithHost err = 0 [16:18:21]CheckOFDResponse [16:18:21]1017 (14) - 77093643461234 [16:18:21]1041 (16) - 0000000000875083 [16:18:21]1040 (4) - 111415 [16:18:21]1012 (4) - 19.06.2024 08:52 [16:18:21]1206 (1) - 0 [16:18:21]OFD Sender: Remove packet 111415 [16:18:21]ProducePacketName [16:18:21]name=ofd_packets/00111415 [16:18:21]NVStorageDeleteData [16:18:21]Write to MH i2c: 01 00 00 CC 18 E4 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 07 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 07 00 CC 18 00 00 00 00 00 E8 0C DF [16:18:21]RasterBufferAndPrint [16:18:21]line [16:18:21]line [16:18:21]line [16:18:21]line [16:18:21]line [16:18:21]written 0, free lines is 3310 [16:18:21]MH_Cut [16:18:21]Write to MH i2c: D1 01 00 D3 18 01 BD [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: D1 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: D1 01 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: D1 01 00 D3 18 00 BC [16:18:21]Write to MH i2c: 01 00 00 D4 18 EC [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:22]OFD Sender: No OFD packet to send [16:18:22]*** Cut start [16:18:22]*** Partial cut [16:18:22]*** CUTSNS_PIN = 1 [16:18:22]*** CUTSNS_PIN = 0 [16:18:22]*** Brake cut motor [16:18:23]Read from MH i2c: 01 [16:18:23]MH_I2C_Read... [16:18:23]*** Stop cut motor [16:18:23]*** Cut end [16:18:23]Read from MH i2c: 01 07 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: 01 07 00 D4 18 00 00 00 00 00 FF 0F 01 [16:18:23]process_action close_receipt done [16:18:23]requested_data is exist [16:18:23]produce_requested_data [16:18:23]requested_item fm.sn is exist - process it [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 11 00 00 [16:18:23]Write to MH i2c: E2 08 00 D5 18 80 11 00 00 00 00 00 00 67 [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 17 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 17 00 D5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B9 [16:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:18:23]wFMCommunicate OK [16:18:23]requested_item fd.num is exist - process it [16:18:23]SAM_PROTO_GetFieldsCounters [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 13 00 00 [16:18:23]Write to MH i2c: E2 08 00 D6 18 80 13 00 00 00 00 00 00 6A [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 62 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 62 00 D6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 37 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [16:18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 37 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:23]wFMCommunicate OK [16:18:23]SAM_PROTO_GetFieldsCounters done [16:18:23]requested_item shift.num is exist - process it [16:18:23]requested_item shift.opened is exist - process it [16:18:23]req_shift_opened [16:18:23]FM_GetShiftState [16:18:23]SAM_PROTO_GetShiftState [16:18:23]wFMCommunicate request_size=4 [16:18:23]MH_SAM_APDU [16:18:23]CAPDU: 80 13 01 00 [16:18:23]Write to MH i2c: E2 08 00 D7 18 80 13 01 00 00 00 00 00 6C [16:18:23]Write i2c OK [16:18:23]MH_I2C_Read... [16:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:23]Read from MH i2c: E2 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 0E 00 [16:18:23]MH_I2C_Read... [16:18:23]Read from MH i2c: E2 0E 00 D7 18 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B6 [16:18:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:18:23]wFMCommunicate OK [16:18:23]SAM_PROTO_GetShiftState done [16:18:23]FM_GetShiftState done [16:18:23]req_shift_opened done [16:18:23]requested_item shift.open_date is exist - process it [16:18:23]req_shift_open_date [16:18:23]req_shift_open_date done [16:18:23]produce_requested_data done [16:18:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111415,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:18:23]process_action_free close_receipt [16:18:23]json_value_free [16:18:23]json_value_free done [16:18:23]process_json_proto returns [16:18:23]Send response to host [16:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111415,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:18:23]free response buf [16:18:23]execute_script done [16:18:23]execute_script returns [16:18:23]free content buf [16:18:23]Sock 9.Close socket [16:18:23]Sock 9.Thread stoped [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:23]accept exits with 7 [16:23:23]New connection [16:23:23]New thread 3067465060 created [16:23:23]Thread 3067321700 joined [16:23:23]Waiting for new connection... [16:23:23] Sock 7.Parse request [16:23:23]Sock 7.Check first char [16:23:23]Sock 7.First char is OK [16:23:23]request: POST /json_proto HTTP/1.0 [16:23:23]Method: POST [16:23:23]URL: /json_proto [16:23:23]Method is POST - this is cgi request [16:23:23]url: /json_proto [16:23:23]query_string will be loaded in cgi processing [16:23:23]execute_cgi json_proto POST (null) [16:23:23]execute_cgi path=json_proto method=POST [16:23:23]POST find Content-Length [16:23:23]Host: 172.17.59.68:8080 [16:23:23]Content-Length: 682 [16:23:23]Content-Type: application/json [16:23:23] [16:23:23]POST finish read [16:23:23]Found Content-Length = 682 [16:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:23]execute_script... [16:23: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)319997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.040, "sum" : 1330.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:23]POST & json_proto [16:23:23]process_json_proto [16:23:23]json parsed OK: [16:23:23]protocol is kg_v1.0 [16:23:23]action value=close_receipt [16:23:23]process_action close_receipt [16:23:23]cmd_close_receipt [16:23:23]MH_GetDate [16:23:23]Write to MH i2c: F0 00 00 D8 18 DF [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: F0 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: F0 09 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: F0 09 00 D8 18 00 01 06 73 66 BC EC 60 65 35 [16:23:23]GetLastDocTimeStamp 1718813905 [16:23:23]current date 1718814209 [16:23:23]FM_GetShiftState [16:23:23]SAM_PROTO_GetShiftState [16:23:23]wFMCommunicate request_size=4 [16:23:23]MH_SAM_APDU [16:23:23]CAPDU: 80 13 01 00 [16:23:23]Write to MH i2c: E2 08 00 D9 18 80 13 01 00 00 00 00 00 6E [16:23:23]Write i2c OK [16:23:23]MH_I2C_Read... [16:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:23]Read from MH i2c: E2 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 0E 00 [16:23:23]MH_I2C_Read... [16:23:23]Read from MH i2c: E2 0E 00 D9 18 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B8 [16:23:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:23:23]wFMCommunicate OK [16:23:23]SAM_PROTO_GetShiftState done [16:23:23]FM_GetShiftState done [16:23:23]opened in 1718760753 [16:23:23]opened+sec_in_day 1718847153 [16:23:23]quantity*price = 133065 [16:23:23]sum+1 = 133067 [16:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1330.00 Внесено: 1330.00 СДАЧА: 0.00 НСП 1% : 11.78 НДС 12% : 141.31 Наличными: 1330.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 165 19.06.2024 16:23 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111416 ФПД: 111478554632345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T162329&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111416&fm=111478554632345&tin=02508201610067®Number=0000000000092771&sum=133000 [16:23:24]StoreToDocumentArchive [16:23:24]shift 388 fd 111416 [16:23:24]save to /storage/0388/doc_00111416 [16:23:24]save last doc name /storage/0388/doc_00111416 to /storage/kkm_last_doc_name [16:23:24]save OK [16:23:24]Clear old archive folders... [16:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:24]tlvbuf is B6F3E510 [16:23:24]SAM_PROTO_ClearQueue [16:23:24]wFMCommunicate request_size=4 [16:23:24]MH_SAM_APDU [16:23:24]CAPDU: 80 09 00 00 [16:23:24]Write to MH i2c: E2 08 00 E6 18 80 09 00 00 00 00 00 00 70 [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:24]Read from MH i2c: E2 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 03 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 03 00 E6 18 00 90 00 72 [16:23:24]RAPDU: 90 00 [16:23:24]wFMCommunicate OK [16:23:24]SAM_PROTO_ClearQueue done [16:23:24]KKMCreateOFDPacket [16:23:24]OFDProtocolAddRootSTLVToBuf [16:23:24]FM_MakeSignedData [16:23:24]FM_MakeSignedData [16:23:24]SAM_PROTO_SignData [16:23:24]wFMCommunicate request_size=4 [16:23:24]MH_SAM_APDU [16:23:24]CAPDU: 80 0D 01 02 [16:23:24]Write to MH i2c: E2 08 00 E7 18 80 0D 01 02 00 00 00 00 78 [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:24]Read from MH i2c: E2 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 03 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 03 00 E7 18 00 90 00 73 [16:23:24]RAPDU: 90 00 [16:23:24]wFMCommunicate OK [16:23:24]wFMCommunicate request_size=255 [16:23:24]MH_SAM_APDU [16:23: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 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 01 06 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B3 01 00 35 04 06 00 65 [16:23:24]Write to MH i2c: E2 02 01 E8 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 01 06 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B3 01 00 35 04 06 00 65 00 00 79 [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:24]Read from MH i2c: E2 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 03 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 03 00 E8 18 00 90 00 74 [16:23:24]RAPDU: 90 00 [16:23:24]wFMCommunicate OK [16:23:24]wFMCommunicate request_size=10 [16:23:24]MH_SAM_APDU [16:23:24]CAPDU: 80 0D 02 02 05 63 9F A6 20 99 [16:23:24]Write to MH i2c: E2 0D 00 E9 18 80 0D 02 02 05 00 63 9F A6 20 99 00 00 E6 [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:24]Read from MH i2c: E2 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 03 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 03 00 E9 18 00 90 00 75 [16:23:24]RAPDU: 90 00 [16:23:24]wFMCommunicate OK [16:23:24]wFMCommunicate request_size=4 [16:23:24]MH_SAM_APDU [16:23:24]CAPDU: 80 0D 03 02 [16:23:24]Write to MH i2c: E2 08 00 EA 18 80 0D 03 02 00 00 00 00 7D [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:24]Read from MH i2c: E2 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 0B 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 0B 00 EA 18 00 D8 C4 5E 90 DF B0 D6 69 90 00 D6 [16:23:24]RAPDU: D8 C4 5E 90 DF B0 D6 69 90 00 [16:23:24]wFMCommunicate OK [16:23:24]SAM_PROTO_SignData done [16:23:24]FM_MakeSignedData done [16:23:24]CreateOFDProtocolMessage [16:23:24]wFMCommunicate request_size=4 [16:23:24]MH_SAM_APDU [16:23:24]CAPDU: 80 11 00 00 [16:23:24]Write to MH i2c: E2 08 00 EB 18 80 11 00 00 00 00 00 00 7D [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:24]Read from MH i2c: E2 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 17 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: E2 17 00 EB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CF [16:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:23:24]wFMCommunicate OK [16:23:24]CreateOFDProtocolMessage done [16:23:24]OFDSenderStorePacket 111416 [16:23:24]StoreOFDPacket docnum=111416 [16:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF D8 07 01 2D 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 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 01 06 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B3 01 00 35 04 06 00 65 63 9F A6 20 99 D8 C4 5E 90 DF B0 D6 69 [16:23:24]CheckFolder [16:23:24]dirname=/storage/ofd_packets [16:23:24]CheckFolder done [16:23:24]ProducePacketName [16:23:24]name=ofd_packets/00111416 [16:23:24]NVStorageSaveData ofd_packets/00111416 [16:23:24]File name is /storage/ofd_packets/00111416 [16:23:24]Write 301 bytes [16:23:24]NVStorageSaveData done [16:23:24]OFDSenderStorePacket done [16:23:24]KKMCreateOFDPacket done [16:23:24]NVStorageSaveData kkm_last_timestamp [16:23:24]File name is /storage/kkm_last_timestamp [16:23:24]Write 4 bytes [16:23:24]NVStorageSaveData done [16:23:24]ExternCall_PrintAddStr [16:23:24]wPrintStart [16:23:24]Write to MH i2c: 01 00 00 EC 18 04 [16:23:24]Write i2c OK [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 07 00 [16:23:24]MH_I2C_Read... [16:23:24]Read from MH i2c: 01 07 00 EC 18 00 00 00 00 00 FF 0F 19 [16:23:24]RasterBufferAndPrint [16:23:24]line Счет N : (1)319997 [16:23:24]line ИНН: 02508201610067 [16:23:24]line Контрольно-Кассовый Чек [16:23:24]line ПРОДАЖА [16:23:24]line ТРК (МРК, ГНК) : 11 [16:23:24]line Товар: 2710124130 [16:23:24]line Аи-92-К-5 [16:23:24]line 20.040 * 66.40 [16:23:24]line = 1330.66 [16:23:24]line НДС 12% НСП 1% [16:23:24]line > о реализуемом товаре [16:23:24]line ОКРУГЛЕНИЕ: -0.66 [16:23:24]line ИТОГО: 1330.00 [16:23:24]line Внесено: 1330.00 [16:23:24]line СДАЧА: 0.00 [16:23:24]line НСП 1% : 11.78 [16:23:24]line НДС 12% : 141.31 [16:23:24]line Наличными: 1330.00 [16:23:24]line Безнал.: 0.00 [16:23:24]line Место: АЗС № 65 "Партнер Нефть" [16:23:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:23:24]line СНО: Общий режим [16:23:24]line Чек 165 19.06.2024 16:23 [16:23:24]line Смена: 388 ФФД: 1.0 [16:23:24]line ЗНМ: 0300000198 [16:23:24]line РНМ: 0000000000092771 [16:23:24]line Версия ККМ: 001 [16:23:24]line ФМ: 0000000000875083 [16:23:24]line ФД: 111416 [16:23:24]line ФПД: 111478554632345 [16:23:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T162329&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111416&fm=111478554632345&tin=02508201610067®Number=0000000000092771&sum=133000 [16:23:25]OFD Sender: Processing packet 111416 [packets to send 38, broken 37] [16:23:25]ProducePacketName [16:23:25]name=ofd_packets/00111416 [16:23:25]OFD Sender: To server: pG, [16:23:25]CommunicateWithHost lk.salyk.kg:30040 [16:23:25]ConnectInit lk.salyk.kg [16:23:25]written 0, free lines is 4095 [16:23:25]Connected sock=10 [16:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 EF D8 07 01 2D 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 48 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CA 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 02 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 01 06 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B3 01 00 35 04 06 00 65 63 9F A6 20 99 D8 C4 5E 90 DF B0 D6 69 [16:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 82 54 47 00 B4 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 38 B3 01 00 F4 03 04 00 65 9D 72 66 B6 04 01 00 00 2B 15 1F F6 1F 55 80 62 [16:23:25]CommunicateWithHost err = 0 [16:23:25]CheckOFDResponse [16:23:25]1017 (14) - 77093643461234 [16:23:25]1041 (16) - 0000000000875083 [16:23:25]1040 (4) - 111416 [16:23:25]1012 (4) - 19.06.2024 08:57 [16:23:25]1206 (1) - 0 [16:23:25]OFD Sender: Remove packet 111416 [16:23:25]ProducePacketName [16:23:25]name=ofd_packets/00111416 [16:23:25]NVStorageDeleteData [16:23:25]Write to MH i2c: 01 00 00 17 19 30 [16:23:25]Write i2c OK [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: 01 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: 01 07 00 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: 01 07 00 17 19 00 00 00 00 00 E1 0C 24 [16:23:25]RasterBufferAndPrint [16:23:25]line [16:23:25]line [16:23:25]line [16:23:25]line [16:23:25]line [16:23:25]written 0, free lines is 3303 [16:23:25]MH_Cut [16:23:25]Write to MH i2c: D1 01 00 1E 19 01 09 [16:23:25]Write i2c OK [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: D1 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: D1 01 00 [16:23:25]MH_I2C_Read... [16:23:25]Read from MH i2c: D1 01 00 1E 19 00 08 [16:23:25]Write to MH i2c: 01 00 00 1F 19 38 [16:23:25]Write i2c OK [16:23:25]MH_I2C_Read... [16:23:25]OFD Sender: No OFD packet to send [16:23:26]*** Cut start [16:23:26]*** Partial cut [16:23:26]*** CUTSNS_PIN = 1 [16:23:26]*** CUTSNS_PIN = 0 [16:23:26]*** Brake cut motor [16:23:26]Read from MH i2c: 01 [16:23:26]MH_I2C_Read... [16:23:26]*** Stop cut motor [16:23:26]*** Cut end [16:23:26]Read from MH i2c: 01 07 00 [16:23:26]MH_I2C_Read... [16:23:26]Read from MH i2c: 01 07 00 1F 19 00 00 00 00 00 FF 0F 4D [16:23:26]process_action close_receipt done [16:23:26]requested_data is exist [16:23:26]produce_requested_data [16:23:26]requested_item fm.sn is exist - process it [16:23:26]wFMCommunicate request_size=4 [16:23:26]MH_SAM_APDU [16:23:26]CAPDU: 80 11 00 00 [16:23:26]Write to MH i2c: E2 08 00 20 19 80 11 00 00 00 00 00 00 B3 [16:23:26]Write i2c OK [16:23:26]MH_I2C_Read... [16:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:27]Read from MH i2c: E2 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 17 00 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 17 00 20 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 05 [16:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:23:27]wFMCommunicate OK [16:23:27]requested_item fd.num is exist - process it [16:23:27]SAM_PROTO_GetFieldsCounters [16:23:27]wFMCommunicate request_size=4 [16:23:27]MH_SAM_APDU [16:23:27]CAPDU: 80 13 00 00 [16:23:27]Write to MH i2c: E2 08 00 21 19 80 13 00 00 00 00 00 00 B6 [16:23:27]Write i2c OK [16:23:27]MH_I2C_Read... [16:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:27]Read from MH i2c: E2 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 62 00 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 62 00 21 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 38 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:27]wFMCommunicate OK [16:23:27]SAM_PROTO_GetFieldsCounters done [16:23:27]requested_item shift.num is exist - process it [16:23:27]requested_item shift.opened is exist - process it [16:23:27]req_shift_opened [16:23:27]FM_GetShiftState [16:23:27]SAM_PROTO_GetShiftState [16:23:27]wFMCommunicate request_size=4 [16:23:27]MH_SAM_APDU [16:23:27]CAPDU: 80 13 01 00 [16:23:27]Write to MH i2c: E2 08 00 22 19 80 13 01 00 00 00 00 00 B8 [16:23:27]Write i2c OK [16:23:27]MH_I2C_Read... [16:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:27]Read from MH i2c: E2 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 0E 00 [16:23:27]MH_I2C_Read... [16:23:27]Read from MH i2c: E2 0E 00 22 19 00 09 00 01 31 35 72 66 00 00 00 00 90 00 02 [16:23:27]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:23:27]wFMCommunicate OK [16:23:27]SAM_PROTO_GetShiftState done [16:23:27]FM_GetShiftState done [16:23:27]req_shift_opened done [16:23:27]requested_item shift.open_date is exist - process it [16:23:27]req_shift_open_date [16:23:27]req_shift_open_date done [16:23:27]produce_requested_data done [16:23:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111416,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:23:27]process_action_free close_receipt [16:23:27]json_value_free [16:23:27]json_value_free done [16:23:27]process_json_proto returns [16:23:27]Send response to host [16:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111416,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:23:27]free response buf [16:23:27]execute_script done [16:23:27]execute_script returns [16:23:27]free content buf [16:23:27]Sock 7.Close socket [16:23:27]Sock 7.Thread stoped [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:39]accept exits with 9 [16:30:39]New connection [16:30:39]New thread 3067321700 created [16:30:39]Thread 3067465060 joined [16:30:39]Waiting for new connection... [16:30:39] Sock 9.Parse request [16:30:39]Sock 9.Check first char [16:30:39]Sock 9.First char is OK [16:30:39]request: POST /json_proto HTTP/1.0 [16:30:39]Method: POST [16:30:39]URL: /json_proto [16:30:39]Method is POST - this is cgi request [16:30:39]url: /json_proto [16:30:39]query_string will be loaded in cgi processing [16:30:39]execute_cgi json_proto POST (null) [16:30:39]execute_cgi path=json_proto method=POST [16:30:39]POST find Content-Length [16:30:39]Host: 172.17.59.68:8080 [16:30:39]Content-Length: 682 [16:30:39]Content-Type: application/json [16:30:39] [16:30:39]POST finish read [16:30:39]Found Content-Length = 682 [16:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:39]execute_script... [16:30: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)319998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:30:39]POST & json_proto [16:30:39]process_json_proto [16:30:39]json parsed OK: [16:30:39]protocol is kg_v1.0 [16:30:39]action value=close_receipt [16:30:39]process_action close_receipt [16:30:39]cmd_close_receipt [16:30:39]MH_GetDate [16:30:39]Write to MH i2c: F0 00 00 23 19 2B [16:30:39]Write i2c OK [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: F0 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: F0 09 00 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: F0 09 00 23 19 00 B5 07 73 66 BC EC 60 65 36 [16:30:39]GetLastDocTimeStamp 1718814209 [16:30:39]current date 1718814645 [16:30:39]FM_GetShiftState [16:30:39]SAM_PROTO_GetShiftState [16:30:39]wFMCommunicate request_size=4 [16:30:39]MH_SAM_APDU [16:30:39]CAPDU: 80 13 01 00 [16:30:39]Write to MH i2c: E2 08 00 24 19 80 13 01 00 00 00 00 00 BA [16:30:39]Write i2c OK [16:30:39]MH_I2C_Read... [16:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:39]Read from MH i2c: E2 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: E2 0E 00 [16:30:39]MH_I2C_Read... [16:30:39]Read from MH i2c: E2 0E 00 24 19 00 09 00 01 31 35 72 66 00 00 00 00 90 00 04 [16:30:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:30:39]wFMCommunicate OK [16:30:39]SAM_PROTO_GetShiftState done [16:30:39]FM_GetShiftState done [16:30:39]opened in 1718760753 [16:30:39]opened+sec_in_day 1718847153 [16:30:39]quantity*price = 100064 [16:30:39]sum+1 = 100066 [16:30:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 166 19.06.2024 16:30 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111417 ФПД: 98576022417001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111417&fm=98576022417001&tin=02508201610067®Number=0000000000092771&sum=100000 [16:30:40]StoreToDocumentArchive [16:30:40]shift 388 fd 111417 [16:30:40]save to /storage/0388/doc_00111417 [16:30:40]save last doc name /storage/0388/doc_00111417 to /storage/kkm_last_doc_name [16:30:40]save OK [16:30:40]Clear old archive folders... [16:30:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:30:40]tlvbuf is 00F1A9A0 [16:30:40]SAM_PROTO_ClearQueue [16:30:40]wFMCommunicate request_size=4 [16:30:40]MH_SAM_APDU [16:30:40]CAPDU: 80 09 00 00 [16:30:40]Write to MH i2c: E2 08 00 31 19 80 09 00 00 00 00 00 00 BC [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 03 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 03 00 31 19 00 90 00 BE [16:30:40]RAPDU: 90 00 [16:30:40]wFMCommunicate OK [16:30:40]SAM_PROTO_ClearQueue done [16:30:40]KKMCreateOFDPacket [16:30:40]OFDProtocolAddRootSTLVToBuf [16:30:40]FM_MakeSignedData [16:30:40]FM_MakeSignedData [16:30:40]SAM_PROTO_SignData [16:30:40]wFMCommunicate request_size=4 [16:30:40]MH_SAM_APDU [16:30:40]CAPDU: 80 0D 01 02 [16:30:40]Write to MH i2c: E2 08 00 32 19 80 0D 01 02 00 00 00 00 C4 [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 03 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [16:30:40]RAPDU: 90 00 [16:30:40]wFMCommunicate OK [16:30:40]wFMCommunicate request_size=255 [16:30:40]MH_SAM_APDU [16:30: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 B5 07 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B3 01 00 35 04 06 00 59 [16:30:40]Write to MH i2c: E2 02 01 33 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 B5 07 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B3 01 00 35 04 06 00 59 00 00 CE [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 03 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [16:30:40]RAPDU: 90 00 [16:30:40]wFMCommunicate OK [16:30:40]wFMCommunicate request_size=10 [16:30:40]MH_SAM_APDU [16:30:40]CAPDU: 80 0D 02 02 05 A7 84 CC AE 69 [16:30:40]Write to MH i2c: E2 0D 00 34 19 80 0D 02 02 05 00 A7 84 CC AE 69 00 00 DF [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 03 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 03 00 34 19 00 90 00 C1 [16:30:40]RAPDU: 90 00 [16:30:40]wFMCommunicate OK [16:30:40]wFMCommunicate request_size=4 [16:30:40]MH_SAM_APDU [16:30:40]CAPDU: 80 0D 03 02 [16:30:40]Write to MH i2c: E2 08 00 35 19 80 0D 03 02 00 00 00 00 C9 [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 0B 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 0B 00 35 19 00 5C 40 61 24 76 81 61 9E 90 00 E1 [16:30:40]RAPDU: 5C 40 61 24 76 81 61 9E 90 00 [16:30:40]wFMCommunicate OK [16:30:40]SAM_PROTO_SignData done [16:30:40]FM_MakeSignedData done [16:30:40]CreateOFDProtocolMessage [16:30:40]wFMCommunicate request_size=4 [16:30:40]MH_SAM_APDU [16:30:40]CAPDU: 80 11 00 00 [16:30:40]Write to MH i2c: E2 08 00 36 19 80 11 00 00 00 00 00 00 C9 [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:40]Read from MH i2c: E2 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 17 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: E2 17 00 36 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1B [16:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:30:40]wFMCommunicate OK [16:30:40]CreateOFDProtocolMessage done [16:30:40]OFDSenderStorePacket 111417 [16:30:40]StoreOFDPacket docnum=111417 [16:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 64 07 01 DC B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 B5 07 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B3 01 00 35 04 06 00 59 A7 84 CC AE 69 5C 40 61 24 76 81 61 9E [16:30:40]CheckFolder [16:30:40]dirname=/storage/ofd_packets [16:30:40]CheckFolder done [16:30:40]ProducePacketName [16:30:40]name=ofd_packets/00111417 [16:30:40]NVStorageSaveData ofd_packets/00111417 [16:30:40]File name is /storage/ofd_packets/00111417 [16:30:40]Write 301 bytes [16:30:40]NVStorageSaveData done [16:30:40]OFDSenderStorePacket done [16:30:40]KKMCreateOFDPacket done [16:30:40]NVStorageSaveData kkm_last_timestamp [16:30:40]File name is /storage/kkm_last_timestamp [16:30:40]Write 4 bytes [16:30:40]NVStorageSaveData done [16:30:40]ExternCall_PrintAddStr [16:30:40]wPrintStart [16:30:40]Write to MH i2c: 01 00 00 37 19 50 [16:30:40]Write i2c OK [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: 01 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: 01 07 00 [16:30:40]MH_I2C_Read... [16:30:40]Read from MH i2c: 01 07 00 37 19 00 00 00 00 00 FF 0F 65 [16:30:40]RasterBufferAndPrint [16:30:40]line Счет N : (1)319998 [16:30:40]line ИНН: 02508201610067 [16:30:40]line Контрольно-Кассовый Чек [16:30:40]line ПРОДАЖА [16:30:40]line ТРК (МРК, ГНК) : 11 [16:30:40]line Товар: 2710124130 [16:30:40]line Аи-92-К-5 [16:30:40]line 15.070 * 66.40 [16:30:40]line = 1000.65 [16:30:40]line НДС 12% НСП 1% [16:30:40]line > о реализуемом товаре [16:30:40]line ОКРУГЛЕНИЕ: -0.65 [16:30:40]line ИТОГО: 1000.00 [16:30:40]line Внесено: 1000.00 [16:30:40]line СДАЧА: 0.00 [16:30:40]line НСП 1% : 8.85 [16:30:40]line НДС 12% : 106.26 [16:30:40]line Наличными: 1000.00 [16:30:40]line Безнал.: 0.00 [16:30:40]line Место: АЗС № 65 "Партнер Нефть" [16:30:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:30:40]line СНО: Общий режим [16:30:40]line Чек 166 19.06.2024 16:30 [16:30:40]line Смена: 388 ФФД: 1.0 [16:30:40]line ЗНМ: 0300000198 [16:30:40]line РНМ: 0000000000092771 [16:30:40]line Версия ККМ: 001 [16:30:40]line ФМ: 0000000000875083 [16:30:40]line ФД: 111417 [16:30:40]line ФПД: 98576022417001 [16:30:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163045&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111417&fm=98576022417001&tin=02508201610067®Number=0000000000092771&sum=100000 [16:30:41]OFD Sender: Processing packet 111417 [packets to send 38, broken 37] [16:30:41]ProducePacketName [16:30:41]name=ofd_packets/00111417 [16:30:41]OFD Sender: To server: pG, [16:30:41]CommunicateWithHost lk.salyk.kg:30040 [16:30:41]ConnectInit lk.salyk.kg [16:30:41]written 0, free lines is 4095 [16:30:41]Write to MH i2c: 01 00 00 62 19 7B [16:30:41]Write i2c OK [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: 01 [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: 01 07 00 [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: 01 07 00 62 19 00 00 00 00 00 D4 0C 62 [16:30:41]RasterBufferAndPrint [16:30:41]line [16:30:41]line [16:30:41]line [16:30:41]line [16:30:41]line [16:30:41]written 0, free lines is 3290 [16:30:41]MH_Cut [16:30:41]Write to MH i2c: D1 01 00 69 19 01 54 [16:30:41]Write i2c OK [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: D1 [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: D1 01 00 [16:30:41]MH_I2C_Read... [16:30:41]Read from MH i2c: D1 01 00 69 19 00 53 [16:30:41]Write to MH i2c: 01 00 00 6A 19 83 [16:30:41]Write i2c OK [16:30:41]MH_I2C_Read... [16:30:42]*** Cut start [16:30:42]*** Partial cut [16:30:42]*** CUTSNS_PIN = 1 [16:30:42]*** CUTSNS_PIN = 0 [16:30:42]*** Brake cut motor [16:30:43]Read from MH i2c: 01 [16:30:43]MH_I2C_Read... [16:30:43]*** Stop cut motor [16:30:43]*** Cut end [16:30:43]Read from MH i2c: 01 07 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: 01 07 00 6A 19 00 00 00 00 00 FF 0F 98 [16:30:43]process_action close_receipt done [16:30:43]requested_data is exist [16:30:43]produce_requested_data [16:30:43]requested_item fm.sn is exist - process it [16:30:43]wFMCommunicate request_size=4 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 11 00 00 [16:30:43]Write to MH i2c: E2 08 00 6B 19 80 11 00 00 00 00 00 00 FE [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 17 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 17 00 6B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 50 [16:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:30:43]wFMCommunicate OK [16:30:43]requested_item fd.num is exist - process it [16:30:43]SAM_PROTO_GetFieldsCounters [16:30:43]wFMCommunicate request_size=4 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 13 00 00 [16:30:43]Write to MH i2c: E2 08 00 6C 19 80 13 00 00 00 00 00 00 01 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 62 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 62 00 6C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 39 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:30: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 39 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:30:43]wFMCommunicate OK [16:30:43]SAM_PROTO_GetFieldsCounters done [16:30:43]requested_item shift.num is exist - process it [16:30:43]requested_item shift.opened is exist - process it [16:30:43]req_shift_opened [16:30:43]FM_GetShiftState [16:30:43]SAM_PROTO_GetShiftState [16:30:43]wFMCommunicate request_size=4 [16:30:43]MH_SAM_APDU [16:30:43]CAPDU: 80 13 01 00 [16:30:43]Write to MH i2c: E2 08 00 6D 19 80 13 01 00 00 00 00 00 03 [16:30:43]Write i2c OK [16:30:43]MH_I2C_Read... [16:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:43]Read from MH i2c: E2 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 0E 00 [16:30:43]MH_I2C_Read... [16:30:43]Read from MH i2c: E2 0E 00 6D 19 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4D [16:30:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:30:43]wFMCommunicate OK [16:30:43]SAM_PROTO_GetShiftState done [16:30:43]FM_GetShiftState done [16:30:43]req_shift_opened done [16:30:43]requested_item shift.open_date is exist - process it [16:30:43]req_shift_open_date [16:30:43]req_shift_open_date done [16:30:43]produce_requested_data done [16:30:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111417,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:30:43]process_action_free close_receipt [16:30:43]json_value_free [16:30:43]json_value_free done [16:30:43]process_json_proto returns [16:30:43]Send response to host [16:30:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111417,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:30:43]free response buf [16:30:43]execute_script done [16:30:43]execute_script returns [16:30:43]free content buf [16:30:43]Sock 9.Close socket [16:30:43]Sock 9.Thread stoped [16:32:52]ConnectInit Can't connect to host [16:32:52]CommunicateWithHost connect error [16:32:52]CommunicateWithHost err = -1 [16:32:52]OFD Sender: Server communicate error [16:32:57]OFD Sender: Processing packet 111417 [packets to send 38, broken 37] [16:32:57]ProducePacketName [16:32:57]name=ofd_packets/00111417 [16:32:57]OFD Sender: To server: pG, [16:32:57]CommunicateWithHost lk.salyk.kg:30040 [16:32:57]ConnectInit lk.salyk.kg [16:32:57]Connected sock=10 [16:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D7 64 07 01 DC B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 B5 07 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 39 B3 01 00 35 04 06 00 59 A7 84 CC AE 69 5C 40 61 24 76 81 61 9E [16:32:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BD 86 47 00 EC 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 35 30 38 33 10 04 04 00 39 B3 01 00 F4 03 04 00 A1 9F 72 66 B6 04 01 00 00 96 60 EF 3F 90 2D FF 39 [16:32:57]CommunicateWithHost err = 0 [16:32:57]CheckOFDResponse [16:32:57]1017 (14) - 77093643461234 [16:32:57]1041 (16) - 0000000000875083 [16:32:57]1040 (4) - 111417 [16:32:57]1012 (4) - 19.06.2024 09:06 [16:32:57]1206 (1) - 0 [16:32:57]OFD Sender: Remove packet 111417 [16:32:57]ProducePacketName [16:32:57]name=ofd_packets/00111417 [16:32:57]NVStorageDeleteData [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:53]OFD Sender: No OFD packet to send [16:33:56]accept exits with 7 [16:33:56]New connection [16:33:56]New thread 3067465060 created [16:33:56]Thread 3067321700 joined [16:33:56]Waiting for new connection... [16:33:56] Sock 7.Parse request [16:33:56]Sock 7.Check first char [16:33:56]Sock 7.First char is OK [16:33:56]request: POST /json_proto HTTP/1.0 [16:33:56]Method: POST [16:33:56]URL: /json_proto [16:33:56]Method is POST - this is cgi request [16:33:56]url: /json_proto [16:33:56]query_string will be loaded in cgi processing [16:33:56]execute_cgi json_proto POST (null) [16:33:56]execute_cgi path=json_proto method=POST [16:33:56]POST find Content-Length [16:33:56]Host: 172.17.59.68:8080 [16:33:56]Content-Length: 677 [16:33:56]Content-Type: application/json [16:33:56] [16:33:56]POST finish read [16:33:56]Found Content-Length = 677 [16:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:33:56]execute_script... [16:33:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)319999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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:33:56]POST & json_proto [16:33:56]process_json_proto [16:33:56]json parsed OK: [16:33:56]protocol is kg_v1.0 [16:33:56]action value=close_receipt [16:33:56]process_action close_receipt [16:33:56]cmd_close_receipt [16:33:56]MH_GetDate [16:33:56]Write to MH i2c: F0 00 00 6E 19 76 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: F0 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: F0 09 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: F0 09 00 6E 19 00 7A 08 73 66 BC EC 60 65 47 [16:33:56]GetLastDocTimeStamp 1718814645 [16:33:56]current date 1718814842 [16:33:56]FM_GetShiftState [16:33:56]SAM_PROTO_GetShiftState [16:33:56]wFMCommunicate request_size=4 [16:33:56]MH_SAM_APDU [16:33:56]CAPDU: 80 13 01 00 [16:33:56]Write to MH i2c: E2 08 00 6F 19 80 13 01 00 00 00 00 00 05 [16:33:56]Write i2c OK [16:33:56]MH_I2C_Read... [16:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:56]Read from MH i2c: E2 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0E 00 [16:33:56]MH_I2C_Read... [16:33:56]Read from MH i2c: E2 0E 00 6F 19 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4F [16:33:56]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:33:56]wFMCommunicate OK [16:33:56]SAM_PROTO_GetShiftState done [16:33:56]FM_GetShiftState done [16:33:56]opened in 1718760753 [16:33:56]opened+sec_in_day 1718847153 [16:33:56]quantity*price = 30012 [16:33:56]sum+1 = 30014 [16:33:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 167 19.06.2024 16:34 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111418 ФПД: 211933622744952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163402&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111418&fm=211933622744952&tin=02508201610067®Number=0000000000092771&sum=30000 [16:33:57]StoreToDocumentArchive [16:33:57]shift 388 fd 111418 [16:33:57]save to /storage/0388/doc_00111418 [16:33:57]save last doc name /storage/0388/doc_00111418 to /storage/kkm_last_doc_name [16:33:57]save OK [16:33:57]Clear old archive folders... [16:33:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:57]tlvbuf is B6F25A60 [16:33:57]SAM_PROTO_ClearQueue [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 09 00 00 [16:33:57]Write to MH i2c: E2 08 00 7C 19 80 09 00 00 00 00 00 00 07 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 7C 19 00 90 00 09 [16:33:57]RAPDU: 90 00 [16:33:57]wFMCommunicate OK [16:33:57]SAM_PROTO_ClearQueue done [16:33:57]KKMCreateOFDPacket [16:33:57]OFDProtocolAddRootSTLVToBuf [16:33:57]FM_MakeSignedData [16:33:57]FM_MakeSignedData [16:33:57]SAM_PROTO_SignData [16:33:57]wFMCommunicate request_size=4 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 0D 01 02 [16:33:57]Write to MH i2c: E2 08 00 7D 19 80 0D 01 02 00 00 00 00 0F [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:57]Read from MH i2c: E2 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 [16:33:57]MH_I2C_Read... [16:33:57]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [16:33:57]RAPDU: 90 00 [16:33:57]wFMCommunicate OK [16:33:57]wFMCommunicate request_size=255 [16:33:57]MH_SAM_APDU [16:33:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 A7 00 00 00 F4 03 04 00 7A 08 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B3 01 00 35 04 06 00 C0 [16:33:57]Write to MH i2c: E2 02 01 7E 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 A7 00 00 00 F4 03 04 00 7A 08 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B3 01 00 35 04 06 00 C0 00 00 96 [16:33:57]Write i2c OK [16:33:57]MH_I2C_Read... [16:33:58]OFD Sender: No OFD packet to send [16:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:58]Read from MH i2c: E2 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 03 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [16:33:58]RAPDU: 90 00 [16:33:58]wFMCommunicate OK [16:33:58]wFMCommunicate request_size=10 [16:33:58]MH_SAM_APDU [16:33:58]CAPDU: 80 0D 02 02 05 C0 A4 4C B7 78 [16:33:58]Write to MH i2c: E2 0D 00 7F 19 80 0D 02 02 05 00 C0 A4 4C B7 78 00 00 FB [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:58]Read from MH i2c: E2 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 03 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [16:33:58]RAPDU: 90 00 [16:33:58]wFMCommunicate OK [16:33:58]wFMCommunicate request_size=4 [16:33:58]MH_SAM_APDU [16:33:58]CAPDU: 80 0D 03 02 [16:33:58]Write to MH i2c: E2 08 00 80 19 80 0D 03 02 00 00 00 00 14 [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:58]Read from MH i2c: E2 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 0B 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 0B 00 80 19 00 A5 23 D8 53 0A 50 AE 5B 90 00 6B [16:33:58]RAPDU: A5 23 D8 53 0A 50 AE 5B 90 00 [16:33:58]wFMCommunicate OK [16:33:58]SAM_PROTO_SignData done [16:33:58]FM_MakeSignedData done [16:33:58]CreateOFDProtocolMessage [16:33:58]wFMCommunicate request_size=4 [16:33:58]MH_SAM_APDU [16:33:58]CAPDU: 80 11 00 00 [16:33:58]Write to MH i2c: E2 08 00 81 19 80 11 00 00 00 00 00 00 14 [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:58]Read from MH i2c: E2 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 17 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: E2 17 00 81 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 66 [16:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:33:58]wFMCommunicate OK [16:33:58]CreateOFDProtocolMessage done [16:33:58]OFDSenderStorePacket 111418 [16:33:58]StoreOFDPacket docnum=111418 [16:33:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E2 79 07 01 93 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 A7 00 00 00 F4 03 04 00 7A 08 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B3 01 00 35 04 06 00 C0 C0 A4 4C B7 78 A5 23 D8 53 0A 50 AE 5B [16:33:58]CheckFolder [16:33:58]dirname=/storage/ofd_packets [16:33:58]CheckFolder done [16:33:58]ProducePacketName [16:33:58]name=ofd_packets/00111418 [16:33:58]NVStorageSaveData ofd_packets/00111418 [16:33:58]File name is /storage/ofd_packets/00111418 [16:33:58]Write 301 bytes [16:33:58]NVStorageSaveData done [16:33:58]OFDSenderStorePacket done [16:33:58]KKMCreateOFDPacket done [16:33:58]NVStorageSaveData kkm_last_timestamp [16:33:58]File name is /storage/kkm_last_timestamp [16:33:58]Write 4 bytes [16:33:58]NVStorageSaveData done [16:33:58]ExternCall_PrintAddStr [16:33:58]wPrintStart [16:33:58]Write to MH i2c: 01 00 00 82 19 9B [16:33:58]Write i2c OK [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: 01 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: 01 07 00 [16:33:58]MH_I2C_Read... [16:33:58]Read from MH i2c: 01 07 00 82 19 00 00 00 00 00 FF 0F B0 [16:33:58]RasterBufferAndPrint [16:33:58]line Счет N : (1)319999 [16:33:58]line ИНН: 02508201610067 [16:33:58]line Контрольно-Кассовый Чек [16:33:58]line ПРОДАЖА [16:33:58]line ТРК (МРК, ГНК) : 11 [16:33:58]line Товар: 2710124130 [16:33:58]line Аи-92-К-5 [16:33:58]line 4.520 * 66.40 [16:33:58]line = 300.13 [16:33:58]line НДС 12% НСП 1% [16:33:58]line > о реализуемом товаре [16:33:58]line ОКРУГЛЕНИЕ: -0.13 [16:33:58]line ИТОГО: 300.00 [16:33:58]line Внесено: 300.00 [16:33:58]line СДАЧА: 0.00 [16:33:58]line НСП 1% : 2.66 [16:33:58]line НДС 12% : 31.87 [16:33:58]line Наличными: 300.00 [16:33:58]line Безнал.: 0.00 [16:33:58]line Место: АЗС № 65 "Партнер Нефть" [16:33:58]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:33:58]line СНО: Общий режим [16:33:58]line Чек 167 19.06.2024 16:34 [16:33:58]line Смена: 388 ФФД: 1.0 [16:33:58]line ЗНМ: 0300000198 [16:33:58]line РНМ: 0000000000092771 [16:33:58]line Версия ККМ: 001 [16:33:58]line ФМ: 0000000000875083 [16:33:58]line ФД: 111418 [16:33:58]line ФПД: 211933622744952 [16:33:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T163402&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111418&fm=211933622744952&tin=02508201610067®Number=0000000000092771&sum=30000 [16:33:58]OFD Sender: Processing packet 111418 [packets to send 38, broken 37] [16:33:58]ProducePacketName [16:33:58]name=ofd_packets/00111418 [16:33:58]OFD Sender: To server: pG, [16:33:58]CommunicateWithHost lk.salyk.kg:30040 [16:33:58]ConnectInit lk.salyk.kg [16:33:58]written 0, free lines is 4095 [16:33:58]Connected sock=10 [16:33:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E2 79 07 01 93 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 A7 00 00 00 F4 03 04 00 7A 08 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B3 01 00 35 04 06 00 C0 C0 A4 4C B7 78 A5 23 D8 53 0A 50 AE 5B [16:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3A 97 47 00 BA 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3A B3 01 00 F4 03 04 00 DF 9F 72 66 B6 04 01 00 00 B2 63 3E D0 53 9E 4D D8 [16:33:58]CommunicateWithHost err = 0 [16:33:58]CheckOFDResponse [16:33:58]1017 (14) - 77093643461234 [16:33:58]1041 (16) - 0000000000875083 [16:33:58]1040 (4) - 111418 [16:33:58]1012 (4) - 19.06.2024 09:07 [16:33:58]1206 (1) - 0 [16:33:59]OFD Sender: Remove packet 111418 [16:33:59]ProducePacketName [16:33:59]name=ofd_packets/00111418 [16:33:59]NVStorageDeleteData [16:33:59]Write to MH i2c: 01 00 00 AD 19 C6 [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: 01 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: 01 07 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: 01 07 00 AD 19 00 00 00 00 00 D0 0C A9 [16:33:59]RasterBufferAndPrint [16:33:59]line [16:33:59]line [16:33:59]line [16:33:59]line [16:33:59]line [16:33:59]written 0, free lines is 3288 [16:33:59]MH_Cut [16:33:59]Write to MH i2c: D1 01 00 B4 19 01 9F [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: D1 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: D1 01 00 [16:33:59]MH_I2C_Read... [16:33:59]Read from MH i2c: D1 01 00 B4 19 00 9E [16:33:59]Write to MH i2c: 01 00 00 B5 19 CE [16:33:59]Write i2c OK [16:33:59]MH_I2C_Read... [16:33:59]OFD Sender: No OFD packet to send [16:33:59]*** Cut start [16:33:59]*** Partial cut [16:33:59]*** CUTSNS_PIN = 1 [16:33:59]*** CUTSNS_PIN = 0 [16:34:00]*** Brake cut motor [16:34:00]Read from MH i2c: 01 [16:34:00]MH_I2C_Read... [16:34:00]*** Stop cut motor [16:34:00]*** Cut end [16:34:00]Read from MH i2c: 01 07 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: 01 07 00 B5 19 00 00 00 00 00 FF 0F E3 [16:34:00]process_action close_receipt done [16:34:00]requested_data is exist [16:34:00]produce_requested_data [16:34:00]requested_item fm.sn is exist - process it [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 11 00 00 [16:34:00]Write to MH i2c: E2 08 00 B6 19 80 11 00 00 00 00 00 00 49 [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 17 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 17 00 B6 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9B [16:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:34:00]wFMCommunicate OK [16:34:00]requested_item fd.num is exist - process it [16:34:00]SAM_PROTO_GetFieldsCounters [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 13 00 00 [16:34:00]Write to MH i2c: E2 08 00 B7 19 80 13 00 00 00 00 00 00 4C [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 62 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 62 00 B7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [16:34:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:34:00]wFMCommunicate OK [16:34:00]SAM_PROTO_GetFieldsCounters done [16:34:00]requested_item shift.num is exist - process it [16:34:00]requested_item shift.opened is exist - process it [16:34:00]req_shift_opened [16:34:00]FM_GetShiftState [16:34:00]SAM_PROTO_GetShiftState [16:34:00]wFMCommunicate request_size=4 [16:34:00]MH_SAM_APDU [16:34:00]CAPDU: 80 13 01 00 [16:34:00]Write to MH i2c: E2 08 00 B8 19 80 13 01 00 00 00 00 00 4E [16:34:00]Write i2c OK [16:34:00]MH_I2C_Read... [16:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:34:00]Read from MH i2c: E2 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0E 00 [16:34:00]MH_I2C_Read... [16:34:00]Read from MH i2c: E2 0E 00 B8 19 00 09 00 01 31 35 72 66 00 00 00 00 90 00 98 [16:34:00]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:34:00]wFMCommunicate OK [16:34:00]SAM_PROTO_GetShiftState done [16:34:00]FM_GetShiftState done [16:34:00]req_shift_opened done [16:34:00]requested_item shift.open_date is exist - process it [16:34:00]req_shift_open_date [16:34:00]req_shift_open_date done [16:34:00]produce_requested_data done [16:34:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111418,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:34:00]process_action_free close_receipt [16:34:00]json_value_free [16:34:00]json_value_free done [16:34:00]process_json_proto returns [16:34:00]Send response to host [16:34:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111418,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:34:00]free response buf [16:34:00]execute_script done [16:34:00]execute_script returns [16:34:00]free content buf [16:34:00]Sock 7.Close socket [16:34:00]Sock 7.Thread stoped [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:22]accept exits with 9 [16:42:22]New connection [16:42:22]New thread 3067321700 created [16:42:22]Thread 3067465060 joined [16:42:22]Waiting for new connection... [16:42:22] Sock 9.Parse request [16:42:22]Sock 9.Check first char [16:42:22]Sock 9.First char is OK [16:42:22]request: POST /json_proto HTTP/1.0 [16:42:22]Method: POST [16:42:22]URL: /json_proto [16:42:22]Method is POST - this is cgi request [16:42:22]url: /json_proto [16:42:22]query_string will be loaded in cgi processing [16:42:22]execute_cgi json_proto POST (null) [16:42:22]execute_cgi path=json_proto method=POST [16:42:22]POST find Content-Length [16:42:22]Host: 172.17.59.68:8080 [16:42:22]Content-Length: 806 [16:42:22]Content-Type: application/json [16:42:22] [16:42:22]POST finish read [16:42:22]Found Content-Length = 806 [16:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:22]execute_script... [16:42: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)320000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:22]POST & json_proto [16:42:22]process_json_proto [16:42:22]json parsed OK: [16:42:22]protocol is kg_v1.0 [16:42:22]action value=close_receipt [16:42:22]process_action close_receipt [16:42:22]cmd_close_receipt [16:42:22]MH_GetDate [16:42:22]Write to MH i2c: F0 00 00 B9 19 C1 [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: F0 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: F0 09 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: F0 09 00 B9 19 00 74 0A 73 66 BC EC 60 65 8E [16:42:22]GetLastDocTimeStamp 1718814842 [16:42:22]current date 1718815348 [16:42:22]FM_GetShiftState [16:42:22]SAM_PROTO_GetShiftState [16:42:22]wFMCommunicate request_size=4 [16:42:22]MH_SAM_APDU [16:42:22]CAPDU: 80 13 01 00 [16:42:22]Write to MH i2c: E2 08 00 BA 19 80 13 01 00 00 00 00 00 50 [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:22]Read from MH i2c: E2 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: E2 0E 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: E2 0E 00 BA 19 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9A [16:42:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:42:22]wFMCommunicate OK [16:42:22]SAM_PROTO_GetShiftState done [16:42:22]FM_GetShiftState done [16:42:22]opened in 1718760753 [16:42:22]opened+sec_in_day 1718847153 [16:42:22]quantity*price = 70052 [16:42:22]sum+1 = 70053 [16:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 168 19.06.2024 16:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111419 ФПД: 105021983556271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164228&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111419&fm=105021983556271&tin=02508201610067®Number=0000000000092771&sum=70052 [16:42:23]StoreToDocumentArchive [16:42:23]shift 388 fd 111419 [16:42:23]save to /storage/0388/doc_00111419 [16:42:23]save last doc name /storage/0388/doc_00111419 to /storage/kkm_last_doc_name [16:42:23]save OK [16:42:23]Clear old archive folders... [16:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:23]tlvbuf is B6F3EA30 [16:42:23]SAM_PROTO_ClearQueue [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 09 00 00 [16:42:23]Write to MH i2c: E2 08 00 C7 19 80 09 00 00 00 00 00 00 52 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 C7 19 00 90 00 54 [16:42:23]RAPDU: 90 00 [16:42:23]wFMCommunicate OK [16:42:23]SAM_PROTO_ClearQueue done [16:42:23]KKMCreateOFDPacket [16:42:23]OFDProtocolAddRootSTLVToBuf [16:42:23]FM_MakeSignedData [16:42:23]FM_MakeSignedData [16:42:23]SAM_PROTO_SignData [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 0D 01 02 [16:42:23]Write to MH i2c: E2 08 00 C8 19 80 0D 01 02 00 00 00 00 5A [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 C8 19 00 90 00 55 [16:42:23]RAPDU: 90 00 [16:42:23]wFMCommunicate OK [16:42:23]wFMCommunicate request_size=255 [16:42:23]MH_SAM_APDU [16:42: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 74 0A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B3 01 00 35 04 06 00 5F [16:42:23]Write to MH i2c: E2 02 01 C9 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 74 0A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B3 01 00 35 04 06 00 5F 00 00 5A [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 03 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 03 00 C9 19 00 90 00 56 [16:42:24]RAPDU: 90 00 [16:42:24]wFMCommunicate OK [16:42:24]wFMCommunicate request_size=10 [16:42:24]MH_SAM_APDU [16:42:24]CAPDU: 80 0D 02 02 05 84 56 06 02 AF [16:42:24]Write to MH i2c: E2 0D 00 CA 19 80 0D 02 02 05 00 84 56 06 02 AF 00 00 F8 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 03 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 03 00 CA 19 00 90 00 57 [16:42:24]RAPDU: 90 00 [16:42:24]wFMCommunicate OK [16:42:24]wFMCommunicate request_size=4 [16:42:24]MH_SAM_APDU [16:42:24]CAPDU: 80 0D 03 02 [16:42:24]Write to MH i2c: E2 08 00 CB 19 80 0D 03 02 00 00 00 00 5F [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 0B 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 0B 00 CB 19 00 F0 7C 13 4C F2 22 95 E6 90 00 BA [16:42:24]RAPDU: F0 7C 13 4C F2 22 95 E6 90 00 [16:42:24]wFMCommunicate OK [16:42:24]SAM_PROTO_SignData done [16:42:24]FM_MakeSignedData done [16:42:24]CreateOFDProtocolMessage [16:42:24]wFMCommunicate request_size=4 [16:42:24]MH_SAM_APDU [16:42:24]CAPDU: 80 11 00 00 [16:42:24]Write to MH i2c: E2 08 00 CC 19 80 11 00 00 00 00 00 00 5F [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 17 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 17 00 CC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B1 [16:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:42:24]wFMCommunicate OK [16:42:24]CreateOFDProtocolMessage done [16:42:24]OFDSenderStorePacket 111419 [16:42:24]StoreOFDPacket docnum=111419 [16:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 9A 07 01 34 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 74 0A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B3 01 00 35 04 06 00 5F 84 56 06 02 AF F0 7C 13 4C F2 22 95 E6 [16:42:24]CheckFolder [16:42:24]dirname=/storage/ofd_packets [16:42:24]CheckFolder done [16:42:24]ProducePacketName [16:42:24]name=ofd_packets/00111419 [16:42:24]NVStorageSaveData ofd_packets/00111419 [16:42:24]File name is /storage/ofd_packets/00111419 [16:42:24]Write 301 bytes [16:42:24]NVStorageSaveData done [16:42:24]OFDSenderStorePacket done [16:42:24]KKMCreateOFDPacket done [16:42:24]NVStorageSaveData kkm_last_timestamp [16:42:24]File name is /storage/kkm_last_timestamp [16:42:24]Write 4 bytes [16:42:24]NVStorageSaveData done [16:42:24]ExternCall_PrintAddStr [16:42:24]wPrintStart [16:42:24]Write to MH i2c: 01 00 00 CD 19 E6 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 CD 19 00 00 00 00 00 FF 0F FB [16:42:24]RasterBufferAndPrint [16:42:24]line Счет N : (1)320000 [16:42:24]line ИНН: 02508201610067 [16:42:24]line Контрольно-Кассовый Чек [16:42:24]line ПРОДАЖА [16:42:24]line ТРК (МРК, ГНК) : 11 [16:42:24]line Товар: 2710124130 [16:42:24]line Аи-92-К-5 [16:42:24]line 10.550 * 66.40 [16:42:24]line = 700.52 [16:42:24]line НДС 12% НСП 1% [16:42:24]line > о реализуемом товаре [16:42:24]line ИТОГО: 700.52 [16:42:24]line НСП 1% : 6.20 [16:42:24]line НДС 12% : 74.39 [16:42:24]line Наличными: 0.00 [16:42:24]line Безнал.: 700.52 [16:42:24]line Место: АЗС № 65 "Партнер Нефть" [16:42:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:42:24]line СНО: Общий режим [16:42:24]line Чек 168 19.06.2024 16:42 [16:42:24]line Смена: 388 ФФД: 1.0 [16:42:24]line ЗНМ: 0300000198 [16:42:24]line РНМ: 0000000000092771 [16:42:24]line Версия ККМ: 001 [16:42:24]line Платежная система: О! деньги [16:42:24]line ФМ: 0000000000875083 [16:42:24]line ФД: 111419 [16:42:24]line ФПД: 105021983556271 [16:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164228&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111419&fm=105021983556271&tin=02508201610067®Number=0000000000092771&sum=70052 [16:42:24]written 0, free lines is 4095 [16:42:24]OFD Sender: Processing packet 111419 [packets to send 38, broken 37] [16:42:24]ProducePacketName [16:42:24]name=ofd_packets/00111419 [16:42:24]OFD Sender: To server: pG, [16:42:24]CommunicateWithHost lk.salyk.kg:30040 [16:42:24]ConnectInit lk.salyk.kg [16:42:24]Connected sock=11 [16:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 08 9A 07 01 34 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 74 0A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3B B3 01 00 35 04 06 00 5F 84 56 06 02 AF F0 7C 13 4C F2 22 95 E6 [16:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5D 2B 47 00 7B 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 35 30 38 33 10 04 04 00 3B B3 01 00 F4 03 04 00 D9 A1 72 66 B6 04 01 00 00 C2 DE 66 8E 99 84 77 89 [16:42:24]CommunicateWithHost err = 0 [16:42:24]CheckOFDResponse [16:42:24]1017 (14) - 77093643461234 [16:42:24]1041 (16) - 0000000000875083 [16:42:24]1040 (4) - 111419 [16:42:24]1012 (4) - 19.06.2024 09:16 [16:42:24]1206 (1) - 0 [16:42:24]OFD Sender: Remove packet 111419 [16:42:24]ProducePacketName [16:42:24]name=ofd_packets/00111419 [16:42:24]NVStorageDeleteData [16:42:24]Write to MH i2c: 01 00 00 F7 19 10 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 F7 19 00 00 00 00 00 DC 0C FF [16:42:24]RasterBufferAndPrint [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]written 0, free lines is 3299 [16:42:24]MH_Cut [16:42:24]Write to MH i2c: D1 01 00 FE 19 01 E9 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: D1 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: D1 01 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: D1 01 00 FE 19 00 E8 [16:42:24]Write to MH i2c: 01 00 00 FF 19 18 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:25]OFD Sender: No OFD packet to send [16:42:25]*** Cut start [16:42:25]*** Partial cut [16:42:25]*** CUTSNS_PIN = 1 [16:42:25]*** CUTSNS_PIN = 0 [16:42:25]*** Brake cut motor [16:42:26]Read from MH i2c: 01 [16:42:26]MH_I2C_Read... [16:42:26]*** Stop cut motor [16:42:26]*** Cut end [16:42:26]Read from MH i2c: 01 07 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: 01 07 00 FF 19 00 00 00 00 00 FF 0F 2D [16:42:26]process_action close_receipt done [16:42:26]requested_data is exist [16:42:26]produce_requested_data [16:42:26]requested_item fm.sn is exist - process it [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 11 00 00 [16:42:26]Write to MH i2c: E2 08 00 00 1A 80 11 00 00 00 00 00 00 94 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 17 00 [16:42:26]MH_I2C_Read... [16:42:26]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 35 30 38 33 90 00 E6 [16:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:42:26]wFMCommunicate OK [16:42:26]requested_item fd.num is exist - process it [16:42:26]SAM_PROTO_GetFieldsCounters [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 13 00 00 [16:42:26]Write to MH i2c: E2 08 00 01 1A 80 13 00 00 00 00 00 00 97 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 62 00 [16:42:26]MH_I2C_Read... [16:42:26]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3B B3 01 00 0E 04 04 00 84 01 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 24 [16:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:26]wFMCommunicate OK [16:42:26]SAM_PROTO_GetFieldsCounters done [16:42:26]requested_item shift.num is exist - process it [16:42:26]requested_item shift.opened is exist - process it [16:42:26]req_shift_opened [16:42:26]FM_GetShiftState [16:42:26]SAM_PROTO_GetShiftState [16:42:26]wFMCommunicate request_size=4 [16:42:26]MH_SAM_APDU [16:42:26]CAPDU: 80 13 01 00 [16:42:26]Write to MH i2c: E2 08 00 02 1A 80 13 01 00 00 00 00 00 99 [16:42:26]Write i2c OK [16:42:26]MH_I2C_Read... [16:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:26]Read from MH i2c: E2 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0E 00 [16:42:26]MH_I2C_Read... [16:42:26]Read from MH i2c: E2 0E 00 02 1A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E3 [16:42:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:42:26]wFMCommunicate OK [16:42:26]SAM_PROTO_GetShiftState done [16:42:26]FM_GetShiftState done [16:42:26]req_shift_opened done [16:42:26]requested_item shift.open_date is exist - process it [16:42:26]req_shift_open_date [16:42:26]req_shift_open_date done [16:42:26]produce_requested_data done [16:42:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111419,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:42:26]process_action_free close_receipt [16:42:26]json_value_free [16:42:26]json_value_free done [16:42:26]process_json_proto returns [16:42:26]Send response to host [16:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111419,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:42:26]free response buf [16:42:26]execute_script done [16:42:26]execute_script returns [16:42:26]free content buf [16:42:26]Sock 9.Close socket [16:42:26]Sock 9.Thread stoped [16:42:30]OFD Sender: No OFD packet to send [16:42:30]ConnectInit Can't connect to host [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:35]accept exits with 10 [16:44:35]New connection [16:44:35]New thread 3067465060 created [16:44:35]Thread 3067321700 joined [16:44:35]Waiting for new connection... [16:44:35] Sock 10.Parse request [16:44:35]Sock 10.Check first char [16:44:35]Sock 10.First char is OK [16:44:35]request: POST /json_proto HTTP/1.0 [16:44:35]Method: POST [16:44:35]URL: /json_proto [16:44:35]Method is POST - this is cgi request [16:44:35]url: /json_proto [16:44:35]query_string will be loaded in cgi processing [16:44:35]execute_cgi json_proto POST (null) [16:44:35]execute_cgi path=json_proto method=POST [16:44:35]POST find Content-Length [16:44:35]Host: 172.17.59.68:8080 [16:44:35]Content-Length: 674 [16:44:35]Content-Type: application/json [16:44:35] [16:44:35]POST finish read [16:44:35]Found Content-Length = 674 [16:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:35]execute_script... [16:44:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:35]POST & json_proto [16:44:35]process_json_proto [16:44:35]json parsed OK: [16:44:35]protocol is kg_v1.0 [16:44:35]action value=close_receipt [16:44:35]process_action close_receipt [16:44:35]cmd_close_receipt [16:44:35]MH_GetDate [16:44:35]Write to MH i2c: F0 00 00 03 1A 0C [16:44:35]Write i2c OK [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: F0 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: F0 09 00 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: F0 09 00 03 1A 00 FA 0A 73 66 BC EC 60 65 5F [16:44:35]GetLastDocTimeStamp 1718815348 [16:44:35]current date 1718815482 [16:44:35]FM_GetShiftState [16:44:35]SAM_PROTO_GetShiftState [16:44:35]wFMCommunicate request_size=4 [16:44:35]MH_SAM_APDU [16:44:35]CAPDU: 80 13 01 00 [16:44:35]Write to MH i2c: E2 08 00 04 1A 80 13 01 00 00 00 00 00 9B [16:44:35]Write i2c OK [16:44:35]MH_I2C_Read... [16:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:35]Read from MH i2c: E2 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: E2 0E 00 [16:44:35]MH_I2C_Read... [16:44:35]Read from MH i2c: E2 0E 00 04 1A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E5 [16:44:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:44:35]wFMCommunicate OK [16:44:35]SAM_PROTO_GetShiftState done [16:44:35]FM_GetShiftState done [16:44:35]opened in 1718760753 [16:44:35]opened+sec_in_day 1718847153 [16:44:35]quantity*price = 50009 [16:44:35]sum+1 = 50010 [16:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 169 19.06.2024 16:44 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111420 ФПД: 36751585794996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164442&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111420&fm=36751585794996&tin=02508201610067®Number=0000000000092771&sum=50000 [16:44:36]StoreToDocumentArchive [16:44:36]shift 388 fd 111420 [16:44:36]save to /storage/0388/doc_00111420 [16:44:36]save last doc name /storage/0388/doc_00111420 to /storage/kkm_last_doc_name [16:44:36]save OK [16:44:36]Clear old archive folders... [16:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:44:36]tlvbuf is 00EDAE60 [16:44:36]SAM_PROTO_ClearQueue [16:44:36]wFMCommunicate request_size=4 [16:44:36]MH_SAM_APDU [16:44:36]CAPDU: 80 09 00 00 [16:44:36]Write to MH i2c: E2 08 00 11 1A 80 09 00 00 00 00 00 00 9D [16:44:36]Write i2c OK [16:44:36]MH_I2C_Read... [16:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:37]Read from MH i2c: E2 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 03 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [16:44:37]RAPDU: 90 00 [16:44:37]wFMCommunicate OK [16:44:37]SAM_PROTO_ClearQueue done [16:44:37]KKMCreateOFDPacket [16:44:37]OFDProtocolAddRootSTLVToBuf [16:44:37]FM_MakeSignedData [16:44:37]FM_MakeSignedData [16:44:37]SAM_PROTO_SignData [16:44:37]wFMCommunicate request_size=4 [16:44:37]MH_SAM_APDU [16:44:37]CAPDU: 80 0D 01 02 [16:44:37]Write to MH i2c: E2 08 00 12 1A 80 0D 01 02 00 00 00 00 A5 [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:37]Read from MH i2c: E2 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 03 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [16:44:37]RAPDU: 90 00 [16:44:37]wFMCommunicate OK [16:44:37]wFMCommunicate request_size=255 [16:44:37]MH_SAM_APDU [16:44:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FA 0A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B3 01 00 35 04 06 00 21 6C E5 37 [16:44:37]Write to MH i2c: E2 02 01 13 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FA 0A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B3 01 00 35 04 06 00 21 6C E5 37 00 00 F3 [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:37]Read from MH i2c: E2 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 03 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [16:44:37]RAPDU: 90 00 [16:44:37]wFMCommunicate OK [16:44:37]wFMCommunicate request_size=7 [16:44:37]MH_SAM_APDU [16:44:37]CAPDU: 80 0D 02 02 02 5B B4 [16:44:37]Write to MH i2c: E2 0A 00 14 1A 80 0D 02 02 02 00 5B B4 00 00 BB [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:37]Read from MH i2c: E2 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 03 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 03 00 14 1A 00 90 00 A2 [16:44:37]RAPDU: 90 00 [16:44:37]wFMCommunicate OK [16:44:37]wFMCommunicate request_size=4 [16:44:37]MH_SAM_APDU [16:44:37]CAPDU: 80 0D 03 02 [16:44:37]Write to MH i2c: E2 08 00 15 1A 80 0D 03 02 00 00 00 00 AA [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:37]Read from MH i2c: E2 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 0B 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 0B 00 15 1A 00 E7 FE 12 07 AF 16 E2 78 90 00 C8 [16:44:37]RAPDU: E7 FE 12 07 AF 16 E2 78 90 00 [16:44:37]wFMCommunicate OK [16:44:37]SAM_PROTO_SignData done [16:44:37]FM_MakeSignedData done [16:44:37]CreateOFDProtocolMessage [16:44:37]wFMCommunicate request_size=4 [16:44:37]MH_SAM_APDU [16:44:37]CAPDU: 80 11 00 00 [16:44:37]Write to MH i2c: E2 08 00 16 1A 80 11 00 00 00 00 00 00 AA [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:37]Read from MH i2c: E2 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: E2 17 00 [16:44:37]MH_I2C_Read... [16:44:37]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 35 30 38 33 90 00 FC [16:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:44:37]wFMCommunicate OK [16:44:37]CreateOFDProtocolMessage done [16:44:37]OFDSenderStorePacket 111420 [16:44:37]StoreOFDPacket docnum=111420 [16:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C8 CA 04 01 84 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FA 0A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B3 01 00 35 04 06 00 21 6C E5 37 5B B4 E7 FE 12 07 AF 16 E2 78 [16:44:37]CheckFolder [16:44:37]dirname=/storage/ofd_packets [16:44:37]CheckFolder done [16:44:37]ProducePacketName [16:44:37]name=ofd_packets/00111420 [16:44:37]NVStorageSaveData ofd_packets/00111420 [16:44:37]File name is /storage/ofd_packets/00111420 [16:44:37]Write 298 bytes [16:44:37]NVStorageSaveData done [16:44:37]OFDSenderStorePacket done [16:44:37]KKMCreateOFDPacket done [16:44:37]NVStorageSaveData kkm_last_timestamp [16:44:37]File name is /storage/kkm_last_timestamp [16:44:37]Write 4 bytes [16:44:37]NVStorageSaveData done [16:44:37]ExternCall_PrintAddStr [16:44:37]wPrintStart [16:44:37]Write to MH i2c: 01 00 00 17 1A 31 [16:44:37]Write i2c OK [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: 01 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: 01 07 00 [16:44:37]MH_I2C_Read... [16:44:37]Read from MH i2c: 01 07 00 17 1A 00 00 00 00 00 FF 0F 46 [16:44:37]RasterBufferAndPrint [16:44:37]line Счет N : (1)320001 [16:44:37]line ИНН: 02508201610067 [16:44:37]line Контрольно-Кассовый Чек [16:44:37]line ПРОДАЖА [16:44:37]line ТРК (МРК, ГНК) : 22 [16:44:37]line Товар: 2710194210 [16:44:37]line ДТ-К-5 [16:44:37]line 6.860 * 72.90 [16:44:37]line = 500.09 [16:44:37]line НДС 12% НСП 1% [16:44:37]line > о реализуемом товаре [16:44:37]line ОКРУГЛЕНИЕ: -0.09 [16:44:37]line ИТОГО: 500.00 [16:44:37]line Внесено: 500.00 [16:44:37]line СДАЧА: 0.00 [16:44:37]line НСП 1% : 4.43 [16:44:37]line НДС 12% : 53.11 [16:44:37]line Наличными: 500.00 [16:44:37]line Безнал.: 0.00 [16:44:37]line Место: АЗС № 65 "Партнер Нефть" [16:44:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:44:37]line СНО: Общий режим [16:44:37]line Чек 169 19.06.2024 16:44 [16:44:37]line Смена: 388 ФФД: 1.0 [16:44:37]line ЗНМ: 0300000198 [16:44:37]line РНМ: 0000000000092771 [16:44:37]line Версия ККМ: 001 [16:44:37]line ФМ: 0000000000875083 [16:44:37]line ФД: 111420 [16:44:37]line ФПД: 36751585794996 [16:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164442&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111420&fm=36751585794996&tin=02508201610067®Number=0000000000092771&sum=50000 [16:44:37]OFD Sender: Processing packet 111420 [packets to send 38, broken 37] [16:44:37]ProducePacketName [16:44:37]name=ofd_packets/00111420 [16:44:37]OFD Sender: To server: pG, [16:44:37]CommunicateWithHost lk.salyk.kg:30040 [16:44:37]ConnectInit lk.salyk.kg [16:44:37]written 0, free lines is 4095 [16:44:37]Connected sock=11 [16:44:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C8 CA 04 01 84 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 FA 0A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3C B3 01 00 35 04 06 00 21 6C E5 37 5B B4 E7 FE 12 07 AF 16 E2 78 [16:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 61 14 47 00 52 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 35 30 38 33 10 04 04 00 3C B3 01 00 F4 03 04 00 5E A2 72 66 B6 04 01 00 00 40 96 FA 94 D1 08 E8 6C [16:44:38]CommunicateWithHost err = 0 [16:44:38]CheckOFDResponse [16:44:38]1017 (14) - 77093643461234 [16:44:38]1041 (16) - 0000000000875083 [16:44:38]1040 (4) - 111420 [16:44:38]1012 (4) - 19.06.2024 09:18 [16:44:38]1206 (1) - 0 [16:44:38]OFD Sender: Remove packet 111420 [16:44:38]ProducePacketName [16:44:38]name=ofd_packets/00111420 [16:44:38]NVStorageDeleteData [16:44:38]Write to MH i2c: 01 00 00 42 1A 5C [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 07 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: 01 07 00 42 1A 00 00 00 00 00 D4 0C 43 [16:44:38]RasterBufferAndPrint [16:44:38]line [16:44:38]line [16:44:38]line [16:44:38]line [16:44:38]line [16:44:38]written 0, free lines is 3288 [16:44:38]MH_Cut [16:44:38]Write to MH i2c: D1 01 00 49 1A 01 35 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: D1 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: D1 01 00 [16:44:38]MH_I2C_Read... [16:44:38]Read from MH i2c: D1 01 00 49 1A 00 34 [16:44:38]Write to MH i2c: 01 00 00 4A 1A 64 [16:44:38]Write i2c OK [16:44:38]MH_I2C_Read... [16:44:38]OFD Sender: No OFD packet to send [16:44:39]*** Cut start [16:44:39]*** Partial cut [16:44:39]*** CUTSNS_PIN = 1 [16:44:39]*** CUTSNS_PIN = 0 [16:44:39]*** Brake cut motor [16:44:39]Read from MH i2c: 01 [16:44:39]MH_I2C_Read... [16:44:39]*** Stop cut motor [16:44:39]*** Cut end [16:44:39]Read from MH i2c: 01 07 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: 01 07 00 4A 1A 00 00 00 00 00 FF 0F 79 [16:44:39]process_action close_receipt done [16:44:39]requested_data is exist [16:44:39]produce_requested_data [16:44:39]requested_item fm.sn is exist - process it [16:44:39]wFMCommunicate request_size=4 [16:44:39]MH_SAM_APDU [16:44:39]CAPDU: 80 11 00 00 [16:44:39]Write to MH i2c: E2 08 00 4B 1A 80 11 00 00 00 00 00 00 DF [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:39]Read from MH i2c: E2 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 17 00 [16:44:39]MH_I2C_Read... [16:44:39]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 35 30 38 33 90 00 31 [16:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:44:39]wFMCommunicate OK [16:44:39]requested_item fd.num is exist - process it [16:44:39]SAM_PROTO_GetFieldsCounters [16:44:39]wFMCommunicate request_size=4 [16:44:39]MH_SAM_APDU [16:44:39]CAPDU: 80 13 00 00 [16:44:39]Write to MH i2c: E2 08 00 4C 1A 80 13 00 00 00 00 00 00 E2 [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:39]Read from MH i2c: E2 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 62 00 [16:44:39]MH_I2C_Read... [16:44:39]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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [16:44: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:39]wFMCommunicate OK [16:44:39]SAM_PROTO_GetFieldsCounters done [16:44:39]requested_item shift.num is exist - process it [16:44:39]requested_item shift.opened is exist - process it [16:44:39]req_shift_opened [16:44:39]FM_GetShiftState [16:44:39]SAM_PROTO_GetShiftState [16:44:39]wFMCommunicate request_size=4 [16:44:39]MH_SAM_APDU [16:44:39]CAPDU: 80 13 01 00 [16:44:39]Write to MH i2c: E2 08 00 4D 1A 80 13 01 00 00 00 00 00 E4 [16:44:39]Write i2c OK [16:44:39]MH_I2C_Read... [16:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:39]Read from MH i2c: E2 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 0E 00 [16:44:39]MH_I2C_Read... [16:44:39]Read from MH i2c: E2 0E 00 4D 1A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2E [16:44:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:44:39]wFMCommunicate OK [16:44:39]SAM_PROTO_GetShiftState done [16:44:39]FM_GetShiftState done [16:44:39]req_shift_opened done [16:44:39]requested_item shift.open_date is exist - process it [16:44:39]req_shift_open_date [16:44:39]req_shift_open_date done [16:44:39]produce_requested_data done [16:44:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111420,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:44:39]process_action_free close_receipt [16:44:39]json_value_free [16:44:39]json_value_free done [16:44:39]process_json_proto returns [16:44:39]Send response to host [16:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111420,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:44:39]free response buf [16:44:39]execute_script done [16:44:39]execute_script returns [16:44:39]free content buf [16:44:39]Sock 10.Close socket [16:44:39]Sock 10.Thread stoped [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]accept exits with 7 [16:46:18]New connection [16:46:18]New thread 3067321700 created [16:46:18]Thread 3067465060 joined [16:46:18]Waiting for new connection... [16:46:18] Sock 7.Parse request [16:46:18]Sock 7.Check first char [16:46:18]Sock 7.First char is OK [16:46:18]request: POST /json_proto HTTP/1.0 [16:46:18]Method: POST [16:46:18]URL: /json_proto [16:46:18]Method is POST - this is cgi request [16:46:18]url: /json_proto [16:46:18]query_string will be loaded in cgi processing [16:46:18]execute_cgi json_proto POST (null) [16:46:18]execute_cgi path=json_proto method=POST [16:46:18]POST find Content-Length [16:46:18]Host: 172.17.59.68:8080 [16:46:18]Content-Length: 682 [16:46:18]Content-Type: application/json [16:46:18] [16:46:18]POST finish read [16:46:18]Found Content-Length = 682 [16:46:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:18]execute_script... [16:46:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:18]POST & json_proto [16:46:18]process_json_proto [16:46:18]json parsed OK: [16:46:18]protocol is kg_v1.0 [16:46:18]action value=close_receipt [16:46:18]process_action close_receipt [16:46:18]cmd_close_receipt [16:46:18]MH_GetDate [16:46:18]Write to MH i2c: F0 00 00 4E 1A 57 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 09 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: F0 09 00 4E 1A 00 61 0B 73 66 BC EC 60 65 12 [16:46:18]GetLastDocTimeStamp 1718815482 [16:46:18]current date 1718815585 [16:46:18]FM_GetShiftState [16:46:18]SAM_PROTO_GetShiftState [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 13 01 00 [16:46:18]Write to MH i2c: E2 08 00 4F 1A 80 13 01 00 00 00 00 00 E6 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]OFD Sender: No OFD packet to send [16:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0E 00 4F 1A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 30 [16:46:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_GetShiftState done [16:46:18]FM_GetShiftState done [16:46:18]opened in 1718760753 [16:46:18]opened+sec_in_day 1718847153 [16:46:18]quantity*price = 100064 [16:46:18]sum+1 = 100066 [16:46:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 170 19.06.2024 16:46 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111421 ФПД: 187446416894275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164625&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111421&fm=187446416894275&tin=02508201610067®Number=0000000000092771&sum=100000 [16:46:19]StoreToDocumentArchive [16:46:19]shift 388 fd 111421 [16:46:19]save to /storage/0388/doc_00111421 [16:46:19]save last doc name /storage/0388/doc_00111421 to /storage/kkm_last_doc_name [16:46:19]save OK [16:46:19]Clear old archive folders... [16:46:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:19]tlvbuf is 00EBF580 [16:46:19]SAM_PROTO_ClearQueue [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 09 00 00 [16:46:19]Write to MH i2c: E2 08 00 5C 1A 80 09 00 00 00 00 00 00 E8 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [16:46:19]RAPDU: 90 00 [16:46:19]wFMCommunicate OK [16:46:19]SAM_PROTO_ClearQueue done [16:46:19]KKMCreateOFDPacket [16:46:19]OFDProtocolAddRootSTLVToBuf [16:46:19]FM_MakeSignedData [16:46:19]FM_MakeSignedData [16:46:19]SAM_PROTO_SignData [16:46:19]wFMCommunicate request_size=4 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 0D 01 02 [16:46:19]Write to MH i2c: E2 08 00 5D 1A 80 0D 01 02 00 00 00 00 F0 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:19]Read from MH i2c: E2 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: E2 03 00 5D 1A 00 90 00 EB [16:46:19]RAPDU: 90 00 [16:46:19]wFMCommunicate OK [16:46:19]wFMCommunicate request_size=255 [16:46:19]MH_SAM_APDU [16:46:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 61 0B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B3 01 00 35 04 06 00 AA [16:46:19]Write to MH i2c: E2 02 01 5E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 61 0B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B3 01 00 35 04 06 00 AA 00 00 03 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 5E 1A 00 90 00 EC [16:46:20]RAPDU: 90 00 [16:46:20]wFMCommunicate OK [16:46:20]wFMCommunicate request_size=10 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 0D 02 02 05 7B 45 17 E9 43 [16:46:20]Write to MH i2c: E2 0D 00 5F 1A 80 0D 02 02 05 00 7B 45 17 E9 43 00 00 00 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 03 00 5F 1A 00 90 00 ED [16:46:20]RAPDU: 90 00 [16:46:20]wFMCommunicate OK [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 0D 03 02 [16:46:20]Write to MH i2c: E2 08 00 60 1A 80 0D 03 02 00 00 00 00 F5 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0B 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 0B 00 60 1A 00 7E 6A F9 E4 FF 57 5B BF 90 00 2B [16:46:20]RAPDU: 7E 6A F9 E4 FF 57 5B BF 90 00 [16:46:20]wFMCommunicate OK [16:46:20]SAM_PROTO_SignData done [16:46:20]FM_MakeSignedData done [16:46:20]CreateOFDProtocolMessage [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 11 00 00 [16:46:20]Write to MH i2c: E2 08 00 61 1A 80 11 00 00 00 00 00 00 F5 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:20]Read from MH i2c: E2 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: E2 17 00 61 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [16:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:46:20]wFMCommunicate OK [16:46:20]CreateOFDProtocolMessage done [16:46:20]OFDSenderStorePacket 111421 [16:46:20]StoreOFDPacket docnum=111421 [16:46:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BF C9 07 01 9B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 61 0B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B3 01 00 35 04 06 00 AA 7B 45 17 E9 43 7E 6A F9 E4 FF 57 5B BF [16:46:20]CheckFolder [16:46:20]dirname=/storage/ofd_packets [16:46:20]CheckFolder done [16:46:20]ProducePacketName [16:46:20]name=ofd_packets/00111421 [16:46:20]NVStorageSaveData ofd_packets/00111421 [16:46:20]File name is /storage/ofd_packets/00111421 [16:46:20]Write 301 bytes [16:46:20]NVStorageSaveData done [16:46:20]OFDSenderStorePacket done [16:46:20]KKMCreateOFDPacket done [16:46:20]NVStorageSaveData kkm_last_timestamp [16:46:20]File name is /storage/kkm_last_timestamp [16:46:20]Write 4 bytes [16:46:20]NVStorageSaveData done [16:46:20]ExternCall_PrintAddStr [16:46:20]wPrintStart [16:46:20]Write to MH i2c: 01 00 00 62 1A 7C [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 62 1A 00 00 00 00 00 FF 0F 91 [16:46:20]RasterBufferAndPrint [16:46:20]line Счет N : (1)320002 [16:46:20]line ИНН: 02508201610067 [16:46:20]line Контрольно-Кассовый Чек [16:46:20]line ПРОДАЖА [16:46:20]line ТРК (МРК, ГНК) : 11 [16:46:20]line Товар: 2710124130 [16:46:20]line Аи-92-К-5 [16:46:20]line 15.070 * 66.40 [16:46:20]line = 1000.65 [16:46:20]line НДС 12% НСП 1% [16:46:20]line > о реализуемом товаре [16:46:20]line ОКРУГЛЕНИЕ: -0.65 [16:46:20]line ИТОГО: 1000.00 [16:46:20]line Внесено: 1000.00 [16:46:20]line СДАЧА: 0.00 [16:46:20]line НСП 1% : 8.85 [16:46:20]line НДС 12% : 106.26 [16:46:20]line Наличными: 1000.00 [16:46:20]line Безнал.: 0.00 [16:46:20]line Место: АЗС № 65 "Партнер Нефть" [16:46:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [16:46:20]line СНО: Общий режим [16:46:20]line Чек 170 19.06.2024 16:46 [16:46:20]line Смена: 388 ФФД: 1.0 [16:46:20]line ЗНМ: 0300000198 [16:46:20]line РНМ: 0000000000092771 [16:46:20]line Версия ККМ: 001 [16:46:20]line ФМ: 0000000000875083 [16:46:20]line ФД: 111421 [16:46:20]line ФПД: 187446416894275 [16:46:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T164625&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111421&fm=187446416894275&tin=02508201610067®Number=0000000000092771&sum=100000 [16:46:20]OFD Sender: Processing packet 111421 [packets to send 38, broken 37] [16:46:20]ProducePacketName [16:46:20]name=ofd_packets/00111421 [16:46:20]OFD Sender: To server: pG, [16:46:20]CommunicateWithHost lk.salyk.kg:30040 [16:46:20]ConnectInit lk.salyk.kg [16:46:20]written 0, free lines is 4095 [16:46:20]Connected sock=10 [16:46:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BF C9 07 01 9B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 61 0B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B3 01 00 35 04 06 00 AA 7B 45 17 E9 43 7E 6A F9 E4 FF 57 5B BF [16:46:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 92 E7 47 00 BD 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3D B3 01 00 F4 03 04 00 C5 A2 72 66 B6 04 01 00 00 48 CB A0 E1 27 51 6D A2 [16:46:21]CommunicateWithHost err = 0 [16:46:21]CheckOFDResponse [16:46:21]1017 (14) - 77093643461234 [16:46:21]1041 (16) - 0000000000875083 [16:46:21]1040 (4) - 111421 [16:46:21]1012 (4) - 19.06.2024 09:20 [16:46:21]1206 (1) - 0 [16:46:21]OFD Sender: Remove packet 111421 [16:46:21]ProducePacketName [16:46:21]name=ofd_packets/00111421 [16:46:21]NVStorageDeleteData [16:46:21]Write to MH i2c: 01 00 00 8D 1A A7 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 07 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: 01 07 00 8D 1A 00 00 00 00 00 D5 0C 8F [16:46:21]RasterBufferAndPrint [16:46:21]line [16:46:21]line [16:46:21]line [16:46:21]line [16:46:21]line [16:46:21]written 0, free lines is 3293 [16:46:21]MH_Cut [16:46:21]Write to MH i2c: D1 01 00 94 1A 01 80 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: D1 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: D1 01 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: D1 01 00 94 1A 00 7F [16:46:21]Write to MH i2c: 01 00 00 95 1A AF [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]OFD Sender: No OFD packet to send [16:46:21]*** Cut start [16:46:21]*** Partial cut [16:46:21]*** CUTSNS_PIN = 1 [16:46:21]*** CUTSNS_PIN = 0 [16:46:22]*** Brake cut motor [16:46:22]Read from MH i2c: 01 [16:46:22]MH_I2C_Read... [16:46:22]*** Stop cut motor [16:46:22]*** Cut end [16:46:22]Read from MH i2c: 01 07 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: 01 07 00 95 1A 00 00 00 00 00 FF 0F C4 [16:46:22]process_action close_receipt done [16:46:22]requested_data is exist [16:46:22]produce_requested_data [16:46:22]requested_item fm.sn is exist - process it [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 11 00 00 [16:46:22]Write to MH i2c: E2 08 00 96 1A 80 11 00 00 00 00 00 00 2A [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 17 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 17 00 96 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [16:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [16:46:22]wFMCommunicate OK [16:46:22]requested_item fd.num is exist - process it [16:46:22]SAM_PROTO_GetFieldsCounters [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 13 00 00 [16:46:22]Write to MH i2c: E2 08 00 97 1A 80 13 00 00 00 00 00 00 2D [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 62 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 62 00 97 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [16:46:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3D B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:22]wFMCommunicate OK [16:46:22]SAM_PROTO_GetFieldsCounters done [16:46:22]requested_item shift.num is exist - process it [16:46:22]requested_item shift.opened is exist - process it [16:46:22]req_shift_opened [16:46:22]FM_GetShiftState [16:46:22]SAM_PROTO_GetShiftState [16:46:22]wFMCommunicate request_size=4 [16:46:22]MH_SAM_APDU [16:46:22]CAPDU: 80 13 01 00 [16:46:22]Write to MH i2c: E2 08 00 98 1A 80 13 01 00 00 00 00 00 2F [16:46:22]Write i2c OK [16:46:22]MH_I2C_Read... [16:46:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:22]Read from MH i2c: E2 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 0E 00 [16:46:22]MH_I2C_Read... [16:46:22]Read from MH i2c: E2 0E 00 98 1A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 79 [16:46:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [16:46:22]wFMCommunicate OK [16:46:22]SAM_PROTO_GetShiftState done [16:46:22]FM_GetShiftState done [16:46:22]req_shift_opened done [16:46:22]requested_item shift.open_date is exist - process it [16:46:22]req_shift_open_date [16:46:22]req_shift_open_date done [16:46:22]produce_requested_data done [16:46:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111421,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [16:46:22]process_action_free close_receipt [16:46:22]json_value_free [16:46:22]json_value_free done [16:46:22]process_json_proto returns [16:46:22]Send response to host [16:46:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111421,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [16:46:22]free response buf [16:46:22]execute_script done [16:46:22]execute_script returns [16:46:22]free content buf [16:46:22]Sock 7.Close socket [16:46:22]Sock 7.Thread stoped [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54: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:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:55]accept exits with 9 [17:00:55]New connection [17:00:55]New thread 3067465060 created [17:00:55]Thread 3067321700 joined [17:00:55]Waiting for new connection... [17:00:55] Sock 9.Parse request [17:00:55]Sock 9.Check first char [17:00:55]Sock 9.First char is OK [17:00:55]request: POST /json_proto HTTP/1.0 [17:00:55]Method: POST [17:00:55]URL: /json_proto [17:00:55]Method is POST - this is cgi request [17:00:55]url: /json_proto [17:00:55]query_string will be loaded in cgi processing [17:00:55]execute_cgi json_proto POST (null) [17:00:55]execute_cgi path=json_proto method=POST [17:00:55]POST find Content-Length [17:00:55]Host: 172.17.59.68:8080 [17:00:55]Content-Length: 682 [17:00:55]Content-Type: application/json [17:00:55] [17:00:55]POST finish read [17:00:55]Found Content-Length = 682 [17:00:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 17.320, "sum" : 1150.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:55]execute_script... [17:00: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)320003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 17.320, "sum" : 1150.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:55]POST & json_proto [17:00:55]process_json_proto [17:00:55]json parsed OK: [17:00:55]protocol is kg_v1.0 [17:00:55]action value=close_receipt [17:00:55]process_action close_receipt [17:00:55]cmd_close_receipt [17:00:55]MH_GetDate [17:00:55]Write to MH i2c: F0 00 00 99 1A A2 [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: F0 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: F0 09 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: F0 09 00 99 1A 00 CD 0E 73 66 BC EC 60 65 CC [17:00:55]GetLastDocTimeStamp 1718815585 [17:00:55]current date 1718816461 [17:00:55]FM_GetShiftState [17:00:55]SAM_PROTO_GetShiftState [17:00:55]wFMCommunicate request_size=4 [17:00:55]MH_SAM_APDU [17:00:55]CAPDU: 80 13 01 00 [17:00:55]Write to MH i2c: E2 08 00 9A 1A 80 13 01 00 00 00 00 00 31 [17:00:55]Write i2c OK [17:00:55]MH_I2C_Read... [17:00:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:55]Read from MH i2c: E2 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 0E 00 [17:00:55]MH_I2C_Read... [17:00:55]Read from MH i2c: E2 0E 00 9A 1A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7B [17:00:55]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:00:55]wFMCommunicate OK [17:00:55]SAM_PROTO_GetShiftState done [17:00:55]FM_GetShiftState done [17:00:55]opened in 1718760753 [17:00:55]opened+sec_in_day 1718847153 [17:00:55]quantity*price = 115004 [17:00:55]sum+1 = 115006 [17:00:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1150.00 Внесено: 1150.00 СДАЧА: 0.00 НСП 1% : 10.18 НДС 12% : 122.13 Наличными: 1150.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 171 19.06.2024 17:01 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111422 ФПД: 185869274538878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170102&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111422&fm=185869274538878&tin=02508201610067®Number=0000000000092771&sum=115000 [17:00:56]StoreToDocumentArchive [17:00:56]shift 388 fd 111422 [17:00:56]save to /storage/0388/doc_00111422 [17:00:56]save last doc name /storage/0388/doc_00111422 to /storage/kkm_last_doc_name [17:00:56]save OK [17:00:56]Clear old archive folders... [17:00:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:56]tlvbuf is 00EBF7C0 [17:00:56]SAM_PROTO_ClearQueue [17:00:56]wFMCommunicate request_size=4 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 09 00 00 [17:00:56]Write to MH i2c: E2 08 00 A7 1A 80 09 00 00 00 00 00 00 33 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:56]Read from MH i2c: E2 03 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 A7 1A 00 90 00 35 [17:00:56]RAPDU: 90 00 [17:00:56]wFMCommunicate OK [17:00:56]SAM_PROTO_ClearQueue done [17:00:56]KKMCreateOFDPacket [17:00:56]OFDProtocolAddRootSTLVToBuf [17:00:56]FM_MakeSignedData [17:00:56]FM_MakeSignedData [17:00:56]SAM_PROTO_SignData [17:00:56]wFMCommunicate request_size=4 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 0D 01 02 [17:00:56]Write to MH i2c: E2 08 00 A8 1A 80 0D 01 02 00 00 00 00 3B [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 A8 1A 00 90 00 36 [17:00:56]RAPDU: 90 00 [17:00:56]wFMCommunicate OK [17:00:56]wFMCommunicate request_size=255 [17:00:56]MH_SAM_APDU [17:00: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 A8 43 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 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 CE 0E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B3 01 00 35 04 06 00 A9 [17:00:56]Write to MH i2c: E2 02 01 A9 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 A8 43 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 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 CE 0E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B3 01 00 35 04 06 00 A9 00 00 8D [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 A9 1A 00 90 00 37 [17:00:56]RAPDU: 90 00 [17:00:56]wFMCommunicate OK [17:00:56]wFMCommunicate request_size=10 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 0D 02 02 05 0C 10 15 63 7E [17:00:56]Write to MH i2c: E2 0D 00 AA 1A 80 0D 02 02 05 00 0C 10 15 63 7E 00 00 5A [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 03 00 AA 1A 00 90 00 38 [17:00:56]RAPDU: 90 00 [17:00:56]wFMCommunicate OK [17:00:56]wFMCommunicate request_size=4 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 0D 03 02 [17:00:56]Write to MH i2c: E2 08 00 AB 1A 80 0D 03 02 00 00 00 00 40 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 0B 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 0B 00 AB 1A 00 33 10 2B 33 65 71 2A 1F 90 00 01 [17:00:56]RAPDU: 33 10 2B 33 65 71 2A 1F 90 00 [17:00:56]wFMCommunicate OK [17:00:56]SAM_PROTO_SignData done [17:00:56]FM_MakeSignedData done [17:00:56]CreateOFDProtocolMessage [17:00:56]wFMCommunicate request_size=4 [17:00:56]MH_SAM_APDU [17:00:56]CAPDU: 80 11 00 00 [17:00:56]Write to MH i2c: E2 08 00 AC 1A 80 11 00 00 00 00 00 00 40 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:56]Read from MH i2c: E2 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 17 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: E2 17 00 AC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [17:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:00:56]wFMCommunicate OK [17:00:56]CreateOFDProtocolMessage done [17:00:56]OFDSenderStorePacket 111422 [17:00:56]StoreOFDPacket docnum=111422 [17:00:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E4 1F 07 01 18 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 A8 43 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 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 CE 0E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B3 01 00 35 04 06 00 A9 0C 10 15 63 7E 33 10 2B 33 65 71 2A 1F [17:00:56]CheckFolder [17:00:56]dirname=/storage/ofd_packets [17:00:56]CheckFolder done [17:00:56]ProducePacketName [17:00:56]name=ofd_packets/00111422 [17:00:56]NVStorageSaveData ofd_packets/00111422 [17:00:56]File name is /storage/ofd_packets/00111422 [17:00:56]Write 301 bytes [17:00:56]NVStorageSaveData done [17:00:56]OFDSenderStorePacket done [17:00:56]KKMCreateOFDPacket done [17:00:56]NVStorageSaveData kkm_last_timestamp [17:00:56]File name is /storage/kkm_last_timestamp [17:00:56]Write 4 bytes [17:00:56]NVStorageSaveData done [17:00:56]ExternCall_PrintAddStr [17:00:56]wPrintStart [17:00:56]Write to MH i2c: 01 00 00 AD 1A C7 [17:00:56]Write i2c OK [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 07 00 [17:00:56]MH_I2C_Read... [17:00:56]Read from MH i2c: 01 07 00 AD 1A 00 00 00 00 00 FF 0F DC [17:00:56]RasterBufferAndPrint [17:00:56]line Счет N : (1)320003 [17:00:56]line ИНН: 02508201610067 [17:00:56]line Контрольно-Кассовый Чек [17:00:56]line ПРОДАЖА [17:00:56]line ТРК (МРК, ГНК) : 11 [17:00:56]line Товар: 2710124130 [17:00:56]line Аи-92-К-5 [17:00:56]line 17.320 * 66.40 [17:00:56]line = 1150.05 [17:00:56]line НДС 12% НСП 1% [17:00:56]line > о реализуемом товаре [17:00:56]line ОКРУГЛЕНИЕ: -0.05 [17:00:56]line ИТОГО: 1150.00 [17:00:56]line Внесено: 1150.00 [17:00:56]line СДАЧА: 0.00 [17:00:56]line НСП 1% : 10.18 [17:00:56]line НДС 12% : 122.13 [17:00:56]line Наличными: 1150.00 [17:00:56]line Безнал.: 0.00 [17:00:56]line Место: АЗС № 65 "Партнер Нефть" [17:00:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:00:56]line СНО: Общий режим [17:00:56]line Чек 171 19.06.2024 17:01 [17:00:56]line Смена: 388 ФФД: 1.0 [17:00:56]line ЗНМ: 0300000198 [17:00:56]line РНМ: 0000000000092771 [17:00:56]line Версия ККМ: 001 [17:00:56]line ФМ: 0000000000875083 [17:00:56]line ФД: 111422 [17:00:56]line ФПД: 185869274538878 [17:00:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170102&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111422&fm=185869274538878&tin=02508201610067®Number=0000000000092771&sum=115000 [17:00:57]OFD Sender: Processing packet 111422 [packets to send 38, broken 37] [17:00:57]ProducePacketName [17:00:57]name=ofd_packets/00111422 [17:00:57]OFD Sender: To server: pG, [17:00:57]CommunicateWithHost lk.salyk.kg:30040 [17:00:57]ConnectInit lk.salyk.kg [17:00:57]written 0, free lines is 4095 [17:00:57]Connected sock=10 [17:00:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E4 1F 07 01 18 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 A8 43 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 2F 00 00 00 00 07 04 06 00 38 C1 01 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 CE 0E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B3 01 00 35 04 06 00 A9 0C 10 15 63 7E 33 10 2B 33 65 71 2A 1F [17:00:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7D 4C 47 00 B1 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3E B3 01 00 F4 03 04 00 31 A6 72 66 B6 04 01 00 00 28 71 A8 98 73 73 AB A3 [17:00:57]CommunicateWithHost err = 0 [17:00:57]CheckOFDResponse [17:00:57]1017 (14) - 77093643461234 [17:00:57]1041 (16) - 0000000000875083 [17:00:57]1040 (4) - 111422 [17:00:57]1012 (4) - 19.06.2024 09:34 [17:00:57]1206 (1) - 0 [17:00:57]OFD Sender: Remove packet 111422 [17:00:57]ProducePacketName [17:00:57]name=ofd_packets/00111422 [17:00:57]NVStorageDeleteData [17:00:57]Write to MH i2c: 01 00 00 D8 1A F2 [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: 01 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: 01 07 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: 01 07 00 D8 1A 00 00 00 00 00 D6 0C DB [17:00:57]RasterBufferAndPrint [17:00:57]line [17:00:57]line [17:00:57]line [17:00:57]line [17:00:57]line [17:00:57]written 0, free lines is 3293 [17:00:57]MH_Cut [17:00:57]Write to MH i2c: D1 01 00 DF 1A 01 CB [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: D1 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: D1 01 00 [17:00:57]MH_I2C_Read... [17:00:57]Read from MH i2c: D1 01 00 DF 1A 00 CA [17:00:57]Write to MH i2c: 01 00 00 E0 1A FA [17:00:57]Write i2c OK [17:00:57]MH_I2C_Read... [17:00:57]OFD Sender: No OFD packet to send [17:00:58]*** Cut start [17:00:58]*** Partial cut [17:00:58]*** CUTSNS_PIN = 1 [17:00:58]*** CUTSNS_PIN = 0 [17:00:58]*** Brake cut motor [17:00:58]Read from MH i2c: 01 [17:00:58]MH_I2C_Read... [17:00:58]*** Stop cut motor [17:00:58]*** Cut end [17:00:58]Read from MH i2c: 01 07 00 [17:00:58]MH_I2C_Read... [17:00:58]Read from MH i2c: 01 07 00 E0 1A 00 00 00 00 00 FF 0F 0F [17:00:58]process_action close_receipt done [17:00:58]requested_data is exist [17:00:58]produce_requested_data [17:00:58]requested_item fm.sn is exist - process it [17:00:58]wFMCommunicate request_size=4 [17:00:58]MH_SAM_APDU [17:00:58]CAPDU: 80 11 00 00 [17:00:58]Write to MH i2c: E2 08 00 E1 1A 80 11 00 00 00 00 00 00 75 [17:00:58]Write i2c OK [17:00:58]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 17 00 E1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C7 [17:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:00:59]wFMCommunicate OK [17:00:59]requested_item fd.num is exist - process it [17:00:59]SAM_PROTO_GetFieldsCounters [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 13 00 00 [17:00:59]Write to MH i2c: E2 08 00 E2 1A 80 13 00 00 00 00 00 00 78 [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 62 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 62 00 E2 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [17:00: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:59]wFMCommunicate OK [17:00:59]SAM_PROTO_GetFieldsCounters done [17:00:59]requested_item shift.num is exist - process it [17:00:59]requested_item shift.opened is exist - process it [17:00:59]req_shift_opened [17:00:59]FM_GetShiftState [17:00:59]SAM_PROTO_GetShiftState [17:00:59]wFMCommunicate request_size=4 [17:00:59]MH_SAM_APDU [17:00:59]CAPDU: 80 13 01 00 [17:00:59]Write to MH i2c: E2 08 00 E3 1A 80 13 01 00 00 00 00 00 7A [17:00:59]Write i2c OK [17:00:59]MH_I2C_Read... [17:00:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:59]Read from MH i2c: E2 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 0E 00 [17:00:59]MH_I2C_Read... [17:00:59]Read from MH i2c: E2 0E 00 E3 1A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C4 [17:00:59]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:00:59]wFMCommunicate OK [17:00:59]SAM_PROTO_GetShiftState done [17:00:59]FM_GetShiftState done [17:00:59]req_shift_opened done [17:00:59]requested_item shift.open_date is exist - process it [17:00:59]req_shift_open_date [17:00:59]req_shift_open_date done [17:00:59]produce_requested_data done [17:00:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111422,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:00:59]process_action_free close_receipt [17:00:59]json_value_free [17:00:59]json_value_free done [17:00:59]process_json_proto returns [17:00:59]Send response to host [17:00:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111422,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:00:59]free response buf [17:00:59]execute_script done [17:00:59]execute_script returns [17:00:59]free content buf [17:00:59]Sock 9.Close socket [17:00:59]Sock 9.Thread stoped [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:02:59]accept exits with 7 [17:02:59]New connection [17:02:59]New thread 3067321700 created [17:02:59]Thread 3067465060 joined [17:02:59]Waiting for new connection... [17:02:59] Sock 7.Parse request [17:02:59]Sock 7.Check first char [17:02:59]Sock 7.First char is OK [17:02:59]request: POST /json_proto HTTP/1.0 [17:02:59]Method: POST [17:02:59]URL: /json_proto [17:02:59]Method is POST - this is cgi request [17:02:59]url: /json_proto [17:02:59]query_string will be loaded in cgi processing [17:02:59]execute_cgi json_proto POST (null) [17:02:59]execute_cgi path=json_proto method=POST [17:02:59]POST find Content-Length [17:02:59]Host: 172.17.59.68:8080 [17:02:59]Content-Length: 677 [17:02:59]Content-Type: application/json [17:02:59] [17:02:59]POST finish read [17:02:59]Found Content-Length = 677 [17:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:59]execute_script... [17:02: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)320004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.780, "sum" : 450.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:59]POST & json_proto [17:02:59]process_json_proto [17:02:59]json parsed OK: [17:02:59]protocol is kg_v1.0 [17:02:59]action value=close_receipt [17:02:59]process_action close_receipt [17:02:59]cmd_close_receipt [17:02:59]MH_GetDate [17:02:59]Write to MH i2c: F0 00 00 E4 1A ED [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: F0 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: F0 09 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: F0 09 00 E4 1A 00 4A 0F 73 66 BC EC 60 65 95 [17:02:59]GetLastDocTimeStamp 1718816462 [17:02:59]current date 1718816586 [17:02:59]FM_GetShiftState [17:02:59]SAM_PROTO_GetShiftState [17:02:59]wFMCommunicate request_size=4 [17:02:59]MH_SAM_APDU [17:02:59]CAPDU: 80 13 01 00 [17:02:59]Write to MH i2c: E2 08 00 E5 1A 80 13 01 00 00 00 00 00 7C [17:02:59]Write i2c OK [17:02:59]MH_I2C_Read... [17:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:59]Read from MH i2c: E2 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0E 00 [17:02:59]MH_I2C_Read... [17:02:59]Read from MH i2c: E2 0E 00 E5 1A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C6 [17:02:59]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:02:59]wFMCommunicate OK [17:02:59]SAM_PROTO_GetShiftState done [17:02:59]FM_GetShiftState done [17:02:59]opened in 1718760753 [17:02:59]opened+sec_in_day 1718847153 [17:02:59]quantity*price = 45019 [17:02:59]sum+1 = 45020 [17:02:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 172 19.06.2024 17:03 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111423 ФПД: 113935723233957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170306&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111423&fm=113935723233957&tin=02508201610067®Number=0000000000092771&sum=45000 [17:03:00]StoreToDocumentArchive [17:03:00]shift 388 fd 111423 [17:03:00]save to /storage/0388/doc_00111423 [17:03:00]save last doc name /storage/0388/doc_00111423 to /storage/kkm_last_doc_name [17:03:00]save OK [17:03:00]Clear old archive folders... [17:03:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:00]tlvbuf is B6F574A0 [17:03:00]SAM_PROTO_ClearQueue [17:03:00]wFMCommunicate request_size=4 [17:03:00]MH_SAM_APDU [17:03:00]CAPDU: 80 09 00 00 [17:03:00]Write to MH i2c: E2 08 00 F2 1A 80 09 00 00 00 00 00 00 7E [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:00]Read from MH i2c: E2 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 03 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 03 00 F2 1A 00 90 00 80 [17:03:00]RAPDU: 90 00 [17:03:00]wFMCommunicate OK [17:03:00]SAM_PROTO_ClearQueue done [17:03:00]KKMCreateOFDPacket [17:03:00]OFDProtocolAddRootSTLVToBuf [17:03:00]FM_MakeSignedData [17:03:00]FM_MakeSignedData [17:03:00]SAM_PROTO_SignData [17:03:00]wFMCommunicate request_size=4 [17:03:00]MH_SAM_APDU [17:03:00]CAPDU: 80 0D 01 02 [17:03:00]Write to MH i2c: E2 08 00 F3 1A 80 0D 01 02 00 00 00 00 86 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:00]Read from MH i2c: E2 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 03 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 03 00 F3 1A 00 90 00 81 [17:03:00]RAPDU: 90 00 [17:03:00]wFMCommunicate OK [17:03:00]wFMCommunicate request_size=255 [17:03:00]MH_SAM_APDU [17:03: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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 AC 00 00 00 F4 03 04 00 4A 0F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B3 01 00 35 04 06 00 67 [17:03:00]Write to MH i2c: E2 02 01 F4 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 AC 00 00 00 F4 03 04 00 4A 0F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B3 01 00 35 04 06 00 67 00 00 B2 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:00]Read from MH i2c: E2 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 03 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 03 00 F4 1A 00 90 00 82 [17:03:00]RAPDU: 90 00 [17:03:00]wFMCommunicate OK [17:03:00]wFMCommunicate request_size=10 [17:03:00]MH_SAM_APDU [17:03:00]CAPDU: 80 0D 02 02 05 9F BA 4F 82 A5 [17:03:00]Write to MH i2c: E2 0D 00 F5 1A 80 0D 02 02 05 00 9F BA 4F 82 A5 00 00 62 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 F5 1A 00 90 00 83 [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 03 02 [17:03:01]Write to MH i2c: E2 08 00 F6 1A 80 0D 03 02 00 00 00 00 8B [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0B 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0B 00 F6 1A 00 4B ED CD 0E DC E3 F9 1B 90 00 72 [17:03:01]RAPDU: 4B ED CD 0E DC E3 F9 1B 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_SignData done [17:03:01]FM_MakeSignedData done [17:03:01]CreateOFDProtocolMessage [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 11 00 00 [17:03:01]Write to MH i2c: E2 08 00 F7 1A 80 11 00 00 00 00 00 00 8B [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 F7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [17:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:03:01]wFMCommunicate OK [17:03:01]CreateOFDProtocolMessage done [17:03:01]OFDSenderStorePacket 111423 [17:03:01]StoreOFDPacket docnum=111423 [17:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 98 84 07 01 1D 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 AC 00 00 00 F4 03 04 00 4A 0F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B3 01 00 35 04 06 00 67 9F BA 4F 82 A5 4B ED CD 0E DC E3 F9 1B [17:03:01]CheckFolder [17:03:01]dirname=/storage/ofd_packets [17:03:01]CheckFolder done [17:03:01]ProducePacketName [17:03:01]name=ofd_packets/00111423 [17:03:01]NVStorageSaveData ofd_packets/00111423 [17:03:01]File name is /storage/ofd_packets/00111423 [17:03:01]Write 301 bytes [17:03:01]NVStorageSaveData done [17:03:01]OFDSenderStorePacket done [17:03:01]KKMCreateOFDPacket done [17:03:01]NVStorageSaveData kkm_last_timestamp [17:03:01]File name is /storage/kkm_last_timestamp [17:03:01]Write 4 bytes [17:03:01]NVStorageSaveData done [17:03:01]ExternCall_PrintAddStr [17:03:01]wPrintStart [17:03:01]Write to MH i2c: 01 00 00 F8 1A 12 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 07 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 07 00 F8 1A 00 00 00 00 00 FF 0F 27 [17:03:01]RasterBufferAndPrint [17:03:01]line Счет N : (1)320004 [17:03:01]line ИНН: 02508201610067 [17:03:01]line Контрольно-Кассовый Чек [17:03:01]line ПРОДАЖА [17:03:01]line ТРК (МРК, ГНК) : 11 [17:03:01]line Товар: 2710124130 [17:03:01]line Аи-92-К-5 [17:03:01]line 6.780 * 66.40 [17:03:01]line = 450.19 [17:03:01]line НДС 12% НСП 1% [17:03:01]line > о реализуемом товаре [17:03:01]line ОКРУГЛЕНИЕ: -0.19 [17:03:01]line ИТОГО: 450.00 [17:03:01]line Внесено: 450.00 [17:03:01]line СДАЧА: 0.00 [17:03:01]line НСП 1% : 3.98 [17:03:01]line НДС 12% : 47.81 [17:03:01]line Наличными: 450.00 [17:03:01]line Безнал.: 0.00 [17:03:01]line Место: АЗС № 65 "Партнер Нефть" [17:03:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:03:01]line СНО: Общий режим [17:03:01]line Чек 172 19.06.2024 17:03 [17:03:01]line Смена: 388 ФФД: 1.0 [17:03:01]line ЗНМ: 0300000198 [17:03:01]line РНМ: 0000000000092771 [17:03:01]line Версия ККМ: 001 [17:03:01]line ФМ: 0000000000875083 [17:03:01]line ФД: 111423 [17:03:01]line ФПД: 113935723233957 [17:03:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170306&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111423&fm=113935723233957&tin=02508201610067®Number=0000000000092771&sum=45000 [17:03:01]OFD Sender: Processing packet 111423 [packets to send 38, broken 37] [17:03:01]ProducePacketName [17:03:01]name=ofd_packets/00111423 [17:03:01]OFD Sender: To server: pG, [17:03:01]CommunicateWithHost lk.salyk.kg:30040 [17:03:01]ConnectInit lk.salyk.kg [17:03:01]written 0, free lines is 4095 [17:03:01]Connected sock=10 [17:03:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 98 84 07 01 1D 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 7C 1A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 DB 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 AC 00 00 00 F4 03 04 00 4A 0F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 3F B3 01 00 35 04 06 00 67 9F BA 4F 82 A5 4B ED CD 0E DC E3 F9 1B [17:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 13 DB 47 00 E5 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 35 30 38 33 10 04 04 00 3F B3 01 00 F4 03 04 00 AE A6 72 66 B6 04 01 00 00 EE 06 5D 92 4B 01 CB 5F [17:03:01]CommunicateWithHost err = 0 [17:03:01]CheckOFDResponse [17:03:01]1017 (14) - 77093643461234 [17:03:01]1041 (16) - 0000000000875083 [17:03:01]1040 (4) - 111423 [17:03:01]1012 (4) - 19.06.2024 09:36 [17:03:01]1206 (1) - 0 [17:03:01]OFD Sender: Remove packet 111423 [17:03:01]ProducePacketName [17:03:01]name=ofd_packets/00111423 [17:03:01]NVStorageDeleteData [17:03:01]Write to MH i2c: 01 00 00 23 1B 3E [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 07 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 07 00 23 1B 00 00 00 00 00 CD 0C 1E [17:03:01]RasterBufferAndPrint [17:03:01]line [17:03:01]line [17:03:01]line [17:03:01]line [17:03:01]line [17:03:01]written 0, free lines is 3283 [17:03:01]MH_Cut [17:03:01]Write to MH i2c: D1 01 00 2A 1B 01 17 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: D1 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: D1 01 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: D1 01 00 2A 1B 00 16 [17:03:01]Write to MH i2c: 01 00 00 2B 1B 46 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:02]OFD Sender: No OFD packet to send [17:03:02]*** Cut start [17:03:02]*** Partial cut [17:03:02]*** CUTSNS_PIN = 1 [17:03:02]*** CUTSNS_PIN = 0 [17:03:02]*** Brake cut motor [17:03:03]Read from MH i2c: 01 [17:03:03]MH_I2C_Read... [17:03:03]*** Stop cut motor [17:03:03]*** Cut end [17:03:03]Read from MH i2c: 01 07 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 2B 1B 00 00 00 00 00 FF 0F 5B [17:03:03]process_action close_receipt done [17:03:03]requested_data is exist [17:03:03]produce_requested_data [17:03:03]requested_item fm.sn is exist - process it [17:03:03]wFMCommunicate request_size=4 [17:03:03]MH_SAM_APDU [17:03:03]CAPDU: 80 11 00 00 [17:03:03]Write to MH i2c: E2 08 00 2C 1B 80 11 00 00 00 00 00 00 C1 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:03]Read from MH i2c: E2 17 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 17 00 2C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 13 [17:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:03:03]wFMCommunicate OK [17:03:03]requested_item fd.num is exist - process it [17:03:03]SAM_PROTO_GetFieldsCounters [17:03:03]wFMCommunicate request_size=4 [17:03:03]MH_SAM_APDU [17:03:03]CAPDU: 80 13 00 00 [17:03:03]Write to MH i2c: E2 08 00 2D 1B 80 13 00 00 00 00 00 00 C4 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 62 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 62 00 2D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [17:03:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 3F B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:03]wFMCommunicate OK [17:03:03]SAM_PROTO_GetFieldsCounters done [17:03:03]requested_item shift.num is exist - process it [17:03:03]requested_item shift.opened is exist - process it [17:03:03]req_shift_opened [17:03:03]FM_GetShiftState [17:03:03]SAM_PROTO_GetShiftState [17:03:03]wFMCommunicate request_size=4 [17:03:03]MH_SAM_APDU [17:03:03]CAPDU: 80 13 01 00 [17:03:03]Write to MH i2c: E2 08 00 2E 1B 80 13 01 00 00 00 00 00 C6 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 0E 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 0E 00 2E 1B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 10 [17:03:03]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:03:03]wFMCommunicate OK [17:03:03]SAM_PROTO_GetShiftState done [17:03:03]FM_GetShiftState done [17:03:03]req_shift_opened done [17:03:03]requested_item shift.open_date is exist - process it [17:03:03]req_shift_open_date [17:03:03]req_shift_open_date done [17:03:03]produce_requested_data done [17:03:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111423,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:03:03]process_action_free close_receipt [17:03:03]json_value_free [17:03:03]json_value_free done [17:03:03]process_json_proto returns [17:03:03]Send response to host [17:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111423,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:03:03]free response buf [17:03:03]execute_script done [17:03:03]execute_script returns [17:03:03]free content buf [17:03:03]Sock 7.Close socket [17:03:03]Sock 7.Thread stoped [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:19]accept exits with 9 [17:05:19]New connection [17:05:19]New thread 3067465060 created [17:05:19]Thread 3067321700 joined [17:05:19]Waiting for new connection... [17:05:19] Sock 9.Parse request [17:05:19]Sock 9.Check first char [17:05:19]Sock 9.First char is OK [17:05:19]request: POST /json_proto HTTP/1.0 [17:05:19]Method: POST [17:05:19]URL: /json_proto [17:05:19]Method is POST - this is cgi request [17:05:19]url: /json_proto [17:05:19]query_string will be loaded in cgi processing [17:05:19]execute_cgi json_proto POST (null) [17:05:19]execute_cgi path=json_proto method=POST [17:05:19]POST find Content-Length [17:05:19]Host: 172.17.59.68:8080 [17:05:19]Content-Length: 677 [17:05:19]Content-Type: application/json [17:05:19] [17:05:19]POST finish read [17:05:19]Found Content-Length = 677 [17:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:19]execute_script... [17:05: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)320005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:05:19]POST & json_proto [17:05:19]process_json_proto [17:05:19]json parsed OK: [17:05:19]protocol is kg_v1.0 [17:05:19]action value=close_receipt [17:05:19]process_action close_receipt [17:05:19]cmd_close_receipt [17:05:19]MH_GetDate [17:05:19]Write to MH i2c: F0 00 00 2F 1B 39 [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: F0 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: F0 09 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: F0 09 00 2F 1B 00 D6 0F 73 66 BC EC 60 65 6D [17:05:19]GetLastDocTimeStamp 1718816586 [17:05:19]current date 1718816726 [17:05:19]FM_GetShiftState [17:05:19]SAM_PROTO_GetShiftState [17:05:19]wFMCommunicate request_size=4 [17:05:19]MH_SAM_APDU [17:05:19]CAPDU: 80 13 01 00 [17:05:19]Write to MH i2c: E2 08 00 30 1B 80 13 01 00 00 00 00 00 C8 [17:05:19]Write i2c OK [17:05:19]MH_I2C_Read... [17:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:19]Read from MH i2c: E2 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 0E 00 [17:05:19]MH_I2C_Read... [17:05:19]Read from MH i2c: E2 0E 00 30 1B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 12 [17:05:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:05:19]wFMCommunicate OK [17:05:19]SAM_PROTO_GetShiftState done [17:05:19]FM_GetShiftState done [17:05:19]opened in 1718760753 [17:05:19]opened+sec_in_day 1718847153 [17:05:19]quantity*price = 50065 [17:05:19]sum+1 = 50067 [17:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 173 19.06.2024 17:05 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111424 ФПД: 220715961427963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170526&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111424&fm=220715961427963&tin=02508201610067®Number=0000000000092771&sum=50000 [17:05:21]StoreToDocumentArchive [17:05:21]shift 388 fd 111424 [17:05:21]save to /storage/0388/doc_00111424 [17:05:21]save last doc name /storage/0388/doc_00111424 to /storage/kkm_last_doc_name [17:05:21]save OK [17:05:21]Clear old archive folders... [17:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:21]tlvbuf is B6FD2880 [17:05:21]SAM_PROTO_ClearQueue [17:05:21]wFMCommunicate request_size=4 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 09 00 00 [17:05:21]Write to MH i2c: E2 08 00 3D 1B 80 09 00 00 00 00 00 00 CA [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 3D 1B 00 90 00 CC [17:05:21]RAPDU: 90 00 [17:05:21]wFMCommunicate OK [17:05:21]SAM_PROTO_ClearQueue done [17:05:21]KKMCreateOFDPacket [17:05:21]OFDProtocolAddRootSTLVToBuf [17:05:21]FM_MakeSignedData [17:05:21]FM_MakeSignedData [17:05:21]SAM_PROTO_SignData [17:05:21]wFMCommunicate request_size=4 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 0D 01 02 [17:05:21]Write to MH i2c: E2 08 00 3E 1B 80 0D 01 02 00 00 00 00 D2 [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 3E 1B 00 90 00 CD [17:05:21]RAPDU: 90 00 [17:05:21]wFMCommunicate OK [17:05:21]wFMCommunicate request_size=255 [17:05:21]MH_SAM_APDU [17:05: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D6 0F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B3 01 00 35 04 06 00 C8 [17:05:21]Write to MH i2c: E2 02 01 3F 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D6 0F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B3 01 00 35 04 06 00 C8 00 00 32 [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 3F 1B 00 90 00 CE [17:05:21]RAPDU: 90 00 [17:05:21]wFMCommunicate OK [17:05:21]wFMCommunicate request_size=10 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 0D 02 02 05 BD 70 7A 27 FB [17:05:21]Write to MH i2c: E2 0D 00 40 1B 80 0D 02 02 05 00 BD 70 7A 27 FB 00 00 A8 [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [17:05:21]RAPDU: 90 00 [17:05:21]wFMCommunicate OK [17:05:21]wFMCommunicate request_size=4 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 0D 03 02 [17:05:21]Write to MH i2c: E2 08 00 41 1B 80 0D 03 02 00 00 00 00 D7 [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 0B 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 0B 00 41 1B 00 83 36 CD 31 BC E3 DB AE 90 00 B7 [17:05:21]RAPDU: 83 36 CD 31 BC E3 DB AE 90 00 [17:05:21]wFMCommunicate OK [17:05:21]SAM_PROTO_SignData done [17:05:21]FM_MakeSignedData done [17:05:21]CreateOFDProtocolMessage [17:05:21]wFMCommunicate request_size=4 [17:05:21]MH_SAM_APDU [17:05:21]CAPDU: 80 11 00 00 [17:05:21]Write to MH i2c: E2 08 00 42 1B 80 11 00 00 00 00 00 00 D7 [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:21]Read from MH i2c: E2 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 17 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: E2 17 00 42 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 29 [17:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:05:21]wFMCommunicate OK [17:05:21]CreateOFDProtocolMessage done [17:05:21]OFDSenderStorePacket 111424 [17:05:21]StoreOFDPacket docnum=111424 [17:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 41 07 01 B5 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D6 0F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B3 01 00 35 04 06 00 C8 BD 70 7A 27 FB 83 36 CD 31 BC E3 DB AE [17:05:21]CheckFolder [17:05:21]dirname=/storage/ofd_packets [17:05:21]CheckFolder done [17:05:21]ProducePacketName [17:05:21]name=ofd_packets/00111424 [17:05:21]NVStorageSaveData ofd_packets/00111424 [17:05:21]File name is /storage/ofd_packets/00111424 [17:05:21]Write 301 bytes [17:05:21]NVStorageSaveData done [17:05:21]OFDSenderStorePacket done [17:05:21]KKMCreateOFDPacket done [17:05:21]NVStorageSaveData kkm_last_timestamp [17:05:21]File name is /storage/kkm_last_timestamp [17:05:21]Write 4 bytes [17:05:21]NVStorageSaveData done [17:05:21]ExternCall_PrintAddStr [17:05:21]wPrintStart [17:05:21]Write to MH i2c: 01 00 00 43 1B 5E [17:05:21]Write i2c OK [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 07 00 [17:05:21]MH_I2C_Read... [17:05:21]Read from MH i2c: 01 07 00 43 1B 00 00 00 00 00 FF 0F 73 [17:05:21]RasterBufferAndPrint [17:05:21]line Счет N : (1)320005 [17:05:21]line ИНН: 02508201610067 [17:05:21]line Контрольно-Кассовый Чек [17:05:21]line ПРОДАЖА [17:05:21]line ТРК (МРК, ГНК) : 11 [17:05:21]line Товар: 2710124130 [17:05:21]line Аи-92-К-5 [17:05:21]line 7.540 * 66.40 [17:05:21]line = 500.66 [17:05:21]line НДС 12% НСП 1% [17:05:21]line > о реализуемом товаре [17:05:21]line ОКРУГЛЕНИЕ: -0.66 [17:05:21]line ИТОГО: 500.00 [17:05:21]line Внесено: 500.00 [17:05:21]line СДАЧА: 0.00 [17:05:21]line НСП 1% : 4.43 [17:05:21]line НДС 12% : 53.17 [17:05:21]line Наличными: 500.00 [17:05:21]line Безнал.: 0.00 [17:05:21]line Место: АЗС № 65 "Партнер Нефть" [17:05:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:05:21]line СНО: Общий режим [17:05:21]line Чек 173 19.06.2024 17:05 [17:05:21]line Смена: 388 ФФД: 1.0 [17:05:21]line ЗНМ: 0300000198 [17:05:21]line РНМ: 0000000000092771 [17:05:21]line Версия ККМ: 001 [17:05:21]line ФМ: 0000000000875083 [17:05:21]line ФД: 111424 [17:05:21]line ФПД: 220715961427963 [17:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T170526&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111424&fm=220715961427963&tin=02508201610067®Number=0000000000092771&sum=50000 [17:05:21]OFD Sender: Processing packet 111424 [packets to send 38, broken 37] [17:05:21]ProducePacketName [17:05:21]name=ofd_packets/00111424 [17:05:21]OFD Sender: To server: pG, [17:05:21]CommunicateWithHost lk.salyk.kg:30040 [17:05:21]ConnectInit lk.salyk.kg [17:05:21]written 0, free lines is 4095 [17:05:22]Connected sock=10 [17:05:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 41 07 01 B5 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 D6 0F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B3 01 00 35 04 06 00 C8 BD 70 7A 27 FB 83 36 CD 31 BC E3 DB AE [17:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 64 B8 47 00 8B D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 40 B3 01 00 F4 03 04 00 3A A7 72 66 B6 04 01 00 00 FE EB D9 A4 49 BB 4D 3E [17:05:22]CommunicateWithHost err = 0 [17:05:22]CheckOFDResponse [17:05:22]1017 (14) - 77093643461234 [17:05:22]1041 (16) - 0000000000875083 [17:05:22]1040 (4) - 111424 [17:05:22]1012 (4) - 19.06.2024 09:39 [17:05:22]1206 (1) - 0 [17:05:22]OFD Sender: Remove packet 111424 [17:05:22]ProducePacketName [17:05:22]name=ofd_packets/00111424 [17:05:22]NVStorageDeleteData [17:05:22]Write to MH i2c: 01 00 00 6E 1B 89 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 07 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: 01 07 00 6E 1B 00 00 00 00 00 E0 0C 7C [17:05:22]RasterBufferAndPrint [17:05:22]line [17:05:22]line [17:05:22]line [17:05:22]line [17:05:22]line [17:05:22]written 0, free lines is 3302 [17:05:22]MH_Cut [17:05:22]Write to MH i2c: D1 01 00 75 1B 01 62 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: D1 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: D1 01 00 [17:05:22]MH_I2C_Read... [17:05:22]Read from MH i2c: D1 01 00 75 1B 00 61 [17:05:22]Write to MH i2c: 01 00 00 76 1B 91 [17:05:22]Write i2c OK [17:05:22]MH_I2C_Read... [17:05:22]OFD Sender: No OFD packet to send [17:05:23]*** Cut start [17:05:23]*** Partial cut [17:05:23]*** CUTSNS_PIN = 1 [17:05:23]*** CUTSNS_PIN = 0 [17:05:23]*** Brake cut motor [17:05:23]Read from MH i2c: 01 [17:05:23]MH_I2C_Read... [17:05:23]*** Stop cut motor [17:05:23]*** Cut end [17:05:23]Read from MH i2c: 01 07 00 [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: 01 07 00 76 1B 00 00 00 00 00 FF 0F A6 [17:05:23]process_action close_receipt done [17:05:23]requested_data is exist [17:05:23]produce_requested_data [17:05:23]requested_item fm.sn is exist - process it [17:05:23]wFMCommunicate request_size=4 [17:05:23]MH_SAM_APDU [17:05:23]CAPDU: 80 11 00 00 [17:05:23]Write to MH i2c: E2 08 00 77 1B 80 11 00 00 00 00 00 00 0C [17:05:23]Write i2c OK [17:05:23]MH_I2C_Read... [17:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:23]Read from MH i2c: E2 [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: E2 17 00 [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: E2 17 00 77 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5E [17:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:05:23]wFMCommunicate OK [17:05:23]requested_item fd.num is exist - process it [17:05:23]SAM_PROTO_GetFieldsCounters [17:05:23]wFMCommunicate request_size=4 [17:05:23]MH_SAM_APDU [17:05:23]CAPDU: 80 13 00 00 [17:05:23]Write to MH i2c: E2 08 00 78 1B 80 13 00 00 00 00 00 00 0F [17:05:23]Write i2c OK [17:05:23]MH_I2C_Read... [17:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:23]Read from MH i2c: E2 [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: E2 62 00 [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: E2 62 00 78 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [17:05: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 40 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:23]wFMCommunicate OK [17:05:23]SAM_PROTO_GetFieldsCounters done [17:05:23]requested_item shift.num is exist - process it [17:05:23]requested_item shift.opened is exist - process it [17:05:23]req_shift_opened [17:05:23]FM_GetShiftState [17:05:23]SAM_PROTO_GetShiftState [17:05:23]wFMCommunicate request_size=4 [17:05:23]MH_SAM_APDU [17:05:23]CAPDU: 80 13 01 00 [17:05:23]Write to MH i2c: E2 08 00 79 1B 80 13 01 00 00 00 00 00 11 [17:05:23]Write i2c OK [17:05:23]MH_I2C_Read... [17:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:23]Read from MH i2c: E2 [17:05:23]MH_I2C_Read... [17:05:23]Read from MH i2c: E2 0E 00 [17:05:24]MH_I2C_Read... [17:05:24]Read from MH i2c: E2 0E 00 79 1B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5B [17:05:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:05:24]wFMCommunicate OK [17:05:24]SAM_PROTO_GetShiftState done [17:05:24]FM_GetShiftState done [17:05:24]req_shift_opened done [17:05:24]requested_item shift.open_date is exist - process it [17:05:24]req_shift_open_date [17:05:24]req_shift_open_date done [17:05:24]produce_requested_data done [17:05:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111424,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:05:24]process_action_free close_receipt [17:05:24]json_value_free [17:05:24]json_value_free done [17:05:24]process_json_proto returns [17:05:24]Send response to host [17:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111424,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:05:24]free response buf [17:05:24]execute_script done [17:05:24]execute_script returns [17:05:24]free content buf [17:05:24]Sock 9.Close socket [17:05:24]Sock 9.Thread stoped [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:31]accept exits with 7 [17:10:31]New connection [17:10:31]New thread 3067321700 created [17:10:31]Thread 3067465060 joined [17:10:31]Waiting for new connection... [17:10:31] Sock 7.Parse request [17:10:31]Sock 7.Check first char [17:10:31]Sock 7.First char is OK [17:10:31]request: POST /json_proto HTTP/1.0 [17:10:31]Method: POST [17:10:31]URL: /json_proto [17:10:31]Method is POST - this is cgi request [17:10:31]url: /json_proto [17:10:31]query_string will be loaded in cgi processing [17:10:31]execute_cgi json_proto POST (null) [17:10:31]execute_cgi path=json_proto method=POST [17:10:31]POST find Content-Length [17:10:31]Host: 172.17.59.68:8080 [17:10:31]Content-Length: 679 [17:10:31]Content-Type: application/json [17:10:31] [17:10:31]POST finish read [17:10:31]Found Content-Length = 679 [17:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:31]execute_script... [17:10: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)320006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 34.300, "sum" : 2500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:31]POST & json_proto [17:10:31]process_json_proto [17:10:31]json parsed OK: [17:10:31]protocol is kg_v1.0 [17:10:31]action value=close_receipt [17:10:31]process_action close_receipt [17:10:31]cmd_close_receipt [17:10:31]MH_GetDate [17:10:31]Write to MH i2c: F0 00 00 7A 1B 84 [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: F0 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: F0 09 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: F0 09 00 7A 1B 00 0E 11 73 66 BC EC 60 65 F2 [17:10:31]GetLastDocTimeStamp 1718816726 [17:10:31]current date 1718817038 [17:10:31]FM_GetShiftState [17:10:31]SAM_PROTO_GetShiftState [17:10:31]wFMCommunicate request_size=4 [17:10:31]MH_SAM_APDU [17:10:31]CAPDU: 80 13 01 00 [17:10:31]Write to MH i2c: E2 08 00 7B 1B 80 13 01 00 00 00 00 00 13 [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:31]Read from MH i2c: E2 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 0E 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: E2 0E 00 7B 1B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5D [17:10:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:10:31]wFMCommunicate OK [17:10:31]SAM_PROTO_GetShiftState done [17:10:31]FM_GetShiftState done [17:10:31]opened in 1718760753 [17:10:31]opened+sec_in_day 1718847153 [17:10:31]quantity*price = 250047 [17:10:31]sum+1 = 250048 [17:10:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 174 19.06.2024 17:10 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111425 ФПД: 231256701980999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171038&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111425&fm=231256701980999&tin=02508201610067®Number=0000000000092771&sum=250000 [17:10:32]StoreToDocumentArchive [17:10:32]shift 388 fd 111425 [17:10:32]save to /storage/0388/doc_00111425 [17:10:32]save last doc name /storage/0388/doc_00111425 to /storage/kkm_last_doc_name [17:10:32]save OK [17:10:32]Clear old archive folders... [17:10:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:10:32]tlvbuf is 00EECEB0 [17:10:32]SAM_PROTO_ClearQueue [17:10:32]wFMCommunicate request_size=4 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 09 00 00 [17:10:32]Write to MH i2c: E2 08 00 88 1B 80 09 00 00 00 00 00 00 15 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 88 1B 00 90 00 17 [17:10:32]RAPDU: 90 00 [17:10:32]wFMCommunicate OK [17:10:32]SAM_PROTO_ClearQueue done [17:10:32]KKMCreateOFDPacket [17:10:32]OFDProtocolAddRootSTLVToBuf [17:10:32]FM_MakeSignedData [17:10:32]FM_MakeSignedData [17:10:32]SAM_PROTO_SignData [17:10:32]wFMCommunicate request_size=4 [17:10:32]MH_SAM_APDU [17:10:32]CAPDU: 80 0D 01 02 [17:10:32]Write to MH i2c: E2 08 00 89 1B 80 0D 01 02 00 00 00 00 1D [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:32]Read from MH i2c: E2 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 [17:10:32]MH_I2C_Read... [17:10:32]Read from MH i2c: E2 03 00 89 1B 00 90 00 18 [17:10:32]RAPDU: 90 00 [17:10:32]wFMCommunicate OK [17:10:32]wFMCommunicate request_size=255 [17:10:32]MH_SAM_APDU [17:10: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 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0E 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B3 01 00 35 04 06 00 D2 53 A5 92 [17:10:32]Write to MH i2c: E2 02 01 8A 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0E 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B3 01 00 35 04 06 00 D2 53 A5 92 00 00 33 [17:10:32]Write i2c OK [17:10:32]MH_I2C_Read... [17:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:33]Read from MH i2c: E2 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: E2 03 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: E2 03 00 8A 1B 00 90 00 19 [17:10:33]RAPDU: 90 00 [17:10:33]wFMCommunicate OK [17:10:33]wFMCommunicate request_size=7 [17:10:33]MH_SAM_APDU [17:10:33]CAPDU: 80 0D 02 02 02 D1 47 [17:10:33]Write to MH i2c: E2 0A 00 8B 1B 80 0D 02 02 02 00 D1 47 00 00 3C [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]OFD Sender: No OFD packet to send [17:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:33]Read from MH i2c: E2 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: E2 03 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: E2 03 00 8B 1B 00 90 00 1A [17:10:33]RAPDU: 90 00 [17:10:33]wFMCommunicate OK [17:10:33]wFMCommunicate request_size=4 [17:10:33]MH_SAM_APDU [17:10:33]CAPDU: 80 0D 03 02 [17:10:33]Write to MH i2c: E2 08 00 8C 1B 80 0D 03 02 00 00 00 00 22 [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:33]Read from MH i2c: E2 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: E2 0B 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: E2 0B 00 8C 1B 00 E4 94 54 38 D2 95 C0 4C 90 00 9A [17:10:33]RAPDU: E4 94 54 38 D2 95 C0 4C 90 00 [17:10:33]wFMCommunicate OK [17:10:33]SAM_PROTO_SignData done [17:10:33]FM_MakeSignedData done [17:10:33]CreateOFDProtocolMessage [17:10:33]wFMCommunicate request_size=4 [17:10:33]MH_SAM_APDU [17:10:33]CAPDU: 80 11 00 00 [17:10:33]Write to MH i2c: E2 08 00 8D 1B 80 11 00 00 00 00 00 00 22 [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:33]Read from MH i2c: E2 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: E2 17 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: E2 17 00 8D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 74 [17:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:10:33]wFMCommunicate OK [17:10:33]CreateOFDProtocolMessage done [17:10:33]OFDSenderStorePacket 111425 [17:10:33]StoreOFDPacket docnum=111425 [17:10:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7C 1D 04 01 CB B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0E 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B3 01 00 35 04 06 00 D2 53 A5 92 D1 47 E4 94 54 38 D2 95 C0 4C [17:10:33]CheckFolder [17:10:33]dirname=/storage/ofd_packets [17:10:33]CheckFolder done [17:10:33]ProducePacketName [17:10:33]name=ofd_packets/00111425 [17:10:33]NVStorageSaveData ofd_packets/00111425 [17:10:33]File name is /storage/ofd_packets/00111425 [17:10:33]Write 298 bytes [17:10:33]NVStorageSaveData done [17:10:33]OFDSenderStorePacket done [17:10:33]KKMCreateOFDPacket done [17:10:33]NVStorageSaveData kkm_last_timestamp [17:10:33]File name is /storage/kkm_last_timestamp [17:10:33]Write 4 bytes [17:10:33]NVStorageSaveData done [17:10:33]ExternCall_PrintAddStr [17:10:33]wPrintStart [17:10:33]Write to MH i2c: 01 00 00 8E 1B A9 [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 8E 1B 00 00 00 00 00 FF 0F BE [17:10:33]RasterBufferAndPrint [17:10:33]line Счет N : (1)320006 [17:10:33]line ИНН: 02508201610067 [17:10:33]line Контрольно-Кассовый Чек [17:10:33]line ПРОДАЖА [17:10:33]line ТРК (МРК, ГНК) : 22 [17:10:33]line Товар: 2710194210 [17:10:33]line ДТ-К-5 [17:10:33]line 34.300 * 72.90 [17:10:33]line = 2500.47 [17:10:33]line НДС 12% НСП 1% [17:10:33]line > о реализуемом товаре [17:10:33]line ОКРУГЛЕНИЕ: -0.47 [17:10:33]line ИТОГО: 2500.00 [17:10:33]line Внесено: 2500.00 [17:10:33]line СДАЧА: 0.00 [17:10:33]line НСП 1% : 22.13 [17:10:33]line НДС 12% : 265.54 [17:10:33]line Наличными: 2500.00 [17:10:33]line Безнал.: 0.00 [17:10:33]line Место: АЗС № 65 "Партнер Нефть" [17:10:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:10:33]line СНО: Общий режим [17:10:33]line Чек 174 19.06.2024 17:10 [17:10:33]line Смена: 388 ФФД: 1.0 [17:10:33]line ЗНМ: 0300000198 [17:10:33]line РНМ: 0000000000092771 [17:10:33]line Версия ККМ: 001 [17:10:33]line ФМ: 0000000000875083 [17:10:33]line ФД: 111425 [17:10:33]line ФПД: 231256701980999 [17:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171038&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111425&fm=231256701980999&tin=02508201610067®Number=0000000000092771&sum=250000 [17:10:33]OFD Sender: Processing packet 111425 [packets to send 38, broken 37] [17:10:33]ProducePacketName [17:10:33]name=ofd_packets/00111425 [17:10:33]OFD Sender: To server: pG, [17:10:33]CommunicateWithHost lk.salyk.kg:30040 [17:10:33]ConnectInit lk.salyk.kg [17:10:33]written 0, free lines is 4095 [17:10:33]Connected sock=10 [17:10:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 7C 1D 04 01 CB B0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 85 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 BF D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 0E 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B3 01 00 35 04 06 00 D2 53 A5 92 D1 47 E4 94 54 38 D2 95 C0 4C [17:10:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B4 3B 47 00 95 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 41 B3 01 00 F4 03 04 00 72 A8 72 66 B6 04 01 00 00 99 53 94 31 F9 3F 36 E8 [17:10:33]CommunicateWithHost err = 0 [17:10:33]CheckOFDResponse [17:10:33]1017 (14) - 77093643461234 [17:10:33]1041 (16) - 0000000000875083 [17:10:33]1040 (4) - 111425 [17:10:33]1012 (4) - 19.06.2024 09:44 [17:10:33]1206 (1) - 0 [17:10:33]OFD Sender: Remove packet 111425 [17:10:33]ProducePacketName [17:10:33]name=ofd_packets/00111425 [17:10:33]NVStorageDeleteData [17:10:33]Write to MH i2c: 01 00 00 B9 1B D4 [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 B9 1B 00 00 00 00 00 D9 0C C0 [17:10:33]RasterBufferAndPrint [17:10:33]line [17:10:33]line [17:10:33]line [17:10:33]line [17:10:33]line [17:10:33]written 0, free lines is 3296 [17:10:33]MH_Cut [17:10:33]Write to MH i2c: D1 01 00 C0 1B 01 AD [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: D1 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: D1 01 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: D1 01 00 C0 1B 00 AC [17:10:33]Write to MH i2c: 01 00 00 C1 1B DC [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:34]OFD Sender: No OFD packet to send [17:10:34]*** Cut start [17:10:34]*** Partial cut [17:10:34]*** CUTSNS_PIN = 1 [17:10:34]*** CUTSNS_PIN = 0 [17:10:34]*** Brake cut motor [17:10:35]Read from MH i2c: 01 [17:10:35]MH_I2C_Read... [17:10:35]*** Stop cut motor [17:10:35]*** Cut end [17:10:35]Read from MH i2c: 01 07 00 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: 01 07 00 C1 1B 00 00 00 00 00 FF 0F F1 [17:10:35]process_action close_receipt done [17:10:35]requested_data is exist [17:10:35]produce_requested_data [17:10:35]requested_item fm.sn is exist - process it [17:10:35]wFMCommunicate request_size=4 [17:10:35]MH_SAM_APDU [17:10:35]CAPDU: 80 11 00 00 [17:10:35]Write to MH i2c: E2 08 00 C2 1B 80 11 00 00 00 00 00 00 57 [17:10:35]Write i2c OK [17:10:35]MH_I2C_Read... [17:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:35]Read from MH i2c: E2 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: E2 17 00 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: E2 17 00 C2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A9 [17:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:10:35]wFMCommunicate OK [17:10:35]requested_item fd.num is exist - process it [17:10:35]SAM_PROTO_GetFieldsCounters [17:10:35]wFMCommunicate request_size=4 [17:10:35]MH_SAM_APDU [17:10:35]CAPDU: 80 13 00 00 [17:10:35]Write to MH i2c: E2 08 00 C3 1B 80 13 00 00 00 00 00 00 5A [17:10:35]Write i2c OK [17:10:35]MH_I2C_Read... [17:10:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:35]Read from MH i2c: E2 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: E2 62 00 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: E2 62 00 C3 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [17:10: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 41 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:35]wFMCommunicate OK [17:10:35]SAM_PROTO_GetFieldsCounters done [17:10:35]requested_item shift.num is exist - process it [17:10:35]requested_item shift.opened is exist - process it [17:10:35]req_shift_opened [17:10:35]FM_GetShiftState [17:10:35]SAM_PROTO_GetShiftState [17:10:35]wFMCommunicate request_size=4 [17:10:35]MH_SAM_APDU [17:10:35]CAPDU: 80 13 01 00 [17:10:35]Write to MH i2c: E2 08 00 C4 1B 80 13 01 00 00 00 00 00 5C [17:10:35]Write i2c OK [17:10:35]MH_I2C_Read... [17:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:35]Read from MH i2c: E2 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: E2 0E 00 [17:10:35]MH_I2C_Read... [17:10:35]Read from MH i2c: E2 0E 00 C4 1B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A6 [17:10:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:10:35]wFMCommunicate OK [17:10:35]SAM_PROTO_GetShiftState done [17:10:35]FM_GetShiftState done [17:10:35]req_shift_opened done [17:10:35]requested_item shift.open_date is exist - process it [17:10:35]req_shift_open_date [17:10:35]req_shift_open_date done [17:10:35]produce_requested_data done [17:10:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111425,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:10:35]process_action_free close_receipt [17:10:35]json_value_free [17:10:35]json_value_free done [17:10:35]process_json_proto returns [17:10:35]Send response to host [17:10:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111425,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:10:35]free response buf [17:10:35]execute_script done [17:10:35]execute_script returns [17:10:35]free content buf [17:10:35]Sock 7.Close socket [17:10:35]Sock 7.Thread stoped [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 9 [17:10:47]New connection [17:10:47]New thread 3067465060 created [17:10:47]Thread 3067321700 joined [17:10:47]Waiting for new connection... [17:10:47] Sock 9.Parse request [17:10:47]Sock 9.Check first char [17:10:47]Sock 9.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.59.68:8080 [17:10:47]Content-Length: 682 [17:10:47]Content-Type: application/json [17:10:47] [17:10:47]POST finish read [17:10:47]Found Content-Length = 682 [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)320007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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: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)320007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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: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 C5 1B CF [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 C5 1B 00 1E 11 73 66 BC EC 60 65 4D [17:10:47]GetLastDocTimeStamp 1718817038 [17:10:47]current date 1718817054 [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 C6 1B 80 13 01 00 00 00 00 00 5E [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 C6 1B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A8 [17:10:47]RAPDU: 09 00 01 31 35 72 66 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 1718760753 [17:10:47]opened+sec_in_day 1718847153 [17:10:47]quantity*price = 100064 [17:10:47]sum+1 = 100066 [17:10:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 175 19.06.2024 17:10 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111426 ФПД: 87437233132307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171054&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111426&fm=87437233132307&tin=02508201610067®Number=0000000000092771&sum=100000 [17:10:49]StoreToDocumentArchive [17:10:49]shift 388 fd 111426 [17:10:49]save to /storage/0388/doc_00111426 [17:10:49]save last doc name /storage/0388/doc_00111426 to /storage/kkm_last_doc_name [17:10:49]save OK [17:10:49]Clear old archive folders... [17:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:49]tlvbuf is 00EC2160 [17:10:49]SAM_PROTO_ClearQueue [17:10:49]wFMCommunicate request_size=4 [17:10:49]MH_SAM_APDU [17:10:49]CAPDU: 80 09 00 00 [17:10:49]Write to MH i2c: E2 08 00 D3 1B 80 09 00 00 00 00 00 00 60 [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]*** iso7816_exchange 80 09 00 00... 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 D3 1B 00 90 00 62 [17:10:49]RAPDU: 90 00 [17:10:49]wFMCommunicate OK [17:10:49]SAM_PROTO_ClearQueue done [17:10:49]KKMCreateOFDPacket [17:10:49]OFDProtocolAddRootSTLVToBuf [17:10:49]FM_MakeSignedData [17:10:49]FM_MakeSignedData [17:10:49]SAM_PROTO_SignData [17:10:49]wFMCommunicate request_size=4 [17:10:49]MH_SAM_APDU [17:10:49]CAPDU: 80 0D 01 02 [17:10:49]Write to MH i2c: E2 08 00 D4 1B 80 0D 01 02 00 00 00 00 68 [17:10:49]Write i2c OK [17:10:49]MH_I2C_Read... [17:10:49]*** iso7816_exchange 80 0D 01 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 D4 1B 00 90 00 63 [17:10:49]RAPDU: 90 00 [17:10:49]wFMCommunicate OK [17:10:49]wFMCommunicate request_size=255 [17:10:49]MH_SAM_APDU [17:10: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1E 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B3 01 00 35 04 06 00 4F [17:10:49]Write to MH i2c: E2 02 01 D5 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1E 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B3 01 00 35 04 06 00 4F 00 00 ED [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 D5 1B 00 90 00 64 [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 86 11 38 93 13 [17:10:49]Write to MH i2c: E2 0D 00 D6 1B 80 0D 02 02 05 00 86 11 38 93 13 00 00 EA [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 D6 1B 00 90 00 65 [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 D7 1B 80 0D 03 02 00 00 00 00 6D [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 D7 1B 00 A0 E0 2A 00 60 B9 6B 25 90 00 C1 [17:10:49]RAPDU: A0 E0 2A 00 60 B9 6B 25 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 D8 1B 80 11 00 00 00 00 00 00 6D [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 D8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [17:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:10:49]wFMCommunicate OK [17:10:49]CreateOFDProtocolMessage done [17:10:49]OFDSenderStorePacket 111426 [17:10:49]StoreOFDPacket docnum=111426 [17:10:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 14 10 07 01 41 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1E 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B3 01 00 35 04 06 00 4F 86 11 38 93 13 A0 E0 2A 00 60 B9 6B 25 [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/00111426 [17:10:49]NVStorageSaveData ofd_packets/00111426 [17:10:49]File name is /storage/ofd_packets/00111426 [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 D9 1B F4 [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 D9 1B 00 00 00 00 00 FF 0F 09 [17:10:49]RasterBufferAndPrint [17:10:49]line Счет N : (1)320007 [17:10:49]line ИНН: 02508201610067 [17:10:49]line Контрольно-Кассовый Чек [17:10:49]line ПРОДАЖА [17:10:49]line ТРК (МРК, ГНК) : 11 [17:10:49]line Товар: 2710124130 [17:10:49]line Аи-92-К-5 [17:10:49]line 15.070 * 66.40 [17:10:49]line = 1000.65 [17:10:49]line НДС 12% НСП 1% [17:10:49]line > о реализуемом товаре [17:10:49]line ОКРУГЛЕНИЕ: -0.65 [17:10:49]line ИТОГО: 1000.00 [17:10:49]line Внесено: 1000.00 [17:10:49]line СДАЧА: 0.00 [17:10:49]line НСП 1% : 8.85 [17:10:49]line НДС 12% : 106.26 [17:10:49]line Наличными: 1000.00 [17:10:49]line Безнал.: 0.00 [17:10:49]line Место: АЗС № 65 "Партнер Нефть" [17:10:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:10:49]line СНО: Общий режим [17:10:49]line Чек 175 19.06.2024 17:10 [17:10:49]line Смена: 388 ФФД: 1.0 [17:10:49]line ЗНМ: 0300000198 [17:10:49]line РНМ: 0000000000092771 [17:10:49]line Версия ККМ: 001 [17:10:49]line ФМ: 0000000000875083 [17:10:49]line ФД: 111426 [17:10:49]line ФПД: 87437233132307 [17:10:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171054&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111426&fm=87437233132307&tin=02508201610067®Number=0000000000092771&sum=100000 [17:10:49]OFD Sender: Processing packet 111426 [packets to send 38, broken 37] [17:10:49]ProducePacketName [17:10:49]name=ofd_packets/00111426 [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=10 [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 35 30 38 33 0F 01 00 00 14 10 07 01 41 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 1E 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B3 01 00 35 04 06 00 4F 86 11 38 93 13 A0 E0 2A 00 60 B9 6B 25 [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 35 30 38 33 4F 00 00 00 2C 93 47 00 0C AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 42 B3 01 00 F4 03 04 00 82 A8 72 66 B6 04 01 00 00 EF EC ED C3 9E 4D 9E 7A [17:10:50]CommunicateWithHost err = 0 [17:10:50]CheckOFDResponse [17:10:50]1017 (14) - 77093643461234 [17:10:50]1041 (16) - 0000000000875083 [17:10:50]1040 (4) - 111426 [17:10:50]1012 (4) - 19.06.2024 09:44 [17:10:50]1206 (1) - 0 [17:10:50]OFD Sender: Remove packet 111426 [17:10:50]ProducePacketName [17:10:50]name=ofd_packets/00111426 [17:10:50]NVStorageDeleteData [17:10:50]Write to MH i2c: 01 00 00 04 1C 20 [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 04 1C 00 00 00 00 00 D3 0C 06 [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 3290 [17:10:50]MH_Cut [17:10:50]Write to MH i2c: D1 01 00 0B 1C 01 F9 [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 0B 1C 00 F8 [17:10:50]Write to MH i2c: 01 00 00 0C 1C 28 [17:10:50]Write i2c OK [17:10:50]MH_I2C_Read... [17:10:50]OFD Sender: No OFD packet to send [17:10:51]*** Cut start [17:10:51]*** Partial cut [17:10:51]*** 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 0C 1C 00 00 00 00 00 FF 0F 3D [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 0D 1C 80 11 00 00 00 00 00 00 A3 [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 0D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [17:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 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 0E 1C 80 13 00 00 00 00 00 00 A6 [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 0E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 42 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 0F 1C 80 13 01 00 00 00 00 00 A8 [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 0F 1C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F2 [17:10:51]RAPDU: 09 00 01 31 35 72 66 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":"0000000000875083","fd.num":111426,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [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":"0000000000875083","fd.num":111426,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [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 9.Close socket [17:10:51]Sock 9.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:50]OFD Sender: No OFD packet to send [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:09]accept exits with 7 [17:12:09]New connection [17:12:09]New thread 3067321700 created [17:12:09]Thread 3067465060 joined [17:12:09]Waiting for new connection... [17:12:09] Sock 7.Parse request [17:12:09]Sock 7.Check first char [17:12:09]Sock 7.First char is OK [17:12:09]request: POST /json_proto HTTP/1.0 [17:12:09]Method: POST [17:12:09]URL: /json_proto [17:12:09]Method is POST - this is cgi request [17:12:09]url: /json_proto [17:12:09]query_string will be loaded in cgi processing [17:12:09]execute_cgi json_proto POST (null) [17:12:09]execute_cgi path=json_proto method=POST [17:12:09]POST find Content-Length [17:12:09]Host: 172.17.59.68:8080 [17:12:09]Content-Length: 677 [17:12:09]Content-Type: application/json [17:12:09] [17:12:09]POST finish read [17:12:09]Found Content-Length = 677 [17:12:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09]execute_script... [17:12: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)320008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09]POST & json_proto [17:12:09]process_json_proto [17:12:09]json parsed OK: [17:12:09]protocol is kg_v1.0 [17:12:09]action value=close_receipt [17:12:09]process_action close_receipt [17:12:09]cmd_close_receipt [17:12:09]MH_GetDate [17:12:09]Write to MH i2c: F0 00 00 10 1C 1B [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: F0 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: F0 09 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: F0 09 00 10 1C 00 70 11 73 66 BC EC 60 65 EB [17:12:09]GetLastDocTimeStamp 1718817054 [17:12:09]current date 1718817136 [17:12:09]FM_GetShiftState [17:12:09]SAM_PROTO_GetShiftState [17:12:09]wFMCommunicate request_size=4 [17:12:09]MH_SAM_APDU [17:12:09]CAPDU: 80 13 01 00 [17:12:09]Write to MH i2c: E2 08 00 11 1C 80 13 01 00 00 00 00 00 AA [17:12:09]Write i2c OK [17:12:09]MH_I2C_Read... [17:12:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:09]Read from MH i2c: E2 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0E 00 [17:12:09]MH_I2C_Read... [17:12:09]Read from MH i2c: E2 0E 00 11 1C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F4 [17:12:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:12:09]wFMCommunicate OK [17:12:09]SAM_PROTO_GetShiftState done [17:12:09]FM_GetShiftState done [17:12:09]opened in 1718760753 [17:12:09]opened+sec_in_day 1718847153 [17:12:09]quantity*price = 50065 [17:12:09]sum+1 = 50067 [17:12:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 176 19.06.2024 17:12 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111427 ФПД: 25267516908133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171216&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111427&fm=25267516908133&tin=02508201610067®Number=0000000000092771&sum=50000 [17:12:10]StoreToDocumentArchive [17:12:10]shift 388 fd 111427 [17:12:10]save to /storage/0388/doc_00111427 [17:12:10]save last doc name /storage/0388/doc_00111427 to /storage/kkm_last_doc_name [17:12:10]save OK [17:12:10]Clear old archive folders... [17:12:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:10]tlvbuf is B6FD2810 [17:12:10]SAM_PROTO_ClearQueue [17:12:10]wFMCommunicate request_size=4 [17:12:10]MH_SAM_APDU [17:12:10]CAPDU: 80 09 00 00 [17:12:10]Write to MH i2c: E2 08 00 1E 1C 80 09 00 00 00 00 00 00 AC [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:10]Read from MH i2c: E2 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 03 00 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [17:12:10]RAPDU: 90 00 [17:12:10]wFMCommunicate OK [17:12:10]SAM_PROTO_ClearQueue done [17:12:10]KKMCreateOFDPacket [17:12:10]OFDProtocolAddRootSTLVToBuf [17:12:10]FM_MakeSignedData [17:12:10]FM_MakeSignedData [17:12:10]SAM_PROTO_SignData [17:12:10]wFMCommunicate request_size=4 [17:12:10]MH_SAM_APDU [17:12:10]CAPDU: 80 0D 01 02 [17:12:10]Write to MH i2c: E2 08 00 1F 1C 80 0D 01 02 00 00 00 00 B4 [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:10]Read from MH i2c: E2 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 03 00 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [17:12:10]RAPDU: 90 00 [17:12:10]wFMCommunicate OK [17:12:10]wFMCommunicate request_size=255 [17:12:10]MH_SAM_APDU [17:12: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 70 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B3 01 00 35 04 06 00 16 [17:12:10]Write to MH i2c: E2 02 01 20 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 70 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B3 01 00 35 04 06 00 16 00 00 04 [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:10]OFD Sender: No OFD packet to send [17:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:10]Read from MH i2c: E2 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 03 00 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [17:12:10]RAPDU: 90 00 [17:12:10]wFMCommunicate OK [17:12:10]wFMCommunicate request_size=10 [17:12:10]MH_SAM_APDU [17:12:10]CAPDU: 80 0D 02 02 05 FB 0D 5E A2 65 [17:12:10]Write to MH i2c: E2 0D 00 21 1C 80 0D 02 02 05 00 FB 0D 5E A2 65 00 00 2E [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:10]Read from MH i2c: E2 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 03 00 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 03 00 21 1C 00 90 00 B1 [17:12:10]RAPDU: 90 00 [17:12:10]wFMCommunicate OK [17:12:10]wFMCommunicate request_size=4 [17:12:10]MH_SAM_APDU [17:12:10]CAPDU: 80 0D 03 02 [17:12:10]Write to MH i2c: E2 08 00 22 1C 80 0D 03 02 00 00 00 00 B9 [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:10]Read from MH i2c: E2 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 0B 00 [17:12:10]MH_I2C_Read... [17:12:10]Read from MH i2c: E2 0B 00 22 1C 00 6A 72 9C C6 84 01 39 02 90 00 B8 [17:12:10]RAPDU: 6A 72 9C C6 84 01 39 02 90 00 [17:12:10]wFMCommunicate OK [17:12:10]SAM_PROTO_SignData done [17:12:10]FM_MakeSignedData done [17:12:10]CreateOFDProtocolMessage [17:12:10]wFMCommunicate request_size=4 [17:12:10]MH_SAM_APDU [17:12:10]CAPDU: 80 11 00 00 [17:12:10]Write to MH i2c: E2 08 00 23 1C 80 11 00 00 00 00 00 00 B9 [17:12:10]Write i2c OK [17:12:10]MH_I2C_Read... [17:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:11]Read from MH i2c: E2 [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: E2 17 00 [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: E2 17 00 23 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [17:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:12:11]wFMCommunicate OK [17:12:11]CreateOFDProtocolMessage done [17:12:11]OFDSenderStorePacket 111427 [17:12:11]StoreOFDPacket docnum=111427 [17:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB 42 07 01 87 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 70 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B3 01 00 35 04 06 00 16 FB 0D 5E A2 65 6A 72 9C C6 84 01 39 02 [17:12:11]CheckFolder [17:12:11]dirname=/storage/ofd_packets [17:12:11]CheckFolder done [17:12:11]ProducePacketName [17:12:11]name=ofd_packets/00111427 [17:12:11]NVStorageSaveData ofd_packets/00111427 [17:12:11]File name is /storage/ofd_packets/00111427 [17:12:11]Write 301 bytes [17:12:11]NVStorageSaveData done [17:12:11]OFDSenderStorePacket done [17:12:11]KKMCreateOFDPacket done [17:12:11]NVStorageSaveData kkm_last_timestamp [17:12:11]File name is /storage/kkm_last_timestamp [17:12:11]Write 4 bytes [17:12:11]NVStorageSaveData done [17:12:11]ExternCall_PrintAddStr [17:12:11]wPrintStart [17:12:11]Write to MH i2c: 01 00 00 24 1C 40 [17:12:11]Write i2c OK [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: 01 [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: 01 07 00 [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: 01 07 00 24 1C 00 00 00 00 00 FF 0F 55 [17:12:11]RasterBufferAndPrint [17:12:11]line Счет N : (1)320008 [17:12:11]line ИНН: 02508201610067 [17:12:11]line Контрольно-Кассовый Чек [17:12:11]line ПРОДАЖА [17:12:11]line ТРК (МРК, ГНК) : 11 [17:12:11]line Товар: 2710124130 [17:12:11]line Аи-92-К-5 [17:12:11]line 7.540 * 66.40 [17:12:11]line = 500.66 [17:12:11]line НДС 12% НСП 1% [17:12:11]line > о реализуемом товаре [17:12:11]line ОКРУГЛЕНИЕ: -0.66 [17:12:11]line ИТОГО: 500.00 [17:12:11]line Внесено: 500.00 [17:12:11]line СДАЧА: 0.00 [17:12:11]line НСП 1% : 4.43 [17:12:11]line НДС 12% : 53.17 [17:12:11]line Наличными: 500.00 [17:12:11]line Безнал.: 0.00 [17:12:11]line Место: АЗС № 65 "Партнер Нефть" [17:12:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:12:11]line СНО: Общий режим [17:12:11]line Чек 176 19.06.2024 17:12 [17:12:11]line Смена: 388 ФФД: 1.0 [17:12:11]line ЗНМ: 0300000198 [17:12:11]line РНМ: 0000000000092771 [17:12:11]line Версия ККМ: 001 [17:12:11]line ФМ: 0000000000875083 [17:12:11]line ФД: 111427 [17:12:11]line ФПД: 25267516908133 [17:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171216&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111427&fm=25267516908133&tin=02508201610067®Number=0000000000092771&sum=50000 [17:12:11]OFD Sender: Processing packet 111427 [packets to send 38, broken 37] [17:12:11]ProducePacketName [17:12:11]name=ofd_packets/00111427 [17:12:11]OFD Sender: To server: pG, [17:12:11]CommunicateWithHost lk.salyk.kg:30040 [17:12:11]ConnectInit lk.salyk.kg [17:12:11]written 0, free lines is 4095 [17:12:11]Connected sock=10 [17:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CB 42 07 01 87 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 70 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 43 B3 01 00 35 04 06 00 16 FB 0D 5E A2 65 6A 72 9C C6 84 01 39 02 [17:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C3 BA 47 00 87 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 35 30 38 33 10 04 04 00 43 B3 01 00 F4 03 04 00 D4 A8 72 66 B6 04 01 00 00 D7 2F D6 55 E1 35 C0 B2 [17:12:11]CommunicateWithHost err = 0 [17:12:11]CheckOFDResponse [17:12:11]1017 (14) - 77093643461234 [17:12:11]1041 (16) - 0000000000875083 [17:12:11]1040 (4) - 111427 [17:12:11]1012 (4) - 19.06.2024 09:45 [17:12:11]1206 (1) - 0 [17:12:11]OFD Sender: Remove packet 111427 [17:12:11]ProducePacketName [17:12:11]name=ofd_packets/00111427 [17:12:11]NVStorageDeleteData [17:12:11]Write to MH i2c: 01 00 00 4F 1C 6B [17:12:11]Write i2c OK [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: 01 [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: 01 07 00 [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: 01 07 00 4F 1C 00 00 00 00 00 D1 0C 4F [17:12:11]RasterBufferAndPrint [17:12:11]line [17:12:11]line [17:12:11]line [17:12:11]line [17:12:11]line [17:12:11]written 0, free lines is 3288 [17:12:11]MH_Cut [17:12:11]Write to MH i2c: D1 01 00 56 1C 01 44 [17:12:11]Write i2c OK [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: D1 [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: D1 01 00 [17:12:11]MH_I2C_Read... [17:12:11]Read from MH i2c: D1 01 00 56 1C 00 43 [17:12:11]Write to MH i2c: 01 00 00 57 1C 73 [17:12:11]Write i2c OK [17:12:11]MH_I2C_Read... [17:12:12]OFD Sender: No OFD packet to send [17:12:12]*** Cut start [17:12:12]*** Partial cut [17:12:12]*** CUTSNS_PIN = 1 [17:12:12]*** CUTSNS_PIN = 0 [17:12:12]*** Brake cut motor [17:12:13]Read from MH i2c: 01 [17:12:13]MH_I2C_Read... [17:12:13]*** Stop cut motor [17:12:13]*** Cut end [17:12:13]Read from MH i2c: 01 07 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: 01 07 00 57 1C 00 00 00 00 00 FF 0F 88 [17:12:13]process_action close_receipt done [17:12:13]requested_data is exist [17:12:13]produce_requested_data [17:12:13]requested_item fm.sn is exist - process it [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 11 00 00 [17:12:13]Write to MH i2c: E2 08 00 58 1C 80 11 00 00 00 00 00 00 EE [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 17 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 17 00 58 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [17:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:12:13]wFMCommunicate OK [17:12:13]requested_item fd.num is exist - process it [17:12:13]SAM_PROTO_GetFieldsCounters [17:12:13]wFMCommunicate request_size=4 [17:12:13]MH_SAM_APDU [17:12:13]CAPDU: 80 13 00 00 [17:12:13]Write to MH i2c: E2 08 00 59 1C 80 13 00 00 00 00 00 00 F1 [17:12:13]Write i2c OK [17:12:13]MH_I2C_Read... [17:12:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:13]Read from MH i2c: E2 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 62 00 [17:12:13]MH_I2C_Read... [17:12:13]Read from MH i2c: E2 62 00 59 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [17:12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 43 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:13]wFMCommunicate OK [17:12:13]SAM_PROTO_GetFieldsCounters done [17:12:13]requested_item shift.num is exist - process it [17:12:13]requested_item shift.opened is exist - process it [17:12:13]req_shift_opened [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 5A 1C 80 13 01 00 00 00 00 00 F3 [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 5A 1C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3D [17:12:13]RAPDU: 09 00 01 31 35 72 66 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]req_shift_opened done [17:12:13]requested_item shift.open_date is exist - process it [17:12:13]req_shift_open_date [17:12:13]req_shift_open_date done [17:12:13]produce_requested_data done [17:12:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111427,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:12:13]process_action_free close_receipt [17:12:13]json_value_free [17:12:13]json_value_free done [17:12:13]process_json_proto returns [17:12:13]Send response to host [17:12:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111427,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:12:13]free response buf [17:12:13]execute_script done [17:12:13]execute_script returns [17:12:13]free content buf [17:12:13]Sock 7.Close socket [17:12:13]Sock 7.Thread stoped [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:50]accept exits with 9 [17:12:50]New connection [17:12:50]New thread 3067465060 created [17:12:50]Thread 3067321700 joined [17:12:50]Waiting for new connection... [17:12:50] Sock 9.Parse request [17:12:50]Sock 9.Check first char [17:12:50]Sock 9.First char is OK [17:12:50]request: POST /json_proto HTTP/1.0 [17:12:50]Method: POST [17:12:50]URL: /json_proto [17:12:50]Method is POST - this is cgi request [17:12:50]url: /json_proto [17:12:50]query_string will be loaded in cgi processing [17:12:50]execute_cgi json_proto POST (null) [17:12:50]execute_cgi path=json_proto method=POST [17:12:50]POST find Content-Length [17:12:50]Host: 172.17.59.68:8080 [17:12:50]Content-Length: 678 [17:12:50]Content-Type: application/json [17:12:50] [17:12:50]POST finish read [17:12:50]Found Content-Length = 678 [17:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:12:50]execute_script... [17:12: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)320009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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:12:50]POST & json_proto [17:12:50]process_json_proto [17:12:50]json parsed OK: [17:12:50]protocol is kg_v1.0 [17:12:50]action value=close_receipt [17:12:50]process_action close_receipt [17:12:50]cmd_close_receipt [17:12:50]MH_GetDate [17:12:50]Write to MH i2c: F0 00 00 5B 1C 66 [17:12:50]Write i2c OK [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: F0 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: F0 09 00 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: F0 09 00 5B 1C 00 99 11 73 66 BC EC 60 65 5F [17:12:50]GetLastDocTimeStamp 1718817136 [17:12:50]current date 1718817177 [17:12:50]FM_GetShiftState [17:12:50]SAM_PROTO_GetShiftState [17:12:50]wFMCommunicate request_size=4 [17:12:50]MH_SAM_APDU [17:12:50]CAPDU: 80 13 01 00 [17:12:50]Write to MH i2c: E2 08 00 5C 1C 80 13 01 00 00 00 00 00 F5 [17:12:50]Write i2c OK [17:12:50]MH_I2C_Read... [17:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:50]Read from MH i2c: E2 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: E2 0E 00 [17:12:50]MH_I2C_Read... [17:12:50]Read from MH i2c: E2 0E 00 5C 1C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3F [17:12:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:12:50]wFMCommunicate OK [17:12:50]SAM_PROTO_GetShiftState done [17:12:50]FM_GetShiftState done [17:12:50]opened in 1718760753 [17:12:50]opened+sec_in_day 1718847153 [17:12:50]quantity*price = 70052 [17:12:50]sum+1 = 70053 [17:12:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 177 19.06.2024 17:12 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111428 ФПД: 48456038756625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171257&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111428&fm=48456038756625&tin=02508201610067®Number=0000000000092771&sum=70000 [17:12:51]StoreToDocumentArchive [17:12:51]shift 388 fd 111428 [17:12:51]save to /storage/0388/doc_00111428 [17:12:51]save last doc name /storage/0388/doc_00111428 to /storage/kkm_last_doc_name [17:12:51]save OK [17:12:51]Clear old archive folders... [17:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:51]tlvbuf is B6F25860 [17:12:51]SAM_PROTO_ClearQueue [17:12:51]wFMCommunicate request_size=4 [17:12:51]MH_SAM_APDU [17:12:51]CAPDU: 80 09 00 00 [17:12:51]Write to MH i2c: E2 08 00 69 1C 80 09 00 00 00 00 00 00 F7 [17:12:51]Write i2c OK [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: E2 [17:12:51]MH_I2C_Read... [17:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:51]Read from MH i2c: E2 03 00 [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: E2 03 00 69 1C 00 90 00 F9 [17:12:51]RAPDU: 90 00 [17:12:51]wFMCommunicate OK [17:12:51]SAM_PROTO_ClearQueue done [17:12:51]KKMCreateOFDPacket [17:12:51]OFDProtocolAddRootSTLVToBuf [17:12:51]FM_MakeSignedData [17:12:51]FM_MakeSignedData [17:12:51]SAM_PROTO_SignData [17:12:51]wFMCommunicate request_size=4 [17:12:51]MH_SAM_APDU [17:12:51]CAPDU: 80 0D 01 02 [17:12:51]Write to MH i2c: E2 08 00 6A 1C 80 0D 01 02 00 00 00 00 FF [17:12:51]Write i2c OK [17:12:51]MH_I2C_Read... [17:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:51]Read from MH i2c: E2 [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: E2 03 00 [17:12:51]MH_I2C_Read... [17:12:51]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [17:12:51]RAPDU: 90 00 [17:12:51]wFMCommunicate OK [17:12:51]wFMCommunicate request_size=255 [17:12:51]MH_SAM_APDU [17:12: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 B1 00 00 00 F4 03 04 00 99 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B3 01 00 35 04 06 00 2C [17:12:51]Write to MH i2c: E2 02 01 6B 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 B1 00 00 00 F4 03 04 00 99 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B3 01 00 35 04 06 00 2C 00 00 A2 [17:12:51]Write i2c OK [17:12:51]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 6B 1C 00 90 00 FB [17:12:52]RAPDU: 90 00 [17:12:52]wFMCommunicate OK [17:12:52]wFMCommunicate request_size=10 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 0D 02 02 05 12 0C FA 31 11 [17:12:52]Write to MH i2c: E2 0D 00 6C 1C 80 0D 02 02 05 00 12 0C FA 31 11 00 00 66 [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:52]OFD Sender: No OFD packet to send [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 03 00 6C 1C 00 90 00 FC [17:12:52]RAPDU: 90 00 [17:12:52]wFMCommunicate OK [17:12:52]wFMCommunicate request_size=4 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 0D 03 02 [17:12:52]Write to MH i2c: E2 08 00 6D 1C 80 0D 03 02 00 00 00 00 04 [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 0B 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 0B 00 6D 1C 00 4F 6C F3 71 1E 34 BB 5C 90 00 8D [17:12:52]RAPDU: 4F 6C F3 71 1E 34 BB 5C 90 00 [17:12:52]wFMCommunicate OK [17:12:52]SAM_PROTO_SignData done [17:12:52]FM_MakeSignedData done [17:12:52]CreateOFDProtocolMessage [17:12:52]wFMCommunicate request_size=4 [17:12:52]MH_SAM_APDU [17:12:52]CAPDU: 80 11 00 00 [17:12:52]Write to MH i2c: E2 08 00 6E 1C 80 11 00 00 00 00 00 00 04 [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:52]Read from MH i2c: E2 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 17 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: E2 17 00 6E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [17:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:12:52]wFMCommunicate OK [17:12:52]CreateOFDProtocolMessage done [17:12:52]OFDSenderStorePacket 111428 [17:12:52]StoreOFDPacket docnum=111428 [17:12:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 8E 07 01 9F 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 B1 00 00 00 F4 03 04 00 99 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B3 01 00 35 04 06 00 2C 12 0C FA 31 11 4F 6C F3 71 1E 34 BB 5C [17:12:52]CheckFolder [17:12:52]dirname=/storage/ofd_packets [17:12:52]CheckFolder done [17:12:52]ProducePacketName [17:12:52]name=ofd_packets/00111428 [17:12:52]NVStorageSaveData ofd_packets/00111428 [17:12:52]File name is /storage/ofd_packets/00111428 [17:12:52]Write 301 bytes [17:12:52]NVStorageSaveData done [17:12:52]OFDSenderStorePacket done [17:12:52]KKMCreateOFDPacket done [17:12:52]NVStorageSaveData kkm_last_timestamp [17:12:52]File name is /storage/kkm_last_timestamp [17:12:52]Write 4 bytes [17:12:52]NVStorageSaveData done [17:12:52]ExternCall_PrintAddStr [17:12:52]wPrintStart [17:12:52]Write to MH i2c: 01 00 00 6F 1C 8B [17:12:52]Write i2c OK [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: 01 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: 01 07 00 [17:12:52]MH_I2C_Read... [17:12:52]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 FF 0F A0 [17:12:52]RasterBufferAndPrint [17:12:52]line Счет N : (1)320009 [17:12:52]line ИНН: 02508201610067 [17:12:52]line Контрольно-Кассовый Чек [17:12:52]line ПРОДАЖА [17:12:52]line ТРК (МРК, ГНК) : 11 [17:12:52]line Товар: 2710124130 [17:12:52]line Аи-92-К-5 [17:12:52]line 10.550 * 66.40 [17:12:52]line = 700.52 [17:12:52]line НДС 12% НСП 1% [17:12:52]line > о реализуемом товаре [17:12:52]line ОКРУГЛЕНИЕ: -0.52 [17:12:52]line ИТОГО: 700.00 [17:12:52]line Внесено: 700.00 [17:12:52]line СДАЧА: 0.00 [17:12:52]line НСП 1% : 6.20 [17:12:52]line НДС 12% : 74.39 [17:12:52]line Наличными: 700.00 [17:12:52]line Безнал.: 0.00 [17:12:52]line Место: АЗС № 65 "Партнер Нефть" [17:12:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:12:52]line СНО: Общий режим [17:12:52]line Чек 177 19.06.2024 17:12 [17:12:52]line Смена: 388 ФФД: 1.0 [17:12:52]line ЗНМ: 0300000198 [17:12:52]line РНМ: 0000000000092771 [17:12:52]line Версия ККМ: 001 [17:12:52]line ФМ: 0000000000875083 [17:12:52]line ФД: 111428 [17:12:52]line ФПД: 48456038756625 [17:12:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171257&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111428&fm=48456038756625&tin=02508201610067®Number=0000000000092771&sum=70000 [17:12:52]OFD Sender: Processing packet 111428 [packets to send 38, broken 37] [17:12:52]ProducePacketName [17:12:52]name=ofd_packets/00111428 [17:12:52]OFD Sender: To server: pG, [17:12:52]CommunicateWithHost lk.salyk.kg:30040 [17:12:52]ConnectInit lk.salyk.kg [17:12:52]written 0, free lines is 4095 [17:12:52]Connected sock=10 [17:12:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 8E 07 01 9F 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 B1 00 00 00 F4 03 04 00 99 11 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 44 B3 01 00 35 04 06 00 2C 12 0C FA 31 11 4F 6C F3 71 1E 34 BB 5C [17:12:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FA 29 47 00 77 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 35 30 38 33 10 04 04 00 44 B3 01 00 F4 03 04 00 FD A8 72 66 B6 04 01 00 00 5A 30 0F 92 10 D4 9B C8 [17:12:53]CommunicateWithHost err = 0 [17:12:53]CheckOFDResponse [17:12:53]1017 (14) - 77093643461234 [17:12:53]1041 (16) - 0000000000875083 [17:12:53]1040 (4) - 111428 [17:12:53]1012 (4) - 19.06.2024 09:46 [17:12:53]1206 (1) - 0 [17:12:53]OFD Sender: Remove packet 111428 [17:12:53]ProducePacketName [17:12:53]name=ofd_packets/00111428 [17:12:53]NVStorageDeleteData [17:12:53]Write to MH i2c: 01 00 00 9A 1C B6 [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 07 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: 01 07 00 9A 1C 00 00 00 00 00 CD 0C 96 [17:12:53]RasterBufferAndPrint [17:12:53]line [17:12:53]line [17:12:53]line [17:12:53]line [17:12:53]line [17:12:53]written 0, free lines is 3287 [17:12:53]MH_Cut [17:12:53]Write to MH i2c: D1 01 00 A1 1C 01 8F [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: D1 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: D1 01 00 [17:12:53]MH_I2C_Read... [17:12:53]Read from MH i2c: D1 01 00 A1 1C 00 8E [17:12:53]Write to MH i2c: 01 00 00 A2 1C BE [17:12:53]Write i2c OK [17:12:53]MH_I2C_Read... [17:12:53]OFD Sender: No OFD packet to send [17:12:53]*** Cut start [17:12:53]*** Partial cut [17:12:53]*** CUTSNS_PIN = 1 [17:12:53]*** CUTSNS_PIN = 0 [17:12:54]*** Brake cut motor [17:12:54]Read from MH i2c: 01 [17:12:54]MH_I2C_Read... [17:12:54]*** Stop cut motor [17:12:54]*** Cut end [17:12:54]Read from MH i2c: 01 07 00 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: 01 07 00 A2 1C 00 00 00 00 00 FF 0F D3 [17:12:54]process_action close_receipt done [17:12:54]requested_data is exist [17:12:54]produce_requested_data [17:12:54]requested_item fm.sn is exist - process it [17:12:54]wFMCommunicate request_size=4 [17:12:54]MH_SAM_APDU [17:12:54]CAPDU: 80 11 00 00 [17:12:54]Write to MH i2c: E2 08 00 A3 1C 80 11 00 00 00 00 00 00 39 [17:12:54]Write i2c OK [17:12:54]MH_I2C_Read... [17:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:54]Read from MH i2c: E2 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 17 00 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 17 00 A3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8B [17:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:12:54]wFMCommunicate OK [17:12:54]requested_item fd.num is exist - process it [17:12:54]SAM_PROTO_GetFieldsCounters [17:12:54]wFMCommunicate request_size=4 [17:12:54]MH_SAM_APDU [17:12:54]CAPDU: 80 13 00 00 [17:12:54]Write to MH i2c: E2 08 00 A4 1C 80 13 00 00 00 00 00 00 3C [17:12:54]Write i2c OK [17:12:54]MH_I2C_Read... [17:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:54]Read from MH i2c: E2 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 62 00 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 62 00 A4 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [17:12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 44 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:54]wFMCommunicate OK [17:12:54]SAM_PROTO_GetFieldsCounters done [17:12:54]requested_item shift.num is exist - process it [17:12:54]requested_item shift.opened is exist - process it [17:12:54]req_shift_opened [17:12:54]FM_GetShiftState [17:12:54]SAM_PROTO_GetShiftState [17:12:54]wFMCommunicate request_size=4 [17:12:54]MH_SAM_APDU [17:12:54]CAPDU: 80 13 01 00 [17:12:54]Write to MH i2c: E2 08 00 A5 1C 80 13 01 00 00 00 00 00 3E [17:12:54]Write i2c OK [17:12:54]MH_I2C_Read... [17:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:54]Read from MH i2c: E2 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 0E 00 [17:12:54]MH_I2C_Read... [17:12:54]Read from MH i2c: E2 0E 00 A5 1C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 88 [17:12:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:12:54]wFMCommunicate OK [17:12:54]SAM_PROTO_GetShiftState done [17:12:54]FM_GetShiftState done [17:12:54]req_shift_opened done [17:12:54]requested_item shift.open_date is exist - process it [17:12:54]req_shift_open_date [17:12:54]req_shift_open_date done [17:12:54]produce_requested_data done [17:12:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111428,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:12:54]process_action_free close_receipt [17:12:54]json_value_free [17:12:54]json_value_free done [17:12:54]process_json_proto returns [17:12:54]Send response to host [17:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111428,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:12:54]free response buf [17:12:54]execute_script done [17:12:54]execute_script returns [17:12:54]free content buf [17:12:54]Sock 9.Close socket [17:12:54]Sock 9.Thread stoped [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:39]accept exits with 7 [17:19:39]New connection [17:19:39]New thread 3067321700 created [17:19:39]Thread 3067465060 joined [17:19:39]Waiting for new connection... [17:19:39] Sock 7.Parse request [17:19:39]Sock 7.Check first char [17:19:39]Sock 7.First char is OK [17:19:39]request: POST /json_proto HTTP/1.0 [17:19:39]Method: POST [17:19:39]URL: /json_proto [17:19:39]Method is POST - this is cgi request [17:19:39]url: /json_proto [17:19:39]query_string will be loaded in cgi processing [17:19:39]execute_cgi json_proto POST (null) [17:19:39]execute_cgi path=json_proto method=POST [17:19:39]POST find Content-Length [17:19:39]Host: 172.17.59.68:8080 [17:19:39]Content-Length: 805 [17:19:39]Content-Type: application/json [17:19:39] [17:19:39]POST finish read [17:19:39]Found Content-Length = 805 [17:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.580, "sum" : 370.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 370.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:39]execute_script... [17:19: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)320010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.580, "sum" : 370.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 370.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:39]POST & json_proto [17:19:39]process_json_proto [17:19:39]json parsed OK: [17:19:39]protocol is kg_v1.0 [17:19:39]action value=close_receipt [17:19:39]process_action close_receipt [17:19:39]cmd_close_receipt [17:19:39]MH_GetDate [17:19:39]Write to MH i2c: F0 00 00 A6 1C B1 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 09 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: F0 09 00 A6 1C 00 32 13 73 66 BC EC 60 65 45 [17:19:39]GetLastDocTimeStamp 1718817177 [17:19:39]current date 1718817586 [17:19:39]FM_GetShiftState [17:19:39]SAM_PROTO_GetShiftState [17:19:39]wFMCommunicate request_size=4 [17:19:39]MH_SAM_APDU [17:19:39]CAPDU: 80 13 01 00 [17:19:39]Write to MH i2c: E2 08 00 A7 1C 80 13 01 00 00 00 00 00 40 [17:19:39]Write i2c OK [17:19:39]MH_I2C_Read... [17:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:39]Read from MH i2c: E2 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 [17:19:39]MH_I2C_Read... [17:19:39]Read from MH i2c: E2 0E 00 A7 1C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8A [17:19:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:19:39]wFMCommunicate OK [17:19:39]SAM_PROTO_GetShiftState done [17:19:39]FM_GetShiftState done [17:19:39]opened in 1718760753 [17:19:39]opened+sec_in_day 1718847153 [17:19:39]quantity*price = 37051 [17:19:39]sum+1 = 37052 [17:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 370.51 НСП 1% : 3.28 НДС 12% : 39.35 Наличными: 0.00 Безнал.: 370.51 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 178 19.06.2024 17:19 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111429 ФПД: 255556860491585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171946&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111429&fm=255556860491585&tin=02508201610067®Number=0000000000092771&sum=37051 [17:19:40]StoreToDocumentArchive [17:19:40]shift 388 fd 111429 [17:19:40]save to /storage/0388/doc_00111429 [17:19:40]save last doc name /storage/0388/doc_00111429 to /storage/kkm_last_doc_name [17:19:40]save OK [17:19:40]Clear old archive folders... [17:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:40]tlvbuf is 00EBF500 [17:19:40]SAM_PROTO_ClearQueue [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 09 00 00 [17:19:40]Write to MH i2c: E2 08 00 B4 1C 80 09 00 00 00 00 00 00 42 [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [17:19:40]RAPDU: 90 00 [17:19:40]wFMCommunicate OK [17:19:40]SAM_PROTO_ClearQueue done [17:19:40]KKMCreateOFDPacket [17:19:40]OFDProtocolAddRootSTLVToBuf [17:19:40]FM_MakeSignedData [17:19:40]FM_MakeSignedData [17:19:40]SAM_PROTO_SignData [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 0D 01 02 [17:19:40]Write to MH i2c: E2 08 00 B5 1C 80 0D 01 02 00 00 00 00 4A [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [17:19:40]RAPDU: 90 00 [17:19:40]wFMCommunicate OK [17:19:40]wFMCommunicate request_size=255 [17:19:40]MH_SAM_APDU [17:19: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 CC 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BB 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB 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 5F 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 32 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B3 01 00 35 04 06 00 E8 [17:19:40]Write to MH i2c: E2 02 01 B6 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BB 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB 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 5F 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 32 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B3 01 00 35 04 06 00 E8 00 00 0C [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 B6 1C 00 90 00 46 [17:19:40]RAPDU: 90 00 [17:19:40]wFMCommunicate OK [17:19:40]wFMCommunicate request_size=10 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 0D 02 02 05 6D 77 E3 B7 41 [17:19:40]Write to MH i2c: E2 0D 00 B7 1C 80 0D 02 02 05 00 6D 77 E3 B7 41 00 00 16 [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 03 00 B7 1C 00 90 00 47 [17:19:40]RAPDU: 90 00 [17:19:40]wFMCommunicate OK [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 0D 03 02 [17:19:40]Write to MH i2c: E2 08 00 B8 1C 80 0D 03 02 00 00 00 00 4F [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 0B 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 0B 00 B8 1C 00 29 87 CD 54 DE 43 3F DF 90 00 60 [17:19:40]RAPDU: 29 87 CD 54 DE 43 3F DF 90 00 [17:19:40]wFMCommunicate OK [17:19:40]SAM_PROTO_SignData done [17:19:40]FM_MakeSignedData done [17:19:40]CreateOFDProtocolMessage [17:19:40]wFMCommunicate request_size=4 [17:19:40]MH_SAM_APDU [17:19:40]CAPDU: 80 11 00 00 [17:19:40]Write to MH i2c: E2 08 00 B9 1C 80 11 00 00 00 00 00 00 4F [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:40]Read from MH i2c: E2 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 17 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: E2 17 00 B9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [17:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:19:40]wFMCommunicate OK [17:19:40]CreateOFDProtocolMessage done [17:19:40]OFDSenderStorePacket 111429 [17:19:40]StoreOFDPacket docnum=111429 [17:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 3F 07 01 8E 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BB 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB 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 5F 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 32 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B3 01 00 35 04 06 00 E8 6D 77 E3 B7 41 29 87 CD 54 DE 43 3F DF [17:19:40]CheckFolder [17:19:40]dirname=/storage/ofd_packets [17:19:40]CheckFolder done [17:19:40]ProducePacketName [17:19:40]name=ofd_packets/00111429 [17:19:40]NVStorageSaveData ofd_packets/00111429 [17:19:40]File name is /storage/ofd_packets/00111429 [17:19:40]Write 301 bytes [17:19:40]NVStorageSaveData done [17:19:40]OFDSenderStorePacket done [17:19:40]KKMCreateOFDPacket done [17:19:40]NVStorageSaveData kkm_last_timestamp [17:19:40]File name is /storage/kkm_last_timestamp [17:19:40]Write 4 bytes [17:19:40]NVStorageSaveData done [17:19:40]ExternCall_PrintAddStr [17:19:40]wPrintStart [17:19:40]Write to MH i2c: 01 00 00 BA 1C D6 [17:19:40]Write i2c OK [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: 01 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: 01 07 00 [17:19:40]MH_I2C_Read... [17:19:40]Read from MH i2c: 01 07 00 BA 1C 00 00 00 00 00 FF 0F EB [17:19:40]RasterBufferAndPrint [17:19:40]line Счет N : (1)320010 [17:19:40]line ИНН: 02508201610067 [17:19:40]line Контрольно-Кассовый Чек [17:19:40]line ПРОДАЖА [17:19:40]line ТРК (МРК, ГНК) : 11 [17:19:40]line Товар: 2710124130 [17:19:40]line Аи-92-К-5 [17:19:40]line 5.580 * 66.40 [17:19:40]line = 370.51 [17:19:40]line НДС 12% НСП 1% [17:19:40]line > о реализуемом товаре [17:19:40]line ИТОГО: 370.51 [17:19:40]line НСП 1% : 3.28 [17:19:40]line НДС 12% : 39.35 [17:19:40]line Наличными: 0.00 [17:19:40]line Безнал.: 370.51 [17:19:40]line Место: АЗС № 65 "Партнер Нефть" [17:19:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:19:40]line СНО: Общий режим [17:19:40]line Чек 178 19.06.2024 17:19 [17:19:40]line Смена: 388 ФФД: 1.0 [17:19:40]line ЗНМ: 0300000198 [17:19:40]line РНМ: 0000000000092771 [17:19:40]line Версия ККМ: 001 [17:19:40]line Платежная система: О! деньги [17:19:40]line ФМ: 0000000000875083 [17:19:40]line ФД: 111429 [17:19:40]line ФПД: 255556860491585 [17:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T171946&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111429&fm=255556860491585&tin=02508201610067®Number=0000000000092771&sum=37051 [17:19:41]written 0, free lines is 4095 [17:19:41]OFD Sender: Processing packet 111429 [packets to send 38, broken 37] [17:19:41]ProducePacketName [17:19:41]name=ofd_packets/00111429 [17:19:41]OFD Sender: To server: pG, [17:19:41]CommunicateWithHost lk.salyk.kg:30040 [17:19:41]ConnectInit lk.salyk.kg [17:19:41]Connected sock=10 [17:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 3F 07 01 8E 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 15 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BB 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BB 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 5F 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BB 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 32 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 45 B3 01 00 35 04 06 00 E8 6D 77 E3 B7 41 29 87 CD 54 DE 43 3F DF [17:19:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0C 8C 47 00 4D 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 35 30 38 33 10 04 04 00 45 B3 01 00 F4 03 04 00 95 AA 72 66 B6 04 01 00 00 CB CF 26 73 C7 5B B8 C9 [17:19:41]CommunicateWithHost err = 0 [17:19:41]CheckOFDResponse [17:19:41]1017 (14) - 77093643461234 [17:19:41]1041 (16) - 0000000000875083 [17:19:41]1040 (4) - 111429 [17:19:41]1012 (4) - 19.06.2024 09:53 [17:19:41]1206 (1) - 0 [17:19:41]OFD Sender: Remove packet 111429 [17:19:41]ProducePacketName [17:19:41]name=ofd_packets/00111429 [17:19:41]NVStorageDeleteData [17:19:41]Write to MH i2c: 01 00 00 E4 1C 00 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 07 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: 01 07 00 E4 1C 00 00 00 00 00 EA 0C FD [17:19:41]RasterBufferAndPrint [17:19:41]line [17:19:41]line [17:19:41]line [17:19:41]line [17:19:41]line [17:19:41]written 0, free lines is 3315 [17:19:41]MH_Cut [17:19:41]Write to MH i2c: D1 01 00 EB 1C 01 D9 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: D1 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: D1 01 00 [17:19:41]MH_I2C_Read... [17:19:41]Read from MH i2c: D1 01 00 EB 1C 00 D8 [17:19:41]Write to MH i2c: 01 00 00 EC 1C 08 [17:19:41]Write i2c OK [17:19:41]MH_I2C_Read... [17:19:41]OFD Sender: No OFD packet to send [17:19:42]*** Cut start [17:19:42]*** Partial cut [17:19:42]*** CUTSNS_PIN = 1 [17:19:42]*** CUTSNS_PIN = 0 [17:19:42]*** Brake cut motor [17:19:42]Read from MH i2c: 01 [17:19:42]MH_I2C_Read... [17:19:42]*** Stop cut motor [17:19:42]*** Cut end [17:19:42]Read from MH i2c: 01 07 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: 01 07 00 EC 1C 00 00 00 00 00 FF 0F 1D [17:19:42]process_action close_receipt done [17:19:42]requested_data is exist [17:19:42]produce_requested_data [17:19:42]requested_item fm.sn is exist - process it [17:19:42]wFMCommunicate request_size=4 [17:19:42]MH_SAM_APDU [17:19:42]CAPDU: 80 11 00 00 [17:19:42]Write to MH i2c: E2 08 00 ED 1C 80 11 00 00 00 00 00 00 83 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:42]Read from MH i2c: E2 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: E2 17 00 [17:19:42]MH_I2C_Read... [17:19:42]Read from MH i2c: E2 17 00 ED 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D5 [17:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:19:42]wFMCommunicate OK [17:19:42]requested_item fd.num is exist - process it [17:19:42]SAM_PROTO_GetFieldsCounters [17:19:42]wFMCommunicate request_size=4 [17:19:42]MH_SAM_APDU [17:19:42]CAPDU: 80 13 00 00 [17:19:42]Write to MH i2c: E2 08 00 EE 1C 80 13 00 00 00 00 00 00 86 [17:19:42]Write i2c OK [17:19:42]MH_I2C_Read... [17:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:43]Read from MH i2c: E2 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 62 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 62 00 EE 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B3 01 00 0E 04 04 00 84 01 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 3B [17:19: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 45 B3 01 00 0E 04 04 00 84 01 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 [17:19:43]wFMCommunicate OK [17:19:43]SAM_PROTO_GetFieldsCounters done [17:19:43]requested_item shift.num is exist - process it [17:19:43]requested_item shift.opened is exist - process it [17:19:43]req_shift_opened [17:19:43]FM_GetShiftState [17:19:43]SAM_PROTO_GetShiftState [17:19:43]wFMCommunicate request_size=4 [17:19:43]MH_SAM_APDU [17:19:43]CAPDU: 80 13 01 00 [17:19:43]Write to MH i2c: E2 08 00 EF 1C 80 13 01 00 00 00 00 00 88 [17:19:43]Write i2c OK [17:19:43]MH_I2C_Read... [17:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:43]Read from MH i2c: E2 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 0E 00 [17:19:43]MH_I2C_Read... [17:19:43]Read from MH i2c: E2 0E 00 EF 1C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D2 [17:19:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:19:43]wFMCommunicate OK [17:19:43]SAM_PROTO_GetShiftState done [17:19:43]FM_GetShiftState done [17:19:43]req_shift_opened done [17:19:43]requested_item shift.open_date is exist - process it [17:19:43]req_shift_open_date [17:19:43]req_shift_open_date done [17:19:43]produce_requested_data done [17:19:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111429,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:19:43]process_action_free close_receipt [17:19:43]json_value_free [17:19:43]json_value_free done [17:19:43]process_json_proto returns [17:19:43]Send response to host [17:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111429,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:19:43]free response buf [17:19:43]execute_script done [17:19:43]execute_script returns [17:19:43]free content buf [17:19:43]Sock 7.Close socket [17:19:43]Sock 7.Thread stoped [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:49]accept exits with 9 [17:20:49]New connection [17:20:49]New thread 3067465060 created [17:20:49]Thread 3067321700 joined [17:20:49]Waiting for new connection... [17:20:49] Sock 9.Parse request [17:20:49]Sock 9.Check first char [17:20:49]Sock 9.First char is OK [17:20:49]request: POST /json_proto HTTP/1.0 [17:20:49]Method: POST [17:20:49]URL: /json_proto [17:20:49]Method is POST - this is cgi request [17:20:49]url: /json_proto [17:20:49]query_string will be loaded in cgi processing [17:20:49]execute_cgi json_proto POST (null) [17:20:49]execute_cgi path=json_proto method=POST [17:20:49]POST find Content-Length [17:20:49]Host: 172.17.59.68:8080 [17:20:49]Content-Length: 682 [17:20:49]Content-Type: application/json [17:20:49] [17:20:49]POST finish read [17:20:49]Found Content-Length = 682 [17:20:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:49]execute_script... [17:20:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:20:49]POST & json_proto [17:20:49]process_json_proto [17:20:49]json parsed OK: [17:20:49]protocol is kg_v1.0 [17:20:49]action value=close_receipt [17:20:49]process_action close_receipt [17:20:49]cmd_close_receipt [17:20:49]MH_GetDate [17:20:49]Write to MH i2c: F0 00 00 F0 1C FB [17:20:49]Write i2c OK [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: F0 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: F0 09 00 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: F0 09 00 F0 1C 00 79 13 73 66 BC EC 60 65 D6 [17:20:49]GetLastDocTimeStamp 1718817586 [17:20:49]current date 1718817657 [17:20:49]FM_GetShiftState [17:20:49]SAM_PROTO_GetShiftState [17:20:49]wFMCommunicate request_size=4 [17:20:49]MH_SAM_APDU [17:20:49]CAPDU: 80 13 01 00 [17:20:49]Write to MH i2c: E2 08 00 F1 1C 80 13 01 00 00 00 00 00 8A [17:20:49]Write i2c OK [17:20:49]MH_I2C_Read... [17:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:49]Read from MH i2c: E2 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 0E 00 [17:20:49]MH_I2C_Read... [17:20:49]Read from MH i2c: E2 0E 00 F1 1C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D4 [17:20:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:20:49]wFMCommunicate OK [17:20:49]SAM_PROTO_GetShiftState done [17:20:49]FM_GetShiftState done [17:20:49]opened in 1718760753 [17:20:49]opened+sec_in_day 1718847153 [17:20:49]quantity*price = 100064 [17:20:49]sum+1 = 100066 [17:20:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 179 19.06.2024 17:20 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111430 ФПД: 210698452761448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172057&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111430&fm=210698452761448&tin=02508201610067®Number=0000000000092771&sum=100000 [17:20:51]StoreToDocumentArchive [17:20:51]shift 388 fd 111430 [17:20:51]save to /storage/0388/doc_00111430 [17:20:51]save last doc name /storage/0388/doc_00111430 to /storage/kkm_last_doc_name [17:20:51]save OK [17:20:51]Clear old archive folders... [17:20:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:20:51]tlvbuf is B6FD2980 [17:20:51]SAM_PROTO_ClearQueue [17:20:51]wFMCommunicate request_size=4 [17:20:51]MH_SAM_APDU [17:20:51]CAPDU: 80 09 00 00 [17:20:51]Write to MH i2c: E2 08 00 FE 1C 80 09 00 00 00 00 00 00 8C [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:51]Read from MH i2c: E2 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 03 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 03 00 FE 1C 00 90 00 8E [17:20:51]RAPDU: 90 00 [17:20:51]wFMCommunicate OK [17:20:51]SAM_PROTO_ClearQueue done [17:20:51]KKMCreateOFDPacket [17:20:51]OFDProtocolAddRootSTLVToBuf [17:20:51]FM_MakeSignedData [17:20:51]FM_MakeSignedData [17:20:51]SAM_PROTO_SignData [17:20:51]wFMCommunicate request_size=4 [17:20:51]MH_SAM_APDU [17:20:51]CAPDU: 80 0D 01 02 [17:20:51]Write to MH i2c: E2 08 00 FF 1C 80 0D 01 02 00 00 00 00 94 [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:51]Read from MH i2c: E2 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 03 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 03 00 FF 1C 00 90 00 8F [17:20:51]RAPDU: 90 00 [17:20:51]wFMCommunicate OK [17:20:51]wFMCommunicate request_size=255 [17:20:51]MH_SAM_APDU [17:20: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 79 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B3 01 00 35 04 06 00 BF [17:20:51]Write to MH i2c: E2 02 01 00 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 79 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B3 01 00 35 04 06 00 BF 00 00 EF [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:51]Read from MH i2c: E2 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 03 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 03 00 00 1D 00 90 00 91 [17:20:51]RAPDU: 90 00 [17:20:51]wFMCommunicate OK [17:20:51]wFMCommunicate request_size=10 [17:20:51]MH_SAM_APDU [17:20:51]CAPDU: 80 0D 02 02 05 A1 0E 6E 7B 68 [17:20:51]Write to MH i2c: E2 0D 00 01 1D 80 0D 02 02 05 00 A1 0E 6E 7B 68 00 00 A2 [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:51]Read from MH i2c: E2 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 03 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 03 00 01 1D 00 90 00 92 [17:20:51]RAPDU: 90 00 [17:20:51]wFMCommunicate OK [17:20:51]wFMCommunicate request_size=4 [17:20:51]MH_SAM_APDU [17:20:51]CAPDU: 80 0D 03 02 [17:20:51]Write to MH i2c: E2 08 00 02 1D 80 0D 03 02 00 00 00 00 9A [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:51]Read from MH i2c: E2 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 0B 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 0B 00 02 1D 00 CD 56 F0 9F F9 19 C7 DF 90 00 05 [17:20:51]RAPDU: CD 56 F0 9F F9 19 C7 DF 90 00 [17:20:51]wFMCommunicate OK [17:20:51]SAM_PROTO_SignData done [17:20:51]FM_MakeSignedData done [17:20:51]CreateOFDProtocolMessage [17:20:51]wFMCommunicate request_size=4 [17:20:51]MH_SAM_APDU [17:20:51]CAPDU: 80 11 00 00 [17:20:51]Write to MH i2c: E2 08 00 03 1D 80 11 00 00 00 00 00 00 9A [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:51]Read from MH i2c: E2 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 17 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: E2 17 00 03 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [17:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:20:51]wFMCommunicate OK [17:20:51]CreateOFDProtocolMessage done [17:20:51]OFDSenderStorePacket 111430 [17:20:51]StoreOFDPacket docnum=111430 [17:20:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 4D 07 01 20 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 79 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B3 01 00 35 04 06 00 BF A1 0E 6E 7B 68 CD 56 F0 9F F9 19 C7 DF [17:20:51]CheckFolder [17:20:51]dirname=/storage/ofd_packets [17:20:51]CheckFolder done [17:20:51]ProducePacketName [17:20:51]name=ofd_packets/00111430 [17:20:51]NVStorageSaveData ofd_packets/00111430 [17:20:51]File name is /storage/ofd_packets/00111430 [17:20:51]Write 301 bytes [17:20:51]NVStorageSaveData done [17:20:51]OFDSenderStorePacket done [17:20:51]KKMCreateOFDPacket done [17:20:51]NVStorageSaveData kkm_last_timestamp [17:20:51]File name is /storage/kkm_last_timestamp [17:20:51]Write 4 bytes [17:20:51]NVStorageSaveData done [17:20:51]ExternCall_PrintAddStr [17:20:51]wPrintStart [17:20:51]Write to MH i2c: 01 00 00 04 1D 21 [17:20:51]Write i2c OK [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: 01 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: 01 07 00 [17:20:51]MH_I2C_Read... [17:20:51]Read from MH i2c: 01 07 00 04 1D 00 00 00 00 00 FF 0F 36 [17:20:51]RasterBufferAndPrint [17:20:51]line Счет N : (1)320011 [17:20:51]line ИНН: 02508201610067 [17:20:51]line Контрольно-Кассовый Чек [17:20:51]line ПРОДАЖА [17:20:51]line ТРК (МРК, ГНК) : 11 [17:20:51]line Товар: 2710124130 [17:20:51]line Аи-92-К-5 [17:20:51]line 15.070 * 66.40 [17:20:51]line = 1000.65 [17:20:51]line НДС 12% НСП 1% [17:20:51]line > о реализуемом товаре [17:20:51]line ОКРУГЛЕНИЕ: -0.65 [17:20:51]line ИТОГО: 1000.00 [17:20:51]line Внесено: 1000.00 [17:20:51]line СДАЧА: 0.00 [17:20:51]line НСП 1% : 8.85 [17:20:51]line НДС 12% : 106.26 [17:20:51]line Наличными: 1000.00 [17:20:51]line Безнал.: 0.00 [17:20:51]line Место: АЗС № 65 "Партнер Нефть" [17:20:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:20:51]line СНО: Общий режим [17:20:51]line Чек 179 19.06.2024 17:20 [17:20:51]line Смена: 388 ФФД: 1.0 [17:20:51]line ЗНМ: 0300000198 [17:20:51]line РНМ: 0000000000092771 [17:20:51]line Версия ККМ: 001 [17:20:51]line ФМ: 0000000000875083 [17:20:51]line ФД: 111430 [17:20:51]line ФПД: 210698452761448 [17:20:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172057&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111430&fm=210698452761448&tin=02508201610067®Number=0000000000092771&sum=100000 [17:20:51]OFD Sender: Processing packet 111430 [packets to send 38, broken 37] [17:20:51]ProducePacketName [17:20:51]name=ofd_packets/00111430 [17:20:51]OFD Sender: To server: pG, [17:20:51]CommunicateWithHost lk.salyk.kg:30040 [17:20:51]ConnectInit lk.salyk.kg [17:20:51]written 0, free lines is 4095 [17:20:51]Connected sock=10 [17:20:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 37 4D 07 01 20 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 79 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 46 B3 01 00 35 04 06 00 BF A1 0E 6E 7B 68 CD 56 F0 9F F9 19 C7 DF [17:20:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E1 1A 47 00 E4 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 35 30 38 33 10 04 04 00 46 B3 01 00 F4 03 04 00 DC AA 72 66 B6 04 01 00 00 16 4A FA 0F DE 99 89 22 [17:20:52]CommunicateWithHost err = 0 [17:20:52]CheckOFDResponse [17:20:52]1017 (14) - 77093643461234 [17:20:52]1041 (16) - 0000000000875083 [17:20:52]1040 (4) - 111430 [17:20:52]1012 (4) - 19.06.2024 09:54 [17:20:52]1206 (1) - 0 [17:20:52]OFD Sender: Remove packet 111430 [17:20:52]ProducePacketName [17:20:52]name=ofd_packets/00111430 [17:20:52]NVStorageDeleteData [17:20:52]Write to MH i2c: 01 00 00 2F 1D 4C [17:20:52]Write i2c OK [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: 01 [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: 01 07 00 [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: 01 07 00 2F 1D 00 00 00 00 00 E4 0C 43 [17:20:52]RasterBufferAndPrint [17:20:52]line [17:20:52]line [17:20:52]line [17:20:52]line [17:20:52]line [17:20:52]written 0, free lines is 3306 [17:20:52]MH_Cut [17:20:52]Write to MH i2c: D1 01 00 36 1D 01 25 [17:20:52]Write i2c OK [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: D1 [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: D1 01 00 [17:20:52]MH_I2C_Read... [17:20:52]Read from MH i2c: D1 01 00 36 1D 00 24 [17:20:52]Write to MH i2c: 01 00 00 37 1D 54 [17:20:52]Write i2c OK [17:20:52]MH_I2C_Read... [17:20:52]OFD Sender: No OFD packet to send [17:20:53]*** Cut start [17:20:53]*** Partial cut [17:20:53]*** CUTSNS_PIN = 1 [17:20:53]*** CUTSNS_PIN = 0 [17:20:53]*** Brake cut motor [17:20:53]Read from MH i2c: 01 [17:20:53]MH_I2C_Read... [17:20:53]*** Stop cut motor [17:20:53]*** Cut end [17:20:53]Read from MH i2c: 01 07 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: 01 07 00 37 1D 00 00 00 00 00 FF 0F 69 [17:20:53]process_action close_receipt done [17:20:53]requested_data is exist [17:20:53]produce_requested_data [17:20:53]requested_item fm.sn is exist - process it [17:20:53]wFMCommunicate request_size=4 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 11 00 00 [17:20:53]Write to MH i2c: E2 08 00 38 1D 80 11 00 00 00 00 00 00 CF [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 17 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 17 00 38 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 21 [17:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:20:53]wFMCommunicate OK [17:20:53]requested_item fd.num is exist - process it [17:20:53]SAM_PROTO_GetFieldsCounters [17:20:53]wFMCommunicate request_size=4 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 13 00 00 [17:20:53]Write to MH i2c: E2 08 00 39 1D 80 13 00 00 00 00 00 00 D2 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 62 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 62 00 39 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B3 01 00 0E 04 04 00 84 01 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 8B [17:20:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 46 B3 01 00 0E 04 04 00 84 01 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 [17:20:53]wFMCommunicate OK [17:20:53]SAM_PROTO_GetFieldsCounters done [17:20:53]requested_item shift.num is exist - process it [17:20:53]requested_item shift.opened is exist - process it [17:20:53]req_shift_opened [17:20:53]FM_GetShiftState [17:20:53]SAM_PROTO_GetShiftState [17:20:53]wFMCommunicate request_size=4 [17:20:53]MH_SAM_APDU [17:20:53]CAPDU: 80 13 01 00 [17:20:53]Write to MH i2c: E2 08 00 3A 1D 80 13 01 00 00 00 00 00 D4 [17:20:53]Write i2c OK [17:20:53]MH_I2C_Read... [17:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:53]Read from MH i2c: E2 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 0E 00 [17:20:53]MH_I2C_Read... [17:20:53]Read from MH i2c: E2 0E 00 3A 1D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1E [17:20:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:20:53]wFMCommunicate OK [17:20:53]SAM_PROTO_GetShiftState done [17:20:53]FM_GetShiftState done [17:20:53]req_shift_opened done [17:20:53]requested_item shift.open_date is exist - process it [17:20:53]req_shift_open_date [17:20:53]req_shift_open_date done [17:20:53]produce_requested_data done [17:20:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111430,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:20:53]process_action_free close_receipt [17:20:53]json_value_free [17:20:53]json_value_free done [17:20:53]process_json_proto returns [17:20:53]Send response to host [17:20:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111430,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:20:53]free response buf [17:20:53]execute_script done [17:20:53]execute_script returns [17:20:53]free content buf [17:20:53]Sock 9.Close socket [17:20:53]Sock 9.Thread stoped [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]accept exits with 7 [17:21:47]New connection [17:21:47]New thread 3067321700 created [17:21:47]Thread 3067465060 joined [17:21:47]Waiting for new connection... [17:21:47] Sock 7.Parse request [17:21:47]Sock 7.Check first char [17:21:47]Sock 7.First char is OK [17:21:47]request: POST /json_proto HTTP/1.0 [17:21:47]Method: POST [17:21:47]URL: /json_proto [17:21:47]Method is POST - this is cgi request [17:21:47]url: /json_proto [17:21:47]query_string will be loaded in cgi processing [17:21:47]execute_cgi json_proto POST (null) [17:21:47]execute_cgi path=json_proto method=POST [17:21:47]POST find Content-Length [17:21:47]Host: 172.17.59.68:8080 [17:21:47]Content-Length: 677 [17:21:47]Content-Type: application/json [17:21:47] [17:21:47]POST finish read [17:21:47]Found Content-Length = 677 [17:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:47]execute_script... [17:21: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)320012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:47]POST & json_proto [17:21:47]process_json_proto [17:21:47]json parsed OK: [17:21:47]protocol is kg_v1.0 [17:21:47]action value=close_receipt [17:21:47]process_action close_receipt [17:21:47]cmd_close_receipt [17:21:47]MH_GetDate [17:21:47]Write to MH i2c: F0 00 00 3B 1D 47 [17:21:47]Write i2c OK [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: F0 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: F0 09 00 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: F0 09 00 3B 1D 00 B2 13 73 66 BC EC 60 65 5B [17:21:47]GetLastDocTimeStamp 1718817657 [17:21:47]current date 1718817714 [17:21:47]FM_GetShiftState [17:21:47]SAM_PROTO_GetShiftState [17:21:47]wFMCommunicate request_size=4 [17:21:47]MH_SAM_APDU [17:21:47]CAPDU: 80 13 01 00 [17:21:47]Write to MH i2c: E2 08 00 3C 1D 80 13 01 00 00 00 00 00 D6 [17:21:47]Write i2c OK [17:21:47]MH_I2C_Read... [17:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:47]Read from MH i2c: E2 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: E2 0E 00 [17:21:47]MH_I2C_Read... [17:21:47]Read from MH i2c: E2 0E 00 3C 1D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 20 [17:21:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:21:47]wFMCommunicate OK [17:21:47]SAM_PROTO_GetShiftState done [17:21:47]FM_GetShiftState done [17:21:47]opened in 1718760753 [17:21:47]opened+sec_in_day 1718847153 [17:21:47]quantity*price = 50065 [17:21:47]sum+1 = 50067 [17:21:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 180 19.06.2024 17:21 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111431 ФПД: 37115528603046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172154&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111431&fm=37115528603046&tin=02508201610067®Number=0000000000092771&sum=50000 [17:21:48]StoreToDocumentArchive [17:21:48]shift 388 fd 111431 [17:21:48]save to /storage/0388/doc_00111431 [17:21:48]save last doc name /storage/0388/doc_00111431 to /storage/kkm_last_doc_name [17:21:48]save OK [17:21:48]Clear old archive folders... [17:21:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:48]tlvbuf is 00EBC710 [17:21:48]SAM_PROTO_ClearQueue [17:21:48]wFMCommunicate request_size=4 [17:21:48]MH_SAM_APDU [17:21:48]CAPDU: 80 09 00 00 [17:21:48]Write to MH i2c: E2 08 00 49 1D 80 09 00 00 00 00 00 00 D8 [17:21:48]Write i2c OK [17:21:48]MH_I2C_Read... [17:21:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:48]Read from MH i2c: E2 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 03 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 03 00 49 1D 00 90 00 DA [17:21:48]RAPDU: 90 00 [17:21:48]wFMCommunicate OK [17:21:48]SAM_PROTO_ClearQueue done [17:21:48]KKMCreateOFDPacket [17:21:48]OFDProtocolAddRootSTLVToBuf [17:21:48]FM_MakeSignedData [17:21:48]FM_MakeSignedData [17:21:48]SAM_PROTO_SignData [17:21:48]wFMCommunicate request_size=4 [17:21:48]MH_SAM_APDU [17:21:48]CAPDU: 80 0D 01 02 [17:21:48]Write to MH i2c: E2 08 00 4A 1D 80 0D 01 02 00 00 00 00 E0 [17:21:48]Write i2c OK [17:21:48]MH_I2C_Read... [17:21:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:48]Read from MH i2c: E2 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 03 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 03 00 4A 1D 00 90 00 DB [17:21:48]RAPDU: 90 00 [17:21:48]wFMCommunicate OK [17:21:48]wFMCommunicate request_size=255 [17:21:48]MH_SAM_APDU [17:21:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B2 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B3 01 00 35 04 06 00 21 [17:21:48]Write to MH i2c: E2 02 01 4B 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B2 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B3 01 00 35 04 06 00 21 00 00 87 [17:21:48]Write i2c OK [17:21:48]MH_I2C_Read... [17:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:48]Read from MH i2c: E2 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 03 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 03 00 4B 1D 00 90 00 DC [17:21:48]RAPDU: 90 00 [17:21:48]wFMCommunicate OK [17:21:48]wFMCommunicate request_size=10 [17:21:48]MH_SAM_APDU [17:21:48]CAPDU: 80 0D 02 02 05 C1 A1 E5 E5 A6 [17:21:48]Write to MH i2c: E2 0D 00 4C 1D 80 0D 02 02 05 00 C1 A1 E5 E5 A6 00 00 BF [17:21:48]Write i2c OK [17:21:48]MH_I2C_Read... [17:21:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:48]Read from MH i2c: E2 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 03 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 03 00 4C 1D 00 90 00 DD [17:21:48]RAPDU: 90 00 [17:21:48]wFMCommunicate OK [17:21:48]wFMCommunicate request_size=4 [17:21:48]MH_SAM_APDU [17:21:48]CAPDU: 80 0D 03 02 [17:21:48]Write to MH i2c: E2 08 00 4D 1D 80 0D 03 02 00 00 00 00 E5 [17:21:48]Write i2c OK [17:21:48]MH_I2C_Read... [17:21:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:48]Read from MH i2c: E2 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 0B 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 0B 00 4D 1D 00 DB 13 FA F1 A8 E7 E8 D0 90 00 06 [17:21:48]RAPDU: DB 13 FA F1 A8 E7 E8 D0 90 00 [17:21:48]wFMCommunicate OK [17:21:48]SAM_PROTO_SignData done [17:21:48]FM_MakeSignedData done [17:21:48]CreateOFDProtocolMessage [17:21:48]wFMCommunicate request_size=4 [17:21:48]MH_SAM_APDU [17:21:48]CAPDU: 80 11 00 00 [17:21:48]Write to MH i2c: E2 08 00 4E 1D 80 11 00 00 00 00 00 00 E5 [17:21:48]Write i2c OK [17:21:48]MH_I2C_Read... [17:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:48]Read from MH i2c: E2 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 17 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: E2 17 00 4E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 37 [17:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:21:48]wFMCommunicate OK [17:21:48]CreateOFDProtocolMessage done [17:21:48]OFDSenderStorePacket 111431 [17:21:48]StoreOFDPacket docnum=111431 [17:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 77 A1 07 01 B0 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B2 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B3 01 00 35 04 06 00 21 C1 A1 E5 E5 A6 DB 13 FA F1 A8 E7 E8 D0 [17:21:48]CheckFolder [17:21:48]dirname=/storage/ofd_packets [17:21:48]CheckFolder done [17:21:48]ProducePacketName [17:21:48]name=ofd_packets/00111431 [17:21:48]NVStorageSaveData ofd_packets/00111431 [17:21:48]File name is /storage/ofd_packets/00111431 [17:21:48]Write 301 bytes [17:21:48]NVStorageSaveData done [17:21:48]OFDSenderStorePacket done [17:21:48]KKMCreateOFDPacket done [17:21:48]NVStorageSaveData kkm_last_timestamp [17:21:48]File name is /storage/kkm_last_timestamp [17:21:48]Write 4 bytes [17:21:48]NVStorageSaveData done [17:21:48]ExternCall_PrintAddStr [17:21:48]wPrintStart [17:21:48]Write to MH i2c: 01 00 00 4F 1D 6C [17:21:48]Write i2c OK [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: 01 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: 01 07 00 [17:21:48]MH_I2C_Read... [17:21:48]Read from MH i2c: 01 07 00 4F 1D 00 00 00 00 00 FF 0F 81 [17:21:48]RasterBufferAndPrint [17:21:48]line Счет N : (1)320012 [17:21:48]line ИНН: 02508201610067 [17:21:48]line Контрольно-Кассовый Чек [17:21:48]line ПРОДАЖА [17:21:48]line ТРК (МРК, ГНК) : 11 [17:21:48]line Товар: 2710124130 [17:21:48]line Аи-92-К-5 [17:21:48]line 7.540 * 66.40 [17:21:48]line = 500.66 [17:21:48]line НДС 12% НСП 1% [17:21:48]line > о реализуемом товаре [17:21:48]line ОКРУГЛЕНИЕ: -0.66 [17:21:48]line ИТОГО: 500.00 [17:21:48]line Внесено: 500.00 [17:21:48]line СДАЧА: 0.00 [17:21:48]line НСП 1% : 4.43 [17:21:48]line НДС 12% : 53.17 [17:21:48]line Наличными: 500.00 [17:21:48]line Безнал.: 0.00 [17:21:48]line Место: АЗС № 65 "Партнер Нефть" [17:21:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:21:48]line СНО: Общий режим [17:21:48]line Чек 180 19.06.2024 17:21 [17:21:48]line Смена: 388 ФФД: 1.0 [17:21:48]line ЗНМ: 0300000198 [17:21:48]line РНМ: 0000000000092771 [17:21:48]line Версия ККМ: 001 [17:21:48]line ФМ: 0000000000875083 [17:21:48]line ФД: 111431 [17:21:48]line ФПД: 37115528603046 [17:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172154&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111431&fm=37115528603046&tin=02508201610067®Number=0000000000092771&sum=50000 [17:21:49]OFD Sender: Processing packet 111431 [packets to send 38, broken 37] [17:21:49]ProducePacketName [17:21:49]name=ofd_packets/00111431 [17:21:49]OFD Sender: To server: pG, [17:21:49]CommunicateWithHost lk.salyk.kg:30040 [17:21:49]ConnectInit lk.salyk.kg [17:21:49]written 0, free lines is 4095 [17:21:49]Connected sock=10 [17:21:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 77 A1 07 01 B0 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 B2 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 47 B3 01 00 35 04 06 00 21 C1 A1 E5 E5 A6 DB 13 FA F1 A8 E7 E8 D0 [17:21:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B9 6C 47 00 0D 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 35 30 38 33 10 04 04 00 47 B3 01 00 F4 03 04 00 15 AB 72 66 B6 04 01 00 00 C0 0D 2D 4C AC 28 DC 35 [17:21:49]CommunicateWithHost err = 0 [17:21:49]CheckOFDResponse [17:21:49]1017 (14) - 77093643461234 [17:21:49]1041 (16) - 0000000000875083 [17:21:49]1040 (4) - 111431 [17:21:49]1012 (4) - 19.06.2024 09:55 [17:21:49]1206 (1) - 0 [17:21:49]OFD Sender: Remove packet 111431 [17:21:49]ProducePacketName [17:21:49]name=ofd_packets/00111431 [17:21:49]NVStorageDeleteData [17:21:49]Write to MH i2c: 01 00 00 7A 1D 97 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: 01 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: 01 07 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: 01 07 00 7A 1D 00 00 00 00 00 D4 0C 7E [17:21:49]RasterBufferAndPrint [17:21:49]line [17:21:49]line [17:21:49]line [17:21:49]line [17:21:49]line [17:21:49]written 0, free lines is 3292 [17:21:49]MH_Cut [17:21:49]Write to MH i2c: D1 01 00 81 1D 01 70 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: D1 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: D1 01 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: D1 01 00 81 1D 00 6F [17:21:49]Write to MH i2c: 01 00 00 82 1D 9F [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:50]OFD Sender: No OFD packet to send [17:21:50]*** Cut start [17:21:50]*** Partial cut [17:21:50]*** CUTSNS_PIN = 1 [17:21:50]*** CUTSNS_PIN = 0 [17:21:50]*** Brake cut motor [17:21:50]Read from MH i2c: 01 [17:21:50]MH_I2C_Read... [17:21:50]*** Stop cut motor [17:21:51]*** Cut end [17:21:51]Read from MH i2c: 01 07 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 82 1D 00 00 00 00 00 FF 0F B4 [17:21:51]process_action close_receipt done [17:21:51]requested_data is exist [17:21:51]produce_requested_data [17:21:51]requested_item fm.sn is exist - process it [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 11 00 00 [17:21:51]Write to MH i2c: E2 08 00 83 1D 80 11 00 00 00 00 00 00 1A [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 17 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 17 00 83 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [17:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:21:51]wFMCommunicate OK [17:21:51]requested_item fd.num is exist - process it [17:21:51]SAM_PROTO_GetFieldsCounters [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 13 00 00 [17:21:51]Write to MH i2c: E2 08 00 84 1D 80 13 00 00 00 00 00 00 1D [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 62 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 62 00 84 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B3 01 00 0E 04 04 00 84 01 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 DA [17:21: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 47 B3 01 00 0E 04 04 00 84 01 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 [17:21:51]wFMCommunicate OK [17:21:51]SAM_PROTO_GetFieldsCounters done [17:21:51]requested_item shift.num is exist - process it [17:21:51]requested_item shift.opened is exist - process it [17:21:51]req_shift_opened [17:21:51]FM_GetShiftState [17:21:51]SAM_PROTO_GetShiftState [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 13 01 00 [17:21:51]Write to MH i2c: E2 08 00 85 1D 80 13 01 00 00 00 00 00 1F [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 0E 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 0E 00 85 1D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 69 [17:21:51]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:21:51]wFMCommunicate OK [17:21:51]SAM_PROTO_GetShiftState done [17:21:51]FM_GetShiftState done [17:21:51]req_shift_opened done [17:21:51]requested_item shift.open_date is exist - process it [17:21:51]req_shift_open_date [17:21:51]req_shift_open_date done [17:21:51]produce_requested_data done [17:21:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111431,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:21:51]process_action_free close_receipt [17:21:51]json_value_free [17:21:51]json_value_free done [17:21:51]process_json_proto returns [17:21:51]Send response to host [17:21:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111431,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:21:51]free response buf [17:21:51]execute_script done [17:21:51]execute_script returns [17:21:51]free content buf [17:21:51]Sock 7.Close socket [17:21:51]Sock 7.Thread stoped [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:19]accept exits with 9 [17:22:19]New connection [17:22:19]New thread 3067465060 created [17:22:19]Thread 3067321700 joined [17:22:19]Waiting for new connection... [17:22:19] Sock 9.Parse request [17:22:19]Sock 9.Check first char [17:22:19]Sock 9.First char is OK [17:22:19]request: POST /json_proto HTTP/1.0 [17:22:19]Method: POST [17:22:19]URL: /json_proto [17:22:19]Method is POST - this is cgi request [17:22:19]url: /json_proto [17:22:19]query_string will be loaded in cgi processing [17:22:19]execute_cgi json_proto POST (null) [17:22:19]execute_cgi path=json_proto method=POST [17:22:19]POST find Content-Length [17:22:19]Host: 172.17.59.68:8080 [17:22:19]Content-Length: 639 [17:22:19]Content-Type: application/json [17:22:19] [17:22:19]POST finish read [17:22:19]Found Content-Length = 639 [17:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:19]execute_script... [17:22: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)320013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.000, "sum" : 332.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 332.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:19]POST & json_proto [17:22:19]process_json_proto [17:22:19]json parsed OK: [17:22:19]protocol is kg_v1.0 [17:22:19]action value=close_receipt [17:22:19]process_action close_receipt [17:22:19]cmd_close_receipt [17:22:19]MH_GetDate [17:22:19]Write to MH i2c: F0 00 00 86 1D 92 [17:22:19]Write i2c OK [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: F0 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: F0 09 00 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: F0 09 00 86 1D 00 D3 13 73 66 BC EC 60 65 C7 [17:22:19]GetLastDocTimeStamp 1718817714 [17:22:19]current date 1718817747 [17:22:19]FM_GetShiftState [17:22:19]SAM_PROTO_GetShiftState [17:22:19]wFMCommunicate request_size=4 [17:22:19]MH_SAM_APDU [17:22:19]CAPDU: 80 13 01 00 [17:22:19]Write to MH i2c: E2 08 00 87 1D 80 13 01 00 00 00 00 00 21 [17:22:19]Write i2c OK [17:22:19]MH_I2C_Read... [17:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:19]Read from MH i2c: E2 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 0E 00 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 0E 00 87 1D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6B [17:22:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:22:19]wFMCommunicate OK [17:22:19]SAM_PROTO_GetShiftState done [17:22:19]FM_GetShiftState done [17:22:19]opened in 1718760753 [17:22:19]opened+sec_in_day 1718847153 [17:22:19]quantity*price = 33200 [17:22:19]sum+1 = 33201 [17:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 332.00 НСП 1% : 2.94 НДС 12% : 35.26 Наличными: 332.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 181 19.06.2024 17:22 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111432 ФПД: 110893412899141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172227&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111432&fm=110893412899141&tin=02508201610067®Number=0000000000092771&sum=33200 [17:22:21]StoreToDocumentArchive [17:22:21]shift 388 fd 111432 [17:22:21]save to /storage/0388/doc_00111432 [17:22:21]save last doc name /storage/0388/doc_00111432 to /storage/kkm_last_doc_name [17:22:21]save OK [17:22:21]Clear old archive folders... [17:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:21]tlvbuf is 00ED6760 [17:22:21]SAM_PROTO_ClearQueue [17:22:21]wFMCommunicate request_size=4 [17:22:21]MH_SAM_APDU [17:22:21]CAPDU: 80 09 00 00 [17:22:21]Write to MH i2c: E2 08 00 94 1D 80 09 00 00 00 00 00 00 23 [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:21]Read from MH i2c: E2 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 03 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 03 00 94 1D 00 90 00 25 [17:22:21]RAPDU: 90 00 [17:22:21]wFMCommunicate OK [17:22:21]SAM_PROTO_ClearQueue done [17:22:21]KKMCreateOFDPacket [17:22:21]OFDProtocolAddRootSTLVToBuf [17:22:21]FM_MakeSignedData [17:22:21]FM_MakeSignedData [17:22:21]SAM_PROTO_SignData [17:22:21]wFMCommunicate request_size=4 [17:22:21]MH_SAM_APDU [17:22:21]CAPDU: 80 0D 01 02 [17:22:21]Write to MH i2c: E2 08 00 95 1D 80 0D 01 02 00 00 00 00 2B [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:21]Read from MH i2c: E2 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 03 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 03 00 95 1D 00 90 00 26 [17:22:21]RAPDU: 90 00 [17:22:21]wFMCommunicate OK [17:22:21]wFMCommunicate request_size=255 [17:22:21]MH_SAM_APDU [17:22:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 C6 0D 00 00 00 00 07 04 06 00 B0 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 B5 00 00 00 F4 03 04 00 D3 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B3 01 00 35 04 06 00 64 [17:22:21]Write to MH i2c: E2 02 01 96 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 C6 0D 00 00 00 00 07 04 06 00 B0 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 B5 00 00 00 F4 03 04 00 D3 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B3 01 00 35 04 06 00 64 00 00 BF [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:21]Read from MH i2c: E2 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 03 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 03 00 96 1D 00 90 00 27 [17:22:21]RAPDU: 90 00 [17:22:21]wFMCommunicate OK [17:22:21]wFMCommunicate request_size=10 [17:22:21]MH_SAM_APDU [17:22:21]CAPDU: 80 0D 02 02 05 DB 62 7B D9 45 [17:22:21]Write to MH i2c: E2 0D 00 97 1D 80 0D 02 02 05 00 DB 62 7B D9 45 00 00 0E [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:21]Read from MH i2c: E2 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 03 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 03 00 97 1D 00 90 00 28 [17:22:21]RAPDU: 90 00 [17:22:21]wFMCommunicate OK [17:22:21]wFMCommunicate request_size=4 [17:22:21]MH_SAM_APDU [17:22:21]CAPDU: 80 0D 03 02 [17:22:21]Write to MH i2c: E2 08 00 98 1D 80 0D 03 02 00 00 00 00 30 [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:21]Read from MH i2c: E2 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 0B 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 0B 00 98 1D 00 23 C5 FA 65 22 82 94 6B 90 00 1B [17:22:21]RAPDU: 23 C5 FA 65 22 82 94 6B 90 00 [17:22:21]wFMCommunicate OK [17:22:21]SAM_PROTO_SignData done [17:22:21]FM_MakeSignedData done [17:22:21]CreateOFDProtocolMessage [17:22:21]wFMCommunicate request_size=4 [17:22:21]MH_SAM_APDU [17:22:21]CAPDU: 80 11 00 00 [17:22:21]Write to MH i2c: E2 08 00 99 1D 80 11 00 00 00 00 00 00 30 [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:21]Read from MH i2c: E2 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 17 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: E2 17 00 99 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 82 [17:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:22:21]wFMCommunicate OK [17:22:21]CreateOFDProtocolMessage done [17:22:21]OFDSenderStorePacket 111432 [17:22:21]StoreOFDPacket docnum=111432 [17:22:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 6B 07 01 66 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 C6 0D 00 00 00 00 07 04 06 00 B0 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 B5 00 00 00 F4 03 04 00 D3 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B3 01 00 35 04 06 00 64 DB 62 7B D9 45 23 C5 FA 65 22 82 94 6B [17:22:21]CheckFolder [17:22:21]dirname=/storage/ofd_packets [17:22:21]CheckFolder done [17:22:21]ProducePacketName [17:22:21]name=ofd_packets/00111432 [17:22:21]NVStorageSaveData ofd_packets/00111432 [17:22:21]File name is /storage/ofd_packets/00111432 [17:22:21]Write 301 bytes [17:22:21]NVStorageSaveData done [17:22:21]OFDSenderStorePacket done [17:22:21]KKMCreateOFDPacket done [17:22:21]NVStorageSaveData kkm_last_timestamp [17:22:21]File name is /storage/kkm_last_timestamp [17:22:21]Write 4 bytes [17:22:21]NVStorageSaveData done [17:22:21]ExternCall_PrintAddStr [17:22:21]wPrintStart [17:22:21]Write to MH i2c: 01 00 00 9A 1D B7 [17:22:21]Write i2c OK [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: 01 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: 01 07 00 [17:22:21]MH_I2C_Read... [17:22:21]Read from MH i2c: 01 07 00 9A 1D 00 00 00 00 00 FF 0F CC [17:22:21]RasterBufferAndPrint [17:22:21]line Счет N : (1)320013 [17:22:21]line ИНН: 02508201610067 [17:22:21]line Контрольно-Кассовый Чек [17:22:21]line ПРОДАЖА [17:22:21]line ТРК (МРК, ГНК) : 11 [17:22:21]line Товар: 2710124130 [17:22:21]line Аи-92-К-5 [17:22:21]line 5.000 * 66.40 [17:22:21]line = 332.00 [17:22:21]line НДС 12% НСП 1% [17:22:21]line > о реализуемом товаре [17:22:21]line ИТОГО: 332.00 [17:22:21]line НСП 1% : 2.94 [17:22:21]line НДС 12% : 35.26 [17:22:21]line Наличными: 332.00 [17:22:21]line Безнал.: 0.00 [17:22:21]line Место: АЗС № 65 "Партнер Нефть" [17:22:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:22:21]line СНО: Общий режим [17:22:21]line Чек 181 19.06.2024 17:22 [17:22:21]line Смена: 388 ФФД: 1.0 [17:22:21]line ЗНМ: 0300000198 [17:22:21]line РНМ: 0000000000092771 [17:22:21]line Версия ККМ: 001 [17:22:21]line ФМ: 0000000000875083 [17:22:21]line ФД: 111432 [17:22:21]line ФПД: 110893412899141 [17:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172227&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111432&fm=110893412899141&tin=02508201610067®Number=0000000000092771&sum=33200 [17:22:21]OFD Sender: Processing packet 111432 [packets to send 38, broken 37] [17:22:21]ProducePacketName [17:22:21]name=ofd_packets/00111432 [17:22:21]OFD Sender: To server: pG, [17:22:21]CommunicateWithHost lk.salyk.kg:30040 [17:22:21]ConnectInit lk.salyk.kg [17:22:21]written 0, free lines is 4095 [17:22:22]Connected sock=10 [17:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 6B 07 01 66 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 B0 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 C6 0D 00 00 00 00 07 04 06 00 B0 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 B5 00 00 00 F4 03 04 00 D3 13 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 48 B3 01 00 35 04 06 00 64 DB 62 7B D9 45 23 C5 FA 65 22 82 94 6B [17:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D5 03 47 00 35 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 35 30 38 33 10 04 04 00 48 B3 01 00 F4 03 04 00 36 AB 72 66 B6 04 01 00 00 AA BE B6 F9 15 66 9B 09 [17:22:22]CommunicateWithHost err = 0 [17:22:22]CheckOFDResponse [17:22:22]1017 (14) - 77093643461234 [17:22:22]1041 (16) - 0000000000875083 [17:22:22]1040 (4) - 111432 [17:22:22]1012 (4) - 19.06.2024 09:56 [17:22:22]1206 (1) - 0 [17:22:22]OFD Sender: Remove packet 111432 [17:22:22]ProducePacketName [17:22:22]name=ofd_packets/00111432 [17:22:22]NVStorageDeleteData [17:22:22]Write to MH i2c: 01 00 00 C2 1D DF [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: 01 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: 01 07 00 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: 01 07 00 C2 1D 00 00 00 00 00 12 0D 05 [17:22:22]RasterBufferAndPrint [17:22:22]line [17:22:22]line [17:22:22]line [17:22:22]line [17:22:22]line [17:22:22]written 0, free lines is 3353 [17:22:22]MH_Cut [17:22:22]Write to MH i2c: D1 01 00 C9 1D 01 B8 [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: D1 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: D1 01 00 [17:22:22]MH_I2C_Read... [17:22:22]Read from MH i2c: D1 01 00 C9 1D 00 B7 [17:22:22]Write to MH i2c: 01 00 00 CA 1D E7 [17:22:22]Write i2c OK [17:22:22]MH_I2C_Read... [17:22:22]OFD Sender: No OFD packet to send [17:22:23]*** Cut start [17:22:23]*** Partial cut [17:22:23]*** CUTSNS_PIN = 1 [17:22:23]*** CUTSNS_PIN = 0 [17:22:23]*** Brake cut motor [17:22:23]Read from MH i2c: 01 [17:22:23]MH_I2C_Read... [17:22:23]*** Stop cut motor [17:22:23]*** Cut end [17:22:23]Read from MH i2c: 01 07 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: 01 07 00 CA 1D 00 00 00 00 00 FF 0F FC [17:22:23]process_action close_receipt done [17:22:23]requested_data is exist [17:22:23]produce_requested_data [17:22:23]requested_item fm.sn is exist - process it [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 11 00 00 [17:22:23]Write to MH i2c: E2 08 00 CB 1D 80 11 00 00 00 00 00 00 62 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 17 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 17 00 CB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [17:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:22:23]wFMCommunicate OK [17:22:23]requested_item fd.num is exist - process it [17:22:23]SAM_PROTO_GetFieldsCounters [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 13 00 00 [17:22:23]Write to MH i2c: E2 08 00 CC 1D 80 13 00 00 00 00 00 00 65 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 62 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 62 00 CC 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 48 B3 01 00 0E 04 04 00 84 01 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 26 [17:22: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 48 B3 01 00 0E 04 04 00 84 01 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 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_GetFieldsCounters done [17:22:23]requested_item shift.num is exist - process it [17:22:23]requested_item shift.opened is exist - process it [17:22:23]req_shift_opened [17:22:23]FM_GetShiftState [17:22:23]SAM_PROTO_GetShiftState [17:22:23]wFMCommunicate request_size=4 [17:22:23]MH_SAM_APDU [17:22:23]CAPDU: 80 13 01 00 [17:22:23]Write to MH i2c: E2 08 00 CD 1D 80 13 01 00 00 00 00 00 67 [17:22:23]Write i2c OK [17:22:23]MH_I2C_Read... [17:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:23]Read from MH i2c: E2 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0E 00 [17:22:23]MH_I2C_Read... [17:22:23]Read from MH i2c: E2 0E 00 CD 1D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B1 [17:22:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:22:23]wFMCommunicate OK [17:22:23]SAM_PROTO_GetShiftState done [17:22:23]FM_GetShiftState done [17:22:23]req_shift_opened done [17:22:23]requested_item shift.open_date is exist - process it [17:22:23]req_shift_open_date [17:22:23]req_shift_open_date done [17:22:23]produce_requested_data done [17:22:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111432,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:22:23]process_action_free close_receipt [17:22:23]json_value_free [17:22:23]json_value_free done [17:22:23]process_json_proto returns [17:22:23]Send response to host [17:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111432,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:22:23]free response buf [17:22:23]execute_script done [17:22:23]execute_script returns [17:22:23]free content buf [17:22:23]Sock 9.Close socket [17:22:23]Sock 9.Thread stoped [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]accept exits with 7 [17:24:02]New connection [17:24:02]New thread 3067321700 created [17:24:02]Thread 3067465060 joined [17:24:02]Waiting for new connection... [17:24:02] Sock 7.Parse request [17:24:02]Sock 7.Check first char [17:24:02]Sock 7.First char is OK [17:24:02]request: POST /json_proto HTTP/1.0 [17:24:02]Method: POST [17:24:02]URL: /json_proto [17:24:02]Method is POST - this is cgi request [17:24:02]url: /json_proto [17:24:02]query_string will be loaded in cgi processing [17:24:02]execute_cgi json_proto POST (null) [17:24:02]execute_cgi path=json_proto method=POST [17:24:02]POST find Content-Length [17:24:02]Host: 172.17.59.68:8080 [17:24:02]Content-Length: 677 [17:24:02]Content-Type: application/json [17:24:02] [17:24:02]POST finish read [17:24:02]Found Content-Length = 677 [17:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:24:02]execute_script... [17:24:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:24:02]POST & json_proto [17:24:02]process_json_proto [17:24:02]json parsed OK: [17:24:02]protocol is kg_v1.0 [17:24:02]action value=close_receipt [17:24:02]process_action close_receipt [17:24:02]cmd_close_receipt [17:24:02]MH_GetDate [17:24:02]Write to MH i2c: F0 00 00 CE 1D DA [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: F0 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: F0 09 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: F0 09 00 CE 1D 00 39 14 73 66 BC EC 60 65 76 [17:24:02]GetLastDocTimeStamp 1718817747 [17:24:02]current date 1718817849 [17:24:02]FM_GetShiftState [17:24:02]SAM_PROTO_GetShiftState [17:24:02]wFMCommunicate request_size=4 [17:24:02]MH_SAM_APDU [17:24:02]CAPDU: 80 13 01 00 [17:24:02]Write to MH i2c: E2 08 00 CF 1D 80 13 01 00 00 00 00 00 69 [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:02]Read from MH i2c: E2 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 0E 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 0E 00 CF 1D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B3 [17:24:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:24:02]wFMCommunicate OK [17:24:02]SAM_PROTO_GetShiftState done [17:24:02]FM_GetShiftState done [17:24:02]opened in 1718760753 [17:24:02]opened+sec_in_day 1718847153 [17:24:02]quantity*price = 60025 [17:24:02]sum+1 = 60027 [17:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 182 19.06.2024 17:24 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111433 ФПД: 99444280003913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172410&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111433&fm=99444280003913&tin=02508201610067®Number=0000000000092771&sum=60000 [17:24:03]StoreToDocumentArchive [17:24:03]shift 388 fd 111433 [17:24:03]save to /storage/0388/doc_00111433 [17:24:03]save last doc name /storage/0388/doc_00111433 to /storage/kkm_last_doc_name [17:24:03]save OK [17:24:03]Clear old archive folders... [17:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:03]tlvbuf is 00F50890 [17:24:03]SAM_PROTO_ClearQueue [17:24:03]wFMCommunicate request_size=4 [17:24:03]MH_SAM_APDU [17:24:03]CAPDU: 80 09 00 00 [17:24:03]Write to MH i2c: E2 08 00 DC 1D 80 09 00 00 00 00 00 00 6B [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:03]Read from MH i2c: E2 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 03 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 03 00 DC 1D 00 90 00 6D [17:24:03]RAPDU: 90 00 [17:24:03]wFMCommunicate OK [17:24:03]SAM_PROTO_ClearQueue done [17:24:03]KKMCreateOFDPacket [17:24:03]OFDProtocolAddRootSTLVToBuf [17:24:03]FM_MakeSignedData [17:24:03]FM_MakeSignedData [17:24:03]SAM_PROTO_SignData [17:24:03]wFMCommunicate request_size=4 [17:24:03]MH_SAM_APDU [17:24:03]CAPDU: 80 0D 01 02 [17:24:03]Write to MH i2c: E2 08 00 DD 1D 80 0D 01 02 00 00 00 00 73 [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:03]Read from MH i2c: E2 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 03 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 03 00 DD 1D 00 90 00 6E [17:24:03]RAPDU: 90 00 [17:24:03]wFMCommunicate OK [17:24:03]wFMCommunicate request_size=255 [17:24:03]MH_SAM_APDU [17:24: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 3A 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B3 01 00 35 04 06 00 5A [17:24:03]Write to MH i2c: E2 02 01 DE 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 3A 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B3 01 00 35 04 06 00 5A 00 00 BD [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 03 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 03 00 DE 1D 00 90 00 6F [17:24:04]RAPDU: 90 00 [17:24:04]wFMCommunicate OK [17:24:04]wFMCommunicate request_size=10 [17:24:04]MH_SAM_APDU [17:24:04]CAPDU: 80 0D 02 02 05 71 AC FC 0D 49 [17:24:04]Write to MH i2c: E2 0D 00 DF 1D 80 0D 02 02 05 00 71 AC FC 0D 49 00 00 EF [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 03 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 03 00 DF 1D 00 90 00 70 [17:24:04]RAPDU: 90 00 [17:24:04]wFMCommunicate OK [17:24:04]wFMCommunicate request_size=4 [17:24:04]MH_SAM_APDU [17:24:04]CAPDU: 80 0D 03 02 [17:24:04]Write to MH i2c: E2 08 00 E0 1D 80 0D 03 02 00 00 00 00 78 [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 0B 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 0B 00 E0 1D 00 A3 F0 3D 14 B5 FB 73 13 90 00 93 [17:24:04]RAPDU: A3 F0 3D 14 B5 FB 73 13 90 00 [17:24:04]wFMCommunicate OK [17:24:04]SAM_PROTO_SignData done [17:24:04]FM_MakeSignedData done [17:24:04]CreateOFDProtocolMessage [17:24:04]wFMCommunicate request_size=4 [17:24:04]MH_SAM_APDU [17:24:04]CAPDU: 80 11 00 00 [17:24:04]Write to MH i2c: E2 08 00 E1 1D 80 11 00 00 00 00 00 00 78 [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:04]Read from MH i2c: E2 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 17 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: E2 17 00 E1 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [17:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:24:04]wFMCommunicate OK [17:24:04]CreateOFDProtocolMessage done [17:24:04]OFDSenderStorePacket 111433 [17:24:04]StoreOFDPacket docnum=111433 [17:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BF 6C 07 01 44 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 3A 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B3 01 00 35 04 06 00 5A 71 AC FC 0D 49 A3 F0 3D 14 B5 FB 73 13 [17:24:04]CheckFolder [17:24:04]dirname=/storage/ofd_packets [17:24:04]CheckFolder done [17:24:04]ProducePacketName [17:24:04]name=ofd_packets/00111433 [17:24:04]NVStorageSaveData ofd_packets/00111433 [17:24:04]File name is /storage/ofd_packets/00111433 [17:24:04]Write 301 bytes [17:24:04]NVStorageSaveData done [17:24:04]OFDSenderStorePacket done [17:24:04]KKMCreateOFDPacket done [17:24:04]NVStorageSaveData kkm_last_timestamp [17:24:04]File name is /storage/kkm_last_timestamp [17:24:04]Write 4 bytes [17:24:04]NVStorageSaveData done [17:24:04]ExternCall_PrintAddStr [17:24:04]wPrintStart [17:24:04]Write to MH i2c: 01 00 00 E2 1D FF [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: 01 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: 01 07 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: 01 07 00 E2 1D 00 00 00 00 00 FF 0F 14 [17:24:04]RasterBufferAndPrint [17:24:04]line Счет N : (1)320014 [17:24:04]line ИНН: 02508201610067 [17:24:04]line Контрольно-Кассовый Чек [17:24:04]line ПРОДАЖА [17:24:04]line ТРК (МРК, ГНК) : 11 [17:24:04]line Товар: 2710124130 [17:24:04]line Аи-92-К-5 [17:24:04]line 9.040 * 66.40 [17:24:04]line = 600.26 [17:24:04]line НДС 12% НСП 1% [17:24:04]line > о реализуемом товаре [17:24:04]line ОКРУГЛЕНИЕ: -0.26 [17:24:04]line ИТОГО: 600.00 [17:24:04]line Внесено: 600.00 [17:24:04]line СДАЧА: 0.00 [17:24:04]line НСП 1% : 5.31 [17:24:04]line НДС 12% : 63.74 [17:24:04]line Наличными: 600.00 [17:24:04]line Безнал.: 0.00 [17:24:04]line Место: АЗС № 65 "Партнер Нефть" [17:24:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:24:04]line СНО: Общий режим [17:24:04]line Чек 182 19.06.2024 17:24 [17:24:04]line Смена: 388 ФФД: 1.0 [17:24:04]line ЗНМ: 0300000198 [17:24:04]line РНМ: 0000000000092771 [17:24:04]line Версия ККМ: 001 [17:24:04]line ФМ: 0000000000875083 [17:24:04]line ФД: 111433 [17:24:04]line ФПД: 99444280003913 [17:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172410&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111433&fm=99444280003913&tin=02508201610067®Number=0000000000092771&sum=60000 [17:24:04]OFD Sender: Processing packet 111433 [packets to send 38, broken 37] [17:24:04]ProducePacketName [17:24:04]name=ofd_packets/00111433 [17:24:04]OFD Sender: To server: pG, [17:24:04]CommunicateWithHost lk.salyk.kg:30040 [17:24:04]ConnectInit lk.salyk.kg [17:24:04]written 0, free lines is 4095 [17:24:04]Connected sock=10 [17:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BF 6C 07 01 44 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 3A 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 49 B3 01 00 35 04 06 00 5A 71 AC FC 0D 49 A3 F0 3D 14 B5 FB 73 13 [17:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 22 B3 47 00 77 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 35 30 38 33 10 04 04 00 49 B3 01 00 F4 03 04 00 9D AB 72 66 B6 04 01 00 00 84 5E 71 BE 54 C4 F2 9B [17:24:04]CommunicateWithHost err = 0 [17:24:04]CheckOFDResponse [17:24:04]1017 (14) - 77093643461234 [17:24:04]1041 (16) - 0000000000875083 [17:24:04]1040 (4) - 111433 [17:24:04]1012 (4) - 19.06.2024 09:57 [17:24:04]1206 (1) - 0 [17:24:04]OFD Sender: Remove packet 111433 [17:24:04]ProducePacketName [17:24:04]name=ofd_packets/00111433 [17:24:04]NVStorageDeleteData [17:24:05]Write to MH i2c: 01 00 00 0D 1E 2B [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: 01 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: 01 07 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: 01 07 00 0D 1E 00 00 00 00 00 EA 0C 28 [17:24:05]RasterBufferAndPrint [17:24:05]line [17:24:05]line [17:24:05]line [17:24:05]line [17:24:05]line [17:24:05]written 0, free lines is 3316 [17:24:05]MH_Cut [17:24:05]Write to MH i2c: D1 01 00 14 1E 01 04 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: D1 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: D1 01 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: D1 01 00 14 1E 00 03 [17:24:05]Write to MH i2c: 01 00 00 15 1E 33 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]OFD Sender: No OFD packet to send [17:24:05]*** Cut start [17:24:05]*** Partial cut [17:24:05]*** CUTSNS_PIN = 1 [17:24:05]*** CUTSNS_PIN = 0 [17:24:06]*** Brake cut motor [17:24:06]Read from MH i2c: 01 [17:24:06]MH_I2C_Read... [17:24:06]*** Stop cut motor [17:24:06]*** Cut end [17:24:06]Read from MH i2c: 01 07 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: 01 07 00 15 1E 00 00 00 00 00 FF 0F 48 [17:24:06]process_action close_receipt done [17:24:06]requested_data is exist [17:24:06]produce_requested_data [17:24:06]requested_item fm.sn is exist - process it [17:24:06]wFMCommunicate request_size=4 [17:24:06]MH_SAM_APDU [17:24:06]CAPDU: 80 11 00 00 [17:24:06]Write to MH i2c: E2 08 00 16 1E 80 11 00 00 00 00 00 00 AE [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:06]Read from MH i2c: E2 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: E2 17 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: E2 17 00 16 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 00 [17:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:24:06]wFMCommunicate OK [17:24:06]requested_item fd.num is exist - process it [17:24:06]SAM_PROTO_GetFieldsCounters [17:24:06]wFMCommunicate request_size=4 [17:24:06]MH_SAM_APDU [17:24:06]CAPDU: 80 13 00 00 [17:24:06]Write to MH i2c: E2 08 00 17 1E 80 13 00 00 00 00 00 00 B1 [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:06]Read from MH i2c: E2 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: E2 62 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: E2 62 00 17 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B3 01 00 0E 04 04 00 84 01 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 76 [17:24:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 49 B3 01 00 0E 04 04 00 84 01 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 [17:24:06]wFMCommunicate OK [17:24:06]SAM_PROTO_GetFieldsCounters done [17:24:06]requested_item shift.num is exist - process it [17:24:06]requested_item shift.opened is exist - process it [17:24:06]req_shift_opened [17:24:06]FM_GetShiftState [17:24:06]SAM_PROTO_GetShiftState [17:24:06]wFMCommunicate request_size=4 [17:24:06]MH_SAM_APDU [17:24:06]CAPDU: 80 13 01 00 [17:24:06]Write to MH i2c: E2 08 00 18 1E 80 13 01 00 00 00 00 00 B3 [17:24:06]Write i2c OK [17:24:06]MH_I2C_Read... [17:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:06]Read from MH i2c: E2 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: E2 0E 00 [17:24:06]MH_I2C_Read... [17:24:06]Read from MH i2c: E2 0E 00 18 1E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FD [17:24:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:24:06]wFMCommunicate OK [17:24:06]SAM_PROTO_GetShiftState done [17:24:06]FM_GetShiftState done [17:24:06]req_shift_opened done [17:24:06]requested_item shift.open_date is exist - process it [17:24:06]req_shift_open_date [17:24:06]req_shift_open_date done [17:24:06]produce_requested_data done [17:24:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111433,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:24:06]process_action_free close_receipt [17:24:06]json_value_free [17:24:06]json_value_free done [17:24:06]process_json_proto returns [17:24:06]Send response to host [17:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111433,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:24:06]free response buf [17:24:06]execute_script done [17:24:06]execute_script returns [17:24:06]free content buf [17:24:06]Sock 7.Close socket [17:24:06]Sock 7.Thread stoped [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:39]accept exits with 9 [17:24:39]New connection [17:24:39]New thread 3067465060 created [17:24:39]Thread 3067321700 joined [17:24:39]Waiting for new connection... [17:24:39] Sock 9.Parse request [17:24:39]Sock 9.Check first char [17:24:39]Sock 9.First char is OK [17:24:39]request: POST /json_proto HTTP/1.0 [17:24:39]Method: POST [17:24:39]URL: /json_proto [17:24:39]Method is POST - this is cgi request [17:24:39]url: /json_proto [17:24:39]query_string will be loaded in cgi processing [17:24:39]execute_cgi json_proto POST (null) [17:24:39]execute_cgi path=json_proto method=POST [17:24:39]POST find Content-Length [17:24:39]Host: 172.17.59.68:8080 [17:24:39]Content-Length: 677 [17:24:39]Content-Type: application/json [17:24:39] [17:24:39]POST finish read [17:24:39]Found Content-Length = 677 [17:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:39]execute_script... [17:24: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)320016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:39]POST & json_proto [17:24:39]process_json_proto [17:24:39]json parsed OK: [17:24:39]protocol is kg_v1.0 [17:24:39]action value=close_receipt [17:24:39]process_action close_receipt [17:24:39]cmd_close_receipt [17:24:39]MH_GetDate [17:24:39]Write to MH i2c: F0 00 00 19 1E 26 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: F0 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: F0 09 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: F0 09 00 19 1E 00 5F 14 73 66 BC EC 60 65 E8 [17:24:39]GetLastDocTimeStamp 1718817850 [17:24:39]current date 1718817887 [17:24:39]FM_GetShiftState [17:24:39]SAM_PROTO_GetShiftState [17:24:39]wFMCommunicate request_size=4 [17:24:39]MH_SAM_APDU [17:24:39]CAPDU: 80 13 01 00 [17:24:39]Write to MH i2c: E2 08 00 1A 1E 80 13 01 00 00 00 00 00 B5 [17:24:39]Write i2c OK [17:24:39]MH_I2C_Read... [17:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:39]Read from MH i2c: E2 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 0E 00 [17:24:39]MH_I2C_Read... [17:24:39]Read from MH i2c: E2 0E 00 1A 1E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FF [17:24:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:24:39]wFMCommunicate OK [17:24:39]SAM_PROTO_GetShiftState done [17:24:39]FM_GetShiftState done [17:24:39]opened in 1718760753 [17:24:39]opened+sec_in_day 1718847153 [17:24:39]quantity*price = 50065 [17:24:39]sum+1 = 50067 [17:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 183 19.06.2024 17:24 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111434 ФПД: 44203276591888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172447&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111434&fm=44203276591888&tin=02508201610067®Number=0000000000092771&sum=50000 [17:24:40]StoreToDocumentArchive [17:24:40]shift 388 fd 111434 [17:24:40]save to /storage/0388/doc_00111434 [17:24:40]save last doc name /storage/0388/doc_00111434 to /storage/kkm_last_doc_name [17:24:40]save OK [17:24:40]Clear old archive folders... [17:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:40]tlvbuf is B6FD5A00 [17:24:40]SAM_PROTO_ClearQueue [17:24:40]wFMCommunicate request_size=4 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 09 00 00 [17:24:40]Write to MH i2c: E2 08 00 27 1E 80 09 00 00 00 00 00 00 B7 [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:40]Read from MH i2c: E2 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 [17:24:40]MH_I2C_Read... [17:24:40]Read from MH i2c: E2 03 00 27 1E 00 90 00 B9 [17:24:40]RAPDU: 90 00 [17:24:40]wFMCommunicate OK [17:24:40]SAM_PROTO_ClearQueue done [17:24:40]KKMCreateOFDPacket [17:24:40]OFDProtocolAddRootSTLVToBuf [17:24:40]FM_MakeSignedData [17:24:40]FM_MakeSignedData [17:24:40]SAM_PROTO_SignData [17:24:40]wFMCommunicate request_size=4 [17:24:40]MH_SAM_APDU [17:24:40]CAPDU: 80 0D 01 02 [17:24:40]Write to MH i2c: E2 08 00 28 1E 80 0D 01 02 00 00 00 00 BF [17:24:40]Write i2c OK [17:24:40]MH_I2C_Read... [17:24:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:41]Read from MH i2c: E2 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 03 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 03 00 28 1E 00 90 00 BA [17:24:41]RAPDU: 90 00 [17:24:41]wFMCommunicate OK [17:24:41]wFMCommunicate request_size=255 [17:24:41]MH_SAM_APDU [17:24: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 5F 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B3 01 00 35 04 06 00 28 [17:24:41]Write to MH i2c: E2 02 01 29 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 5F 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B3 01 00 35 04 06 00 28 00 00 21 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:41]Read from MH i2c: E2 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 03 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 03 00 29 1E 00 90 00 BB [17:24:41]RAPDU: 90 00 [17:24:41]wFMCommunicate OK [17:24:41]wFMCommunicate request_size=10 [17:24:41]MH_SAM_APDU [17:24:41]CAPDU: 80 0D 02 02 05 33 E0 99 63 10 [17:24:41]Write to MH i2c: E2 0D 00 2A 1E 80 0D 02 02 05 00 33 E0 99 63 10 00 00 EB [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:41]Read from MH i2c: E2 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 03 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 03 00 2A 1E 00 90 00 BC [17:24:41]RAPDU: 90 00 [17:24:41]wFMCommunicate OK [17:24:41]wFMCommunicate request_size=4 [17:24:41]MH_SAM_APDU [17:24:41]CAPDU: 80 0D 03 02 [17:24:41]Write to MH i2c: E2 08 00 2B 1E 80 0D 03 02 00 00 00 00 C4 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:41]Read from MH i2c: E2 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 0B 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 0B 00 2B 1E 00 D6 9A C9 30 1C 4D E1 98 90 00 10 [17:24:41]RAPDU: D6 9A C9 30 1C 4D E1 98 90 00 [17:24:41]wFMCommunicate OK [17:24:41]SAM_PROTO_SignData done [17:24:41]FM_MakeSignedData done [17:24:41]CreateOFDProtocolMessage [17:24:41]wFMCommunicate request_size=4 [17:24:41]MH_SAM_APDU [17:24:41]CAPDU: 80 11 00 00 [17:24:41]Write to MH i2c: E2 08 00 2C 1E 80 11 00 00 00 00 00 00 C4 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:41]Read from MH i2c: E2 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 17 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: E2 17 00 2C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 16 [17:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:24:41]wFMCommunicate OK [17:24:41]CreateOFDProtocolMessage done [17:24:41]OFDSenderStorePacket 111434 [17:24:41]StoreOFDPacket docnum=111434 [17:24:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F5 F7 07 01 7F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 5F 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B3 01 00 35 04 06 00 28 33 E0 99 63 10 D6 9A C9 30 1C 4D E1 98 [17:24:41]CheckFolder [17:24:41]dirname=/storage/ofd_packets [17:24:41]CheckFolder done [17:24:41]ProducePacketName [17:24:41]name=ofd_packets/00111434 [17:24:41]NVStorageSaveData ofd_packets/00111434 [17:24:41]File name is /storage/ofd_packets/00111434 [17:24:41]Write 301 bytes [17:24:41]NVStorageSaveData done [17:24:41]OFDSenderStorePacket done [17:24:41]KKMCreateOFDPacket done [17:24:41]NVStorageSaveData kkm_last_timestamp [17:24:41]File name is /storage/kkm_last_timestamp [17:24:41]Write 4 bytes [17:24:41]NVStorageSaveData done [17:24:41]ExternCall_PrintAddStr [17:24:41]wPrintStart [17:24:41]Write to MH i2c: 01 00 00 2D 1E 4B [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 07 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 07 00 2D 1E 00 00 00 00 00 FF 0F 60 [17:24:41]RasterBufferAndPrint [17:24:41]line Счет N : (1)320016 [17:24:41]line ИНН: 02508201610067 [17:24:41]line Контрольно-Кассовый Чек [17:24:41]line ПРОДАЖА [17:24:41]line ТРК (МРК, ГНК) : 11 [17:24:41]line Товар: 2710124130 [17:24:41]line Аи-92-К-5 [17:24:41]line 7.540 * 66.40 [17:24:41]line = 500.66 [17:24:41]line НДС 12% НСП 1% [17:24:41]line > о реализуемом товаре [17:24:41]line ОКРУГЛЕНИЕ: -0.66 [17:24:41]line ИТОГО: 500.00 [17:24:41]line Внесено: 500.00 [17:24:41]line СДАЧА: 0.00 [17:24:41]line НСП 1% : 4.43 [17:24:41]line НДС 12% : 53.17 [17:24:41]line Наличными: 500.00 [17:24:41]line Безнал.: 0.00 [17:24:41]line Место: АЗС № 65 "Партнер Нефть" [17:24:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:24:41]line СНО: Общий режим [17:24:41]line Чек 183 19.06.2024 17:24 [17:24:41]line Смена: 388 ФФД: 1.0 [17:24:41]line ЗНМ: 0300000198 [17:24:41]line РНМ: 0000000000092771 [17:24:41]line Версия ККМ: 001 [17:24:41]line ФМ: 0000000000875083 [17:24:41]line ФД: 111434 [17:24:41]line ФПД: 44203276591888 [17:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172447&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111434&fm=44203276591888&tin=02508201610067®Number=0000000000092771&sum=50000 [17:24:41]written 0, free lines is 4095 [17:24:41]OFD Sender: Processing packet 111434 [packets to send 38, broken 37] [17:24:41]ProducePacketName [17:24:41]name=ofd_packets/00111434 [17:24:41]OFD Sender: To server: pG, [17:24:41]CommunicateWithHost lk.salyk.kg:30040 [17:24:41]ConnectInit lk.salyk.kg [17:24:41]Connected sock=10 [17:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 F5 F7 07 01 7F 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 5F 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4A B3 01 00 35 04 06 00 28 33 E0 99 63 10 D6 9A C9 30 1C 4D E1 98 [17:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 62 9A 47 00 49 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 35 30 38 33 10 04 04 00 4A B3 01 00 F4 03 04 00 C2 AB 72 66 B6 04 01 00 00 75 BE 1F C5 8B CA 69 2B [17:24:41]CommunicateWithHost err = 0 [17:24:41]CheckOFDResponse [17:24:41]1017 (14) - 77093643461234 [17:24:41]1041 (16) - 0000000000875083 [17:24:41]1040 (4) - 111434 [17:24:41]1012 (4) - 19.06.2024 09:58 [17:24:41]1206 (1) - 0 [17:24:41]OFD Sender: Remove packet 111434 [17:24:41]ProducePacketName [17:24:41]name=ofd_packets/00111434 [17:24:41]NVStorageDeleteData [17:24:41]Write to MH i2c: 01 00 00 58 1E 76 [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 07 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: 01 07 00 58 1E 00 00 00 00 00 E1 0C 6A [17:24:41]RasterBufferAndPrint [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]line [17:24:41]written 0, free lines is 3306 [17:24:41]MH_Cut [17:24:41]Write to MH i2c: D1 01 00 5F 1E 01 4F [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 01 00 [17:24:41]MH_I2C_Read... [17:24:41]Read from MH i2c: D1 01 00 5F 1E 00 4E [17:24:41]Write to MH i2c: 01 00 00 60 1E 7E [17:24:41]Write i2c OK [17:24:41]MH_I2C_Read... [17:24:42]OFD Sender: No OFD packet to send [17:24:42]*** Cut start [17:24:42]*** Partial cut [17:24:42]*** CUTSNS_PIN = 1 [17:24:42]*** CUTSNS_PIN = 0 [17:24:42]*** Brake cut motor [17:24:43]Read from MH i2c: 01 [17:24:43]MH_I2C_Read... [17:24:43]*** Stop cut motor [17:24:43]*** Cut end [17:24:43]Read from MH i2c: 01 07 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: 01 07 00 60 1E 00 00 00 00 00 FF 0F 93 [17:24:43]process_action close_receipt done [17:24:43]requested_data is exist [17:24:43]produce_requested_data [17:24:43]requested_item fm.sn is exist - process it [17:24:43]wFMCommunicate request_size=4 [17:24:43]MH_SAM_APDU [17:24:43]CAPDU: 80 11 00 00 [17:24:43]Write to MH i2c: E2 08 00 61 1E 80 11 00 00 00 00 00 00 F9 [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:43]Read from MH i2c: E2 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 17 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 17 00 61 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [17:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:24:43]wFMCommunicate OK [17:24:43]requested_item fd.num is exist - process it [17:24:43]SAM_PROTO_GetFieldsCounters [17:24:43]wFMCommunicate request_size=4 [17:24:43]MH_SAM_APDU [17:24:43]CAPDU: 80 13 00 00 [17:24:43]Write to MH i2c: E2 08 00 62 1E 80 13 00 00 00 00 00 00 FC [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:43]Read from MH i2c: E2 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 62 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 62 00 62 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B3 01 00 0E 04 04 00 84 01 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 C5 [17:24: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4A B3 01 00 0E 04 04 00 84 01 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 [17:24:43]wFMCommunicate OK [17:24:43]SAM_PROTO_GetFieldsCounters done [17:24:43]requested_item shift.num is exist - process it [17:24:43]requested_item shift.opened is exist - process it [17:24:43]req_shift_opened [17:24:43]FM_GetShiftState [17:24:43]SAM_PROTO_GetShiftState [17:24:43]wFMCommunicate request_size=4 [17:24:43]MH_SAM_APDU [17:24:43]CAPDU: 80 13 01 00 [17:24:43]Write to MH i2c: E2 08 00 63 1E 80 13 01 00 00 00 00 00 FE [17:24:43]Write i2c OK [17:24:43]MH_I2C_Read... [17:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:43]Read from MH i2c: E2 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 0E 00 [17:24:43]MH_I2C_Read... [17:24:43]Read from MH i2c: E2 0E 00 63 1E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 48 [17:24:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:24:43]wFMCommunicate OK [17:24:43]SAM_PROTO_GetShiftState done [17:24:43]FM_GetShiftState done [17:24:43]req_shift_opened done [17:24:43]requested_item shift.open_date is exist - process it [17:24:43]req_shift_open_date [17:24:43]req_shift_open_date done [17:24:43]produce_requested_data done [17:24:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111434,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:24:43]process_action_free close_receipt [17:24:43]json_value_free [17:24:43]json_value_free done [17:24:43]process_json_proto returns [17:24:43]Send response to host [17:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111434,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:24:43]free response buf [17:24:43]execute_script done [17:24:43]execute_script returns [17:24:43]free content buf [17:24:43]Sock 9.Close socket [17:24:43]Sock 9.Thread stoped [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:18]accept exits with 7 [17:25:18]New connection [17:25:18]New thread 3067321700 created [17:25:18]Thread 3067465060 joined [17:25:18]Waiting for new connection... [17:25:18] Sock 7.Parse request [17:25:18]Sock 7.Check first char [17:25:18]Sock 7.First char is OK [17:25:18]request: POST /json_proto HTTP/1.0 [17:25:18]Method: POST [17:25:18]URL: /json_proto [17:25:18]Method is POST - this is cgi request [17:25:18]url: /json_proto [17:25:18]query_string will be loaded in cgi processing [17:25:18]execute_cgi json_proto POST (null) [17:25:18]execute_cgi path=json_proto method=POST [17:25:18]POST find Content-Length [17:25:18]Host: 172.17.59.68:8080 [17:25:18]Content-Length: 677 [17:25:18]Content-Type: application/json [17:25:18] [17:25:18]POST finish read [17:25:18]Found Content-Length = 677 [17:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:18]execute_script... [17:25: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)320017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:18]POST & json_proto [17:25:18]process_json_proto [17:25:18]json parsed OK: [17:25:18]protocol is kg_v1.0 [17:25:18]action value=close_receipt [17:25:18]process_action close_receipt [17:25:18]cmd_close_receipt [17:25:18]MH_GetDate [17:25:18]Write to MH i2c: F0 00 00 64 1E 71 [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: F0 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: F0 09 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: F0 09 00 64 1E 00 86 14 73 66 BC EC 60 65 5A [17:25:18]GetLastDocTimeStamp 1718817887 [17:25:18]current date 1718817926 [17:25:18]FM_GetShiftState [17:25:18]SAM_PROTO_GetShiftState [17:25:18]wFMCommunicate request_size=4 [17:25:18]MH_SAM_APDU [17:25:18]CAPDU: 80 13 01 00 [17:25:18]Write to MH i2c: E2 08 00 65 1E 80 13 01 00 00 00 00 00 00 [17:25:18]Write i2c OK [17:25:18]MH_I2C_Read... [17:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:18]Read from MH i2c: E2 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 0E 00 [17:25:18]MH_I2C_Read... [17:25:18]Read from MH i2c: E2 0E 00 65 1E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4A [17:25:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:25:18]wFMCommunicate OK [17:25:18]SAM_PROTO_GetShiftState done [17:25:18]FM_GetShiftState done [17:25:18]opened in 1718760753 [17:25:18]opened+sec_in_day 1718847153 [17:25:18]quantity*price = 50065 [17:25:18]sum+1 = 50067 [17:25:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 184 19.06.2024 17:25 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111435 ФПД: 78912996167220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172526&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111435&fm=78912996167220&tin=02508201610067®Number=0000000000092771&sum=50000 [17:25:19]StoreToDocumentArchive [17:25:19]shift 388 fd 111435 [17:25:19]save to /storage/0388/doc_00111435 [17:25:19]save last doc name /storage/0388/doc_00111435 to /storage/kkm_last_doc_name [17:25:19]save OK [17:25:19]Clear old archive folders... [17:25:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:19]tlvbuf is 00EBF500 [17:25:19]SAM_PROTO_ClearQueue [17:25:19]wFMCommunicate request_size=4 [17:25:19]MH_SAM_APDU [17:25:19]CAPDU: 80 09 00 00 [17:25:19]Write to MH i2c: E2 08 00 72 1E 80 09 00 00 00 00 00 00 02 [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:19]Read from MH i2c: E2 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: E2 03 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: E2 03 00 72 1E 00 90 00 04 [17:25:19]RAPDU: 90 00 [17:25:19]wFMCommunicate OK [17:25:19]SAM_PROTO_ClearQueue done [17:25:19]KKMCreateOFDPacket [17:25:19]OFDProtocolAddRootSTLVToBuf [17:25:19]FM_MakeSignedData [17:25:19]FM_MakeSignedData [17:25:19]SAM_PROTO_SignData [17:25:19]wFMCommunicate request_size=4 [17:25:19]MH_SAM_APDU [17:25:19]CAPDU: 80 0D 01 02 [17:25:19]Write to MH i2c: E2 08 00 73 1E 80 0D 01 02 00 00 00 00 0A [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:19]Read from MH i2c: E2 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: E2 03 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: E2 03 00 73 1E 00 90 00 05 [17:25:19]RAPDU: 90 00 [17:25:19]wFMCommunicate OK [17:25:19]wFMCommunicate request_size=255 [17:25:19]MH_SAM_APDU [17:25: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 86 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B3 01 00 35 04 06 00 47 [17:25:19]Write to MH i2c: E2 02 01 74 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 86 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B3 01 00 35 04 06 00 47 00 00 B4 [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 74 1E 00 90 00 06 [17:25:20]RAPDU: 90 00 [17:25:20]wFMCommunicate OK [17:25:20]wFMCommunicate request_size=10 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 0D 02 02 05 C5 5D 1A CE 34 [17:25:20]Write to MH i2c: E2 0D 00 75 1E 80 0D 02 02 05 00 C5 5D 1A CE 34 00 00 55 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 75 1E 00 90 00 07 [17:25:20]RAPDU: 90 00 [17:25:20]wFMCommunicate OK [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 0D 03 02 [17:25:20]Write to MH i2c: E2 08 00 76 1E 80 0D 03 02 00 00 00 00 0F [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 0B 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 0B 00 76 1E 00 1D C7 49 91 05 55 A2 F5 90 00 BF [17:25:20]RAPDU: 1D C7 49 91 05 55 A2 F5 90 00 [17:25:20]wFMCommunicate OK [17:25:20]SAM_PROTO_SignData done [17:25:20]FM_MakeSignedData done [17:25:20]CreateOFDProtocolMessage [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 11 00 00 [17:25:20]Write to MH i2c: E2 08 00 77 1E 80 11 00 00 00 00 00 00 0F [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 17 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 17 00 77 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [17:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:25:20]wFMCommunicate OK [17:25:20]CreateOFDProtocolMessage done [17:25:20]OFDSenderStorePacket 111435 [17:25:20]StoreOFDPacket docnum=111435 [17:25:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 3E 07 01 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 86 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B3 01 00 35 04 06 00 47 C5 5D 1A CE 34 1D C7 49 91 05 55 A2 F5 [17:25:20]CheckFolder [17:25:20]dirname=/storage/ofd_packets [17:25:20]CheckFolder done [17:25:20]ProducePacketName [17:25:20]name=ofd_packets/00111435 [17:25:20]NVStorageSaveData ofd_packets/00111435 [17:25:20]File name is /storage/ofd_packets/00111435 [17:25:20]Write 301 bytes [17:25:20]NVStorageSaveData done [17:25:20]OFDSenderStorePacket done [17:25:20]KKMCreateOFDPacket done [17:25:20]NVStorageSaveData kkm_last_timestamp [17:25:20]File name is /storage/kkm_last_timestamp [17:25:20]Write 4 bytes [17:25:20]NVStorageSaveData done [17:25:20]ExternCall_PrintAddStr [17:25:20]wPrintStart [17:25:20]Write to MH i2c: 01 00 00 78 1E 96 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: 01 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: 01 07 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: 01 07 00 78 1E 00 00 00 00 00 FF 0F AB [17:25:20]RasterBufferAndPrint [17:25:20]line Счет N : (1)320017 [17:25:20]line ИНН: 02508201610067 [17:25:20]line Контрольно-Кассовый Чек [17:25:20]line ПРОДАЖА [17:25:20]line ТРК (МРК, ГНК) : 11 [17:25:20]line Товар: 2710124130 [17:25:20]line Аи-92-К-5 [17:25:20]line 7.540 * 66.40 [17:25:20]line = 500.66 [17:25:20]line НДС 12% НСП 1% [17:25:20]line > о реализуемом товаре [17:25:20]line ОКРУГЛЕНИЕ: -0.66 [17:25:20]line ИТОГО: 500.00 [17:25:20]line Внесено: 500.00 [17:25:20]line СДАЧА: 0.00 [17:25:20]line НСП 1% : 4.43 [17:25:20]line НДС 12% : 53.17 [17:25:20]line Наличными: 500.00 [17:25:20]line Безнал.: 0.00 [17:25:20]line Место: АЗС № 65 "Партнер Нефть" [17:25:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:25:20]line СНО: Общий режим [17:25:20]line Чек 184 19.06.2024 17:25 [17:25:20]line Смена: 388 ФФД: 1.0 [17:25:20]line ЗНМ: 0300000198 [17:25:20]line РНМ: 0000000000092771 [17:25:20]line Версия ККМ: 001 [17:25:20]line ФМ: 0000000000875083 [17:25:20]line ФД: 111435 [17:25:20]line ФПД: 78912996167220 [17:25:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172526&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111435&fm=78912996167220&tin=02508201610067®Number=0000000000092771&sum=50000 [17:25:20]OFD Sender: Processing packet 111435 [packets to send 38, broken 37] [17:25:20]ProducePacketName [17:25:20]name=ofd_packets/00111435 [17:25:20]OFD Sender: To server: pG, [17:25:20]CommunicateWithHost lk.salyk.kg:30040 [17:25:20]ConnectInit lk.salyk.kg [17:25:20]written 0, free lines is 4095 [17:25:20]Connected sock=11 [17:25:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B7 3E 07 01 27 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 86 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B3 01 00 35 04 06 00 47 C5 5D 1A CE 34 1D C7 49 91 05 55 A2 F5 [17:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D6 5C 47 00 AF D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4B B3 01 00 F4 03 04 00 E9 AB 72 66 B6 04 01 00 00 7E 4E 1D 8D B3 26 DF 0C [17:25:20]CommunicateWithHost err = 0 [17:25:20]CheckOFDResponse [17:25:20]1017 (14) - 77093643461234 [17:25:20]1041 (16) - 0000000000875083 [17:25:20]1040 (4) - 111435 [17:25:20]1012 (4) - 19.06.2024 09:59 [17:25:20]1206 (1) - 0 [17:25:20]OFD Sender: Remove packet 111435 [17:25:20]ProducePacketName [17:25:20]name=ofd_packets/00111435 [17:25:20]NVStorageDeleteData [17:25:21]Write to MH i2c: 01 00 00 A3 1E C1 [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: 01 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: 01 07 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: 01 07 00 A3 1E 00 00 00 00 00 DD 0C B1 [17:25:21]RasterBufferAndPrint [17:25:21]line [17:25:21]line [17:25:21]line [17:25:21]line [17:25:21]line [17:25:21]written 0, free lines is 3299 [17:25:21]MH_Cut [17:25:21]Write to MH i2c: D1 01 00 AA 1E 01 9A [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: D1 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: D1 01 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: D1 01 00 AA 1E 00 99 [17:25:21]Write to MH i2c: 01 00 00 AB 1E C9 [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]OFD Sender: No OFD packet to send [17:25:21]*** Cut start [17:25:21]*** Partial cut [17:25:21]*** CUTSNS_PIN = 1 [17:25:21]*** CUTSNS_PIN = 0 [17:25:22]*** Brake cut motor [17:25:22]Read from MH i2c: 01 [17:25:22]MH_I2C_Read... [17:25:22]*** Stop cut motor [17:25:22]*** Cut end [17:25:22]Read from MH i2c: 01 07 00 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: 01 07 00 AB 1E 00 00 00 00 00 FF 0F DE [17:25:22]process_action close_receipt done [17:25:22]requested_data is exist [17:25:22]produce_requested_data [17:25:22]requested_item fm.sn is exist - process it [17:25:22]wFMCommunicate request_size=4 [17:25:22]MH_SAM_APDU [17:25:22]CAPDU: 80 11 00 00 [17:25:22]Write to MH i2c: E2 08 00 AC 1E 80 11 00 00 00 00 00 00 44 [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:22]Read from MH i2c: E2 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: E2 17 00 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: E2 17 00 AC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 96 [17:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:25:22]wFMCommunicate OK [17:25:22]requested_item fd.num is exist - process it [17:25:22]SAM_PROTO_GetFieldsCounters [17:25:22]wFMCommunicate request_size=4 [17:25:22]MH_SAM_APDU [17:25:22]CAPDU: 80 13 00 00 [17:25:22]Write to MH i2c: E2 08 00 AD 1E 80 13 00 00 00 00 00 00 47 [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:22]Read from MH i2c: E2 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: E2 62 00 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: E2 62 00 AD 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B3 01 00 0E 04 04 00 84 01 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 14 [17:25: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4B B3 01 00 0E 04 04 00 84 01 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 [17:25:22]wFMCommunicate OK [17:25:22]SAM_PROTO_GetFieldsCounters done [17:25:22]requested_item shift.num is exist - process it [17:25:22]requested_item shift.opened is exist - process it [17:25:22]req_shift_opened [17:25:22]FM_GetShiftState [17:25:22]SAM_PROTO_GetShiftState [17:25:22]wFMCommunicate request_size=4 [17:25:22]MH_SAM_APDU [17:25:22]CAPDU: 80 13 01 00 [17:25:22]Write to MH i2c: E2 08 00 AE 1E 80 13 01 00 00 00 00 00 49 [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:22]Read from MH i2c: E2 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: E2 0E 00 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: E2 0E 00 AE 1E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 93 [17:25:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:25:22]wFMCommunicate OK [17:25:22]SAM_PROTO_GetShiftState done [17:25:22]FM_GetShiftState done [17:25:22]req_shift_opened done [17:25:22]requested_item shift.open_date is exist - process it [17:25:22]req_shift_open_date [17:25:22]req_shift_open_date done [17:25:22]produce_requested_data done [17:25:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111435,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:25:22]process_action_free close_receipt [17:25:22]json_value_free [17:25:22]json_value_free done [17:25:22]process_json_proto returns [17:25:22]Send response to host [17:25:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111435,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:25:22]free response buf [17:25:22]execute_script done [17:25:22]execute_script returns [17:25:22]free content buf [17:25:22]Sock 7.Close socket [17:25:22]Sock 7.Thread stoped [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:41]accept exits with 9 [17:26:41]New connection [17:26:41]New thread 3067465060 created [17:26:41]Thread 3067321700 joined [17:26:41]Waiting for new connection... [17:26:41] Sock 9.Parse request [17:26:41]Sock 9.Check first char [17:26:41]Sock 9.First char is OK [17:26:41]request: POST /json_proto HTTP/1.0 [17:26:41]Method: POST [17:26:41]URL: /json_proto [17:26:41]Method is POST - this is cgi request [17:26:41]url: /json_proto [17:26:41]query_string will be loaded in cgi processing [17:26:41]execute_cgi json_proto POST (null) [17:26:41]execute_cgi path=json_proto method=POST [17:26:41]POST find Content-Length [17:26:41]Host: 172.17.59.68:8080 [17:26:41]Content-Length: 677 [17:26:41]Content-Type: application/json [17:26:41] [17:26:41]POST finish read [17:26:41]Found Content-Length = 677 [17:26:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:26:41]execute_script... [17:26: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)320018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:26:41]POST & json_proto [17:26:41]process_json_proto [17:26:41]json parsed OK: [17:26:41]protocol is kg_v1.0 [17:26:41]action value=close_receipt [17:26:41]process_action close_receipt [17:26:41]cmd_close_receipt [17:26:41]MH_GetDate [17:26:41]Write to MH i2c: F0 00 00 AF 1E BC [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 09 00 [17:26:41]MH_I2C_Read... [17:26:41]Read from MH i2c: F0 09 00 AF 1E 00 D9 14 73 66 BC EC 60 65 F8 [17:26:41]GetLastDocTimeStamp 1718817926 [17:26:41]current date 1718818009 [17:26:41]FM_GetShiftState [17:26:41]SAM_PROTO_GetShiftState [17:26:41]wFMCommunicate request_size=4 [17:26:41]MH_SAM_APDU [17:26:41]CAPDU: 80 13 01 00 [17:26:41]Write to MH i2c: E2 08 00 B0 1E 80 13 01 00 00 00 00 00 4B [17:26:41]Write i2c OK [17:26:41]MH_I2C_Read... [17:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:42]Read from MH i2c: E2 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 0E 00 [17:26:42]MH_I2C_Read... [17:26:42]Read from MH i2c: E2 0E 00 B0 1E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 95 [17:26:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:26:42]wFMCommunicate OK [17:26:42]SAM_PROTO_GetShiftState done [17:26:42]FM_GetShiftState done [17:26:42]opened in 1718760753 [17:26:42]opened+sec_in_day 1718847153 [17:26:42]quantity*price = 60025 [17:26:42]sum+1 = 60027 [17:26:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 185 19.06.2024 17:26 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111436 ФПД: 131337757031007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172649&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111436&fm=131337757031007&tin=02508201610067®Number=0000000000092771&sum=60000 [17:26:43]StoreToDocumentArchive [17:26:43]shift 388 fd 111436 [17:26:43]save to /storage/0388/doc_00111436 [17:26:43]save last doc name /storage/0388/doc_00111436 to /storage/kkm_last_doc_name [17:26:43]save OK [17:26:43]Clear old archive folders... [17:26:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:43]tlvbuf is B6F3E870 [17:26:43]SAM_PROTO_ClearQueue [17:26:43]wFMCommunicate request_size=4 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 09 00 00 [17:26:43]Write to MH i2c: E2 08 00 BD 1E 80 09 00 00 00 00 00 00 4D [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 BD 1E 00 90 00 4F [17:26:43]RAPDU: 90 00 [17:26:43]wFMCommunicate OK [17:26:43]SAM_PROTO_ClearQueue done [17:26:43]KKMCreateOFDPacket [17:26:43]OFDProtocolAddRootSTLVToBuf [17:26:43]FM_MakeSignedData [17:26:43]FM_MakeSignedData [17:26:43]SAM_PROTO_SignData [17:26:43]wFMCommunicate request_size=4 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 0D 01 02 [17:26:43]Write to MH i2c: E2 08 00 BE 1E 80 0D 01 02 00 00 00 00 55 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 BE 1E 00 90 00 50 [17:26:43]RAPDU: 90 00 [17:26:43]wFMCommunicate OK [17:26:43]wFMCommunicate request_size=255 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D9 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B3 01 00 35 04 06 00 77 [17:26:43]Write to MH i2c: E2 02 01 BF 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D9 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B3 01 00 35 04 06 00 77 00 00 61 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 BF 1E 00 90 00 51 [17:26:43]RAPDU: 90 00 [17:26:43]wFMCommunicate OK [17:26:43]wFMCommunicate request_size=10 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 0D 02 02 05 73 74 5A 7A 5F [17:26:43]Write to MH i2c: E2 0D 00 C0 1E 80 0D 02 02 05 00 73 74 5A 7A 5F 00 00 7C [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 03 00 C0 1E 00 90 00 52 [17:26:43]RAPDU: 90 00 [17:26:43]wFMCommunicate OK [17:26:43]wFMCommunicate request_size=4 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 0D 03 02 [17:26:43]Write to MH i2c: E2 08 00 C1 1E 80 0D 03 02 00 00 00 00 5A [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 0B 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 0B 00 C1 1E 00 7A C9 C1 8C 6A 77 8E 51 90 00 AB [17:26:43]RAPDU: 7A C9 C1 8C 6A 77 8E 51 90 00 [17:26:43]wFMCommunicate OK [17:26:43]SAM_PROTO_SignData done [17:26:43]FM_MakeSignedData done [17:26:43]CreateOFDProtocolMessage [17:26:43]wFMCommunicate request_size=4 [17:26:43]MH_SAM_APDU [17:26:43]CAPDU: 80 11 00 00 [17:26:43]Write to MH i2c: E2 08 00 C2 1E 80 11 00 00 00 00 00 00 5A [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:43]Read from MH i2c: E2 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 17 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: E2 17 00 C2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AC [17:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:26:43]wFMCommunicate OK [17:26:43]CreateOFDProtocolMessage done [17:26:43]OFDSenderStorePacket 111436 [17:26:43]StoreOFDPacket docnum=111436 [17:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0B 69 07 01 96 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D9 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B3 01 00 35 04 06 00 77 73 74 5A 7A 5F 7A C9 C1 8C 6A 77 8E 51 [17:26:43]CheckFolder [17:26:43]dirname=/storage/ofd_packets [17:26:43]CheckFolder done [17:26:43]ProducePacketName [17:26:43]name=ofd_packets/00111436 [17:26:43]NVStorageSaveData ofd_packets/00111436 [17:26:43]File name is /storage/ofd_packets/00111436 [17:26:43]Write 301 bytes [17:26:43]NVStorageSaveData done [17:26:43]OFDSenderStorePacket done [17:26:43]KKMCreateOFDPacket done [17:26:43]NVStorageSaveData kkm_last_timestamp [17:26:43]File name is /storage/kkm_last_timestamp [17:26:43]Write 4 bytes [17:26:43]NVStorageSaveData done [17:26:43]ExternCall_PrintAddStr [17:26:43]wPrintStart [17:26:43]Write to MH i2c: 01 00 00 C3 1E E1 [17:26:43]Write i2c OK [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: 01 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: 01 07 00 [17:26:43]MH_I2C_Read... [17:26:43]Read from MH i2c: 01 07 00 C3 1E 00 00 00 00 00 FF 0F F6 [17:26:43]RasterBufferAndPrint [17:26:43]line Счет N : (1)320018 [17:26:43]line ИНН: 02508201610067 [17:26:43]line Контрольно-Кассовый Чек [17:26:43]line ПРОДАЖА [17:26:43]line ТРК (МРК, ГНК) : 11 [17:26:43]line Товар: 2710124130 [17:26:43]line Аи-92-К-5 [17:26:43]line 9.040 * 66.40 [17:26:43]line = 600.26 [17:26:43]line НДС 12% НСП 1% [17:26:43]line > о реализуемом товаре [17:26:43]line ОКРУГЛЕНИЕ: -0.26 [17:26:43]line ИТОГО: 600.00 [17:26:43]line Внесено: 600.00 [17:26:43]line СДАЧА: 0.00 [17:26:43]line НСП 1% : 5.31 [17:26:43]line НДС 12% : 63.74 [17:26:43]line Наличными: 600.00 [17:26:43]line Безнал.: 0.00 [17:26:43]line Место: АЗС № 65 "Партнер Нефть" [17:26:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:26:43]line СНО: Общий режим [17:26:43]line Чек 185 19.06.2024 17:26 [17:26:43]line Смена: 388 ФФД: 1.0 [17:26:43]line ЗНМ: 0300000198 [17:26:43]line РНМ: 0000000000092771 [17:26:43]line Версия ККМ: 001 [17:26:43]line ФМ: 0000000000875083 [17:26:43]line ФД: 111436 [17:26:43]line ФПД: 131337757031007 [17:26:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172649&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111436&fm=131337757031007&tin=02508201610067®Number=0000000000092771&sum=60000 [17:26:44]OFD Sender: Processing packet 111436 [packets to send 38, broken 37] [17:26:44]ProducePacketName [17:26:44]name=ofd_packets/00111436 [17:26:44]OFD Sender: To server: pG, [17:26:44]CommunicateWithHost lk.salyk.kg:30040 [17:26:44]ConnectInit lk.salyk.kg [17:26:44]written 0, free lines is 4095 [17:26:44]Connected sock=10 [17:26:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0B 69 07 01 96 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 D9 14 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4C B3 01 00 35 04 06 00 77 73 74 5A 7A 5F 7A C9 C1 8C 6A 77 8E 51 [17:26:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C2 8B 47 00 F8 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 35 30 38 33 10 04 04 00 4C B3 01 00 F4 03 04 00 3C AC 72 66 B6 04 01 00 00 5E 95 FC 73 C8 06 DB 09 [17:26:44]CommunicateWithHost err = 0 [17:26:44]CheckOFDResponse [17:26:44]1017 (14) - 77093643461234 [17:26:44]1041 (16) - 0000000000875083 [17:26:44]1040 (4) - 111436 [17:26:44]1012 (4) - 19.06.2024 10:00 [17:26:44]1206 (1) - 0 [17:26:44]OFD Sender: Remove packet 111436 [17:26:44]ProducePacketName [17:26:44]name=ofd_packets/00111436 [17:26:44]NVStorageDeleteData [17:26:44]Write to MH i2c: 01 00 00 EE 1E 0C [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 07 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: 01 07 00 EE 1E 00 00 00 00 00 E2 0C 01 [17:26:44]RasterBufferAndPrint [17:26:44]line [17:26:44]line [17:26:44]line [17:26:44]line [17:26:44]line [17:26:44]written 0, free lines is 3304 [17:26:44]MH_Cut [17:26:44]Write to MH i2c: D1 01 00 F5 1E 01 E5 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: D1 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: D1 01 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: D1 01 00 F5 1E 00 E4 [17:26:44]Write to MH i2c: 01 00 00 F6 1E 14 [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]OFD Sender: No OFD packet to send [17:26:45]*** Cut start [17:26:45]*** Partial cut [17:26:45]*** CUTSNS_PIN = 1 [17:26:45]*** CUTSNS_PIN = 0 [17:26:45]*** Brake cut motor [17:26:45]Read from MH i2c: 01 [17:26:45]MH_I2C_Read... [17:26:45]*** Stop cut motor [17:26:45]*** Cut end [17:26:45]Read from MH i2c: 01 07 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: 01 07 00 F6 1E 00 00 00 00 00 FF 0F 29 [17:26:45]process_action close_receipt done [17:26:45]requested_data is exist [17:26:45]produce_requested_data [17:26:45]requested_item fm.sn is exist - process it [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 11 00 00 [17:26:45]Write to MH i2c: E2 08 00 F7 1E 80 11 00 00 00 00 00 00 8F [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 17 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 17 00 F7 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E1 [17:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:26:45]wFMCommunicate OK [17:26:45]requested_item fd.num is exist - process it [17:26:45]SAM_PROTO_GetFieldsCounters [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 13 00 00 [17:26:45]Write to MH i2c: E2 08 00 F8 1E 80 13 00 00 00 00 00 00 92 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 62 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 62 00 F8 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B3 01 00 0E 04 04 00 84 01 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 63 [17:26: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_GetFieldsCounters done [17:26:45]requested_item shift.num is exist - process it [17:26:45]requested_item shift.opened is exist - process it [17:26:45]req_shift_opened [17:26:45]FM_GetShiftState [17:26:45]SAM_PROTO_GetShiftState [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 13 01 00 [17:26:45]Write to MH i2c: E2 08 00 F9 1E 80 13 01 00 00 00 00 00 94 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0E 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0E 00 F9 1E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DE [17:26:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:26:46]wFMCommunicate OK [17:26:46]SAM_PROTO_GetShiftState done [17:26:46]FM_GetShiftState done [17:26:46]req_shift_opened done [17:26:46]requested_item shift.open_date is exist - process it [17:26:46]req_shift_open_date [17:26:46]req_shift_open_date done [17:26:46]produce_requested_data done [17:26:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111436,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:26:46]process_action_free close_receipt [17:26:46]json_value_free [17:26:46]json_value_free done [17:26:46]process_json_proto returns [17:26:46]Send response to host [17:26:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111436,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:26:46]free response buf [17:26:46]execute_script done [17:26:46]execute_script returns [17:26:46]free content buf [17:26:46]Sock 9.Close socket [17:26:46]Sock 9.Thread stoped [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:33]accept exits with 7 [17:27:33]New connection [17:27:33]New thread 3067321700 created [17:27:33]Thread 3067465060 joined [17:27:33]Waiting for new connection... [17:27:33] Sock 7.Parse request [17:27:33]Sock 7.Check first char [17:27:33]Sock 7.First char is OK [17:27:33]request: POST /json_proto HTTP/1.0 [17:27:33]Method: POST [17:27:33]URL: /json_proto [17:27:33]Method is POST - this is cgi request [17:27:33]url: /json_proto [17:27:33]query_string will be loaded in cgi processing [17:27:33]execute_cgi json_proto POST (null) [17:27:33]execute_cgi path=json_proto method=POST [17:27:33]POST find Content-Length [17:27:33]Host: 172.17.59.68:8080 [17:27:33]Content-Length: 1199 [17:27:33]Content-Type: application/json [17:27:33] [17:27:33]POST finish read [17:27:33]Found Content-Length = 1199 [17:27:33]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320015\u000A19.06.2024 15:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:33]execute_script... [17:27:33]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320015\u000A19.06.2024 15:56\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54590\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:33]POST & json_proto [17:27:33]process_json_proto [17:27:33]json parsed OK: [17:27:33]protocol is kg_v1.0 [17:27:33]action value=print_text [17:27:33]process_action print_text [17:27:33]cmd_print_text [17:27:33]ExternCall_PrintAddStr [17:27:33]wPrintStart [17:27:33]Write to MH i2c: 01 00 00 FA 1E 18 [17:27:33]Write i2c OK [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 [17:27:33]MH_I2C_Read... [17:27:33]Read from MH i2c: 01 07 00 FA 1E 00 00 00 00 00 FF 0F 2D [17:27:33]RasterBufferAndPrint [17:27:33]line *****ТОВАРНЫЙ ЧЕК***** [17:27:33]line АЗС 65 [17:27:33]line Партнер нефть [17:27:33]line 02508201610067 [17:27:33]line Кассир : Амантуров Р. [17:27:33]line Счет N : (1)320015 [17:27:33]line 19.06.2024 15:56 [17:27:33]line ПРОДАЖА [17:27:33]line ТРК (МРК, ГНК): 22 [17:27:33]line Вид ГСМ : 2710194210 [17:27:33]line ДТ-К-5 [17:27:33]line 100.000 x 72.90 [17:27:33]line ИТОГ: 7290.00 [17:27:33]line Тип оплаты: Талоны: Топливная Карта [17:27:33]line 54590 [17:27:33]line ______________________ [17:27:33]line (подпись) [17:27:33]written 0, free lines is 4095 [17:27:34]Write to MH i2c: 01 00 00 0E 1F 2D [17:27:34]Write i2c OK [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: 01 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: 01 07 00 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: 01 07 00 0E 1F 00 00 00 00 00 10 0E 52 [17:27:34]RasterBufferAndPrint [17:27:34]line [17:27:34]line [17:27:34]line [17:27:34]line [17:27:34]line [17:27:34]written 0, free lines is 3601 [17:27:34]MH_Cut [17:27:34]Write to MH i2c: D1 01 00 15 1F 01 06 [17:27:34]Write i2c OK [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: D1 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: D1 01 00 [17:27:34]MH_I2C_Read... [17:27:34]Read from MH i2c: D1 01 00 15 1F 00 05 [17:27:34]Write to MH i2c: 01 00 00 16 1F 35 [17:27:34]Write i2c OK [17:27:34]MH_I2C_Read... [17:27:34]*** Cut start [17:27:34]*** Partial cut [17:27:34]*** CUTSNS_PIN = 1 [17:27:34]*** CUTSNS_PIN = 0 [17:27:34]*** Brake cut motor [17:27:34]OFD Sender: No OFD packet to send [17:27:35]Read from MH i2c: 01 [17:27:35]MH_I2C_Read... [17:27:35]*** Stop cut motor [17:27:35]*** Cut end [17:27:35]Read from MH i2c: 01 07 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [17:27:35]process_action print_text done [17:27:35]requested_data is exist [17:27:35]produce_requested_data [17:27:35]requested_item fm.sn is exist - process it [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 11 00 00 [17:27:35]Write to MH i2c: E2 08 00 17 1F 80 11 00 00 00 00 00 00 B0 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 17 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 17 00 17 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 02 [17:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:27:35]wFMCommunicate OK [17:27:35]requested_item fd.num is exist - process it [17:27:35]SAM_PROTO_GetFieldsCounters [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 13 00 00 [17:27:35]Write to MH i2c: E2 08 00 18 1F 80 13 00 00 00 00 00 00 B3 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 62 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 62 00 18 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:27: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetFieldsCounters done [17:27:35]requested_item shift.num is exist - process it [17:27:35]requested_item shift.opened is exist - process it [17:27:35]req_shift_opened [17:27:35]FM_GetShiftState [17:27:35]SAM_PROTO_GetShiftState [17:27:35]wFMCommunicate request_size=4 [17:27:35]MH_SAM_APDU [17:27:35]CAPDU: 80 13 01 00 [17:27:35]Write to MH i2c: E2 08 00 19 1F 80 13 01 00 00 00 00 00 B5 [17:27:35]Write i2c OK [17:27:35]MH_I2C_Read... [17:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:35]Read from MH i2c: E2 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 [17:27:35]MH_I2C_Read... [17:27:35]Read from MH i2c: E2 0E 00 19 1F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FF [17:27:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:27:35]wFMCommunicate OK [17:27:35]SAM_PROTO_GetShiftState done [17:27:35]FM_GetShiftState done [17:27:35]req_shift_opened done [17:27:35]requested_item shift.open_date is exist - process it [17:27:35]req_shift_open_date [17:27:35]req_shift_open_date done [17:27:35]produce_requested_data done [17:27:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111436,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:27:35]process_action_free print_text [17:27:35]json_value_free [17:27:35]json_value_free done [17:27:35]process_json_proto returns [17:27:35]Send response to host [17:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111436,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:27:35]free response buf [17:27:35]execute_script done [17:27:35]execute_script returns [17:27:35]free content buf [17:27:35]Sock 7.Close socket [17:27:35]Sock 7.Thread stoped [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:50]accept exits with 9 [17:27:50]New connection [17:27:50]New thread 3067465060 created [17:27:50]Thread 3067321700 joined [17:27:50]Waiting for new connection... [17:27:50] Sock 9.Parse request [17:27:50]Sock 9.Check first char [17:27:50]Sock 9.First char is OK [17:27:50]request: POST /json_proto HTTP/1.0 [17:27:50]Method: POST [17:27:50]URL: /json_proto [17:27:50]Method is POST - this is cgi request [17:27:50]url: /json_proto [17:27:50]query_string will be loaded in cgi processing [17:27:50]execute_cgi json_proto POST (null) [17:27:50]execute_cgi path=json_proto method=POST [17:27:50]POST find Content-Length [17:27:50]Host: 172.17.59.68:8080 [17:27:50]Content-Length: 677 [17:27:50]Content-Type: application/json [17:27:50] [17:27:50]POST finish read [17:27:50]Found Content-Length = 677 [17:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.660, "sum" : 110.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 110.00, "total" : 110.00, "payments": [ { "type": 0, "sum" : 110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:50]execute_script... [17:27: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)320019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.660, "sum" : 110.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 110.00, "total" : 110.00, "payments": [ { "type": 0, "sum" : 110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:50]POST & json_proto [17:27:50]process_json_proto [17:27:50]json parsed OK: [17:27:50]protocol is kg_v1.0 [17:27:50]action value=close_receipt [17:27:50]process_action close_receipt [17:27:50]cmd_close_receipt [17:27:50]MH_GetDate [17:27:50]Write to MH i2c: F0 00 00 1A 1F 28 [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: F0 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: F0 09 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: F0 09 00 1A 1F 00 1D 15 73 66 BC EC 60 65 A9 [17:27:50]GetLastDocTimeStamp 1718818009 [17:27:50]current date 1718818077 [17:27:50]FM_GetShiftState [17:27:50]SAM_PROTO_GetShiftState [17:27:50]wFMCommunicate request_size=4 [17:27:50]MH_SAM_APDU [17:27:50]CAPDU: 80 13 01 00 [17:27:50]Write to MH i2c: E2 08 00 1B 1F 80 13 01 00 00 00 00 00 B7 [17:27:50]Write i2c OK [17:27:50]MH_I2C_Read... [17:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:50]Read from MH i2c: E2 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 0E 00 [17:27:50]MH_I2C_Read... [17:27:50]Read from MH i2c: E2 0E 00 1B 1F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 01 [17:27:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:27:50]wFMCommunicate OK [17:27:50]SAM_PROTO_GetShiftState done [17:27:50]FM_GetShiftState done [17:27:50]opened in 1718760753 [17:27:50]opened+sec_in_day 1718847153 [17:27:50]quantity*price = 11022 [17:27:50]sum+1 = 11023 [17:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 110.00 Внесено: 110.00 СДАЧА: 0.00 НСП 1% : 0.97 НДС 12% : 11.70 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 186 19.06.2024 17:27 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111437 ФПД: 78657724461671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172757&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111437&fm=78657724461671&tin=02508201610067®Number=0000000000092771&sum=11000 [17:27:51]StoreToDocumentArchive [17:27:51]shift 388 fd 111437 [17:27:51]save to /storage/0388/doc_00111437 [17:27:51]save last doc name /storage/0388/doc_00111437 to /storage/kkm_last_doc_name [17:27:51]save OK [17:27:51]Clear old archive folders... [17:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:51]tlvbuf is B6F258B0 [17:27:51]SAM_PROTO_ClearQueue [17:27:51]wFMCommunicate request_size=4 [17:27:51]MH_SAM_APDU [17:27:51]CAPDU: 80 09 00 00 [17:27:51]Write to MH i2c: E2 08 00 28 1F 80 09 00 00 00 00 00 00 B9 [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:51]Read from MH i2c: E2 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 03 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 03 00 28 1F 00 90 00 BB [17:27:51]RAPDU: 90 00 [17:27:51]wFMCommunicate OK [17:27:51]SAM_PROTO_ClearQueue done [17:27:51]KKMCreateOFDPacket [17:27:51]OFDProtocolAddRootSTLVToBuf [17:27:51]FM_MakeSignedData [17:27:51]FM_MakeSignedData [17:27:51]SAM_PROTO_SignData [17:27:51]wFMCommunicate request_size=4 [17:27:51]MH_SAM_APDU [17:27:51]CAPDU: 80 0D 01 02 [17:27:51]Write to MH i2c: E2 08 00 29 1F 80 0D 01 02 00 00 00 00 C1 [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:51]Read from MH i2c: E2 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 03 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 03 00 29 1F 00 90 00 BC [17:27:51]RAPDU: 90 00 [17:27:51]wFMCommunicate OK [17:27:51]wFMCommunicate request_size=255 [17:27:51]MH_SAM_APDU [17:27: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 7C 06 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0E 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1D 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B3 01 00 35 04 06 00 47 [17:27:51]Write to MH i2c: E2 02 01 2A 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 7C 06 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0E 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1D 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B3 01 00 35 04 06 00 47 00 00 5C [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:51]Read from MH i2c: E2 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 03 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 03 00 2A 1F 00 90 00 BD [17:27:51]RAPDU: 90 00 [17:27:51]wFMCommunicate OK [17:27:51]wFMCommunicate request_size=10 [17:27:51]MH_SAM_APDU [17:27:51]CAPDU: 80 0D 02 02 05 89 ED B9 B2 67 [17:27:51]Write to MH i2c: E2 0D 00 2B 1F 80 0D 02 02 05 00 89 ED B9 B2 67 00 00 16 [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:51]Read from MH i2c: E2 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 03 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 03 00 2B 1F 00 90 00 BE [17:27:51]RAPDU: 90 00 [17:27:51]wFMCommunicate OK [17:27:51]wFMCommunicate request_size=4 [17:27:51]MH_SAM_APDU [17:27:51]CAPDU: 80 0D 03 02 [17:27:51]Write to MH i2c: E2 08 00 2C 1F 80 0D 03 02 00 00 00 00 C6 [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:51]Read from MH i2c: E2 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 0B 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 0B 00 2C 1F 00 8F 41 36 9B 7D 1E 86 3B 90 00 C4 [17:27:51]RAPDU: 8F 41 36 9B 7D 1E 86 3B 90 00 [17:27:51]wFMCommunicate OK [17:27:51]SAM_PROTO_SignData done [17:27:51]FM_MakeSignedData done [17:27:51]CreateOFDProtocolMessage [17:27:51]wFMCommunicate request_size=4 [17:27:51]MH_SAM_APDU [17:27:51]CAPDU: 80 11 00 00 [17:27:51]Write to MH i2c: E2 08 00 2D 1F 80 11 00 00 00 00 00 00 C6 [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:51]Read from MH i2c: E2 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 17 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: E2 17 00 2D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [17:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:27:51]wFMCommunicate OK [17:27:51]CreateOFDProtocolMessage done [17:27:51]OFDSenderStorePacket 111437 [17:27:51]StoreOFDPacket docnum=111437 [17:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 52 3A 07 01 A7 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 7C 06 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0E 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1D 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B3 01 00 35 04 06 00 47 89 ED B9 B2 67 8F 41 36 9B 7D 1E 86 3B [17:27:51]CheckFolder [17:27:51]dirname=/storage/ofd_packets [17:27:51]CheckFolder done [17:27:51]ProducePacketName [17:27:51]name=ofd_packets/00111437 [17:27:51]NVStorageSaveData ofd_packets/00111437 [17:27:51]File name is /storage/ofd_packets/00111437 [17:27:51]Write 301 bytes [17:27:51]NVStorageSaveData done [17:27:51]OFDSenderStorePacket done [17:27:51]KKMCreateOFDPacket done [17:27:51]NVStorageSaveData kkm_last_timestamp [17:27:51]File name is /storage/kkm_last_timestamp [17:27:51]Write 4 bytes [17:27:51]NVStorageSaveData done [17:27:51]ExternCall_PrintAddStr [17:27:51]wPrintStart [17:27:51]Write to MH i2c: 01 00 00 2E 1F 4D [17:27:51]Write i2c OK [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: 01 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: 01 07 00 [17:27:51]MH_I2C_Read... [17:27:51]Read from MH i2c: 01 07 00 2E 1F 00 00 00 00 00 FF 0F 62 [17:27:51]RasterBufferAndPrint [17:27:51]line Счет N : (1)320019 [17:27:51]line ИНН: 02508201610067 [17:27:51]line Контрольно-Кассовый Чек [17:27:51]line ПРОДАЖА [17:27:51]line ТРК (МРК, ГНК) : 11 [17:27:51]line Товар: 2710124130 [17:27:51]line Аи-92-К-5 [17:27:51]line 1.660 * 66.40 [17:27:51]line = 110.22 [17:27:51]line НДС 12% НСП 1% [17:27:51]line > о реализуемом товаре [17:27:51]line ОКРУГЛЕНИЕ: -0.22 [17:27:51]line ИТОГО: 110.00 [17:27:51]line Внесено: 110.00 [17:27:51]line СДАЧА: 0.00 [17:27:51]line НСП 1% : 0.97 [17:27:51]line НДС 12% : 11.70 [17:27:51]line Наличными: 110.00 [17:27:51]line Безнал.: 0.00 [17:27:51]line Место: АЗС № 65 "Партнер Нефть" [17:27:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:27:51]line СНО: Общий режим [17:27:51]line Чек 186 19.06.2024 17:27 [17:27:51]line Смена: 388 ФФД: 1.0 [17:27:51]line ЗНМ: 0300000198 [17:27:51]line РНМ: 0000000000092771 [17:27:51]line Версия ККМ: 001 [17:27:51]line ФМ: 0000000000875083 [17:27:51]line ФД: 111437 [17:27:51]line ФПД: 78657724461671 [17:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172757&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111437&fm=78657724461671&tin=02508201610067®Number=0000000000092771&sum=11000 [17:27:52]OFD Sender: Processing packet 111437 [packets to send 38, broken 37] [17:27:52]ProducePacketName [17:27:52]name=ofd_packets/00111437 [17:27:52]OFD Sender: To server: pG, [17:27:52]CommunicateWithHost lk.salyk.kg:30040 [17:27:52]ConnectInit lk.salyk.kg [17:27:52]written 0, free lines is 4095 [17:27:52]Connected sock=10 [17:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 52 3A 07 01 A7 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 7C 06 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0E 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 1D 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4D B3 01 00 35 04 06 00 47 89 ED B9 B2 67 8F 41 36 9B 7D 1E 86 3B [17:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8F BE 47 00 6E 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 35 30 38 33 10 04 04 00 4D B3 01 00 F4 03 04 00 81 AC 72 66 B6 04 01 00 00 2D 22 E7 39 78 95 7C CE [17:27:52]CommunicateWithHost err = 0 [17:27:52]CheckOFDResponse [17:27:52]1017 (14) - 77093643461234 [17:27:52]1041 (16) - 0000000000875083 [17:27:52]1040 (4) - 111437 [17:27:52]1012 (4) - 19.06.2024 10:01 [17:27:52]1206 (1) - 0 [17:27:52]OFD Sender: Remove packet 111437 [17:27:52]ProducePacketName [17:27:52]name=ofd_packets/00111437 [17:27:52]NVStorageDeleteData [17:27:52]Write to MH i2c: 01 00 00 59 1F 78 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: 01 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: 01 07 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: 01 07 00 59 1F 00 00 00 00 00 E4 0C 6F [17:27:52]RasterBufferAndPrint [17:27:52]line [17:27:52]line [17:27:52]line [17:27:52]line [17:27:52]line [17:27:52]written 0, free lines is 3306 [17:27:52]MH_Cut [17:27:52]Write to MH i2c: D1 01 00 60 1F 01 51 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: D1 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: D1 01 00 [17:27:52]MH_I2C_Read... [17:27:52]Read from MH i2c: D1 01 00 60 1F 00 50 [17:27:52]Write to MH i2c: 01 00 00 61 1F 80 [17:27:52]Write i2c OK [17:27:52]MH_I2C_Read... [17:27:53]OFD Sender: No OFD packet to send [17:27:53]*** Cut start [17:27:53]*** Partial cut [17:27:53]*** CUTSNS_PIN = 1 [17:27:53]*** CUTSNS_PIN = 0 [17:27:53]*** Brake cut motor [17:27:54]Read from MH i2c: 01 [17:27:54]MH_I2C_Read... [17:27:54]*** Stop cut motor [17:27:54]*** Cut end [17:27:54]Read from MH i2c: 01 07 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: 01 07 00 61 1F 00 00 00 00 00 FF 0F 95 [17:27:54]process_action close_receipt done [17:27:54]requested_data is exist [17:27:54]produce_requested_data [17:27:54]requested_item fm.sn is exist - process it [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 11 00 00 [17:27:54]Write to MH i2c: E2 08 00 62 1F 80 11 00 00 00 00 00 00 FB [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 17 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 17 00 62 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4D [17:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:27:54]wFMCommunicate OK [17:27:54]requested_item fd.num is exist - process it [17:27:54]SAM_PROTO_GetFieldsCounters [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 13 00 00 [17:27:54]Write to MH i2c: E2 08 00 63 1F 80 13 00 00 00 00 00 00 FE [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 62 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 62 00 63 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B3 01 00 0E 04 04 00 84 01 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 D3 [17:27: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4D B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:54]wFMCommunicate OK [17:27:54]SAM_PROTO_GetFieldsCounters done [17:27:54]requested_item shift.num is exist - process it [17:27:54]requested_item shift.opened is exist - process it [17:27:54]req_shift_opened [17:27:54]FM_GetShiftState [17:27:54]SAM_PROTO_GetShiftState [17:27:54]wFMCommunicate request_size=4 [17:27:54]MH_SAM_APDU [17:27:54]CAPDU: 80 13 01 00 [17:27:54]Write to MH i2c: E2 08 00 64 1F 80 13 01 00 00 00 00 00 00 [17:27:54]Write i2c OK [17:27:54]MH_I2C_Read... [17:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:54]Read from MH i2c: E2 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 0E 00 [17:27:54]MH_I2C_Read... [17:27:54]Read from MH i2c: E2 0E 00 64 1F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4A [17:27:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:27:54]wFMCommunicate OK [17:27:54]SAM_PROTO_GetShiftState done [17:27:54]FM_GetShiftState done [17:27:54]req_shift_opened done [17:27:54]requested_item shift.open_date is exist - process it [17:27:54]req_shift_open_date [17:27:54]req_shift_open_date done [17:27:54]produce_requested_data done [17:27:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111437,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:27:54]process_action_free close_receipt [17:27:54]json_value_free [17:27:54]json_value_free done [17:27:54]process_json_proto returns [17:27:54]Send response to host [17:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111437,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:27:54]free response buf [17:27:54]execute_script done [17:27:54]execute_script returns [17:27:54]free content buf [17:27:54]Sock 9.Close socket [17:27:54]Sock 9.Thread stoped [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:24]accept exits with 7 [17:28:24]New connection [17:28:24]New thread 3067321700 created [17:28:24]Thread 3067465060 joined [17:28:24]Waiting for new connection... [17:28:24] Sock 7.Parse request [17:28:24]Sock 7.Check first char [17:28:24]Sock 7.First char is OK [17:28:24]request: POST /json_proto HTTP/1.0 [17:28:24]Method: POST [17:28:24]URL: /json_proto [17:28:24]Method is POST - this is cgi request [17:28:24]url: /json_proto [17:28:24]query_string will be loaded in cgi processing [17:28:24]execute_cgi json_proto POST (null) [17:28:24]execute_cgi path=json_proto method=POST [17:28:24]POST find Content-Length [17:28:24]Host: 172.17.59.68:8080 [17:28:24]Content-Length: 671 [17:28:24]Content-Type: application/json [17:28:24] [17:28:24]POST finish read [17:28:24]Found Content-Length = 671 [17:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.010, "sum" : 0.66, "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" ] } } [17:28:24]execute_script... [17:28: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)320020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.010, "sum" : 0.66, "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" ] } } [17:28:24]POST & json_proto [17:28:24]process_json_proto [17:28:24]json parsed OK: [17:28:24]protocol is kg_v1.0 [17:28:24]action value=close_receipt [17:28:24]process_action close_receipt [17:28:24]cmd_close_receipt [17:28:24]MH_GetDate [17:28:24]Write to MH i2c: F0 00 00 65 1F 73 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: F0 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: F0 09 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: F0 09 00 65 1F 00 40 15 73 66 BC EC 60 65 17 [17:28:24]GetLastDocTimeStamp 1718818077 [17:28:24]current date 1718818112 [17:28:24]FM_GetShiftState [17:28:24]SAM_PROTO_GetShiftState [17:28:24]wFMCommunicate request_size=4 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 13 01 00 [17:28:24]Write to MH i2c: E2 08 00 66 1F 80 13 01 00 00 00 00 00 02 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 0E 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 0E 00 66 1F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4C [17:28:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:28:24]wFMCommunicate OK [17:28:24]SAM_PROTO_GetShiftState done [17:28:24]FM_GetShiftState done [17:28:24]opened in 1718760753 [17:28:24]opened+sec_in_day 1718847153 [17:28:24]quantity*price = 66 [17:28:24]sum+1 = 67 [17:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 0.00 Внесено: 500.00 СДАЧА: 500.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 187 19.06.2024 17:28 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111438 ФПД: 275692899438611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172832&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111438&fm=275692899438611&tin=02508201610067®Number=0000000000092771&sum=0 [17:28:25]StoreToDocumentArchive [17:28:25]shift 388 fd 111438 [17:28:25]save to /storage/0388/doc_00111438 [17:28:25]save last doc name /storage/0388/doc_00111438 to /storage/kkm_last_doc_name [17:28:25]save OK [17:28:25]Clear old archive folders... [17:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:25]tlvbuf is B6FD2A40 [17:28:25]SAM_PROTO_ClearQueue [17:28:25]wFMCommunicate request_size=4 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 09 00 00 [17:28:25]Write to MH i2c: E2 08 00 73 1F 80 09 00 00 00 00 00 00 04 [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 73 1F 00 90 00 06 [17:28:25]RAPDU: 90 00 [17:28:25]wFMCommunicate OK [17:28:25]SAM_PROTO_ClearQueue done [17:28:25]KKMCreateOFDPacket [17:28:25]OFDProtocolAddRootSTLVToBuf [17:28:25]FM_MakeSignedData [17:28:25]FM_MakeSignedData [17:28:25]SAM_PROTO_SignData [17:28:25]wFMCommunicate request_size=4 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 0D 01 02 [17:28:25]Write to MH i2c: E2 08 00 74 1F 80 0D 01 02 00 00 00 00 0C [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 03 00 74 1F 00 90 00 07 [17:28:25]RAPDU: 90 00 [17:28:25]wFMCommunicate OK [17:28:25]wFMCommunicate request_size=255 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 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 BB 00 00 00 F4 03 04 00 40 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B3 01 00 35 04 06 00 FA [17:28:25]Write to MH i2c: E2 02 01 75 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 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 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 BB 00 00 00 F4 03 04 00 40 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B3 01 00 35 04 06 00 FA 00 00 DD [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 75 1F 00 90 00 08 [17:28:26]RAPDU: 90 00 [17:28:26]wFMCommunicate OK [17:28:26]wFMCommunicate request_size=10 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 0D 02 02 05 BD C1 56 90 13 [17:28:26]Write to MH i2c: E2 0D 00 76 1F 80 0D 02 02 05 00 BD C1 56 90 13 00 00 90 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 76 1F 00 90 00 09 [17:28:26]RAPDU: 90 00 [17:28:26]wFMCommunicate OK [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 0D 03 02 [17:28:26]Write to MH i2c: E2 08 00 77 1F 80 0D 03 02 00 00 00 00 11 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0B 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0B 00 77 1F 00 00 B5 26 04 7A 3C F1 CE 90 00 66 [17:28:26]RAPDU: 00 B5 26 04 7A 3C F1 CE 90 00 [17:28:26]wFMCommunicate OK [17:28:26]SAM_PROTO_SignData done [17:28:26]FM_MakeSignedData done [17:28:26]CreateOFDProtocolMessage [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 11 00 00 [17:28:26]Write to MH i2c: E2 08 00 78 1F 80 11 00 00 00 00 00 00 11 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 17 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 17 00 78 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [17:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:28:26]wFMCommunicate OK [17:28:26]CreateOFDProtocolMessage done [17:28:26]OFDSenderStorePacket 111438 [17:28:26]StoreOFDPacket docnum=111438 [17:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 09 07 01 33 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 0A 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 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 BB 00 00 00 F4 03 04 00 40 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B3 01 00 35 04 06 00 FA BD C1 56 90 13 00 B5 26 04 7A 3C F1 CE [17:28:26]CheckFolder [17:28:26]dirname=/storage/ofd_packets [17:28:26]CheckFolder done [17:28:26]ProducePacketName [17:28:26]name=ofd_packets/00111438 [17:28:26]NVStorageSaveData ofd_packets/00111438 [17:28:26]File name is /storage/ofd_packets/00111438 [17:28:26]Write 301 bytes [17:28:26]NVStorageSaveData done [17:28:26]OFDSenderStorePacket done [17:28:26]KKMCreateOFDPacket done [17:28:26]NVStorageSaveData kkm_last_timestamp [17:28:26]File name is /storage/kkm_last_timestamp [17:28:26]Write 4 bytes [17:28:26]NVStorageSaveData done [17:28:26]ExternCall_PrintAddStr [17:28:26]wPrintStart [17:28:26]Write to MH i2c: 01 00 00 79 1F 98 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 07 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: 01 07 00 79 1F 00 00 00 00 00 FF 0F AD [17:28:26]RasterBufferAndPrint [17:28:26]line Счет N : (1)320020 [17:28:26]line ИНН: 02508201610067 [17:28:26]line Контрольно-Кассовый Чек [17:28:26]line ПРОДАЖА [17:28:26]line ТРК (МРК, ГНК) : 11 [17:28:26]line Товар: 2710124130 [17:28:26]line Аи-92-К-5 [17:28:26]line 0.010 * 66.40 [17:28:26]line = 0.66 [17:28:26]line НДС 12% НСП 1% [17:28:26]line > о реализуемом товаре [17:28:26]line ОКРУГЛЕНИЕ: -0.66 [17:28:26]line ИТОГО: 0.00 [17:28:26]line Внесено: 500.00 [17:28:26]line СДАЧА: 500.00 [17:28:26]line НСП 1% : 0.01 [17:28:26]line НДС 12% : 0.07 [17:28:26]line Наличными: 0.00 [17:28:26]line Безнал.: 0.00 [17:28:26]line Место: АЗС № 65 "Партнер Нефть" [17:28:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:28:26]line СНО: Общий режим [17:28:26]line Чек 187 19.06.2024 17:28 [17:28:26]line Смена: 388 ФФД: 1.0 [17:28:26]line ЗНМ: 0300000198 [17:28:26]line РНМ: 0000000000092771 [17:28:26]line Версия ККМ: 001 [17:28:26]line ФМ: 0000000000875083 [17:28:26]line ФД: 111438 [17:28:26]line ФПД: 275692899438611 [17:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172832&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111438&fm=275692899438611&tin=02508201610067®Number=0000000000092771&sum=0 [17:28:26]OFD Sender: Processing packet 111438 [packets to send 38, broken 37] [17:28:26]ProducePacketName [17:28:26]name=ofd_packets/00111438 [17:28:26]OFD Sender: To server: pG, [17:28:26]CommunicateWithHost lk.salyk.kg:30040 [17:28:26]ConnectInit lk.salyk.kg [17:28:26]written 0, free lines is 4095 [17:28:26]Connected sock=10 [17:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 09 07 01 33 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 0A 00 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 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 BB 00 00 00 F4 03 04 00 40 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4E B3 01 00 35 04 06 00 FA BD C1 56 90 13 00 B5 26 04 7A 3C F1 CE [17:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E6 93 47 00 E8 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 35 30 38 33 10 04 04 00 4E B3 01 00 F4 03 04 00 A3 AC 72 66 B6 04 01 00 00 50 4D 1B 26 5B 66 9B 48 [17:28:27]CommunicateWithHost err = 0 [17:28:27]CheckOFDResponse [17:28:27]1017 (14) - 77093643461234 [17:28:27]1041 (16) - 0000000000875083 [17:28:27]1040 (4) - 111438 [17:28:27]1012 (4) - 19.06.2024 10:02 [17:28:27]1206 (1) - 0 [17:28:27]OFD Sender: Remove packet 111438 [17:28:27]ProducePacketName [17:28:27]name=ofd_packets/00111438 [17:28:27]NVStorageDeleteData [17:28:27]Write to MH i2c: 01 00 00 A4 1F C3 [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 07 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 07 00 A4 1F 00 00 00 00 00 D5 0C AB [17:28:27]RasterBufferAndPrint [17:28:27]line [17:28:27]line [17:28:27]line [17:28:27]line [17:28:27]line [17:28:27]written 0, free lines is 3291 [17:28:27]MH_Cut [17:28:27]Write to MH i2c: D1 01 00 AB 1F 01 9C [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: D1 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: D1 01 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: D1 01 00 AB 1F 00 9B [17:28:27]Write to MH i2c: 01 00 00 AC 1F CB [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:27]OFD Sender: No OFD packet to send [17:28:27]*** Cut start [17:28:27]*** Partial cut [17:28:27]*** CUTSNS_PIN = 1 [17:28:27]*** CUTSNS_PIN = 0 [17:28:28]*** Brake cut motor [17:28:28]Read from MH i2c: 01 [17:28:28]MH_I2C_Read... [17:28:28]*** Stop cut motor [17:28:28]*** Cut end [17:28:28]Read from MH i2c: 01 07 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: 01 07 00 AC 1F 00 00 00 00 00 FF 0F E0 [17:28:28]process_action close_receipt done [17:28:28]requested_data is exist [17:28:28]produce_requested_data [17:28:28]requested_item fm.sn is exist - process it [17:28:28]wFMCommunicate request_size=4 [17:28:28]MH_SAM_APDU [17:28:28]CAPDU: 80 11 00 00 [17:28:28]Write to MH i2c: E2 08 00 AD 1F 80 11 00 00 00 00 00 00 46 [17:28:28]Write i2c OK [17:28:28]MH_I2C_Read... [17:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:28]Read from MH i2c: E2 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 17 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 17 00 AD 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 98 [17:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:28:28]wFMCommunicate OK [17:28:28]requested_item fd.num is exist - process it [17:28:28]SAM_PROTO_GetFieldsCounters [17:28:28]wFMCommunicate request_size=4 [17:28:28]MH_SAM_APDU [17:28:28]CAPDU: 80 13 00 00 [17:28:28]Write to MH i2c: E2 08 00 AE 1F 80 13 00 00 00 00 00 00 49 [17:28:28]Write i2c OK [17:28:28]MH_I2C_Read... [17:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:28]Read from MH i2c: E2 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 62 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 62 00 AE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [17:28: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:28]wFMCommunicate OK [17:28:28]SAM_PROTO_GetFieldsCounters done [17:28:28]requested_item shift.num is exist - process it [17:28:28]requested_item shift.opened is exist - process it [17:28:28]req_shift_opened [17:28:28]FM_GetShiftState [17:28:28]SAM_PROTO_GetShiftState [17:28:28]wFMCommunicate request_size=4 [17:28:28]MH_SAM_APDU [17:28:28]CAPDU: 80 13 01 00 [17:28:28]Write to MH i2c: E2 08 00 AF 1F 80 13 01 00 00 00 00 00 4B [17:28:28]Write i2c OK [17:28:28]MH_I2C_Read... [17:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:28]Read from MH i2c: E2 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 0E 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 0E 00 AF 1F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 95 [17:28:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:28:28]wFMCommunicate OK [17:28:28]SAM_PROTO_GetShiftState done [17:28:28]FM_GetShiftState done [17:28:28]req_shift_opened done [17:28:28]requested_item shift.open_date is exist - process it [17:28:28]req_shift_open_date [17:28:28]req_shift_open_date done [17:28:28]produce_requested_data done [17:28:28]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111438,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:28:28]process_action_free close_receipt [17:28:28]json_value_free [17:28:28]json_value_free done [17:28:28]process_json_proto returns [17:28:28]Send response to host [17:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111438,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:28:28]free response buf [17:28:28]execute_script done [17:28:28]execute_script returns [17:28:28]free content buf [17:28:28]Sock 7.Close socket [17:28:28]Sock 7.Thread stoped [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:38]accept exits with 9 [17:28:38]New connection [17:28:38]New thread 3067465060 created [17:28:38]Thread 3067321700 joined [17:28:38]Waiting for new connection... [17:28:38] Sock 9.Parse request [17:28:38]Sock 9.Check first char [17:28:38]Sock 9.First char is OK [17:28:38]request: POST /json_proto HTTP/1.0 [17:28:38]Method: POST [17:28:38]URL: /json_proto [17:28:38]Method is POST - this is cgi request [17:28:38]url: /json_proto [17:28:38]query_string will be loaded in cgi processing [17:28:38]execute_cgi json_proto POST (null) [17:28:38]execute_cgi path=json_proto method=POST [17:28:38]POST find Content-Length [17:28:38]Host: 172.17.59.68:8080 [17:28:38]Content-Length: 673 [17:28:38]Content-Type: application/json [17:28:38] [17:28:38]POST finish read [17:28:38]Found Content-Length = 673 [17:28:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.000, "sum" : 66.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:38]execute_script... [17: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)320021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.000, "sum" : 66.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 66.00, "total" : 66.00, "payments": [ { "type": 0, "sum" : 66.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:38]POST & json_proto [17:28:38]process_json_proto [17:28:38]json parsed OK: [17:28:38]protocol is kg_v1.0 [17:28:38]action value=close_receipt [17:28:38]process_action close_receipt [17:28:38]cmd_close_receipt [17:28:38]MH_GetDate [17:28:38]Write to MH i2c: F0 00 00 B0 1F BE [17:28:38]Write i2c OK [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: F0 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: F0 09 00 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: F0 09 00 B0 1F 00 4D 15 73 66 BC EC 60 65 6F [17:28:38]GetLastDocTimeStamp 1718818112 [17:28:38]current date 1718818125 [17:28:38]FM_GetShiftState [17:28:38]SAM_PROTO_GetShiftState [17:28:38]wFMCommunicate request_size=4 [17:28:38]MH_SAM_APDU [17:28:38]CAPDU: 80 13 01 00 [17:28:38]Write to MH i2c: E2 08 00 B1 1F 80 13 01 00 00 00 00 00 4D [17:28:38]Write i2c OK [17:28:38]MH_I2C_Read... [17:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:38]Read from MH i2c: E2 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: E2 0E 00 [17:28:38]MH_I2C_Read... [17:28:38]Read from MH i2c: E2 0E 00 B1 1F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 97 [17:28:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:28:38]wFMCommunicate OK [17:28:38]SAM_PROTO_GetShiftState done [17:28:38]FM_GetShiftState done [17:28:38]opened in 1718760753 [17:28:38]opened+sec_in_day 1718847153 [17:28:38]quantity*price = 6640 [17:28:38]sum+1 = 6641 [17:28:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 66.00 Внесено: 66.00 СДАЧА: 0.00 НСП 1% : 0.59 НДС 12% : 7.05 Наличными: 66.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 188 19.06.2024 17:28 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111439 ФПД: 117425833362958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172845&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111439&fm=117425833362958&tin=02508201610067®Number=0000000000092771&sum=6600 [17:28:39]StoreToDocumentArchive [17:28:39]shift 388 fd 111439 [17:28:39]save to /storage/0388/doc_00111439 [17:28:39]save last doc name /storage/0388/doc_00111439 to /storage/kkm_last_doc_name [17:28:39]save OK [17:28:39]Clear old archive folders... [17:28:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:39]tlvbuf is 00EF9150 [17:28:39]SAM_PROTO_ClearQueue [17:28:39]wFMCommunicate request_size=4 [17:28:39]MH_SAM_APDU [17:28:39]CAPDU: 80 09 00 00 [17:28:39]Write to MH i2c: E2 08 00 BE 1F 80 09 00 00 00 00 00 00 4F [17:28:39]Write i2c OK [17:28:39]MH_I2C_Read... [17:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:39]Read from MH i2c: E2 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 03 00 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 03 00 BE 1F 00 90 00 51 [17:28:39]RAPDU: 90 00 [17:28:39]wFMCommunicate OK [17:28:39]SAM_PROTO_ClearQueue done [17:28:39]KKMCreateOFDPacket [17:28:39]OFDProtocolAddRootSTLVToBuf [17:28:39]FM_MakeSignedData [17:28:39]FM_MakeSignedData [17:28:39]SAM_PROTO_SignData [17:28:39]wFMCommunicate request_size=4 [17:28:39]MH_SAM_APDU [17:28:39]CAPDU: 80 0D 01 02 [17:28:39]Write to MH i2c: E2 08 00 BF 1F 80 0D 01 02 00 00 00 00 57 [17:28:39]Write i2c OK [17:28:39]MH_I2C_Read... [17:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:39]Read from MH i2c: E2 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 03 00 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 03 00 BF 1F 00 90 00 52 [17:28:39]RAPDU: 90 00 [17:28:39]wFMCommunicate OK [17:28:39]wFMCommunicate request_size=255 [17:28:39]MH_SAM_APDU [17:28: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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 4D 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B3 01 00 35 04 06 00 6A [17:28:39]Write to MH i2c: E2 02 01 C0 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 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 4D 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B3 01 00 35 04 06 00 6A 00 00 07 [17:28:39]Write i2c OK [17:28:39]MH_I2C_Read... [17:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:39]Read from MH i2c: E2 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 03 00 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 03 00 C0 1F 00 90 00 53 [17:28:39]RAPDU: 90 00 [17:28:39]wFMCommunicate OK [17:28:39]wFMCommunicate request_size=10 [17:28:39]MH_SAM_APDU [17:28:39]CAPDU: 80 0D 02 02 05 CC 55 15 C6 0E [17:28:39]Write to MH i2c: E2 0D 00 C1 1F 80 0D 02 02 05 00 CC 55 15 C6 0E 00 00 6E [17:28:39]Write i2c OK [17:28:39]MH_I2C_Read... [17:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:39]Read from MH i2c: E2 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 03 00 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 03 00 C1 1F 00 90 00 54 [17:28:39]RAPDU: 90 00 [17:28:39]wFMCommunicate OK [17:28:39]wFMCommunicate request_size=4 [17:28:39]MH_SAM_APDU [17:28:39]CAPDU: 80 0D 03 02 [17:28:39]Write to MH i2c: E2 08 00 C2 1F 80 0D 03 02 00 00 00 00 5C [17:28:39]Write i2c OK [17:28:39]MH_I2C_Read... [17:28:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:39]Read from MH i2c: E2 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 0B 00 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 0B 00 C2 1F 00 CD FA A8 34 BF 70 92 13 90 00 D4 [17:28:39]RAPDU: CD FA A8 34 BF 70 92 13 90 00 [17:28:39]wFMCommunicate OK [17:28:39]SAM_PROTO_SignData done [17:28:39]FM_MakeSignedData done [17:28:39]CreateOFDProtocolMessage [17:28:39]wFMCommunicate request_size=4 [17:28:39]MH_SAM_APDU [17:28:39]CAPDU: 80 11 00 00 [17:28:39]Write to MH i2c: E2 08 00 C3 1F 80 11 00 00 00 00 00 00 5C [17:28:39]Write i2c OK [17:28:39]MH_I2C_Read... [17:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:39]Read from MH i2c: E2 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 17 00 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: E2 17 00 C3 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AE [17:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:28:39]wFMCommunicate OK [17:28:39]CreateOFDProtocolMessage done [17:28:39]OFDSenderStorePacket 111439 [17:28:39]StoreOFDPacket docnum=111439 [17:28:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 17 BC 07 01 13 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 4D 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B3 01 00 35 04 06 00 6A CC 55 15 C6 0E CD FA A8 34 BF 70 92 13 [17:28:39]CheckFolder [17:28:39]dirname=/storage/ofd_packets [17:28:39]CheckFolder done [17:28:39]ProducePacketName [17:28:39]name=ofd_packets/00111439 [17:28:39]NVStorageSaveData ofd_packets/00111439 [17:28:39]File name is /storage/ofd_packets/00111439 [17:28:39]Write 301 bytes [17:28:39]NVStorageSaveData done [17:28:39]OFDSenderStorePacket done [17:28:39]KKMCreateOFDPacket done [17:28:39]NVStorageSaveData kkm_last_timestamp [17:28:39]File name is /storage/kkm_last_timestamp [17:28:39]Write 4 bytes [17:28:39]NVStorageSaveData done [17:28:39]ExternCall_PrintAddStr [17:28:39]wPrintStart [17:28:39]Write to MH i2c: 01 00 00 C4 1F E3 [17:28:39]Write i2c OK [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: 01 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: 01 07 00 [17:28:39]MH_I2C_Read... [17:28:39]Read from MH i2c: 01 07 00 C4 1F 00 00 00 00 00 FF 0F F8 [17:28:39]RasterBufferAndPrint [17:28:40]line Счет N : (1)320021 [17:28:40]line ИНН: 02508201610067 [17:28:40]line Контрольно-Кассовый Чек [17:28:40]line ПРОДАЖА [17:28:40]line ТРК (МРК, ГНК) : 11 [17:28:40]line Товар: 2710124130 [17:28:40]line Аи-92-К-5 [17:28:40]line 1.000 * 66.40 [17:28:40]line = 66.40 [17:28:40]line НДС 12% НСП 1% [17:28:40]line > о реализуемом товаре [17:28:40]line ОКРУГЛЕНИЕ: -0.40 [17:28:40]line ИТОГО: 66.00 [17:28:40]line Внесено: 66.00 [17:28:40]line СДАЧА: 0.00 [17:28:40]line НСП 1% : 0.59 [17:28:40]line НДС 12% : 7.05 [17:28:40]line Наличными: 66.00 [17:28:40]line Безнал.: 0.00 [17:28:40]line Место: АЗС № 65 "Партнер Нефть" [17:28:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:28:40]line СНО: Общий режим [17:28:40]line Чек 188 19.06.2024 17:28 [17:28:40]line Смена: 388 ФФД: 1.0 [17:28:40]line ЗНМ: 0300000198 [17:28:40]line РНМ: 0000000000092771 [17:28:40]line Версия ККМ: 001 [17:28:40]line ФМ: 0000000000875083 [17:28:40]line ФД: 111439 [17:28:40]line ФПД: 117425833362958 [17:28:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172845&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111439&fm=117425833362958&tin=02508201610067®Number=0000000000092771&sum=6600 [17:28:40]OFD Sender: Processing packet 111439 [packets to send 38, broken 37] [17:28:40]ProducePacketName [17:28:40]name=ofd_packets/00111439 [17:28:40]OFD Sender: To server: pG, [17:28:40]CommunicateWithHost lk.salyk.kg:30040 [17:28:40]ConnectInit lk.salyk.kg [17:28:40]written 0, free lines is 4095 [17:28:40]Connected sock=10 [17: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 35 30 38 33 0F 01 00 00 17 BC 07 01 13 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F0 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 02 00 00 00 00 07 04 06 00 C8 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 4D 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 4F B3 01 00 35 04 06 00 6A CC 55 15 C6 0E CD FA A8 34 BF 70 92 13 [17:28:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 06 94 47 00 81 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 35 30 38 33 10 04 04 00 4F B3 01 00 F4 03 04 00 B1 AC 72 66 B6 04 01 00 00 27 E3 44 AB AE E0 22 B6 [17:28:40]CommunicateWithHost err = 0 [17:28:40]CheckOFDResponse [17:28:40]1017 (14) - 77093643461234 [17:28:40]1041 (16) - 0000000000875083 [17:28:40]1040 (4) - 111439 [17:28:40]1012 (4) - 19.06.2024 10:02 [17:28:40]1206 (1) - 0 [17:28:40]OFD Sender: Remove packet 111439 [17:28:40]ProducePacketName [17:28:40]name=ofd_packets/00111439 [17:28:40]NVStorageDeleteData [17:28:40]Write to MH i2c: 01 00 00 EF 1F 0E [17:28:40]Write i2c OK [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: 01 [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: 01 07 00 [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: 01 07 00 EF 1F 00 00 00 00 00 D9 0C FA [17:28:40]RasterBufferAndPrint [17:28:40]line [17:28:40]line [17:28:40]line [17:28:40]line [17:28:40]line [17:28:40]written 0, free lines is 3296 [17:28:40]MH_Cut [17:28:40]Write to MH i2c: D1 01 00 F6 1F 01 E7 [17:28:40]Write i2c OK [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: D1 [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: D1 01 00 [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: D1 01 00 F6 1F 00 E6 [17:28:40]Write to MH i2c: 01 00 00 F7 1F 16 [17:28:40]Write i2c OK [17:28:40]MH_I2C_Read... [17:28:41]OFD Sender: No OFD packet to send [17:28:41]*** Cut start [17:28:41]*** Partial cut [17:28:41]*** CUTSNS_PIN = 1 [17:28:41]*** CUTSNS_PIN = 0 [17:28:41]*** Brake cut motor [17:28:42]Read from MH i2c: 01 [17:28:42]MH_I2C_Read... [17:28:42]*** Stop cut motor [17:28:42]*** Cut end [17:28:42]Read from MH i2c: 01 07 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: 01 07 00 F7 1F 00 00 00 00 00 FF 0F 2B [17:28:42]process_action close_receipt done [17:28:42]requested_data is exist [17:28:42]produce_requested_data [17:28:42]requested_item fm.sn is exist - process it [17:28:42]wFMCommunicate request_size=4 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 11 00 00 [17:28:42]Write to MH i2c: E2 08 00 F8 1F 80 11 00 00 00 00 00 00 91 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 17 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 17 00 F8 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E3 [17:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:28:42]wFMCommunicate OK [17:28:42]requested_item fd.num is exist - process it [17:28:42]SAM_PROTO_GetFieldsCounters [17:28:42]wFMCommunicate request_size=4 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 13 00 00 [17:28:42]Write to MH i2c: E2 08 00 F9 1F 80 13 00 00 00 00 00 00 94 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 62 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 62 00 F9 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B3 01 00 0E 04 04 00 84 01 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 71 [17: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 4F B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:42]wFMCommunicate OK [17:28:42]SAM_PROTO_GetFieldsCounters done [17:28:42]requested_item shift.num is exist - process it [17:28:42]requested_item shift.opened is exist - process it [17:28:42]req_shift_opened [17:28:42]FM_GetShiftState [17:28:42]SAM_PROTO_GetShiftState [17:28:42]wFMCommunicate request_size=4 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 13 01 00 [17:28:42]Write to MH i2c: E2 08 00 FA 1F 80 13 01 00 00 00 00 00 96 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 0E 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 0E 00 FA 1F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E0 [17:28:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:28:42]wFMCommunicate OK [17:28:42]SAM_PROTO_GetShiftState done [17:28:42]FM_GetShiftState done [17:28:42]req_shift_opened done [17:28:42]requested_item shift.open_date is exist - process it [17:28:42]req_shift_open_date [17:28:42]req_shift_open_date done [17:28:42]produce_requested_data done [17:28:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111439,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:28:42]process_action_free close_receipt [17:28:42]json_value_free [17:28:42]json_value_free done [17:28:42]process_json_proto returns [17:28:42]Send response to host [17:28:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111439,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:28:42]free response buf [17:28:42]execute_script done [17:28:42]execute_script returns [17:28:42]free content buf [17:28:42]Sock 9.Close socket [17:28:42]Sock 9.Thread stoped [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:13]accept exits with 7 [17:29:13]New connection [17:29:13]New thread 3067321700 created [17:29:13]Thread 3067465060 joined [17:29:13]Waiting for new connection... [17:29:13] Sock 7.Parse request [17:29:13]Sock 7.Check first char [17:29:13]Sock 7.First char is OK [17:29:13]request: POST /json_proto HTTP/1.0 [17:29:13]Method: POST [17:29:13]URL: /json_proto [17:29:13]Method is POST - this is cgi request [17:29:13]url: /json_proto [17:29:13]query_string will be loaded in cgi processing [17:29:13]execute_cgi json_proto POST (null) [17:29:13]execute_cgi path=json_proto method=POST [17:29:13]POST find Content-Length [17:29:13]Host: 172.17.59.68:8080 [17:29:13]Content-Length: 677 [17:29:13]Content-Type: application/json [17:29:13] [17:29:13]POST finish read [17:29:13]Found Content-Length = 677 [17:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:13]execute_script... [17:29:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:13]POST & json_proto [17:29:13]process_json_proto [17:29:13]json parsed OK: [17:29:13]protocol is kg_v1.0 [17:29:13]action value=close_receipt [17:29:13]process_action close_receipt [17:29:13]cmd_close_receipt [17:29:13]MH_GetDate [17:29:13]Write to MH i2c: F0 00 00 FB 1F 09 [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: F0 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: F0 09 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: F0 09 00 FB 1F 00 71 15 73 66 BC EC 60 65 DE [17:29:13]GetLastDocTimeStamp 1718818125 [17:29:13]current date 1718818161 [17:29:13]FM_GetShiftState [17:29:13]SAM_PROTO_GetShiftState [17:29:13]wFMCommunicate request_size=4 [17:29:13]MH_SAM_APDU [17:29:13]CAPDU: 80 13 01 00 [17:29:13]Write to MH i2c: E2 08 00 FC 1F 80 13 01 00 00 00 00 00 98 [17:29:13]Write i2c OK [17:29:13]MH_I2C_Read... [17:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:13]Read from MH i2c: E2 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 0E 00 [17:29:13]MH_I2C_Read... [17:29:13]Read from MH i2c: E2 0E 00 FC 1F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E2 [17:29:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:29:13]wFMCommunicate OK [17:29:13]SAM_PROTO_GetShiftState done [17:29:13]FM_GetShiftState done [17:29:13]opened in 1718760753 [17:29:13]opened+sec_in_day 1718847153 [17:29:13]quantity*price = 50065 [17:29:13]sum+1 = 50067 [17:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 189 19.06.2024 17:29 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111440 ФПД: 1728846833674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172921&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111440&fm=1728846833674&tin=02508201610067®Number=0000000000092771&sum=50000 [17:29:14]StoreToDocumentArchive [17:29:14]shift 388 fd 111440 [17:29:14]save to /storage/0388/doc_00111440 [17:29:14]save last doc name /storage/0388/doc_00111440 to /storage/kkm_last_doc_name [17:29:14]save OK [17:29:14]Clear old archive folders... [17:29:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:14]tlvbuf is B6FD5AF0 [17:29:14]SAM_PROTO_ClearQueue [17:29:14]wFMCommunicate request_size=4 [17:29:14]MH_SAM_APDU [17:29:14]CAPDU: 80 09 00 00 [17:29:14]Write to MH i2c: E2 08 00 09 20 80 09 00 00 00 00 00 00 9B [17:29:14]Write i2c OK [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: E2 [17:29:14]MH_I2C_Read... [17:29:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:14]Read from MH i2c: E2 03 00 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: E2 03 00 09 20 00 90 00 9D [17:29:14]RAPDU: 90 00 [17:29:14]wFMCommunicate OK [17:29:14]SAM_PROTO_ClearQueue done [17:29:14]KKMCreateOFDPacket [17:29:14]OFDProtocolAddRootSTLVToBuf [17:29:14]FM_MakeSignedData [17:29:14]FM_MakeSignedData [17:29:14]SAM_PROTO_SignData [17:29:14]wFMCommunicate request_size=4 [17:29:14]MH_SAM_APDU [17:29:14]CAPDU: 80 0D 01 02 [17:29:14]Write to MH i2c: E2 08 00 0A 20 80 0D 01 02 00 00 00 00 A3 [17:29:14]Write i2c OK [17:29:14]MH_I2C_Read... [17:29:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:14]Read from MH i2c: E2 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: E2 03 00 [17:29:14]MH_I2C_Read... [17:29:14]Read from MH i2c: E2 03 00 0A 20 00 90 00 9E [17:29:14]RAPDU: 90 00 [17:29:14]wFMCommunicate OK [17:29:14]wFMCommunicate request_size=255 [17:29:14]MH_SAM_APDU [17:29:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 71 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B3 01 00 35 04 06 00 01 [17:29:14]Write to MH i2c: E2 02 01 0B 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 71 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B3 01 00 35 04 06 00 01 00 00 FD [17:29:14]Write i2c OK [17:29:14]MH_I2C_Read... [17:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:15]Read from MH i2c: E2 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 03 00 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 03 00 0B 20 00 90 00 9F [17:29:15]RAPDU: 90 00 [17:29:15]wFMCommunicate OK [17:29:15]wFMCommunicate request_size=10 [17:29:15]MH_SAM_APDU [17:29:15]CAPDU: 80 0D 02 02 05 92 87 4D 28 0A [17:29:15]Write to MH i2c: E2 0D 00 0C 20 80 0D 02 02 05 00 92 87 4D 28 0A 00 00 48 [17:29:15]Write i2c OK [17:29:15]MH_I2C_Read... [17:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:15]Read from MH i2c: E2 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 03 00 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 03 00 0C 20 00 90 00 A0 [17:29:15]RAPDU: 90 00 [17:29:15]wFMCommunicate OK [17:29:15]wFMCommunicate request_size=4 [17:29:15]MH_SAM_APDU [17:29:15]CAPDU: 80 0D 03 02 [17:29:15]Write to MH i2c: E2 08 00 0D 20 80 0D 03 02 00 00 00 00 A8 [17:29:15]Write i2c OK [17:29:15]MH_I2C_Read... [17:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:15]Read from MH i2c: E2 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 0B 00 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 0B 00 0D 20 00 42 EC 3D C4 FF 8A 1F FE 90 00 7E [17:29:15]RAPDU: 42 EC 3D C4 FF 8A 1F FE 90 00 [17:29:15]wFMCommunicate OK [17:29:15]SAM_PROTO_SignData done [17:29:15]FM_MakeSignedData done [17:29:15]CreateOFDProtocolMessage [17:29:15]wFMCommunicate request_size=4 [17:29:15]MH_SAM_APDU [17:29:15]CAPDU: 80 11 00 00 [17:29:15]Write to MH i2c: E2 08 00 0E 20 80 11 00 00 00 00 00 00 A8 [17:29:15]Write i2c OK [17:29:15]MH_I2C_Read... [17:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:15]Read from MH i2c: E2 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 17 00 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: E2 17 00 0E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [17:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:29:15]wFMCommunicate OK [17:29:15]CreateOFDProtocolMessage done [17:29:15]OFDSenderStorePacket 111440 [17:29:15]StoreOFDPacket docnum=111440 [17:29:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D6 CF 07 01 73 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 71 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B3 01 00 35 04 06 00 01 92 87 4D 28 0A 42 EC 3D C4 FF 8A 1F FE [17:29:15]CheckFolder [17:29:15]dirname=/storage/ofd_packets [17:29:15]CheckFolder done [17:29:15]ProducePacketName [17:29:15]name=ofd_packets/00111440 [17:29:15]NVStorageSaveData ofd_packets/00111440 [17:29:15]File name is /storage/ofd_packets/00111440 [17:29:15]Write 301 bytes [17:29:15]NVStorageSaveData done [17:29:15]OFDSenderStorePacket done [17:29:15]KKMCreateOFDPacket done [17:29:15]NVStorageSaveData kkm_last_timestamp [17:29:15]File name is /storage/kkm_last_timestamp [17:29:15]Write 4 bytes [17:29:15]NVStorageSaveData done [17:29:15]ExternCall_PrintAddStr [17:29:15]wPrintStart [17:29:15]Write to MH i2c: 01 00 00 0F 20 2F [17:29:15]Write i2c OK [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: 01 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: 01 07 00 [17:29:15]MH_I2C_Read... [17:29:15]Read from MH i2c: 01 07 00 0F 20 00 00 00 00 00 FF 0F 44 [17:29:15]RasterBufferAndPrint [17:29:15]line Счет N : (1)320022 [17:29:15]line ИНН: 02508201610067 [17:29:15]line Контрольно-Кассовый Чек [17:29:15]line ПРОДАЖА [17:29:15]line ТРК (МРК, ГНК) : 11 [17:29:15]line Товар: 2710124130 [17:29:15]line Аи-92-К-5 [17:29:15]line 7.540 * 66.40 [17:29:15]line = 500.66 [17:29:15]line НДС 12% НСП 1% [17:29:15]line > о реализуемом товаре [17:29:15]line ОКРУГЛЕНИЕ: -0.66 [17:29:15]line ИТОГО: 500.00 [17:29:15]line Внесено: 500.00 [17:29:15]line СДАЧА: 0.00 [17:29:15]line НСП 1% : 4.43 [17:29:15]line НДС 12% : 53.17 [17:29:15]line Наличными: 500.00 [17:29:15]line Безнал.: 0.00 [17:29:15]line Место: АЗС № 65 "Партнер Нефть" [17:29:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:29:15]line СНО: Общий режим [17:29:15]line Чек 189 19.06.2024 17:29 [17:29:15]line Смена: 388 ФФД: 1.0 [17:29:15]line ЗНМ: 0300000198 [17:29:15]line РНМ: 0000000000092771 [17:29:15]line Версия ККМ: 001 [17:29:15]line ФМ: 0000000000875083 [17:29:15]line ФД: 111440 [17:29:15]line ФПД: 1728846833674 [17:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172921&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111440&fm=1728846833674&tin=02508201610067®Number=0000000000092771&sum=50000 [17:29:15]OFD Sender: Processing packet 111440 [packets to send 38, broken 37] [17:29:15]ProducePacketName [17:29:15]name=ofd_packets/00111440 [17:29:15]OFD Sender: To server: pG, [17:29:15]CommunicateWithHost lk.salyk.kg:30040 [17:29:15]ConnectInit lk.salyk.kg [17:29:15]written 0, free lines is 4095 [17:29:15]Connected sock=9 [17:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D6 CF 07 01 73 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 71 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 50 B3 01 00 35 04 06 00 01 92 87 4D 28 0A 42 EC 3D C4 FF 8A 1F FE [17:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 71 9B 47 00 2C 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 35 30 38 33 10 04 04 00 50 B3 01 00 F4 03 04 00 D4 AC 72 66 B6 04 01 00 00 B2 B6 13 32 33 F5 1F 84 [17:29:15]CommunicateWithHost err = 0 [17:29:15]CheckOFDResponse [17:29:15]1017 (14) - 77093643461234 [17:29:15]1041 (16) - 0000000000875083 [17:29:15]1040 (4) - 111440 [17:29:15]1012 (4) - 19.06.2024 10:03 [17:29:15]1206 (1) - 0 [17:29:15]OFD Sender: Remove packet 111440 [17:29:15]ProducePacketName [17:29:15]name=ofd_packets/00111440 [17:29:15]NVStorageDeleteData [17:29:16]Write to MH i2c: 01 00 00 3A 20 5A [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 07 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: 01 07 00 3A 20 00 00 00 00 00 D8 0C 45 [17:29:16]RasterBufferAndPrint [17:29:16]line [17:29:16]line [17:29:16]line [17:29:16]line [17:29:16]line [17:29:16]written 0, free lines is 3295 [17:29:16]MH_Cut [17:29:16]Write to MH i2c: D1 01 00 41 20 01 33 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: D1 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: D1 01 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: D1 01 00 41 20 00 32 [17:29:16]Write to MH i2c: 01 00 00 42 20 62 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]OFD Sender: No OFD packet to send [17:29:16]*** Cut start [17:29:16]*** Partial cut [17:29:16]*** CUTSNS_PIN = 1 [17:29:16]*** CUTSNS_PIN = 0 [17:29:17]*** Brake cut motor [17:29:17]Read from MH i2c: 01 [17:29:17]MH_I2C_Read... [17:29:17]*** Stop cut motor [17:29:17]*** Cut end [17:29:17]Read from MH i2c: 01 07 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: 01 07 00 42 20 00 00 00 00 00 FF 0F 77 [17:29:17]process_action close_receipt done [17:29:17]requested_data is exist [17:29:17]produce_requested_data [17:29:17]requested_item fm.sn is exist - process it [17:29:17]wFMCommunicate request_size=4 [17:29:17]MH_SAM_APDU [17:29:17]CAPDU: 80 11 00 00 [17:29:17]Write to MH i2c: E2 08 00 43 20 80 11 00 00 00 00 00 00 DD [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:17]Read from MH i2c: E2 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: E2 17 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: E2 17 00 43 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2F [17:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:29:17]wFMCommunicate OK [17:29:17]requested_item fd.num is exist - process it [17:29:17]SAM_PROTO_GetFieldsCounters [17:29:17]wFMCommunicate request_size=4 [17:29:17]MH_SAM_APDU [17:29:17]CAPDU: 80 13 00 00 [17:29:17]Write to MH i2c: E2 08 00 44 20 80 13 00 00 00 00 00 00 E0 [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:17]Read from MH i2c: E2 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: E2 62 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: E2 62 00 44 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B3 01 00 0E 04 04 00 84 01 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 C1 [17:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 50 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:17]wFMCommunicate OK [17:29:17]SAM_PROTO_GetFieldsCounters done [17:29:17]requested_item shift.num is exist - process it [17:29:17]requested_item shift.opened is exist - process it [17:29:17]req_shift_opened [17:29:17]FM_GetShiftState [17:29:17]SAM_PROTO_GetShiftState [17:29:17]wFMCommunicate request_size=4 [17:29:17]MH_SAM_APDU [17:29:17]CAPDU: 80 13 01 00 [17:29:17]Write to MH i2c: E2 08 00 45 20 80 13 01 00 00 00 00 00 E2 [17:29:17]Write i2c OK [17:29:17]MH_I2C_Read... [17:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:17]Read from MH i2c: E2 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: E2 0E 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: E2 0E 00 45 20 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2C [17:29:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:29:17]wFMCommunicate OK [17:29:17]SAM_PROTO_GetShiftState done [17:29:17]FM_GetShiftState done [17:29:17]req_shift_opened done [17:29:17]requested_item shift.open_date is exist - process it [17:29:17]req_shift_open_date [17:29:17]req_shift_open_date done [17:29:17]produce_requested_data done [17:29:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111440,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:29:17]process_action_free close_receipt [17:29:17]json_value_free [17:29:17]json_value_free done [17:29:17]process_json_proto returns [17:29:17]Send response to host [17:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111440,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:29:17]free response buf [17:29:17]execute_script done [17:29:17]execute_script returns [17:29:17]free content buf [17:29:17]Sock 7.Close socket [17:29:17]Sock 7.Thread stoped [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]accept exits with 10 [17:29:46]New connection [17:29:46]New thread 3067465060 created [17:29:46]Thread 3067321700 joined [17:29:46]Waiting for new connection... [17:29:46] Sock 10.Parse request [17:29:46]Sock 10.Check first char [17:29:46]Sock 10.First char is OK [17:29:46]request: POST /json_proto HTTP/1.0 [17:29:46]Method: POST [17:29:46]URL: /json_proto [17:29:46]Method is POST - this is cgi request [17:29:46]url: /json_proto [17:29:46]query_string will be loaded in cgi processing [17:29:46]execute_cgi json_proto POST (null) [17:29:46]execute_cgi path=json_proto method=POST [17:29:46]POST find Content-Length [17:29:46]Host: 172.17.59.68:8080 [17:29:46]Content-Length: 677 [17:29:46]Content-Type: application/json [17:29:46] [17:29:46]POST finish read [17:29:46]Found Content-Length = 677 [17:29:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.730, "sum" : 380.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:46]execute_script... [17: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)320023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.730, "sum" : 380.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:46]POST & json_proto [17:29:46]process_json_proto [17:29:46]json parsed OK: [17:29:46]protocol is kg_v1.0 [17:29:46]action value=close_receipt [17:29:46]process_action close_receipt [17:29:46]cmd_close_receipt [17:29:46]MH_GetDate [17:29:46]Write to MH i2c: F0 00 00 46 20 55 [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: F0 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: F0 09 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: F0 09 00 46 20 00 91 15 73 66 BC EC 60 65 4A [17:29:46]GetLastDocTimeStamp 1718818161 [17:29:46]current date 1718818193 [17:29:46]FM_GetShiftState [17:29:46]SAM_PROTO_GetShiftState [17:29:46]wFMCommunicate request_size=4 [17:29:46]MH_SAM_APDU [17:29:46]CAPDU: 80 13 01 00 [17:29:46]Write to MH i2c: E2 08 00 47 20 80 13 01 00 00 00 00 00 E4 [17:29:46]Write i2c OK [17:29:46]MH_I2C_Read... [17:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:46]Read from MH i2c: E2 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 0E 00 [17:29:46]MH_I2C_Read... [17:29:46]Read from MH i2c: E2 0E 00 47 20 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2E [17:29:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:29:46]wFMCommunicate OK [17:29:46]SAM_PROTO_GetShiftState done [17:29:46]FM_GetShiftState done [17:29:46]opened in 1718760753 [17:29:46]opened+sec_in_day 1718847153 [17:29:46]quantity*price = 38047 [17:29:46]sum+1 = 38048 [17:29:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.37 НДС 12% : 40.40 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 190 19.06.2024 17:29 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111441 ФПД: 38559962267687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172953&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111441&fm=38559962267687&tin=02508201610067®Number=0000000000092771&sum=38000 [17:29:47]StoreToDocumentArchive [17:29:47]shift 388 fd 111441 [17:29:47]save to /storage/0388/doc_00111441 [17:29:47]save last doc name /storage/0388/doc_00111441 to /storage/kkm_last_doc_name [17:29:47]save OK [17:29:47]Clear old archive folders... [17:29:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:47]tlvbuf is 00F0CCC0 [17:29:47]SAM_PROTO_ClearQueue [17:29:47]wFMCommunicate request_size=4 [17:29:47]MH_SAM_APDU [17:29:47]CAPDU: 80 09 00 00 [17:29:47]Write to MH i2c: E2 08 00 54 20 80 09 00 00 00 00 00 00 E6 [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:47]Read from MH i2c: E2 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 03 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [17:29:47]RAPDU: 90 00 [17:29:47]wFMCommunicate OK [17:29:47]SAM_PROTO_ClearQueue done [17:29:47]KKMCreateOFDPacket [17:29:47]OFDProtocolAddRootSTLVToBuf [17:29:47]FM_MakeSignedData [17:29:47]FM_MakeSignedData [17:29:47]SAM_PROTO_SignData [17:29:47]wFMCommunicate request_size=4 [17:29:47]MH_SAM_APDU [17:29:47]CAPDU: 80 0D 01 02 [17:29:47]Write to MH i2c: E2 08 00 55 20 80 0D 01 02 00 00 00 00 EE [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:47]Read from MH i2c: E2 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 03 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [17:29:47]RAPDU: 90 00 [17:29:47]wFMCommunicate OK [17:29:47]wFMCommunicate request_size=255 [17:29:47]MH_SAM_APDU [17:29: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 62 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 91 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B3 01 00 35 04 06 00 23 [17:29:47]Write to MH i2c: E2 02 01 56 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 62 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 91 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B3 01 00 35 04 06 00 23 00 00 C7 [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:47]Read from MH i2c: E2 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 03 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [17:29:47]RAPDU: 90 00 [17:29:47]wFMCommunicate OK [17:29:47]wFMCommunicate request_size=10 [17:29:47]MH_SAM_APDU [17:29:47]CAPDU: 80 0D 02 02 05 11 F0 DA 80 27 [17:29:47]Write to MH i2c: E2 0D 00 57 20 80 0D 02 02 05 00 11 F0 DA 80 27 00 00 7D [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:47]Read from MH i2c: E2 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 03 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [17:29:47]RAPDU: 90 00 [17:29:47]wFMCommunicate OK [17:29:47]wFMCommunicate request_size=4 [17:29:47]MH_SAM_APDU [17:29:47]CAPDU: 80 0D 03 02 [17:29:47]Write to MH i2c: E2 08 00 58 20 80 0D 03 02 00 00 00 00 F3 [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:47]Read from MH i2c: E2 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 0B 00 [17:29:47]MH_I2C_Read... [17:29:47]Read from MH i2c: E2 0B 00 58 20 00 97 D7 C0 7C 36 B9 0A 8A 90 00 21 [17:29:47]RAPDU: 97 D7 C0 7C 36 B9 0A 8A 90 00 [17:29:47]wFMCommunicate OK [17:29:47]SAM_PROTO_SignData done [17:29:47]FM_MakeSignedData done [17:29:47]CreateOFDProtocolMessage [17:29:47]wFMCommunicate request_size=4 [17:29:47]MH_SAM_APDU [17:29:47]CAPDU: 80 11 00 00 [17:29:47]Write to MH i2c: E2 08 00 59 20 80 11 00 00 00 00 00 00 F3 [17:29:47]Write i2c OK [17:29:47]MH_I2C_Read... [17:29:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:48]Read from MH i2c: E2 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: E2 17 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: E2 17 00 59 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [17:29:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:29:48]wFMCommunicate OK [17:29:48]CreateOFDProtocolMessage done [17:29:48]OFDSenderStorePacket 111441 [17:29:48]StoreOFDPacket docnum=111441 [17:29:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 44 07 01 F0 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 91 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B3 01 00 35 04 06 00 23 11 F0 DA 80 27 97 D7 C0 7C 36 B9 0A 8A [17:29:48]CheckFolder [17:29:48]dirname=/storage/ofd_packets [17:29:48]CheckFolder done [17:29:48]ProducePacketName [17:29:48]name=ofd_packets/00111441 [17:29:48]NVStorageSaveData ofd_packets/00111441 [17:29:48]File name is /storage/ofd_packets/00111441 [17:29:48]Write 301 bytes [17:29:48]NVStorageSaveData done [17:29:48]OFDSenderStorePacket done [17:29:48]KKMCreateOFDPacket done [17:29:48]NVStorageSaveData kkm_last_timestamp [17:29:48]File name is /storage/kkm_last_timestamp [17:29:48]Write 4 bytes [17:29:48]NVStorageSaveData done [17:29:48]ExternCall_PrintAddStr [17:29:48]wPrintStart [17:29:48]Write to MH i2c: 01 00 00 5A 20 7A [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: 01 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: 01 07 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: 01 07 00 5A 20 00 00 00 00 00 FF 0F 8F [17:29:48]RasterBufferAndPrint [17:29:48]line Счет N : (1)320023 [17:29:48]line ИНН: 02508201610067 [17:29:48]line Контрольно-Кассовый Чек [17:29:48]line ПРОДАЖА [17:29:48]line ТРК (МРК, ГНК) : 11 [17:29:48]line Товар: 2710124130 [17:29:48]line Аи-92-К-5 [17:29:48]line 5.730 * 66.40 [17:29:48]line = 380.47 [17:29:48]line НДС 12% НСП 1% [17:29:48]line > о реализуемом товаре [17:29:48]line ОКРУГЛЕНИЕ: -0.47 [17:29:48]line ИТОГО: 380.00 [17:29:48]line Внесено: 380.00 [17:29:48]line СДАЧА: 0.00 [17:29:48]line НСП 1% : 3.37 [17:29:48]line НДС 12% : 40.40 [17:29:48]line Наличными: 380.00 [17:29:48]line Безнал.: 0.00 [17:29:48]line Место: АЗС № 65 "Партнер Нефть" [17:29:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:29:48]line СНО: Общий режим [17:29:48]line Чек 190 19.06.2024 17:29 [17:29:48]line Смена: 388 ФФД: 1.0 [17:29:48]line ЗНМ: 0300000198 [17:29:48]line РНМ: 0000000000092771 [17:29:48]line Версия ККМ: 001 [17:29:48]line ФМ: 0000000000875083 [17:29:48]line ФД: 111441 [17:29:48]line ФПД: 38559962267687 [17:29:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T172953&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111441&fm=38559962267687&tin=02508201610067®Number=0000000000092771&sum=38000 [17:29:48]OFD Sender: Processing packet 111441 [packets to send 38, broken 37] [17:29:48]ProducePacketName [17:29:48]name=ofd_packets/00111441 [17:29:48]OFD Sender: To server: pG, [17:29:48]CommunicateWithHost lk.salyk.kg:30040 [17:29:48]ConnectInit lk.salyk.kg [17:29:48]written 0, free lines is 4095 [17:29:48]Connected sock=9 [17: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 35 30 38 33 0F 01 00 00 E5 44 07 01 F0 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 91 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 51 B3 01 00 35 04 06 00 23 11 F0 DA 80 27 97 D7 C0 7C 36 B9 0A 8A [17:29:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 10 C0 47 00 C5 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 35 30 38 33 10 04 04 00 51 B3 01 00 F4 03 04 00 F5 AC 72 66 B6 04 01 00 00 BD BF C0 13 CB 31 04 F1 [17:29:48]CommunicateWithHost err = 0 [17:29:48]CheckOFDResponse [17:29:48]1017 (14) - 77093643461234 [17:29:48]1041 (16) - 0000000000875083 [17:29:48]1040 (4) - 111441 [17:29:48]1012 (4) - 19.06.2024 10:03 [17:29:48]1206 (1) - 0 [17:29:48]OFD Sender: Remove packet 111441 [17:29:48]ProducePacketName [17:29:48]name=ofd_packets/00111441 [17:29:48]NVStorageDeleteData [17:29:48]Write to MH i2c: 01 00 00 85 20 A5 [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: 01 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: 01 07 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: 01 07 00 85 20 00 00 00 00 00 D2 0C 8A [17:29:48]RasterBufferAndPrint [17:29:48]line [17:29:48]line [17:29:48]line [17:29:48]line [17:29:48]line [17:29:48]written 0, free lines is 3290 [17:29:48]MH_Cut [17:29:48]Write to MH i2c: D1 01 00 8C 20 01 7E [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: D1 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: D1 01 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: D1 01 00 8C 20 00 7D [17:29:48]Write to MH i2c: 01 00 00 8D 20 AD [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:49]OFD Sender: No OFD packet to send [17:29:49]*** Cut start [17:29:49]*** Partial cut [17:29:49]*** CUTSNS_PIN = 1 [17:29:49]*** CUTSNS_PIN = 0 [17:29:49]*** Brake cut motor [17:29:50]Read from MH i2c: 01 [17:29:50]MH_I2C_Read... [17:29:50]*** Stop cut motor [17:29:50]*** Cut end [17:29:50]Read from MH i2c: 01 07 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 07 00 8D 20 00 00 00 00 00 FF 0F C2 [17:29:50]process_action close_receipt done [17:29:50]requested_data is exist [17:29:50]produce_requested_data [17:29:50]requested_item fm.sn is exist - process it [17:29:50]wFMCommunicate request_size=4 [17:29:50]MH_SAM_APDU [17:29:50]CAPDU: 80 11 00 00 [17:29:50]Write to MH i2c: E2 08 00 8E 20 80 11 00 00 00 00 00 00 28 [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:50]Read from MH i2c: E2 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 17 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 17 00 8E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7A [17:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:29:50]wFMCommunicate OK [17:29:50]requested_item fd.num is exist - process it [17:29:50]SAM_PROTO_GetFieldsCounters [17:29:50]wFMCommunicate request_size=4 [17:29:50]MH_SAM_APDU [17:29:50]CAPDU: 80 13 00 00 [17:29:50]Write to MH i2c: E2 08 00 8F 20 80 13 00 00 00 00 00 00 2B [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:50]Read from MH i2c: E2 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 62 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 62 00 8F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B3 01 00 0E 04 04 00 84 01 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 10 [17: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 51 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:50]wFMCommunicate OK [17:29:50]SAM_PROTO_GetFieldsCounters done [17:29:50]requested_item shift.num is exist - process it [17:29:50]requested_item shift.opened is exist - process it [17:29:50]req_shift_opened [17:29:50]FM_GetShiftState [17:29:50]SAM_PROTO_GetShiftState [17:29:50]wFMCommunicate request_size=4 [17:29:50]MH_SAM_APDU [17:29:50]CAPDU: 80 13 01 00 [17:29:50]Write to MH i2c: E2 08 00 90 20 80 13 01 00 00 00 00 00 2D [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:50]Read from MH i2c: E2 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 0E 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 0E 00 90 20 00 09 00 01 31 35 72 66 00 00 00 00 90 00 77 [17:29:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:29:50]wFMCommunicate OK [17:29:50]SAM_PROTO_GetShiftState done [17:29:50]FM_GetShiftState done [17:29:50]req_shift_opened done [17:29:50]requested_item shift.open_date is exist - process it [17:29:50]req_shift_open_date [17:29:50]req_shift_open_date done [17:29:50]produce_requested_data done [17:29:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111441,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:29:50]process_action_free close_receipt [17:29:50]json_value_free [17:29:50]json_value_free done [17:29:50]process_json_proto returns [17:29:50]Send response to host [17:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111441,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:29:50]free response buf [17:29:50]execute_script done [17:29:50]execute_script returns [17:29:50]free content buf [17:29:50]Sock 10.Close socket [17:29:50]Sock 10.Thread stoped [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:21]accept exits with 7 [17:31:21]New connection [17:31:21]New thread 3067321700 created [17:31:21]Thread 3067465060 joined [17:31:21]Waiting for new connection... [17:31:21] Sock 7.Parse request [17:31:21]Sock 7.Check first char [17:31:21]Sock 7.First char is OK [17:31:21]request: POST /json_proto HTTP/1.0 [17:31:21]Method: POST [17:31:21]URL: /json_proto [17:31:21]Method is POST - this is cgi request [17:31:21]url: /json_proto [17:31:21]query_string will be loaded in cgi processing [17:31:21]execute_cgi json_proto POST (null) [17:31:21]execute_cgi path=json_proto method=POST [17:31:21]POST find Content-Length [17:31:21]Host: 172.17.59.68:8080 [17:31:21]Content-Length: 674 [17:31:21]Content-Type: application/json [17:31:21] [17:31:21]POST finish read [17:31:21]Found Content-Length = 674 [17:31:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [17:31:21]execute_script... [17:31:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [17:31:21]POST & json_proto [17:31:21]process_json_proto [17:31:21]json parsed OK: [17:31:21]protocol is kg_v1.0 [17:31:21]action value=close_receipt [17:31:21]process_action close_receipt [17:31:21]cmd_close_receipt [17:31:21]MH_GetDate [17:31:21]Write to MH i2c: F0 00 00 91 20 A0 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: F0 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: F0 09 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: F0 09 00 91 20 00 F0 15 73 66 BC EC 60 65 F4 [17:31:21]GetLastDocTimeStamp 1718818193 [17:31:21]current date 1718818288 [17:31:21]FM_GetShiftState [17:31:21]SAM_PROTO_GetShiftState [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 13 01 00 [17:31:21]Write to MH i2c: E2 08 00 92 20 80 13 01 00 00 00 00 00 2F [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0E 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0E 00 92 20 00 09 00 01 31 35 72 66 00 00 00 00 90 00 79 [17:31:21]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:31:21]wFMCommunicate OK [17:31:21]SAM_PROTO_GetShiftState done [17:31:21]FM_GetShiftState done [17:31:21]opened in 1718760753 [17:31:21]opened+sec_in_day 1718847153 [17:31:21]quantity*price = 40022 [17:31:21]sum+1 = 40023 [17:31:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 191 19.06.2024 17:31 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111442 ФПД: 40640069924622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173128&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111442&fm=40640069924622&tin=02508201610067®Number=0000000000092771&sum=40000 [17:31:22]StoreToDocumentArchive [17:31:22]shift 388 fd 111442 [17:31:22]save to /storage/0388/doc_00111442 [17:31:22]save last doc name /storage/0388/doc_00111442 to /storage/kkm_last_doc_name [17:31:22]save OK [17:31:22]Clear old archive folders... [17:31:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:31:22]tlvbuf is B6FD5AC0 [17:31:22]SAM_PROTO_ClearQueue [17:31:22]wFMCommunicate request_size=4 [17:31:22]MH_SAM_APDU [17:31:22]CAPDU: 80 09 00 00 [17:31:22]Write to MH i2c: E2 08 00 9F 20 80 09 00 00 00 00 00 00 31 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 03 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [17:31:22]RAPDU: 90 00 [17:31:22]wFMCommunicate OK [17:31:22]SAM_PROTO_ClearQueue done [17:31:22]KKMCreateOFDPacket [17:31:22]OFDProtocolAddRootSTLVToBuf [17:31:22]FM_MakeSignedData [17:31:22]FM_MakeSignedData [17:31:22]SAM_PROTO_SignData [17:31:22]wFMCommunicate request_size=4 [17:31:22]MH_SAM_APDU [17:31:22]CAPDU: 80 0D 01 02 [17:31:22]Write to MH i2c: E2 08 00 A0 20 80 0D 01 02 00 00 00 00 39 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 03 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [17:31:22]RAPDU: 90 00 [17:31:22]wFMCommunicate OK [17:31:22]wFMCommunicate request_size=255 [17:31:22]MH_SAM_APDU [17:31: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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 BF 00 00 00 F4 03 04 00 F0 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B3 01 00 35 04 06 00 24 F6 40 EE [17:31:22]Write to MH i2c: E2 02 01 A1 20 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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 BF 00 00 00 F4 03 04 00 F0 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B3 01 00 35 04 06 00 24 F6 40 EE 00 00 DA [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 03 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 03 00 A1 20 00 90 00 35 [17:31:22]RAPDU: 90 00 [17:31:22]wFMCommunicate OK [17:31:22]wFMCommunicate request_size=7 [17:31:22]MH_SAM_APDU [17:31:22]CAPDU: 80 0D 02 02 02 77 0E [17:31:22]Write to MH i2c: E2 0A 00 A2 20 80 0D 02 02 02 00 77 0E 00 00 C5 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 03 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 03 00 A2 20 00 90 00 36 [17:31:22]RAPDU: 90 00 [17:31:22]wFMCommunicate OK [17:31:22]wFMCommunicate request_size=4 [17:31:22]MH_SAM_APDU [17:31:22]CAPDU: 80 0D 03 02 [17:31:22]Write to MH i2c: E2 08 00 A3 20 80 0D 03 02 00 00 00 00 3E [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 0B 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 0B 00 A3 20 00 1E 74 0C F7 4E 42 3E 6C 90 00 0E [17:31:22]RAPDU: 1E 74 0C F7 4E 42 3E 6C 90 00 [17:31:22]wFMCommunicate OK [17:31:22]SAM_PROTO_SignData done [17:31:22]FM_MakeSignedData done [17:31:22]CreateOFDProtocolMessage [17:31:22]wFMCommunicate request_size=4 [17:31:22]MH_SAM_APDU [17:31:22]CAPDU: 80 11 00 00 [17:31:22]Write to MH i2c: E2 08 00 A4 20 80 11 00 00 00 00 00 00 3E [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:22]Read from MH i2c: E2 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 17 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: E2 17 00 A4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 90 [17:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:31:22]wFMCommunicate OK [17:31:22]CreateOFDProtocolMessage done [17:31:22]OFDSenderStorePacket 111442 [17:31:22]StoreOFDPacket docnum=111442 [17:31:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CC 57 04 01 DB 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 BF 00 00 00 F4 03 04 00 F0 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B3 01 00 35 04 06 00 24 F6 40 EE 77 0E 1E 74 0C F7 4E 42 3E 6C [17:31:22]CheckFolder [17:31:22]dirname=/storage/ofd_packets [17:31:22]CheckFolder done [17:31:22]ProducePacketName [17:31:22]name=ofd_packets/00111442 [17:31:22]NVStorageSaveData ofd_packets/00111442 [17:31:22]File name is /storage/ofd_packets/00111442 [17:31:22]Write 298 bytes [17:31:22]NVStorageSaveData done [17:31:22]OFDSenderStorePacket done [17:31:22]KKMCreateOFDPacket done [17:31:22]NVStorageSaveData kkm_last_timestamp [17:31:22]File name is /storage/kkm_last_timestamp [17:31:22]Write 4 bytes [17:31:22]NVStorageSaveData done [17:31:22]ExternCall_PrintAddStr [17:31:22]wPrintStart [17:31:22]Write to MH i2c: 01 00 00 A5 20 C5 [17:31:22]Write i2c OK [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 [17:31:22]MH_I2C_Read... [17:31:22]Read from MH i2c: 01 07 00 A5 20 00 00 00 00 00 FF 0F DA [17:31:22]RasterBufferAndPrint [17:31:22]line Счет N : (1)320024 [17:31:22]line ИНН: 02508201610067 [17:31:22]line Контрольно-Кассовый Чек [17:31:22]line ПРОДАЖА [17:31:22]line ТРК (МРК, ГНК) : 22 [17:31:22]line Товар: 2710194210 [17:31:22]line ДТ-К-5 [17:31:22]line 5.490 * 72.90 [17:31:22]line = 400.22 [17:31:22]line НДС 12% НСП 1% [17:31:22]line > о реализуемом товаре [17:31:22]line ОКРУГЛЕНИЕ: -0.22 [17:31:22]line ИТОГО: 400.00 [17:31:22]line Внесено: 400.00 [17:31:22]line СДАЧА: 0.00 [17:31:22]line НСП 1% : 3.54 [17:31:22]line НДС 12% : 42.50 [17:31:22]line Наличными: 400.00 [17:31:22]line Безнал.: 0.00 [17:31:22]line Место: АЗС № 65 "Партнер Нефть" [17:31:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:31:22]line СНО: Общий режим [17:31:22]line Чек 191 19.06.2024 17:31 [17:31:22]line Смена: 388 ФФД: 1.0 [17:31:22]line ЗНМ: 0300000198 [17:31:22]line РНМ: 0000000000092771 [17:31:22]line Версия ККМ: 001 [17:31:22]line ФМ: 0000000000875083 [17:31:22]line ФД: 111442 [17:31:22]line ФПД: 40640069924622 [17:31:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173128&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111442&fm=40640069924622&tin=02508201610067®Number=0000000000092771&sum=40000 [17:31:23]OFD Sender: Processing packet 111442 [packets to send 38, broken 37] [17:31:23]ProducePacketName [17:31:23]name=ofd_packets/00111442 [17:31:23]OFD Sender: To server: pG, [17:31:23]CommunicateWithHost lk.salyk.kg:30040 [17:31:23]ConnectInit lk.salyk.kg [17:31:23]written 0, free lines is 4095 [17:31:23]Connected sock=10 [17:31:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CC 57 04 01 DB 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 BF 00 00 00 F4 03 04 00 F0 15 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B3 01 00 35 04 06 00 24 F6 40 EE 77 0E 1E 74 0C F7 4E 42 3E 6C [17:31:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 99 B9 47 00 0F 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 52 B3 01 00 F4 03 04 00 54 AD 72 66 B6 04 01 00 00 58 B9 CD DA DC 04 22 97 [17:31:23]CommunicateWithHost err = 0 [17:31:23]CheckOFDResponse [17:31:23]1017 (14) - 77093643461234 [17:31:23]1041 (16) - 0000000000875083 [17:31:23]1040 (4) - 111442 [17:31:23]1012 (4) - 19.06.2024 10:05 [17:31:23]1206 (1) - 0 [17:31:23]OFD Sender: Remove packet 111442 [17:31:23]ProducePacketName [17:31:23]name=ofd_packets/00111442 [17:31:23]NVStorageDeleteData [17:31:23]Write to MH i2c: 01 00 00 D0 20 F0 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: 01 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: 01 07 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: 01 07 00 D0 20 00 00 00 00 00 D7 0C DA [17:31:23]RasterBufferAndPrint [17:31:23]line [17:31:23]line [17:31:23]line [17:31:23]line [17:31:23]line [17:31:23]written 0, free lines is 3294 [17:31:23]MH_Cut [17:31:23]Write to MH i2c: D1 01 00 D7 20 01 C9 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: D1 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: D1 01 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: D1 01 00 D7 20 00 C8 [17:31:23]Write to MH i2c: 01 00 00 D8 20 F8 [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:24]OFD Sender: No OFD packet to send [17:31:24]*** Cut start [17:31:24]*** Partial cut [17:31:24]*** CUTSNS_PIN = 1 [17:31:24]*** CUTSNS_PIN = 0 [17:31:24]*** Brake cut motor [17:31:25]Read from MH i2c: 01 [17:31:25]MH_I2C_Read... [17:31:25]*** Stop cut motor [17:31:25]*** Cut end [17:31:25]Read from MH i2c: 01 07 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 07 00 D8 20 00 00 00 00 00 FF 0F 0D [17:31:25]process_action close_receipt done [17:31:25]requested_data is exist [17:31:25]produce_requested_data [17:31:25]requested_item fm.sn is exist - process it [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 11 00 00 [17:31:25]Write to MH i2c: E2 08 00 D9 20 80 11 00 00 00 00 00 00 73 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 17 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 17 00 D9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C5 [17:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:31:25]wFMCommunicate OK [17:31:25]requested_item fd.num is exist - process it [17:31:25]SAM_PROTO_GetFieldsCounters [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 13 00 00 [17:31:25]Write to MH i2c: E2 08 00 DA 20 80 13 00 00 00 00 00 00 76 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 62 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 62 00 DA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B3 01 00 0E 04 04 00 84 01 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 5F [17:31:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 52 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_GetFieldsCounters done [17:31:25]requested_item shift.num is exist - process it [17:31:25]requested_item shift.opened is exist - process it [17:31:25]req_shift_opened [17:31:25]FM_GetShiftState [17:31:25]SAM_PROTO_GetShiftState [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 13 01 00 [17:31:25]Write to MH i2c: E2 08 00 DB 20 80 13 01 00 00 00 00 00 78 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0E 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0E 00 DB 20 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C2 [17:31:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_GetShiftState done [17:31:25]FM_GetShiftState done [17:31:25]req_shift_opened done [17:31:25]requested_item shift.open_date is exist - process it [17:31:25]req_shift_open_date [17:31:25]req_shift_open_date done [17:31:25]produce_requested_data done [17:31:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111442,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:31:25]process_action_free close_receipt [17:31:25]json_value_free [17:31:25]json_value_free done [17:31:25]process_json_proto returns [17:31:25]Send response to host [17:31:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111442,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:31:25]free response buf [17:31:25]execute_script done [17:31:25]execute_script returns [17:31:25]free content buf [17:31:25]Sock 7.Close socket [17:31:25]Sock 7.Thread stoped [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:55]accept exits with 9 [17:34:55]New connection [17:34:55]New thread 3067465060 created [17:34:55]Thread 3067321700 joined [17:34:55]Waiting for new connection... [17:34:55] Sock 9.Parse request [17:34:55]Sock 9.Check first char [17:34:55]Sock 9.First char is OK [17:34:55]request: POST /json_proto HTTP/1.0 [17:34:55]Method: POST [17:34:55]URL: /json_proto [17:34:55]Method is POST - this is cgi request [17:34:55]url: /json_proto [17:34:55]query_string will be loaded in cgi processing [17:34:55]execute_cgi json_proto POST (null) [17:34:55]execute_cgi path=json_proto method=POST [17:34:55]POST find Content-Length [17:34:55]Host: 172.17.59.68:8080 [17:34:55]Content-Length: 677 [17:34:55]Content-Type: application/json [17:34:55] [17:34:55]POST finish read [17:34:55]Found Content-Length = 677 [17:34:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [17:34:55]execute_script... [17:34: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)320025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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" ] } } [17:34:55]POST & json_proto [17:34:55]process_json_proto [17:34:55]json parsed OK: [17:34:55]protocol is kg_v1.0 [17:34:55]action value=close_receipt [17:34:55]process_action close_receipt [17:34:55]cmd_close_receipt [17:34:55]MH_GetDate [17:34:55]Write to MH i2c: F0 00 00 DC 20 EB [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: F0 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: F0 09 00 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: F0 09 00 DC 20 00 C7 16 73 66 BC EC 60 65 17 [17:34:55]GetLastDocTimeStamp 1718818288 [17:34:55]current date 1718818503 [17:34:55]FM_GetShiftState [17:34:55]SAM_PROTO_GetShiftState [17:34:55]wFMCommunicate request_size=4 [17:34:55]MH_SAM_APDU [17:34:55]CAPDU: 80 13 01 00 [17:34:55]Write to MH i2c: E2 08 00 DD 20 80 13 01 00 00 00 00 00 7A [17:34:55]Write i2c OK [17:34:55]MH_I2C_Read... [17:34:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:55]Read from MH i2c: E2 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: E2 0E 00 [17:34:55]MH_I2C_Read... [17:34:55]Read from MH i2c: E2 0E 00 DD 20 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C4 [17:34:55]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:34:55]wFMCommunicate OK [17:34:55]SAM_PROTO_GetShiftState done [17:34:55]FM_GetShiftState done [17:34:55]opened in 1718760753 [17:34:55]opened+sec_in_day 1718847153 [17:34:55]quantity*price = 40039 [17:34:55]sum+1 = 40040 [17:34:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 192 19.06.2024 17:35 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111443 ФПД: 228921346695438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173503&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111443&fm=228921346695438&tin=02508201610067®Number=0000000000092771&sum=40000 [17:34:56]StoreToDocumentArchive [17:34:56]shift 388 fd 111443 [17:34:56]save to /storage/0388/doc_00111443 [17:34:56]save last doc name /storage/0388/doc_00111443 to /storage/kkm_last_doc_name [17:34:56]save OK [17:34:56]Clear old archive folders... [17:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:56]tlvbuf is 00F0CC30 [17:34:56]SAM_PROTO_ClearQueue [17:34:56]wFMCommunicate request_size=4 [17:34:56]MH_SAM_APDU [17:34:56]CAPDU: 80 09 00 00 [17:34:56]Write to MH i2c: E2 08 00 EA 20 80 09 00 00 00 00 00 00 7C [17:34:56]Write i2c OK [17:34:56]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:57]Read from MH i2c: E2 03 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 03 00 EA 20 00 90 00 7E [17:34:57]RAPDU: 90 00 [17:34:57]wFMCommunicate OK [17:34:57]SAM_PROTO_ClearQueue done [17:34:57]KKMCreateOFDPacket [17:34:57]OFDProtocolAddRootSTLVToBuf [17:34:57]FM_MakeSignedData [17:34:57]FM_MakeSignedData [17:34:57]SAM_PROTO_SignData [17:34:57]wFMCommunicate request_size=4 [17:34:57]MH_SAM_APDU [17:34:57]CAPDU: 80 0D 01 02 [17:34:57]Write to MH i2c: E2 08 00 EB 20 80 0D 01 02 00 00 00 00 84 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 03 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 03 00 EB 20 00 90 00 7F [17:34:57]RAPDU: 90 00 [17:34:57]wFMCommunicate OK [17:34:57]wFMCommunicate request_size=255 [17:34:57]MH_SAM_APDU [17:34: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C0 00 00 00 F4 03 04 00 C7 16 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B3 01 00 35 04 06 00 D0 [17:34:57]Write to MH i2c: E2 02 01 EC 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C0 00 00 00 F4 03 04 00 C7 16 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B3 01 00 35 04 06 00 D0 00 00 D8 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 03 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 03 00 EC 20 00 90 00 80 [17:34:57]RAPDU: 90 00 [17:34:57]wFMCommunicate OK [17:34:57]wFMCommunicate request_size=10 [17:34:57]MH_SAM_APDU [17:34:57]CAPDU: 80 0D 02 02 05 33 E7 8D 21 0E [17:34:57]Write to MH i2c: E2 0D 00 ED 20 80 0D 02 02 05 00 33 E7 8D 21 0E 00 00 67 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 03 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 03 00 ED 20 00 90 00 81 [17:34:57]RAPDU: 90 00 [17:34:57]wFMCommunicate OK [17:34:57]wFMCommunicate request_size=4 [17:34:57]MH_SAM_APDU [17:34:57]CAPDU: 80 0D 03 02 [17:34:57]Write to MH i2c: E2 08 00 EE 20 80 0D 03 02 00 00 00 00 89 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 0B 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 0B 00 EE 20 00 E1 8D 9C 3D E1 E1 C5 6A 90 00 C2 [17:34:57]RAPDU: E1 8D 9C 3D E1 E1 C5 6A 90 00 [17:34:57]wFMCommunicate OK [17:34:57]SAM_PROTO_SignData done [17:34:57]FM_MakeSignedData done [17:34:57]CreateOFDProtocolMessage [17:34:57]wFMCommunicate request_size=4 [17:34:57]MH_SAM_APDU [17:34:57]CAPDU: 80 11 00 00 [17:34:57]Write to MH i2c: E2 08 00 EF 20 80 11 00 00 00 00 00 00 89 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:57]Read from MH i2c: E2 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 17 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: E2 17 00 EF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DB [17:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:34:57]wFMCommunicate OK [17:34:57]CreateOFDProtocolMessage done [17:34:57]OFDSenderStorePacket 111443 [17:34:57]StoreOFDPacket docnum=111443 [17:34:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D5 1B 07 01 41 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C0 00 00 00 F4 03 04 00 C7 16 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B3 01 00 35 04 06 00 D0 33 E7 8D 21 0E E1 8D 9C 3D E1 E1 C5 6A [17:34:57]CheckFolder [17:34:57]dirname=/storage/ofd_packets [17:34:57]CheckFolder done [17:34:57]ProducePacketName [17:34:57]name=ofd_packets/00111443 [17:34:57]NVStorageSaveData ofd_packets/00111443 [17:34:57]File name is /storage/ofd_packets/00111443 [17:34:57]Write 301 bytes [17:34:57]NVStorageSaveData done [17:34:57]OFDSenderStorePacket done [17:34:57]KKMCreateOFDPacket done [17:34:57]NVStorageSaveData kkm_last_timestamp [17:34:57]File name is /storage/kkm_last_timestamp [17:34:57]Write 4 bytes [17:34:57]NVStorageSaveData done [17:34:57]OFD Sender: Processing packet 111443 [packets to send 38, broken 37] [17:34:57]ProducePacketName [17:34:57]name=ofd_packets/00111443 [17:34:57]OFD Sender: To server: pG, [17:34:57]CommunicateWithHost lk.salyk.kg:30040 [17:34:57]ConnectInit lk.salyk.kg [17:34:57]ExternCall_PrintAddStr [17:34:57]wPrintStart [17:34:57]Write to MH i2c: 01 00 00 F0 20 10 [17:34:57]Write i2c OK [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 07 00 [17:34:57]MH_I2C_Read... [17:34:57]Read from MH i2c: 01 07 00 F0 20 00 00 00 00 00 FF 0F 25 [17:34:57]RasterBufferAndPrint [17:34:57]line Счет N : (1)320025 [17:34:57]line ИНН: 02508201610067 [17:34:57]line Контрольно-Кассовый Чек [17:34:57]line ПРОДАЖА [17:34:57]line ТРК (МРК, ГНК) : 11 [17:34:57]line Товар: 2710124130 [17:34:57]line Аи-92-К-5 [17:34:57]line 6.030 * 66.40 [17:34:57]line = 400.39 [17:34:57]line НДС 12% НСП 1% [17:34:57]line > о реализуемом товаре [17:34:57]line ОКРУГЛЕНИЕ: -0.39 [17:34:57]line ИТОГО: 400.00 [17:34:57]line Внесено: 400.00 [17:34:57]line СДАЧА: 0.00 [17:34:57]line НСП 1% : 3.54 [17:34:57]line НДС 12% : 42.52 [17:34:57]line Наличными: 400.00 [17:34:57]line Безнал.: 0.00 [17:34:57]line Место: АЗС № 65 "Партнер Нефть" [17:34:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:34:57]line СНО: Общий режим [17:34:57]line Чек 192 19.06.2024 17:35 [17:34:57]line Смена: 388 ФФД: 1.0 [17:34:57]line ЗНМ: 0300000198 [17:34:57]line РНМ: 0000000000092771 [17:34:57]line Версия ККМ: 001 [17:34:57]line ФМ: 0000000000875083 [17:34:57]line ФД: 111443 [17:34:57]line ФПД: 228921346695438 [17:34:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173503&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111443&fm=228921346695438&tin=02508201610067®Number=0000000000092771&sum=40000 [17:34:57]Connected sock=11 [17:34:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D5 1B 07 01 41 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 C0 00 00 00 F4 03 04 00 C7 16 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B3 01 00 35 04 06 00 D0 33 E7 8D 21 0E E1 8D 9C 3D E1 E1 C5 6A [17:34:57]written 0, free lines is 4095 [17:34:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F7 55 47 00 41 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 53 B3 01 00 F4 03 04 00 2A AE 72 66 B6 04 01 00 00 5F E1 0F A4 DE 39 F9 69 [17:34:58]CommunicateWithHost err = 0 [17:34:58]CheckOFDResponse [17:34:58]1017 (14) - 77093643461234 [17:34:58]1041 (16) - 0000000000875083 [17:34:58]1040 (4) - 111443 [17:34:58]1012 (4) - 19.06.2024 10:08 [17:34:58]1206 (1) - 0 [17:34:58]OFD Sender: Remove packet 111443 [17:34:58]ProducePacketName [17:34:58]name=ofd_packets/00111443 [17:34:58]NVStorageDeleteData [17:34:58]Write to MH i2c: 01 00 00 1B 21 3C [17:34:58]Write i2c OK [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: 01 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: 01 07 00 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 D8 0C 27 [17:34:58]RasterBufferAndPrint [17:34:58]line [17:34:58]line [17:34:58]line [17:34:58]line [17:34:58]line [17:34:58]written 0, free lines is 3295 [17:34:58]MH_Cut [17:34:58]Write to MH i2c: D1 01 00 22 21 01 15 [17:34:58]Write i2c OK [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: D1 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: D1 01 00 [17:34:58]MH_I2C_Read... [17:34:58]Read from MH i2c: D1 01 00 22 21 00 14 [17:34:58]Write to MH i2c: 01 00 00 23 21 44 [17:34:58]Write i2c OK [17:34:58]MH_I2C_Read... [17:34:58]OFD Sender: No OFD packet to send [17:34:59]*** Cut start [17:34:59]*** Partial cut [17:34:59]*** CUTSNS_PIN = 1 [17:34:59]*** CUTSNS_PIN = 0 [17:34:59]*** Brake cut motor [17:34:59]Read from MH i2c: 01 [17:34:59]MH_I2C_Read... [17:34:59]*** Stop cut motor [17:34:59]*** Cut end [17:34:59]Read from MH i2c: 01 07 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: 01 07 00 23 21 00 00 00 00 00 FF 0F 59 [17:34:59]process_action close_receipt done [17:34:59]requested_data is exist [17:34:59]produce_requested_data [17:34:59]requested_item fm.sn is exist - process it [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 11 00 00 [17:34:59]Write to MH i2c: E2 08 00 24 21 80 11 00 00 00 00 00 00 BF [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 17 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 17 00 24 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [17:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:34:59]wFMCommunicate OK [17:34:59]requested_item fd.num is exist - process it [17:34:59]SAM_PROTO_GetFieldsCounters [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 13 00 00 [17:34:59]Write to MH i2c: E2 08 00 25 21 80 13 00 00 00 00 00 00 C2 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 62 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 62 00 25 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B3 01 00 0E 04 04 00 84 01 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 AF [17:34: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 53 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:59]wFMCommunicate OK [17:34:59]SAM_PROTO_GetFieldsCounters done [17:34:59]requested_item shift.num is exist - process it [17:34:59]requested_item shift.opened is exist - process it [17:34:59]req_shift_opened [17:34:59]FM_GetShiftState [17:34:59]SAM_PROTO_GetShiftState [17:34:59]wFMCommunicate request_size=4 [17:34:59]MH_SAM_APDU [17:34:59]CAPDU: 80 13 01 00 [17:34:59]Write to MH i2c: E2 08 00 26 21 80 13 01 00 00 00 00 00 C4 [17:34:59]Write i2c OK [17:34:59]MH_I2C_Read... [17:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:59]Read from MH i2c: E2 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 0E 00 [17:34:59]MH_I2C_Read... [17:34:59]Read from MH i2c: E2 0E 00 26 21 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0E [17:34:59]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:34:59]wFMCommunicate OK [17:34:59]SAM_PROTO_GetShiftState done [17:34:59]FM_GetShiftState done [17:34:59]req_shift_opened done [17:34:59]requested_item shift.open_date is exist - process it [17:34:59]req_shift_open_date [17:34:59]req_shift_open_date done [17:34:59]produce_requested_data done [17:34:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111443,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:34:59]process_action_free close_receipt [17:34:59]json_value_free [17:34:59]json_value_free done [17:34:59]process_json_proto returns [17:34:59]Send response to host [17:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111443,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:34:59]free response buf [17:34:59]execute_script done [17:34:59]execute_script returns [17:34:59]free content buf [17:34:59]Sock 9.Close socket [17:34:59]Sock 9.Thread stoped [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:54]accept exits with 7 [17:38:54]New connection [17:38:54]New thread 3067321700 created [17:38:54]Thread 3067465060 joined [17:38:54]Waiting for new connection... [17:38:54] Sock 7.Parse request [17:38:54]Sock 7.Check first char [17:38:54]Sock 7.First char is OK [17:38:54]request: POST /json_proto HTTP/1.0 [17:38:54]Method: POST [17:38:54]URL: /json_proto [17:38:54]Method is POST - this is cgi request [17:38:54]url: /json_proto [17:38:54]query_string will be loaded in cgi processing [17:38:54]execute_cgi json_proto POST (null) [17:38:54]execute_cgi path=json_proto method=POST [17:38:54]POST find Content-Length [17:38:54]Host: 172.17.59.68:8080 [17:38:54]Content-Length: 805 [17:38:54]Content-Type: application/json [17:38:54] [17:38:54]POST finish read [17:38:54]Found Content-Length = 805 [17:38:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:54]execute_script... [17:38: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)320026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:54]POST & json_proto [17:38:54]process_json_proto [17:38:54]json parsed OK: [17:38:54]protocol is kg_v1.0 [17:38:54]action value=close_receipt [17:38:54]process_action close_receipt [17:38:54]cmd_close_receipt [17:38:54]MH_GetDate [17:38:54]Write to MH i2c: F0 00 00 27 21 37 [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: F0 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: F0 09 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: F0 09 00 27 21 00 B6 17 73 66 BC EC 60 65 53 [17:38:54]GetLastDocTimeStamp 1718818503 [17:38:54]current date 1718818742 [17:38:54]FM_GetShiftState [17:38:54]SAM_PROTO_GetShiftState [17:38:54]wFMCommunicate request_size=4 [17:38:54]MH_SAM_APDU [17:38:54]CAPDU: 80 13 01 00 [17:38:54]Write to MH i2c: E2 08 00 28 21 80 13 01 00 00 00 00 00 C6 [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:54]Read from MH i2c: E2 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 0E 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 0E 00 28 21 00 09 00 01 31 35 72 66 00 00 00 00 90 00 10 [17:38:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:38:54]wFMCommunicate OK [17:38:54]SAM_PROTO_GetShiftState done [17:38:54]FM_GetShiftState done [17:38:54]opened in 1718760753 [17:38:54]opened+sec_in_day 1718847153 [17:38:54]quantity*price = 50065 [17:38:54]sum+1 = 50067 [17:38:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 193 19.06.2024 17:39 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111444 ФПД: 183798277405128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173902&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111444&fm=183798277405128&tin=02508201610067®Number=0000000000092771&sum=50066 [17:38:55]StoreToDocumentArchive [17:38:55]shift 388 fd 111444 [17:38:55]save to /storage/0388/doc_00111444 [17:38:55]save last doc name /storage/0388/doc_00111444 to /storage/kkm_last_doc_name [17:38:55]save OK [17:38:55]Clear old archive folders... [17:38:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:55]tlvbuf is B6FD2880 [17:38:55]SAM_PROTO_ClearQueue [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 09 00 00 [17:38:55]Write to MH i2c: E2 08 00 35 21 80 09 00 00 00 00 00 00 C8 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 35 21 00 90 00 CA [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]SAM_PROTO_ClearQueue done [17:38:55]KKMCreateOFDPacket [17:38:55]OFDProtocolAddRootSTLVToBuf [17:38:55]FM_MakeSignedData [17:38:55]FM_MakeSignedData [17:38:55]SAM_PROTO_SignData [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 01 02 [17:38:55]Write to MH i2c: E2 08 00 36 21 80 0D 01 02 00 00 00 00 D0 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 36 21 00 90 00 CB [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]wFMCommunicate request_size=255 [17:38:55]MH_SAM_APDU [17:38: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B6 17 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B3 01 00 35 04 06 00 A7 [17:38:55]Write to MH i2c: E2 02 01 37 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B6 17 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B3 01 00 35 04 06 00 A7 00 00 A3 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 37 21 00 90 00 CC [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]wFMCommunicate request_size=10 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 02 02 05 29 DF 08 F9 C8 [17:38:55]Write to MH i2c: E2 0D 00 38 21 80 0D 02 02 05 00 29 DF 08 F9 C8 00 00 AE [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 38 21 00 90 00 CD [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 03 02 [17:38:55]Write to MH i2c: E2 08 00 39 21 80 0D 03 02 00 00 00 00 D5 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:56]Read from MH i2c: E2 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: E2 0B 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: E2 0B 00 39 21 00 11 81 57 2D 3D 61 84 E2 90 00 F0 [17:38:56]RAPDU: 11 81 57 2D 3D 61 84 E2 90 00 [17:38:56]wFMCommunicate OK [17:38:56]SAM_PROTO_SignData done [17:38:56]FM_MakeSignedData done [17:38:56]CreateOFDProtocolMessage [17:38:56]wFMCommunicate request_size=4 [17:38:56]MH_SAM_APDU [17:38:56]CAPDU: 80 11 00 00 [17:38:56]Write to MH i2c: E2 08 00 3A 21 80 11 00 00 00 00 00 00 D5 [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:56]Read from MH i2c: E2 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: E2 17 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: E2 17 00 3A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 27 [17:38:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:38:56]wFMCommunicate OK [17:38:56]CreateOFDProtocolMessage done [17:38:56]OFDSenderStorePacket 111444 [17:38:56]StoreOFDPacket docnum=111444 [17:38:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 68 07 01 B8 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B6 17 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B3 01 00 35 04 06 00 A7 29 DF 08 F9 C8 11 81 57 2D 3D 61 84 E2 [17:38:56]CheckFolder [17:38:56]dirname=/storage/ofd_packets [17:38:56]CheckFolder done [17:38:56]ProducePacketName [17:38:56]name=ofd_packets/00111444 [17:38:56]NVStorageSaveData ofd_packets/00111444 [17:38:56]File name is /storage/ofd_packets/00111444 [17:38:56]Write 301 bytes [17:38:56]NVStorageSaveData done [17:38:56]OFDSenderStorePacket done [17:38:56]KKMCreateOFDPacket done [17:38:56]NVStorageSaveData kkm_last_timestamp [17:38:56]File name is /storage/kkm_last_timestamp [17:38:56]Write 4 bytes [17:38:56]NVStorageSaveData done [17:38:56]ExternCall_PrintAddStr [17:38:56]wPrintStart [17:38:56]Write to MH i2c: 01 00 00 3B 21 5C [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 07 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 07 00 3B 21 00 00 00 00 00 FF 0F 71 [17:38:56]RasterBufferAndPrint [17:38:56]line Счет N : (1)320026 [17:38:56]line ИНН: 02508201610067 [17:38:56]line Контрольно-Кассовый Чек [17:38:56]line ПРОДАЖА [17:38:56]line ТРК (МРК, ГНК) : 11 [17:38:56]line Товар: 2710124130 [17:38:56]line Аи-92-К-5 [17:38:56]line 7.540 * 66.40 [17:38:56]line = 500.66 [17:38:56]line НДС 12% НСП 1% [17:38:56]line > о реализуемом товаре [17:38:56]line ИТОГО: 500.66 [17:38:56]line НСП 1% : 4.43 [17:38:56]line НДС 12% : 53.17 [17:38:56]line Наличными: 0.00 [17:38:56]line Безнал.: 500.66 [17:38:56]line Место: АЗС № 65 "Партнер Нефть" [17:38:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:38:56]line СНО: Общий режим [17:38:56]line Чек 193 19.06.2024 17:39 [17:38:56]line Смена: 388 ФФД: 1.0 [17:38:56]line ЗНМ: 0300000198 [17:38:56]line РНМ: 0000000000092771 [17:38:56]line Версия ККМ: 001 [17:38:56]line Платежная система: О! деньги [17:38:56]line ФМ: 0000000000875083 [17:38:56]line ФД: 111444 [17:38:56]line ФПД: 183798277405128 [17:38:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173902&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111444&fm=183798277405128&tin=02508201610067®Number=0000000000092771&sum=50066 [17:38:56]written 0, free lines is 4095 [17:38:56]OFD Sender: Processing packet 111444 [packets to send 38, broken 37] [17:38:56]ProducePacketName [17:38:56]name=ofd_packets/00111444 [17:38:56]OFD Sender: To server: pG, [17:38:56]CommunicateWithHost lk.salyk.kg:30040 [17:38:56]ConnectInit lk.salyk.kg [17:38:56]Connected sock=10 [17:38:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 68 07 01 B8 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 B6 17 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 54 B3 01 00 35 04 06 00 A7 29 DF 08 F9 C8 11 81 57 2D 3D 61 84 E2 [17:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D4 29 47 00 88 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 35 30 38 33 10 04 04 00 54 B3 01 00 F4 03 04 00 19 AF 72 66 B6 04 01 00 00 2A 0A 58 3D 8D 88 A5 6B [17:38:56]CommunicateWithHost err = 0 [17:38:56]CheckOFDResponse [17:38:56]1017 (14) - 77093643461234 [17:38:56]1041 (16) - 0000000000875083 [17:38:56]1040 (4) - 111444 [17:38:56]1012 (4) - 19.06.2024 10:12 [17:38:56]1206 (1) - 0 [17:38:56]OFD Sender: Remove packet 111444 [17:38:56]ProducePacketName [17:38:56]name=ofd_packets/00111444 [17:38:56]NVStorageDeleteData [17:38:56]Write to MH i2c: 01 00 00 65 21 86 [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 07 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: 01 07 00 65 21 00 00 00 00 00 FE 0C 97 [17:38:56]RasterBufferAndPrint [17:38:56]line [17:38:56]line [17:38:56]line [17:38:56]line [17:38:56]line [17:38:56]written 0, free lines is 3332 [17:38:56]MH_Cut [17:38:56]Write to MH i2c: D1 01 00 6C 21 01 5F [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: D1 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: D1 01 00 [17:38:56]MH_I2C_Read... [17:38:56]Read from MH i2c: D1 01 00 6C 21 00 5E [17:38:56]Write to MH i2c: 01 00 00 6D 21 8E [17:38:56]Write i2c OK [17:38:56]MH_I2C_Read... [17:38:57]OFD Sender: No OFD packet to send [17:38:57]*** Cut start [17:38:57]*** Partial cut [17:38:57]*** CUTSNS_PIN = 1 [17:38:57]*** CUTSNS_PIN = 0 [17:38:57]*** Brake cut motor [17:38:58]Read from MH i2c: 01 [17:38:58]MH_I2C_Read... [17:38:58]*** Stop cut motor [17:38:58]*** Cut end [17:38:58]Read from MH i2c: 01 07 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: 01 07 00 6D 21 00 00 00 00 00 FF 0F A3 [17:38:58]process_action close_receipt done [17:38:58]requested_data is exist [17:38:58]produce_requested_data [17:38:58]requested_item fm.sn is exist - process it [17:38:58]wFMCommunicate request_size=4 [17:38:58]MH_SAM_APDU [17:38:58]CAPDU: 80 11 00 00 [17:38:58]Write to MH i2c: E2 08 00 6E 21 80 11 00 00 00 00 00 00 09 [17:38:58]Write i2c OK [17:38:58]MH_I2C_Read... [17:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:58]Read from MH i2c: E2 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 17 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 17 00 6E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [17:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:38:58]wFMCommunicate OK [17:38:58]requested_item fd.num is exist - process it [17:38:58]SAM_PROTO_GetFieldsCounters [17:38:58]wFMCommunicate request_size=4 [17:38:58]MH_SAM_APDU [17:38:58]CAPDU: 80 13 00 00 [17:38:58]Write to MH i2c: E2 08 00 6F 21 80 13 00 00 00 00 00 00 0C [17:38:58]Write i2c OK [17:38:58]MH_I2C_Read... [17:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:58]Read from MH i2c: E2 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 62 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 62 00 6F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B3 01 00 0E 04 04 00 84 01 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 FD [17:38: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 54 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:58]wFMCommunicate OK [17:38:58]SAM_PROTO_GetFieldsCounters done [17:38:58]requested_item shift.num is exist - process it [17:38:58]requested_item shift.opened is exist - process it [17:38:58]req_shift_opened [17:38:58]FM_GetShiftState [17:38:58]SAM_PROTO_GetShiftState [17:38:58]wFMCommunicate request_size=4 [17:38:58]MH_SAM_APDU [17:38:58]CAPDU: 80 13 01 00 [17:38:58]Write to MH i2c: E2 08 00 70 21 80 13 01 00 00 00 00 00 0E [17:38:58]Write i2c OK [17:38:58]MH_I2C_Read... [17:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:58]Read from MH i2c: E2 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 0E 00 [17:38:58]MH_I2C_Read... [17:38:58]Read from MH i2c: E2 0E 00 70 21 00 09 00 01 31 35 72 66 00 00 00 00 90 00 58 [17:38:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:38:58]wFMCommunicate OK [17:38:58]SAM_PROTO_GetShiftState done [17:38:58]FM_GetShiftState done [17:38:58]req_shift_opened done [17:38:58]requested_item shift.open_date is exist - process it [17:38:58]req_shift_open_date [17:38:58]req_shift_open_date done [17:38:58]produce_requested_data done [17:38:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111444,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:38:58]process_action_free close_receipt [17:38:58]json_value_free [17:38:58]json_value_free done [17:38:58]process_json_proto returns [17:38:58]Send response to host [17:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111444,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:38:58]free response buf [17:38:58]execute_script done [17:38:58]execute_script returns [17:38:58]free content buf [17:38:58]Sock 7.Close socket [17:38:58]Sock 7.Thread stoped [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:30]accept exits with 9 [17:39:30]New connection [17:39:30]New thread 3067465060 created [17:39:30]Thread 3067321700 joined [17:39:30]Waiting for new connection... [17:39:30] Sock 9.Parse request [17:39:30]Sock 9.Check first char [17:39:30]Sock 9.First char is OK [17:39:30]request: POST /json_proto HTTP/1.0 [17:39:30]Method: POST [17:39:30]URL: /json_proto [17:39:30]Method is POST - this is cgi request [17:39:30]url: /json_proto [17:39:30]query_string will be loaded in cgi processing [17:39:30]execute_cgi json_proto POST (null) [17:39:30]execute_cgi path=json_proto method=POST [17:39:30]POST find Content-Length [17:39:30]Host: 172.17.59.68:8080 [17:39:30]Content-Length: 677 [17:39:30]Content-Type: application/json [17:39:30] [17:39:30]POST finish read [17:39:30]Found Content-Length = 677 [17:39:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:30]execute_script... [17:39: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)320027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:30]POST & json_proto [17:39:30]process_json_proto [17:39:30]json parsed OK: [17:39:30]protocol is kg_v1.0 [17:39:30]action value=close_receipt [17:39:30]process_action close_receipt [17:39:30]cmd_close_receipt [17:39:30]MH_GetDate [17:39:30]Write to MH i2c: F0 00 00 71 21 81 [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: F0 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: F0 09 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: F0 09 00 71 21 00 DA 17 73 66 BC EC 60 65 C1 [17:39:30]GetLastDocTimeStamp 1718818742 [17:39:30]current date 1718818778 [17:39:30]FM_GetShiftState [17:39:30]SAM_PROTO_GetShiftState [17:39:30]wFMCommunicate request_size=4 [17:39:30]MH_SAM_APDU [17:39:30]CAPDU: 80 13 01 00 [17:39:30]Write to MH i2c: E2 08 00 72 21 80 13 01 00 00 00 00 00 10 [17:39:30]Write i2c OK [17:39:30]MH_I2C_Read... [17:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:30]Read from MH i2c: E2 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 0E 00 [17:39:30]MH_I2C_Read... [17:39:30]Read from MH i2c: E2 0E 00 72 21 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5A [17:39:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:39:30]wFMCommunicate OK [17:39:30]SAM_PROTO_GetShiftState done [17:39:30]FM_GetShiftState done [17:39:30]opened in 1718760753 [17:39:30]opened+sec_in_day 1718847153 [17:39:30]quantity*price = 30012 [17:39:30]sum+1 = 30014 [17:39:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 194 19.06.2024 17:39 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111445 ФПД: 264324939945984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173938&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111445&fm=264324939945984&tin=02508201610067®Number=0000000000092771&sum=30000 [17:39:31]StoreToDocumentArchive [17:39:31]shift 388 fd 111445 [17:39:31]save to /storage/0388/doc_00111445 [17:39:31]save last doc name /storage/0388/doc_00111445 to /storage/kkm_last_doc_name [17:39:31]save OK [17:39:31]Clear old archive folders... [17:39:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:31]tlvbuf is 00F1E8E0 [17:39:31]SAM_PROTO_ClearQueue [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 09 00 00 [17:39:31]Write to MH i2c: E2 08 00 7F 21 80 09 00 00 00 00 00 00 12 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [17:39:31]RAPDU: 90 00 [17:39:31]wFMCommunicate OK [17:39:31]SAM_PROTO_ClearQueue done [17:39:31]KKMCreateOFDPacket [17:39:31]OFDProtocolAddRootSTLVToBuf [17:39:31]FM_MakeSignedData [17:39:31]FM_MakeSignedData [17:39:31]SAM_PROTO_SignData [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 0D 01 02 [17:39:31]Write to MH i2c: E2 08 00 80 21 80 0D 01 02 00 00 00 00 1A [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:31]Read from MH i2c: E2 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: E2 03 00 80 21 00 90 00 15 [17:39:31]RAPDU: 90 00 [17:39:31]wFMCommunicate OK [17:39:31]wFMCommunicate request_size=255 [17:39:31]MH_SAM_APDU [17:39: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 C2 00 00 00 F4 03 04 00 DA 17 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B3 01 00 35 04 06 00 F0 [17:39:31]Write to MH i2c: E2 02 01 81 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 C2 00 00 00 F4 03 04 00 DA 17 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B3 01 00 35 04 06 00 F0 00 00 76 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 81 21 00 90 00 16 [17:39:32]RAPDU: 90 00 [17:39:32]wFMCommunicate OK [17:39:32]wFMCommunicate request_size=10 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 0D 02 02 05 66 F2 26 98 00 [17:39:32]Write to MH i2c: E2 0D 00 82 21 80 0D 02 02 05 00 66 F2 26 98 00 00 00 3D [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 03 00 82 21 00 90 00 17 [17:39:32]RAPDU: 90 00 [17:39:32]wFMCommunicate OK [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 0D 03 02 [17:39:32]Write to MH i2c: E2 08 00 83 21 80 0D 03 02 00 00 00 00 1F [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]OFD Sender: No OFD packet to send [17:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0B 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0B 00 83 21 00 F5 35 8C 66 07 B3 6A 49 90 00 A9 [17:39:32]RAPDU: F5 35 8C 66 07 B3 6A 49 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_SignData done [17:39:32]FM_MakeSignedData done [17:39:32]CreateOFDProtocolMessage [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 11 00 00 [17:39:32]Write to MH i2c: E2 08 00 84 21 80 11 00 00 00 00 00 00 1F [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 17 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 17 00 84 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 71 [17:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:39:32]wFMCommunicate OK [17:39:32]CreateOFDProtocolMessage done [17:39:32]OFDSenderStorePacket 111445 [17:39:32]StoreOFDPacket docnum=111445 [17:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F AE 07 01 E7 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 C2 00 00 00 F4 03 04 00 DA 17 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B3 01 00 35 04 06 00 F0 66 F2 26 98 00 F5 35 8C 66 07 B3 6A 49 [17:39:32]CheckFolder [17:39:32]dirname=/storage/ofd_packets [17:39:32]CheckFolder done [17:39:32]ProducePacketName [17:39:32]name=ofd_packets/00111445 [17:39:32]NVStorageSaveData ofd_packets/00111445 [17:39:32]File name is /storage/ofd_packets/00111445 [17:39:32]Write 301 bytes [17:39:32]NVStorageSaveData done [17:39:32]OFDSenderStorePacket done [17:39:32]KKMCreateOFDPacket done [17:39:32]NVStorageSaveData kkm_last_timestamp [17:39:32]File name is /storage/kkm_last_timestamp [17:39:32]Write 4 bytes [17:39:32]NVStorageSaveData done [17:39:32]ExternCall_PrintAddStr [17:39:32]wPrintStart [17:39:32]Write to MH i2c: 01 00 00 85 21 A6 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 07 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: 01 07 00 85 21 00 00 00 00 00 FF 0F BB [17:39:32]RasterBufferAndPrint [17:39:32]line Счет N : (1)320027 [17:39:32]line ИНН: 02508201610067 [17:39:32]line Контрольно-Кассовый Чек [17:39:32]line ПРОДАЖА [17:39:32]line ТРК (МРК, ГНК) : 11 [17:39:32]line Товар: 2710124130 [17:39:32]line Аи-92-К-5 [17:39:32]line 4.520 * 66.40 [17:39:32]line = 300.13 [17:39:32]line НДС 12% НСП 1% [17:39:32]line > о реализуемом товаре [17:39:32]line ОКРУГЛЕНИЕ: -0.13 [17:39:32]line ИТОГО: 300.00 [17:39:32]line Внесено: 300.00 [17:39:32]line СДАЧА: 0.00 [17:39:32]line НСП 1% : 2.66 [17:39:32]line НДС 12% : 31.87 [17:39:32]line Наличными: 300.00 [17:39:32]line Безнал.: 0.00 [17:39:32]line Место: АЗС № 65 "Партнер Нефть" [17:39:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:39:32]line СНО: Общий режим [17:39:32]line Чек 194 19.06.2024 17:39 [17:39:32]line Смена: 388 ФФД: 1.0 [17:39:32]line ЗНМ: 0300000198 [17:39:32]line РНМ: 0000000000092771 [17:39:32]line Версия ККМ: 001 [17:39:32]line ФМ: 0000000000875083 [17:39:32]line ФД: 111445 [17:39:32]line ФПД: 264324939945984 [17:39:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T173938&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111445&fm=264324939945984&tin=02508201610067®Number=0000000000092771&sum=30000 [17:39:32]OFD Sender: Processing packet 111445 [packets to send 38, broken 37] [17:39:32]ProducePacketName [17:39:32]name=ofd_packets/00111445 [17:39:32]OFD Sender: To server: pG, [17:39:32]CommunicateWithHost lk.salyk.kg:30040 [17:39:32]ConnectInit lk.salyk.kg [17:39:32]written 0, free lines is 4095 [17:39:32]Connected sock=10 [17:39:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F AE 07 01 E7 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 C2 00 00 00 F4 03 04 00 DA 17 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B3 01 00 35 04 06 00 F0 66 F2 26 98 00 F5 35 8C 66 07 B3 6A 49 [17:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 83 5A 47 00 0E 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 55 B3 01 00 F4 03 04 00 3D AF 72 66 B6 04 01 00 00 AC 84 EC 17 76 2A A0 46 [17:39:33]CommunicateWithHost err = 0 [17:39:33]CheckOFDResponse [17:39:33]1017 (14) - 77093643461234 [17:39:33]1041 (16) - 0000000000875083 [17:39:33]1040 (4) - 111445 [17:39:33]1012 (4) - 19.06.2024 10:13 [17:39:33]1206 (1) - 0 [17:39:33]OFD Sender: Remove packet 111445 [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00111445 [17:39:33]NVStorageDeleteData [17:39:33]Write to MH i2c: 01 00 00 B0 21 D1 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 B0 21 00 00 00 00 00 CF 0C B3 [17:39:33]RasterBufferAndPrint [17:39:33]line [17:39:33]line [17:39:33]line [17:39:33]line [17:39:33]line [17:39:33]written 0, free lines is 3287 [17:39:33]MH_Cut [17:39:33]Write to MH i2c: D1 01 00 B7 21 01 AA [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: D1 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: D1 01 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: D1 01 00 B7 21 00 A9 [17:39:33]Write to MH i2c: 01 00 00 B8 21 D9 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]OFD Sender: No OFD packet to send [17:39:33]*** Cut start [17:39:33]*** Partial cut [17:39:33]*** CUTSNS_PIN = 1 [17:39:33]*** CUTSNS_PIN = 0 [17:39:34]*** Brake cut motor [17:39:34]Read from MH i2c: 01 [17:39:34]MH_I2C_Read... [17:39:34]*** Stop cut motor [17:39:34]*** Cut end [17:39:34]Read from MH i2c: 01 07 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 B8 21 00 00 00 00 00 FF 0F EE [17:39:34]process_action close_receipt done [17:39:34]requested_data is exist [17:39:34]produce_requested_data [17:39:34]requested_item fm.sn is exist - process it [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 11 00 00 [17:39:34]Write to MH i2c: E2 08 00 B9 21 80 11 00 00 00 00 00 00 54 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 17 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 17 00 B9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A6 [17:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:39:34]wFMCommunicate OK [17:39:34]requested_item fd.num is exist - process it [17:39:34]SAM_PROTO_GetFieldsCounters [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 13 00 00 [17:39:34]Write to MH i2c: E2 08 00 BA 21 80 13 00 00 00 00 00 00 57 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 62 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 62 00 BA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B3 01 00 0E 04 04 00 84 01 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 4C [17:39: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 55 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:34]wFMCommunicate OK [17:39:34]SAM_PROTO_GetFieldsCounters done [17:39:34]requested_item shift.num is exist - process it [17:39:34]requested_item shift.opened is exist - process it [17:39:34]req_shift_opened [17:39:34]FM_GetShiftState [17:39:34]SAM_PROTO_GetShiftState [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 13 01 00 [17:39:34]Write to MH i2c: E2 08 00 BB 21 80 13 01 00 00 00 00 00 59 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 0E 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 0E 00 BB 21 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A3 [17:39:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:39:34]wFMCommunicate OK [17:39:34]SAM_PROTO_GetShiftState done [17:39:34]FM_GetShiftState done [17:39:34]req_shift_opened done [17:39:34]requested_item shift.open_date is exist - process it [17:39:34]req_shift_open_date [17:39:34]req_shift_open_date done [17:39:34]produce_requested_data done [17:39:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111445,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:39:34]process_action_free close_receipt [17:39:34]json_value_free [17:39:34]json_value_free done [17:39:34]process_json_proto returns [17:39:34]Send response to host [17:39:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111445,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:39:34]free response buf [17:39:34]execute_script done [17:39:34]execute_script returns [17:39:34]free content buf [17:39:34]Sock 9.Close socket [17:39:34]Sock 9.Thread stoped [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:39]accept exits with 7 [17:42:39]New connection [17:42:39]New thread 3067321700 created [17:42:39]Thread 3067465060 joined [17:42:39]Waiting for new connection... [17:42:39] Sock 7.Parse request [17:42:39]Sock 7.Check first char [17:42:39]Sock 7.First char is OK [17:42:39]request: POST /json_proto HTTP/1.0 [17:42:39]Method: POST [17:42:39]URL: /json_proto [17:42:39]Method is POST - this is cgi request [17:42:39]url: /json_proto [17:42:39]query_string will be loaded in cgi processing [17:42:39]execute_cgi json_proto POST (null) [17:42:39]execute_cgi path=json_proto method=POST [17:42:39]POST find Content-Length [17:42:39]Host: 172.17.59.68:8080 [17:42:39]Content-Length: 677 [17:42:39]Content-Type: application/json [17:42:39] [17:42:39]POST finish read [17:42:39]Found Content-Length = 677 [17:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:42:39]execute_script... [17:42: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)320028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:42:39]POST & json_proto [17:42:39]process_json_proto [17:42:39]json parsed OK: [17:42:39]protocol is kg_v1.0 [17:42:39]action value=close_receipt [17:42:39]process_action close_receipt [17:42:39]cmd_close_receipt [17:42:39]MH_GetDate [17:42:39]Write to MH i2c: F0 00 00 BC 21 CC [17:42:39]Write i2c OK [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: F0 [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: F0 09 00 [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: F0 09 00 BC 21 00 97 18 73 66 BC EC 60 65 CA [17:42:39]GetLastDocTimeStamp 1718818778 [17:42:39]current date 1718818967 [17:42:39]FM_GetShiftState [17:42:39]SAM_PROTO_GetShiftState [17:42:39]wFMCommunicate request_size=4 [17:42:39]MH_SAM_APDU [17:42:39]CAPDU: 80 13 01 00 [17:42:39]Write to MH i2c: E2 08 00 BD 21 80 13 01 00 00 00 00 00 5B [17:42:39]Write i2c OK [17:42:39]MH_I2C_Read... [17:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:39]Read from MH i2c: E2 [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: E2 0E 00 [17:42:39]MH_I2C_Read... [17:42:39]Read from MH i2c: E2 0E 00 BD 21 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A5 [17:42:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:42:39]wFMCommunicate OK [17:42:39]SAM_PROTO_GetShiftState done [17:42:39]FM_GetShiftState done [17:42:39]opened in 1718760753 [17:42:39]opened+sec_in_day 1718847153 [17:42:39]quantity*price = 60025 [17:42:39]sum+1 = 60027 [17:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 195 19.06.2024 17:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111446 ФПД: 261895490831358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111446&fm=261895490831358&tin=02508201610067®Number=0000000000092771&sum=60000 [17:42:40]StoreToDocumentArchive [17:42:40]shift 388 fd 111446 [17:42:40]save to /storage/0388/doc_00111446 [17:42:40]save last doc name /storage/0388/doc_00111446 to /storage/kkm_last_doc_name [17:42:40]save OK [17:42:40]Clear old archive folders... [17:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:42:40]tlvbuf is B6E257E0 [17:42:40]SAM_PROTO_ClearQueue [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 09 00 00 [17:42:40]Write to MH i2c: E2 08 00 CA 21 80 09 00 00 00 00 00 00 5D [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 03 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 03 00 CA 21 00 90 00 5F [17:42:40]RAPDU: 90 00 [17:42:40]wFMCommunicate OK [17:42:40]SAM_PROTO_ClearQueue done [17:42:40]KKMCreateOFDPacket [17:42:40]OFDProtocolAddRootSTLVToBuf [17:42:40]FM_MakeSignedData [17:42:40]FM_MakeSignedData [17:42:40]SAM_PROTO_SignData [17:42:40]wFMCommunicate request_size=4 [17:42:40]MH_SAM_APDU [17:42:40]CAPDU: 80 0D 01 02 [17:42:40]Write to MH i2c: E2 08 00 CB 21 80 0D 01 02 00 00 00 00 65 [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:40]Read from MH i2c: E2 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 03 00 [17:42:40]MH_I2C_Read... [17:42:40]Read from MH i2c: E2 03 00 CB 21 00 90 00 60 [17:42:40]RAPDU: 90 00 [17:42:40]wFMCommunicate OK [17:42:40]wFMCommunicate request_size=255 [17:42:40]MH_SAM_APDU [17:42: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 97 18 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B3 01 00 35 04 06 00 EE [17:42:40]Write to MH i2c: E2 02 01 CC 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 97 18 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B3 01 00 35 04 06 00 EE 00 00 BE [17:42:40]Write i2c OK [17:42:40]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 CC 21 00 90 00 61 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]wFMCommunicate request_size=10 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 02 02 05 31 4B B3 03 FE [17:42:41]Write to MH i2c: E2 0D 00 CD 21 80 0D 02 02 05 00 31 4B B3 03 FE 00 00 A2 [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 03 00 CD 21 00 90 00 62 [17:42:41]RAPDU: 90 00 [17:42:41]wFMCommunicate OK [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 0D 03 02 [17:42:41]Write to MH i2c: E2 08 00 CE 21 80 0D 03 02 00 00 00 00 6A [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 0B 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 0B 00 CE 21 00 70 53 0F C9 4E 6B F9 A5 90 00 5D [17:42:41]RAPDU: 70 53 0F C9 4E 6B F9 A5 90 00 [17:42:41]wFMCommunicate OK [17:42:41]SAM_PROTO_SignData done [17:42:41]FM_MakeSignedData done [17:42:41]CreateOFDProtocolMessage [17:42:41]wFMCommunicate request_size=4 [17:42:41]MH_SAM_APDU [17:42:41]CAPDU: 80 11 00 00 [17:42:41]Write to MH i2c: E2 08 00 CF 21 80 11 00 00 00 00 00 00 6A [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:41]Read from MH i2c: E2 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 17 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: E2 17 00 CF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [17:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:42:41]wFMCommunicate OK [17:42:41]CreateOFDProtocolMessage done [17:42:41]OFDSenderStorePacket 111446 [17:42:41]StoreOFDPacket docnum=111446 [17:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DF A9 07 01 FD 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 97 18 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B3 01 00 35 04 06 00 EE 31 4B B3 03 FE 70 53 0F C9 4E 6B F9 A5 [17:42:41]CheckFolder [17:42:41]dirname=/storage/ofd_packets [17:42:41]CheckFolder done [17:42:41]ProducePacketName [17:42:41]name=ofd_packets/00111446 [17:42:41]NVStorageSaveData ofd_packets/00111446 [17:42:41]File name is /storage/ofd_packets/00111446 [17:42:41]Write 301 bytes [17:42:41]NVStorageSaveData done [17:42:41]OFDSenderStorePacket done [17:42:41]KKMCreateOFDPacket done [17:42:41]NVStorageSaveData kkm_last_timestamp [17:42:41]File name is /storage/kkm_last_timestamp [17:42:41]Write 4 bytes [17:42:41]NVStorageSaveData done [17:42:41]ExternCall_PrintAddStr [17:42:41]wPrintStart [17:42:41]Write to MH i2c: 01 00 00 D0 21 F1 [17:42:41]Write i2c OK [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: 01 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: 01 07 00 [17:42:41]MH_I2C_Read... [17:42:41]Read from MH i2c: 01 07 00 D0 21 00 00 00 00 00 FF 0F 06 [17:42:41]RasterBufferAndPrint [17:42:41]line Счет N : (1)320028 [17:42:41]line ИНН: 02508201610067 [17:42:41]line Контрольно-Кассовый Чек [17:42:41]line ПРОДАЖА [17:42:41]line ТРК (МРК, ГНК) : 11 [17:42:41]line Товар: 2710124130 [17:42:41]line Аи-92-К-5 [17:42:41]line 9.040 * 66.40 [17:42:41]line = 600.26 [17:42:41]line НДС 12% НСП 1% [17:42:41]line > о реализуемом товаре [17:42:41]line ОКРУГЛЕНИЕ: -0.26 [17:42:41]line ИТОГО: 600.00 [17:42:41]line Внесено: 600.00 [17:42:41]line СДАЧА: 0.00 [17:42:41]line НСП 1% : 5.31 [17:42:41]line НДС 12% : 63.74 [17:42:41]line Наличными: 600.00 [17:42:41]line Безнал.: 0.00 [17:42:41]line Место: АЗС № 65 "Партнер Нефть" [17:42:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:42:41]line СНО: Общий режим [17:42:41]line Чек 195 19.06.2024 17:42 [17:42:41]line Смена: 388 ФФД: 1.0 [17:42:41]line ЗНМ: 0300000198 [17:42:41]line РНМ: 0000000000092771 [17:42:41]line Версия ККМ: 001 [17:42:41]line ФМ: 0000000000875083 [17:42:41]line ФД: 111446 [17:42:41]line ФПД: 261895490831358 [17:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174247&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111446&fm=261895490831358&tin=02508201610067®Number=0000000000092771&sum=60000 [17:42:41]OFD Sender: Processing packet 111446 [packets to send 38, broken 37] [17:42:41]ProducePacketName [17:42:41]name=ofd_packets/00111446 [17:42:41]OFD Sender: To server: pG, [17:42:41]CommunicateWithHost lk.salyk.kg:30040 [17:42:41]ConnectInit lk.salyk.kg [17:42:41]written 0, free lines is 4095 [17:42:41]Connected sock=10 [17:42:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DF A9 07 01 FD 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 97 18 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 56 B3 01 00 35 04 06 00 EE 31 4B B3 03 FE 70 53 0F C9 4E 6B F9 A5 [17:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E9 2B 47 00 A0 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 35 30 38 33 10 04 04 00 56 B3 01 00 F4 03 04 00 FA AF 72 66 B6 04 01 00 00 6B BD 0A 6A 1C 70 DD 0C [17:42:41]CommunicateWithHost err = 0 [17:42:41]CheckOFDResponse [17:42:42]1017 (14) - 77093643461234 [17:42:42]1041 (16) - 0000000000875083 [17:42:42]1040 (4) - 111446 [17:42:42]1012 (4) - 19.06.2024 10:16 [17:42:42]1206 (1) - 0 [17:42:42]OFD Sender: Remove packet 111446 [17:42:42]ProducePacketName [17:42:42]name=ofd_packets/00111446 [17:42:42]NVStorageDeleteData [17:42:42]Write to MH i2c: 01 00 00 FB 21 1C [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: 01 07 00 FB 21 00 00 00 00 00 D7 0C 06 [17:42:42]RasterBufferAndPrint [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]line [17:42:42]written 0, free lines is 3294 [17:42:42]MH_Cut [17:42:42]Write to MH i2c: D1 01 00 02 22 01 F6 [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 01 00 [17:42:42]MH_I2C_Read... [17:42:42]Read from MH i2c: D1 01 00 02 22 00 F5 [17:42:42]Write to MH i2c: 01 00 00 03 22 25 [17:42:42]Write i2c OK [17:42:42]MH_I2C_Read... [17:42:42]OFD Sender: No OFD packet to send [17:42:42]*** Cut start [17:42:42]*** Partial cut [17:42:42]*** CUTSNS_PIN = 1 [17:42:42]*** CUTSNS_PIN = 0 [17:42:43]*** Brake cut motor [17:42:43]Read from MH i2c: 01 [17:42:43]MH_I2C_Read... [17:42:43]*** Stop cut motor [17:42:43]*** Cut end [17:42:43]Read from MH i2c: 01 07 00 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: 01 07 00 03 22 00 00 00 00 00 FF 0F 3A [17:42:43]process_action close_receipt done [17:42:43]requested_data is exist [17:42:43]produce_requested_data [17:42:43]requested_item fm.sn is exist - process it [17:42:43]wFMCommunicate request_size=4 [17:42:43]MH_SAM_APDU [17:42:43]CAPDU: 80 11 00 00 [17:42:43]Write to MH i2c: E2 08 00 04 22 80 11 00 00 00 00 00 00 A0 [17:42:43]Write i2c OK [17:42:43]MH_I2C_Read... [17:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:43]Read from MH i2c: E2 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 17 00 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 17 00 04 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [17:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:42:43]wFMCommunicate OK [17:42:43]requested_item fd.num is exist - process it [17:42:43]SAM_PROTO_GetFieldsCounters [17:42:43]wFMCommunicate request_size=4 [17:42:43]MH_SAM_APDU [17:42:43]CAPDU: 80 13 00 00 [17:42:43]Write to MH i2c: E2 08 00 05 22 80 13 00 00 00 00 00 00 A3 [17:42:43]Write i2c OK [17:42:43]MH_I2C_Read... [17:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:43]Read from MH i2c: E2 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 62 00 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 62 00 05 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B3 01 00 0E 04 04 00 84 01 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 9C [17:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 56 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:43]wFMCommunicate OK [17:42:43]SAM_PROTO_GetFieldsCounters done [17:42:43]requested_item shift.num is exist - process it [17:42:43]requested_item shift.opened is exist - process it [17:42:43]req_shift_opened [17:42:43]FM_GetShiftState [17:42:43]SAM_PROTO_GetShiftState [17:42:43]wFMCommunicate request_size=4 [17:42:43]MH_SAM_APDU [17:42:43]CAPDU: 80 13 01 00 [17:42:43]Write to MH i2c: E2 08 00 06 22 80 13 01 00 00 00 00 00 A5 [17:42:43]Write i2c OK [17:42:43]MH_I2C_Read... [17:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:43]Read from MH i2c: E2 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 0E 00 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 0E 00 06 22 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EF [17:42:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:42:43]wFMCommunicate OK [17:42:43]SAM_PROTO_GetShiftState done [17:42:43]FM_GetShiftState done [17:42:43]req_shift_opened done [17:42:43]requested_item shift.open_date is exist - process it [17:42:43]req_shift_open_date [17:42:43]req_shift_open_date done [17:42:43]produce_requested_data done [17:42:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111446,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:42:43]process_action_free close_receipt [17:42:43]json_value_free [17:42:43]json_value_free done [17:42:43]process_json_proto returns [17:42:43]Send response to host [17:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111446,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:42:43]free response buf [17:42:43]execute_script done [17:42:43]execute_script returns [17:42:43]free content buf [17:42:43]Sock 7.Close socket [17:42:43]Sock 7.Thread stoped [17:42:47]OFD Sender: No OFD packet to send [17:42:52]OFD Sender: No OFD packet to send [17:42:57]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:04]accept exits with 9 [17:43:04]New connection [17:43:04]New thread 3067465060 created [17:43:04]Thread 3067321700 joined [17:43:04]Waiting for new connection... [17:43:04] Sock 9.Parse request [17:43:04]Sock 9.Check first char [17:43:04]Sock 9.First char is OK [17:43:04]request: POST /json_proto HTTP/1.0 [17:43:04]Method: POST [17:43:04]URL: /json_proto [17:43:04]Method is POST - this is cgi request [17:43:04]url: /json_proto [17:43:04]query_string will be loaded in cgi processing [17:43:04]execute_cgi json_proto POST (null) [17:43:04]execute_cgi path=json_proto method=POST [17:43:04]POST find Content-Length [17:43:04]Host: 172.17.59.68:8080 [17:43:04]Content-Length: 677 [17:43:04]Content-Type: application/json [17:43:04] [17:43:04]POST finish read [17:43:04]Found Content-Length = 677 [17:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:43:04]execute_script... [17:43: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)320029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "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:43:04]POST & json_proto [17:43:04]process_json_proto [17:43:04]json parsed OK: [17:43:04]protocol is kg_v1.0 [17:43:04]action value=close_receipt [17:43:04]process_action close_receipt [17:43:04]cmd_close_receipt [17:43:04]MH_GetDate [17:43:04]Write to MH i2c: F0 00 00 07 22 18 [17:43:04]Write i2c OK [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: F0 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: F0 09 00 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: F0 09 00 07 22 00 B0 18 73 66 BC EC 60 65 2F [17:43:04]GetLastDocTimeStamp 1718818967 [17:43:04]current date 1718818992 [17:43:04]FM_GetShiftState [17:43:04]SAM_PROTO_GetShiftState [17:43:04]wFMCommunicate request_size=4 [17:43:04]MH_SAM_APDU [17:43:04]CAPDU: 80 13 01 00 [17:43:04]Write to MH i2c: E2 08 00 08 22 80 13 01 00 00 00 00 00 A7 [17:43:04]Write i2c OK [17:43:04]MH_I2C_Read... [17:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:04]Read from MH i2c: E2 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: E2 0E 00 [17:43:04]MH_I2C_Read... [17:43:04]Read from MH i2c: E2 0E 00 08 22 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F1 [17:43:04]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:43:04]wFMCommunicate OK [17:43:04]SAM_PROTO_GetShiftState done [17:43:04]FM_GetShiftState done [17:43:04]opened in 1718760753 [17:43:04]opened+sec_in_day 1718847153 [17:43:04]quantity*price = 20052 [17:43:04]sum+1 = 20054 [17:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 196 19.06.2024 17:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111447 ФПД: 184366165971124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174312&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111447&fm=184366165971124&tin=02508201610067®Number=0000000000092771&sum=20000 [17:43:05]StoreToDocumentArchive [17:43:05]shift 388 fd 111447 [17:43:05]save to /storage/0388/doc_00111447 [17:43:05]save last doc name /storage/0388/doc_00111447 to /storage/kkm_last_doc_name [17:43:05]save OK [17:43:05]Clear old archive folders... [17:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:05]tlvbuf is 00F70AA0 [17:43:05]SAM_PROTO_ClearQueue [17:43:05]wFMCommunicate request_size=4 [17:43:05]MH_SAM_APDU [17:43:05]CAPDU: 80 09 00 00 [17:43:05]Write to MH i2c: E2 08 00 15 22 80 09 00 00 00 00 00 00 A9 [17:43:05]Write i2c OK [17:43:05]MH_I2C_Read... [17:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:05]Read from MH i2c: E2 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 03 00 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 03 00 15 22 00 90 00 AB [17:43:05]RAPDU: 90 00 [17:43:05]wFMCommunicate OK [17:43:05]SAM_PROTO_ClearQueue done [17:43:05]KKMCreateOFDPacket [17:43:05]OFDProtocolAddRootSTLVToBuf [17:43:05]FM_MakeSignedData [17:43:05]FM_MakeSignedData [17:43:05]SAM_PROTO_SignData [17:43:05]wFMCommunicate request_size=4 [17:43:05]MH_SAM_APDU [17:43:05]CAPDU: 80 0D 01 02 [17:43:05]Write to MH i2c: E2 08 00 16 22 80 0D 01 02 00 00 00 00 B1 [17:43:05]Write i2c OK [17:43:05]MH_I2C_Read... [17:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:05]Read from MH i2c: E2 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 03 00 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 03 00 16 22 00 90 00 AC [17:43:05]RAPDU: 90 00 [17:43:05]wFMCommunicate OK [17:43:05]wFMCommunicate request_size=255 [17:43:05]MH_SAM_APDU [17:43: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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 B0 18 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B3 01 00 35 04 06 00 A7 [17:43:05]Write to MH i2c: E2 02 01 17 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 B0 18 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B3 01 00 35 04 06 00 A7 00 00 C0 [17:43:05]Write i2c OK [17:43:05]MH_I2C_Read... [17:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:05]Read from MH i2c: E2 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 03 00 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 03 00 17 22 00 90 00 AD [17:43:05]RAPDU: 90 00 [17:43:05]wFMCommunicate OK [17:43:05]wFMCommunicate request_size=10 [17:43:05]MH_SAM_APDU [17:43:05]CAPDU: 80 0D 02 02 05 AE 17 D4 D0 B4 [17:43:05]Write to MH i2c: E2 0D 00 18 22 80 0D 02 02 05 00 AE 17 D4 D0 B4 00 00 DB [17:43:05]Write i2c OK [17:43:05]MH_I2C_Read... [17:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:05]Read from MH i2c: E2 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 03 00 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 03 00 18 22 00 90 00 AE [17:43:05]RAPDU: 90 00 [17:43:05]wFMCommunicate OK [17:43:05]wFMCommunicate request_size=4 [17:43:05]MH_SAM_APDU [17:43:05]CAPDU: 80 0D 03 02 [17:43:05]Write to MH i2c: E2 08 00 19 22 80 0D 03 02 00 00 00 00 B6 [17:43:05]Write i2c OK [17:43:05]MH_I2C_Read... [17:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:05]Read from MH i2c: E2 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 0B 00 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 0B 00 19 22 00 A4 80 B8 28 4C 4E F5 96 90 00 E0 [17:43:05]RAPDU: A4 80 B8 28 4C 4E F5 96 90 00 [17:43:05]wFMCommunicate OK [17:43:05]SAM_PROTO_SignData done [17:43:05]FM_MakeSignedData done [17:43:05]CreateOFDProtocolMessage [17:43:05]wFMCommunicate request_size=4 [17:43:05]MH_SAM_APDU [17:43:05]CAPDU: 80 11 00 00 [17:43:05]Write to MH i2c: E2 08 00 1A 22 80 11 00 00 00 00 00 00 B6 [17:43:05]Write i2c OK [17:43:05]MH_I2C_Read... [17:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:05]Read from MH i2c: E2 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 17 00 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: E2 17 00 1A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 08 [17:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:43:05]wFMCommunicate OK [17:43:05]CreateOFDProtocolMessage done [17:43:05]OFDSenderStorePacket 111447 [17:43:05]StoreOFDPacket docnum=111447 [17:43:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 66 07 01 5E 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 B0 18 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B3 01 00 35 04 06 00 A7 AE 17 D4 D0 B4 A4 80 B8 28 4C 4E F5 96 [17:43:05]CheckFolder [17:43:05]dirname=/storage/ofd_packets [17:43:05]CheckFolder done [17:43:05]ProducePacketName [17:43:05]name=ofd_packets/00111447 [17:43:05]NVStorageSaveData ofd_packets/00111447 [17:43:05]File name is /storage/ofd_packets/00111447 [17:43:05]Write 301 bytes [17:43:05]NVStorageSaveData done [17:43:05]OFDSenderStorePacket done [17:43:05]KKMCreateOFDPacket done [17:43:05]NVStorageSaveData kkm_last_timestamp [17:43:05]File name is /storage/kkm_last_timestamp [17:43:05]Write 4 bytes [17:43:05]NVStorageSaveData done [17:43:05]ExternCall_PrintAddStr [17:43:05]wPrintStart [17:43:05]Write to MH i2c: 01 00 00 1B 22 3D [17:43:05]Write i2c OK [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: 01 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: 01 07 00 [17:43:05]MH_I2C_Read... [17:43:05]Read from MH i2c: 01 07 00 1B 22 00 00 00 00 00 FF 0F 52 [17:43:05]RasterBufferAndPrint [17:43:05]line Счет N : (1)320029 [17:43:05]line ИНН: 02508201610067 [17:43:05]line Контрольно-Кассовый Чек [17:43:05]line ПРОДАЖА [17:43:05]line ТРК (МРК, ГНК) : 11 [17:43:05]line Товар: 2710124130 [17:43:05]line Аи-92-К-5 [17:43:05]line 3.020 * 66.40 [17:43:05]line = 200.53 [17:43:05]line НДС 12% НСП 1% [17:43:05]line > о реализуемом товаре [17:43:05]line ОКРУГЛЕНИЕ: -0.53 [17:43:05]line ИТОГО: 200.00 [17:43:05]line Внесено: 200.00 [17:43:05]line СДАЧА: 0.00 [17:43:05]line НСП 1% : 1.77 [17:43:05]line НДС 12% : 21.29 [17:43:05]line Наличными: 200.00 [17:43:05]line Безнал.: 0.00 [17:43:05]line Место: АЗС № 65 "Партнер Нефть" [17:43:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:43:05]line СНО: Общий режим [17:43:05]line Чек 196 19.06.2024 17:43 [17:43:05]line Смена: 388 ФФД: 1.0 [17:43:05]line ЗНМ: 0300000198 [17:43:05]line РНМ: 0000000000092771 [17:43:05]line Версия ККМ: 001 [17:43:05]line ФМ: 0000000000875083 [17:43:05]line ФД: 111447 [17:43:05]line ФПД: 184366165971124 [17:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174312&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111447&fm=184366165971124&tin=02508201610067®Number=0000000000092771&sum=20000 [17:43:06]OFD Sender: Processing packet 111447 [packets to send 38, broken 37] [17:43:06]ProducePacketName [17:43:06]name=ofd_packets/00111447 [17:43:06]OFD Sender: To server: pG, [17:43:06]CommunicateWithHost lk.salyk.kg:30040 [17:43:06]ConnectInit lk.salyk.kg [17:43:06]written 0, free lines is 4095 [17:43:06]Connected sock=10 [17:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 04 66 07 01 5E 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 B0 18 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 57 B3 01 00 35 04 06 00 A7 AE 17 D4 D0 B4 A4 80 B8 28 4C 4E F5 96 [17:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6A A8 47 00 BF 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 35 30 38 33 10 04 04 00 57 B3 01 00 F4 03 04 00 13 B0 72 66 B6 04 01 00 00 25 F5 94 98 AF 83 3C BE [17:43:06]CommunicateWithHost err = 0 [17:43:06]CheckOFDResponse [17:43:06]1017 (14) - 77093643461234 [17:43:06]1041 (16) - 0000000000875083 [17:43:06]1040 (4) - 111447 [17:43:06]1012 (4) - 19.06.2024 10:16 [17:43:06]1206 (1) - 0 [17:43:06]OFD Sender: Remove packet 111447 [17:43:06]ProducePacketName [17:43:06]name=ofd_packets/00111447 [17:43:06]NVStorageDeleteData [17:43:06]Write to MH i2c: 01 00 00 46 22 68 [17:43:06]Write i2c OK [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: 01 [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: 01 07 00 [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: 01 07 00 46 22 00 00 00 00 00 CD 0C 48 [17:43:06]RasterBufferAndPrint [17:43:06]line [17:43:06]line [17:43:06]line [17:43:06]line [17:43:06]line [17:43:06]written 0, free lines is 3284 [17:43:06]MH_Cut [17:43:06]Write to MH i2c: D1 01 00 4D 22 01 41 [17:43:06]Write i2c OK [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: D1 [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: D1 01 00 [17:43:06]MH_I2C_Read... [17:43:06]Read from MH i2c: D1 01 00 4D 22 00 40 [17:43:06]Write to MH i2c: 01 00 00 4E 22 70 [17:43:06]Write i2c OK [17:43:06]MH_I2C_Read... [17:43:07]OFD Sender: No OFD packet to send [17:43:07]*** Cut start [17:43:07]*** Partial cut [17:43:07]*** CUTSNS_PIN = 1 [17:43:07]*** CUTSNS_PIN = 0 [17:43:07]*** Brake cut motor [17:43:08]Read from MH i2c: 01 [17:43:08]MH_I2C_Read... [17:43:08]*** Stop cut motor [17:43:08]*** Cut end [17:43:08]Read from MH i2c: 01 07 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: 01 07 00 4E 22 00 00 00 00 00 FF 0F 85 [17:43:08]process_action close_receipt done [17:43:08]requested_data is exist [17:43:08]produce_requested_data [17:43:08]requested_item fm.sn is exist - process it [17:43:08]wFMCommunicate request_size=4 [17:43:08]MH_SAM_APDU [17:43:08]CAPDU: 80 11 00 00 [17:43:08]Write to MH i2c: E2 08 00 4F 22 80 11 00 00 00 00 00 00 EB [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:08]Read from MH i2c: E2 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 17 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 17 00 4F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3D [17:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:43:08]wFMCommunicate OK [17:43:08]requested_item fd.num is exist - process it [17:43:08]SAM_PROTO_GetFieldsCounters [17:43:08]wFMCommunicate request_size=4 [17:43:08]MH_SAM_APDU [17:43:08]CAPDU: 80 13 00 00 [17:43:08]Write to MH i2c: E2 08 00 50 22 80 13 00 00 00 00 00 00 EE [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:08]Read from MH i2c: E2 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 62 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 62 00 50 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B3 01 00 0E 04 04 00 84 01 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 EB [17:43: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 57 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:08]wFMCommunicate OK [17:43:08]SAM_PROTO_GetFieldsCounters done [17:43:08]requested_item shift.num is exist - process it [17:43:08]requested_item shift.opened is exist - process it [17:43:08]req_shift_opened [17:43:08]FM_GetShiftState [17:43:08]SAM_PROTO_GetShiftState [17:43:08]wFMCommunicate request_size=4 [17:43:08]MH_SAM_APDU [17:43:08]CAPDU: 80 13 01 00 [17:43:08]Write to MH i2c: E2 08 00 51 22 80 13 01 00 00 00 00 00 F0 [17:43:08]Write i2c OK [17:43:08]MH_I2C_Read... [17:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:08]Read from MH i2c: E2 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 0E 00 [17:43:08]MH_I2C_Read... [17:43:08]Read from MH i2c: E2 0E 00 51 22 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3A [17:43:08]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:43:08]wFMCommunicate OK [17:43:08]SAM_PROTO_GetShiftState done [17:43:08]FM_GetShiftState done [17:43:08]req_shift_opened done [17:43:08]requested_item shift.open_date is exist - process it [17:43:08]req_shift_open_date [17:43:08]req_shift_open_date done [17:43:08]produce_requested_data done [17:43:08]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111447,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:43:08]process_action_free close_receipt [17:43:08]json_value_free [17:43:08]json_value_free done [17:43:08]process_json_proto returns [17:43:08]Send response to host [17:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111447,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:43:08]free response buf [17:43:08]execute_script done [17:43:08]execute_script returns [17:43:08]free content buf [17:43:08]Sock 9.Close socket [17:43:08]Sock 9.Thread stoped [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:14]accept exits with 7 [17:45:14]New connection [17:45:14]New thread 3067321700 created [17:45:14]Thread 3067465060 joined [17:45:14]Waiting for new connection... [17:45:14] Sock 7.Parse request [17:45:14]Sock 7.Check first char [17:45:14]Sock 7.First char is OK [17:45:14]request: POST /json_proto HTTP/1.0 [17:45:14]Method: POST [17:45:14]URL: /json_proto [17:45:14]Method is POST - this is cgi request [17:45:14]url: /json_proto [17:45:14]query_string will be loaded in cgi processing [17:45:14]execute_cgi json_proto POST (null) [17:45:14]execute_cgi path=json_proto method=POST [17:45:14]POST find Content-Length [17:45:14]Host: 172.17.59.68:8080 [17:45:14]Content-Length: 682 [17:45:14]Content-Type: application/json [17:45:14] [17:45:14]POST finish read [17:45:14]Found Content-Length = 682 [17:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:14]execute_script... [17:45:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:14]POST & json_proto [17:45:14]process_json_proto [17:45:14]json parsed OK: [17:45:14]protocol is kg_v1.0 [17:45:14]action value=close_receipt [17:45:14]process_action close_receipt [17:45:14]cmd_close_receipt [17:45:14]MH_GetDate [17:45:14]Write to MH i2c: F0 00 00 52 22 63 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: F0 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: F0 09 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: F0 09 00 52 22 00 32 19 73 66 BC EC 60 65 FD [17:45:14]GetLastDocTimeStamp 1718818992 [17:45:14]current date 1718819122 [17:45:14]FM_GetShiftState [17:45:14]SAM_PROTO_GetShiftState [17:45:14]wFMCommunicate request_size=4 [17:45:14]MH_SAM_APDU [17:45:14]CAPDU: 80 13 01 00 [17:45:14]Write to MH i2c: E2 08 00 53 22 80 13 01 00 00 00 00 00 F2 [17:45:14]Write i2c OK [17:45:14]MH_I2C_Read... [17:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:14]Read from MH i2c: E2 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0E 00 [17:45:14]MH_I2C_Read... [17:45:14]Read from MH i2c: E2 0E 00 53 22 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3C [17:45:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:45:14]wFMCommunicate OK [17:45:14]SAM_PROTO_GetShiftState done [17:45:14]FM_GetShiftState done [17:45:14]opened in 1718760753 [17:45:14]opened+sec_in_day 1718847153 [17:45:14]quantity*price = 150064 [17:45:14]sum+1 = 150065 [17:45:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 197 19.06.2024 17:45 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111448 ФПД: 121029359236132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174522&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111448&fm=121029359236132&tin=02508201610067®Number=0000000000092771&sum=150000 [17:45:15]StoreToDocumentArchive [17:45:15]shift 388 fd 111448 [17:45:15]save to /storage/0388/doc_00111448 [17:45:15]save last doc name /storage/0388/doc_00111448 to /storage/kkm_last_doc_name [17:45:15]save OK [17:45:15]Clear old archive folders... [17:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:45:15]tlvbuf is B6E25710 [17:45:15]SAM_PROTO_ClearQueue [17:45:15]wFMCommunicate request_size=4 [17:45:15]MH_SAM_APDU [17:45:15]CAPDU: 80 09 00 00 [17:45:15]Write to MH i2c: E2 08 00 60 22 80 09 00 00 00 00 00 00 F4 [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:15]Read from MH i2c: E2 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 03 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 03 00 60 22 00 90 00 F6 [17:45:15]RAPDU: 90 00 [17:45:15]wFMCommunicate OK [17:45:15]SAM_PROTO_ClearQueue done [17:45:15]KKMCreateOFDPacket [17:45:15]OFDProtocolAddRootSTLVToBuf [17:45:15]FM_MakeSignedData [17:45:15]FM_MakeSignedData [17:45:15]SAM_PROTO_SignData [17:45:15]wFMCommunicate request_size=4 [17:45:15]MH_SAM_APDU [17:45:15]CAPDU: 80 0D 01 02 [17:45:15]Write to MH i2c: E2 08 00 61 22 80 0D 01 02 00 00 00 00 FC [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:15]Read from MH i2c: E2 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 03 00 [17:45:15]MH_I2C_Read... [17:45:15]Read from MH i2c: E2 03 00 61 22 00 90 00 F7 [17:45:15]RAPDU: 90 00 [17:45:15]wFMCommunicate OK [17:45:15]wFMCommunicate request_size=255 [17:45:15]MH_SAM_APDU [17:45: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 C5 00 00 00 F4 03 04 00 32 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B3 01 00 35 04 06 00 6E [17:45:15]Write to MH i2c: E2 02 01 62 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 C5 00 00 00 F4 03 04 00 32 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B3 01 00 35 04 06 00 6E 00 00 3C [17:45:15]Write i2c OK [17:45:15]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 62 22 00 90 00 F8 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]wFMCommunicate request_size=10 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 0D 02 02 05 13 57 F6 F4 24 [17:45:16]Write to MH i2c: E2 0D 00 63 22 80 0D 02 02 05 00 13 57 F6 F4 24 00 00 81 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 03 00 63 22 00 90 00 F9 [17:45:16]RAPDU: 90 00 [17:45:16]wFMCommunicate OK [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 0D 03 02 [17:45:16]Write to MH i2c: E2 08 00 64 22 80 0D 03 02 00 00 00 00 01 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 0B 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 0B 00 64 22 00 59 6D F4 A2 BB 45 5D 65 90 00 20 [17:45:16]RAPDU: 59 6D F4 A2 BB 45 5D 65 90 00 [17:45:16]wFMCommunicate OK [17:45:16]SAM_PROTO_SignData done [17:45:16]FM_MakeSignedData done [17:45:16]CreateOFDProtocolMessage [17:45:16]wFMCommunicate request_size=4 [17:45:16]MH_SAM_APDU [17:45:16]CAPDU: 80 11 00 00 [17:45:16]Write to MH i2c: E2 08 00 65 22 80 11 00 00 00 00 00 00 01 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:16]Read from MH i2c: E2 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 17 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: E2 17 00 65 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 53 [17:45:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:45:16]wFMCommunicate OK [17:45:16]CreateOFDProtocolMessage done [17:45:16]OFDSenderStorePacket 111448 [17:45:16]StoreOFDPacket docnum=111448 [17:45:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C 07 07 01 78 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 C5 00 00 00 F4 03 04 00 32 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B3 01 00 35 04 06 00 6E 13 57 F6 F4 24 59 6D F4 A2 BB 45 5D 65 [17:45:16]CheckFolder [17:45:16]dirname=/storage/ofd_packets [17:45:16]CheckFolder done [17:45:16]ProducePacketName [17:45:16]name=ofd_packets/00111448 [17:45:16]NVStorageSaveData ofd_packets/00111448 [17:45:16]File name is /storage/ofd_packets/00111448 [17:45:16]Write 301 bytes [17:45:16]NVStorageSaveData done [17:45:16]OFDSenderStorePacket done [17:45:16]KKMCreateOFDPacket done [17:45:16]NVStorageSaveData kkm_last_timestamp [17:45:16]File name is /storage/kkm_last_timestamp [17:45:16]Write 4 bytes [17:45:16]NVStorageSaveData done [17:45:16]ExternCall_PrintAddStr [17:45:16]wPrintStart [17:45:16]Write to MH i2c: 01 00 00 66 22 88 [17:45:16]Write i2c OK [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 07 00 [17:45:16]MH_I2C_Read... [17:45:16]Read from MH i2c: 01 07 00 66 22 00 00 00 00 00 FF 0F 9D [17:45:16]RasterBufferAndPrint [17:45:16]line Счет N : (1)320030 [17:45:16]line ИНН: 02508201610067 [17:45:16]line Контрольно-Кассовый Чек [17:45:16]line ПРОДАЖА [17:45:16]line ТРК (МРК, ГНК) : 11 [17:45:16]line Товар: 2710124130 [17:45:16]line Аи-92-К-5 [17:45:16]line 22.600 * 66.40 [17:45:16]line = 1500.64 [17:45:16]line НДС 12% НСП 1% [17:45:16]line > о реализуемом товаре [17:45:16]line ОКРУГЛЕНИЕ: -0.64 [17:45:16]line ИТОГО: 1500.00 [17:45:16]line Внесено: 1500.00 [17:45:16]line СДАЧА: 0.00 [17:45:16]line НСП 1% : 13.28 [17:45:16]line НДС 12% : 159.36 [17:45:16]line Наличными: 1500.00 [17:45:16]line Безнал.: 0.00 [17:45:16]line Место: АЗС № 65 "Партнер Нефть" [17:45:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:45:16]line СНО: Общий режим [17:45:16]line Чек 197 19.06.2024 17:45 [17:45:16]line Смена: 388 ФФД: 1.0 [17:45:16]line ЗНМ: 0300000198 [17:45:16]line РНМ: 0000000000092771 [17:45:16]line Версия ККМ: 001 [17:45:16]line ФМ: 0000000000875083 [17:45:16]line ФД: 111448 [17:45:16]line ФПД: 121029359236132 [17:45:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174522&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111448&fm=121029359236132&tin=02508201610067®Number=0000000000092771&sum=150000 [17:45:16]OFD Sender: Processing packet 111448 [packets to send 38, broken 37] [17:45:16]ProducePacketName [17:45:16]name=ofd_packets/00111448 [17:45:16]OFD Sender: To server: pG, [17:45:16]CommunicateWithHost lk.salyk.kg:30040 [17:45:16]ConnectInit lk.salyk.kg [17:45:16]written 0, free lines is 4095 [17:45:16]Connected sock=10 [17:45:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6C 07 07 01 78 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 C5 00 00 00 F4 03 04 00 32 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 58 B3 01 00 35 04 06 00 6E 13 57 F6 F4 24 59 6D F4 A2 BB 45 5D 65 [17:45:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8E 76 47 00 8C 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 35 30 38 33 10 04 04 00 58 B3 01 00 F4 03 04 00 95 B0 72 66 B6 04 01 00 00 AB DD A2 F7 63 3C B5 BD [17:45:16]CommunicateWithHost err = 0 [17:45:16]CheckOFDResponse [17:45:16]1017 (14) - 77093643461234 [17:45:16]1041 (16) - 0000000000875083 [17:45:16]1040 (4) - 111448 [17:45:16]1012 (4) - 19.06.2024 10:19 [17:45:16]1206 (1) - 0 [17:45:16]OFD Sender: Remove packet 111448 [17:45:16]ProducePacketName [17:45:16]name=ofd_packets/00111448 [17:45:16]NVStorageDeleteData [17:45:17]Write to MH i2c: 01 00 00 91 22 B3 [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 07 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: 01 07 00 91 22 00 00 00 00 00 E5 0C AB [17:45:17]RasterBufferAndPrint [17:45:17]line [17:45:17]line [17:45:17]line [17:45:17]line [17:45:17]line [17:45:17]written 0, free lines is 3307 [17:45:17]MH_Cut [17:45:17]Write to MH i2c: D1 01 00 98 22 01 8C [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 01 00 [17:45:17]MH_I2C_Read... [17:45:17]Read from MH i2c: D1 01 00 98 22 00 8B [17:45:17]Write to MH i2c: 01 00 00 99 22 BB [17:45:17]Write i2c OK [17:45:17]MH_I2C_Read... [17:45:17]OFD Sender: No OFD packet to send [17:45:17]*** Cut start [17:45:17]*** Partial cut [17:45:17]*** CUTSNS_PIN = 1 [17:45:17]*** CUTSNS_PIN = 0 [17:45:18]*** Brake cut motor [17:45:18]Read from MH i2c: 01 [17:45:18]MH_I2C_Read... [17:45:18]*** Stop cut motor [17:45:18]*** Cut end [17:45:18]Read from MH i2c: 01 07 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: 01 07 00 99 22 00 00 00 00 00 FF 0F D0 [17:45:18]process_action close_receipt done [17:45:18]requested_data is exist [17:45:18]produce_requested_data [17:45:18]requested_item fm.sn is exist - process it [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 11 00 00 [17:45:18]Write to MH i2c: E2 08 00 9A 22 80 11 00 00 00 00 00 00 36 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 17 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 17 00 9A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [17:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:45:18]wFMCommunicate OK [17:45:18]requested_item fd.num is exist - process it [17:45:18]SAM_PROTO_GetFieldsCounters [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 13 00 00 [17:45:18]Write to MH i2c: E2 08 00 9B 22 80 13 00 00 00 00 00 00 39 [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 62 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 62 00 9B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B3 01 00 0E 04 04 00 84 01 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 3A [17:45:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 58 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:45:18]wFMCommunicate OK [17:45:18]SAM_PROTO_GetFieldsCounters done [17:45:18]requested_item shift.num is exist - process it [17:45:18]requested_item shift.opened is exist - process it [17:45:18]req_shift_opened [17:45:18]FM_GetShiftState [17:45:18]SAM_PROTO_GetShiftState [17:45:18]wFMCommunicate request_size=4 [17:45:18]MH_SAM_APDU [17:45:18]CAPDU: 80 13 01 00 [17:45:18]Write to MH i2c: E2 08 00 9C 22 80 13 01 00 00 00 00 00 3B [17:45:18]Write i2c OK [17:45:18]MH_I2C_Read... [17:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:18]Read from MH i2c: E2 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 0E 00 [17:45:18]MH_I2C_Read... [17:45:18]Read from MH i2c: E2 0E 00 9C 22 00 09 00 01 31 35 72 66 00 00 00 00 90 00 85 [17:45:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:45:18]wFMCommunicate OK [17:45:18]SAM_PROTO_GetShiftState done [17:45:18]FM_GetShiftState done [17:45:18]req_shift_opened done [17:45:18]requested_item shift.open_date is exist - process it [17:45:18]req_shift_open_date [17:45:18]req_shift_open_date done [17:45:18]produce_requested_data done [17:45:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111448,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:45:18]process_action_free close_receipt [17:45:18]json_value_free [17:45:18]json_value_free done [17:45:18]process_json_proto returns [17:45:18]Send response to host [17:45:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111448,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:45:18]free response buf [17:45:18]execute_script done [17:45:18]execute_script returns [17:45:18]free content buf [17:45:18]Sock 7.Close socket [17:45:18]Sock 7.Thread stoped [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:09]accept exits with 9 [17:46:09]New connection [17:46:09]New thread 3067465060 created [17:46:09]Thread 3067321700 joined [17:46:09]Waiting for new connection... [17:46:09] Sock 9.Parse request [17:46:09]Sock 9.Check first char [17:46:09]Sock 9.First char is OK [17:46:09]request: POST /json_proto HTTP/1.0 [17:46:09]Method: POST [17:46:09]URL: /json_proto [17:46:09]Method is POST - this is cgi request [17:46:09]url: /json_proto [17:46:09]query_string will be loaded in cgi processing [17:46:09]execute_cgi json_proto POST (null) [17:46:09]execute_cgi path=json_proto method=POST [17:46:09]POST find Content-Length [17:46:09]Host: 172.17.59.68:8080 [17:46:09]Content-Length: 678 [17:46:09]Content-Type: application/json [17:46:09] [17:46:09]POST finish read [17:46:09]Found Content-Length = 678 [17:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:09]execute_script... [17:46: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)320031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.100, "sum" : 670.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:09]POST & json_proto [17:46:09]process_json_proto [17:46:09]json parsed OK: [17:46:09]protocol is kg_v1.0 [17:46:09]action value=close_receipt [17:46:09]process_action close_receipt [17:46:09]cmd_close_receipt [17:46:09]MH_GetDate [17:46:09]Write to MH i2c: F0 00 00 9D 22 AE [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 09 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: F0 09 00 9D 22 00 69 19 73 66 BC EC 60 65 7F [17:46:09]GetLastDocTimeStamp 1718819122 [17:46:09]current date 1718819177 [17:46:09]FM_GetShiftState [17:46:09]SAM_PROTO_GetShiftState [17:46:09]wFMCommunicate request_size=4 [17:46:09]MH_SAM_APDU [17:46:09]CAPDU: 80 13 01 00 [17:46:09]Write to MH i2c: E2 08 00 9E 22 80 13 01 00 00 00 00 00 3D [17:46:09]Write i2c OK [17:46:09]MH_I2C_Read... [17:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:09]Read from MH i2c: E2 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: E2 0E 00 [17:46:09]MH_I2C_Read... [17:46:09]Read from MH i2c: E2 0E 00 9E 22 00 09 00 01 31 35 72 66 00 00 00 00 90 00 87 [17:46:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:46:09]wFMCommunicate OK [17:46:09]SAM_PROTO_GetShiftState done [17:46:09]FM_GetShiftState done [17:46:09]opened in 1718760753 [17:46:09]opened+sec_in_day 1718847153 [17:46:09]quantity*price = 67064 [17:46:09]sum+1 = 67065 [17:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.22 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 198 19.06.2024 17:46 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111449 ФПД: 243125123874648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174617&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111449&fm=243125123874648&tin=02508201610067®Number=0000000000092771&sum=67000 [17:46:10]StoreToDocumentArchive [17:46:10]shift 388 fd 111449 [17:46:10]save to /storage/0388/doc_00111449 [17:46:10]save last doc name /storage/0388/doc_00111449 to /storage/kkm_last_doc_name [17:46:10]save OK [17:46:10]Clear old archive folders... [17:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:10]tlvbuf is 00EC1D70 [17:46:10]SAM_PROTO_ClearQueue [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 09 00 00 [17:46:10]Write to MH i2c: E2 08 00 AB 22 80 09 00 00 00 00 00 00 3F [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 AB 22 00 90 00 41 [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]SAM_PROTO_ClearQueue done [17:46:10]KKMCreateOFDPacket [17:46:10]OFDProtocolAddRootSTLVToBuf [17:46:10]FM_MakeSignedData [17:46:10]FM_MakeSignedData [17:46:10]SAM_PROTO_SignData [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 01 02 [17:46:10]Write to MH i2c: E2 08 00 AC 22 80 0D 01 02 00 00 00 00 47 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 AC 22 00 90 00 42 [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]wFMCommunicate request_size=255 [17:46:10]MH_SAM_APDU [17:46: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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 69 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B3 01 00 35 04 06 00 DD [17:46:10]Write to MH i2c: E2 02 01 AD 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 69 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B3 01 00 35 04 06 00 DD 00 00 3F [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 AD 22 00 90 00 43 [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]wFMCommunicate request_size=10 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 02 02 05 1E FA A4 FF 58 [17:46:10]Write to MH i2c: E2 0D 00 AE 22 80 0D 02 02 05 00 1E FA A4 FF 58 00 00 67 [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:10]Read from MH i2c: E2 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 [17:46:10]MH_I2C_Read... [17:46:10]Read from MH i2c: E2 03 00 AE 22 00 90 00 44 [17:46:10]RAPDU: 90 00 [17:46:10]wFMCommunicate OK [17:46:10]wFMCommunicate request_size=4 [17:46:10]MH_SAM_APDU [17:46:10]CAPDU: 80 0D 03 02 [17:46:10]Write to MH i2c: E2 08 00 AF 22 80 0D 03 02 00 00 00 00 4C [17:46:10]Write i2c OK [17:46:10]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 0B 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 0B 00 AF 22 00 F2 8E C6 FF 10 12 08 B7 90 00 73 [17:46:11]RAPDU: F2 8E C6 FF 10 12 08 B7 90 00 [17:46:11]wFMCommunicate OK [17:46:11]SAM_PROTO_SignData done [17:46:11]FM_MakeSignedData done [17:46:11]CreateOFDProtocolMessage [17:46:11]wFMCommunicate request_size=4 [17:46:11]MH_SAM_APDU [17:46:11]CAPDU: 80 11 00 00 [17:46:11]Write to MH i2c: E2 08 00 B0 22 80 11 00 00 00 00 00 00 4C [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:11]Read from MH i2c: E2 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 17 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: E2 17 00 B0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9E [17:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:46:11]wFMCommunicate OK [17:46:11]CreateOFDProtocolMessage done [17:46:11]OFDSenderStorePacket 111449 [17:46:11]StoreOFDPacket docnum=111449 [17:46:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 90 07 01 05 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 69 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B3 01 00 35 04 06 00 DD 1E FA A4 FF 58 F2 8E C6 FF 10 12 08 B7 [17:46:11]CheckFolder [17:46:11]dirname=/storage/ofd_packets [17:46:11]CheckFolder done [17:46:11]ProducePacketName [17:46:11]name=ofd_packets/00111449 [17:46:11]NVStorageSaveData ofd_packets/00111449 [17:46:11]File name is /storage/ofd_packets/00111449 [17:46:11]Write 301 bytes [17:46:11]NVStorageSaveData done [17:46:11]OFDSenderStorePacket done [17:46:11]KKMCreateOFDPacket done [17:46:11]NVStorageSaveData kkm_last_timestamp [17:46:11]File name is /storage/kkm_last_timestamp [17:46:11]Write 4 bytes [17:46:11]NVStorageSaveData done [17:46:11]ExternCall_PrintAddStr [17:46:11]wPrintStart [17:46:11]Write to MH i2c: 01 00 00 B1 22 D3 [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 B1 22 00 00 00 00 00 FF 0F E8 [17:46:11]RasterBufferAndPrint [17:46:11]line Счет N : (1)320031 [17:46:11]line ИНН: 02508201610067 [17:46:11]line Контрольно-Кассовый Чек [17:46:11]line ПРОДАЖА [17:46:11]line ТРК (МРК, ГНК) : 11 [17:46:11]line Товар: 2710124130 [17:46:11]line Аи-92-К-5 [17:46:11]line 10.100 * 66.40 [17:46:11]line = 670.64 [17:46:11]line НДС 12% НСП 1% [17:46:11]line > о реализуемом товаре [17:46:11]line ОКРУГЛЕНИЕ: -0.64 [17:46:11]line ИТОГО: 670.00 [17:46:11]line Внесено: 670.00 [17:46:11]line СДАЧА: 0.00 [17:46:11]line НСП 1% : 5.93 [17:46:11]line НДС 12% : 71.22 [17:46:11]line Наличными: 670.00 [17:46:11]line Безнал.: 0.00 [17:46:11]line Место: АЗС № 65 "Партнер Нефть" [17:46:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:46:11]line СНО: Общий режим [17:46:11]line Чек 198 19.06.2024 17:46 [17:46:11]line Смена: 388 ФФД: 1.0 [17:46:11]line ЗНМ: 0300000198 [17:46:11]line РНМ: 0000000000092771 [17:46:11]line Версия ККМ: 001 [17:46:11]line ФМ: 0000000000875083 [17:46:11]line ФД: 111449 [17:46:11]line ФПД: 243125123874648 [17:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174617&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111449&fm=243125123874648&tin=02508201610067®Number=0000000000092771&sum=67000 [17:46:11]OFD Sender: Processing packet 111449 [packets to send 38, broken 37] [17:46:11]ProducePacketName [17:46:11]name=ofd_packets/00111449 [17:46:11]OFD Sender: To server: pG, [17:46:11]CommunicateWithHost lk.salyk.kg:30040 [17:46:11]ConnectInit lk.salyk.kg [17:46:11]written 0, free lines is 4095 [17:46:11]Connected sock=10 [17:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7F 90 07 01 05 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 74 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F8 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 69 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B3 01 00 35 04 06 00 DD 1E FA A4 FF 58 F2 8E C6 FF 10 12 08 B7 [17:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5F B3 47 00 89 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 59 B3 01 00 F4 03 04 00 CC B0 72 66 B6 04 01 00 00 96 67 9C E6 88 0F A9 80 [17:46:11]CommunicateWithHost err = 0 [17:46:11]CheckOFDResponse [17:46:11]1017 (14) - 77093643461234 [17:46:11]1041 (16) - 0000000000875083 [17:46:11]1040 (4) - 111449 [17:46:11]1012 (4) - 19.06.2024 10:19 [17:46:11]1206 (1) - 0 [17:46:11]OFD Sender: Remove packet 111449 [17:46:11]ProducePacketName [17:46:11]name=ofd_packets/00111449 [17:46:11]NVStorageDeleteData [17:46:11]Write to MH i2c: 01 00 00 DC 22 FE [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: 01 07 00 DC 22 00 00 00 00 00 D1 0C E2 [17:46:11]RasterBufferAndPrint [17:46:11]line [17:46:11]line [17:46:11]line [17:46:11]line [17:46:11]line [17:46:11]written 0, free lines is 3286 [17:46:11]MH_Cut [17:46:11]Write to MH i2c: D1 01 00 E3 22 01 D7 [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: D1 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: D1 01 00 [17:46:11]MH_I2C_Read... [17:46:11]Read from MH i2c: D1 01 00 E3 22 00 D6 [17:46:11]Write to MH i2c: 01 00 00 E4 22 06 [17:46:11]Write i2c OK [17:46:11]MH_I2C_Read... [17:46:12]OFD Sender: No OFD packet to send [17:46:12]*** Cut start [17:46:12]*** Partial cut [17:46:12]*** CUTSNS_PIN = 1 [17:46:12]*** CUTSNS_PIN = 0 [17:46:12]*** Brake cut motor [17:46:13]Read from MH i2c: 01 [17:46:13]MH_I2C_Read... [17:46:13]*** Stop cut motor [17:46:13]*** Cut end [17:46:13]Read from MH i2c: 01 07 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: 01 07 00 E4 22 00 00 00 00 00 FF 0F 1B [17:46:13]process_action close_receipt done [17:46:13]requested_data is exist [17:46:13]produce_requested_data [17:46:13]requested_item fm.sn is exist - process it [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 11 00 00 [17:46:13]Write to MH i2c: E2 08 00 E5 22 80 11 00 00 00 00 00 00 81 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 17 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 17 00 E5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [17:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:46:13]wFMCommunicate OK [17:46:13]requested_item fd.num is exist - process it [17:46:13]SAM_PROTO_GetFieldsCounters [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 13 00 00 [17:46:13]Write to MH i2c: E2 08 00 E6 22 80 13 00 00 00 00 00 00 84 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 62 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 62 00 E6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B3 01 00 0E 04 04 00 84 01 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 89 [17:46: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 59 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_GetFieldsCounters done [17:46:13]requested_item shift.num is exist - process it [17:46:13]requested_item shift.opened is exist - process it [17:46:13]req_shift_opened [17:46:13]FM_GetShiftState [17:46:13]SAM_PROTO_GetShiftState [17:46:13]wFMCommunicate request_size=4 [17:46:13]MH_SAM_APDU [17:46:13]CAPDU: 80 13 01 00 [17:46:13]Write to MH i2c: E2 08 00 E7 22 80 13 01 00 00 00 00 00 86 [17:46:13]Write i2c OK [17:46:13]MH_I2C_Read... [17:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:13]Read from MH i2c: E2 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0E 00 [17:46:13]MH_I2C_Read... [17:46:13]Read from MH i2c: E2 0E 00 E7 22 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D0 [17:46:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:46:13]wFMCommunicate OK [17:46:13]SAM_PROTO_GetShiftState done [17:46:13]FM_GetShiftState done [17:46:13]req_shift_opened done [17:46:13]requested_item shift.open_date is exist - process it [17:46:13]req_shift_open_date [17:46:13]req_shift_open_date done [17:46:13]produce_requested_data done [17:46:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111449,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:46:13]process_action_free close_receipt [17:46:13]json_value_free [17:46:13]json_value_free done [17:46:13]process_json_proto returns [17:46:13]Send response to host [17:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111449,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:46:13]free response buf [17:46:13]execute_script done [17:46:13]execute_script returns [17:46:13]free content buf [17:46:13]Sock 9.Close socket [17:46:13]Sock 9.Thread stoped [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:30]accept exits with 7 [17:46:30]New connection [17:46:30]New thread 3067321700 created [17:46:30]Thread 3067465060 joined [17:46:30]Waiting for new connection... [17:46:30] Sock 7.Parse request [17:46:30]Sock 7.Check first char [17:46:30]Sock 7.First char is OK [17:46:30]request: POST /json_proto HTTP/1.0 [17:46:30]Method: POST [17:46:30]URL: /json_proto [17:46:30]Method is POST - this is cgi request [17:46:30]url: /json_proto [17:46:30]query_string will be loaded in cgi processing [17:46:30]execute_cgi json_proto POST (null) [17:46:30]execute_cgi path=json_proto method=POST [17:46:30]POST find Content-Length [17:46:30]Host: 172.17.59.68:8080 [17:46:30]Content-Length: 675 [17:46:30]Content-Type: application/json [17:46:30] [17:46:30]POST finish read [17:46:30]Found Content-Length = 675 [17:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:30]execute_script... [17:46: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)320032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.020, "sum" : 730.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:30]POST & json_proto [17:46:30]process_json_proto [17:46:30]json parsed OK: [17:46:30]protocol is kg_v1.0 [17:46:30]action value=close_receipt [17:46:30]process_action close_receipt [17:46:30]cmd_close_receipt [17:46:30]MH_GetDate [17:46:30]Write to MH i2c: F0 00 00 E8 22 F9 [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: F0 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: F0 09 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: F0 09 00 E8 22 00 7E 19 73 66 BC EC 60 65 DF [17:46:30]GetLastDocTimeStamp 1718819177 [17:46:30]current date 1718819198 [17:46:30]FM_GetShiftState [17:46:30]SAM_PROTO_GetShiftState [17:46:30]wFMCommunicate request_size=4 [17:46:30]MH_SAM_APDU [17:46:30]CAPDU: 80 13 01 00 [17:46:30]Write to MH i2c: E2 08 00 E9 22 80 13 01 00 00 00 00 00 88 [17:46:30]Write i2c OK [17:46:30]MH_I2C_Read... [17:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:30]Read from MH i2c: E2 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 0E 00 [17:46:30]MH_I2C_Read... [17:46:30]Read from MH i2c: E2 0E 00 E9 22 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D2 [17:46:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:46:30]wFMCommunicate OK [17:46:30]SAM_PROTO_GetShiftState done [17:46:30]FM_GetShiftState done [17:46:30]opened in 1718760753 [17:46:30]opened+sec_in_day 1718847153 [17:46:30]quantity*price = 73045 [17:46:30]sum+1 = 73047 [17:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.57 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 199 19.06.2024 17:46 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111450 ФПД: 13360067102779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174638&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111450&fm=13360067102779&tin=02508201610067®Number=0000000000092771&sum=73000 [17:46:31]StoreToDocumentArchive [17:46:31]shift 388 fd 111450 [17:46:31]save to /storage/0388/doc_00111450 [17:46:31]save last doc name /storage/0388/doc_00111450 to /storage/kkm_last_doc_name [17:46:31]save OK [17:46:31]Clear old archive folders... [17:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:46:31]tlvbuf is 00F70B90 [17:46:31]SAM_PROTO_ClearQueue [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 09 00 00 [17:46:31]Write to MH i2c: E2 08 00 F6 22 80 09 00 00 00 00 00 00 8A [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 03 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 03 00 F6 22 00 90 00 8C [17:46:31]RAPDU: 90 00 [17:46:31]wFMCommunicate OK [17:46:31]SAM_PROTO_ClearQueue done [17:46:31]KKMCreateOFDPacket [17:46:31]OFDProtocolAddRootSTLVToBuf [17:46:31]FM_MakeSignedData [17:46:31]FM_MakeSignedData [17:46:31]SAM_PROTO_SignData [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 0D 01 02 [17:46:31]Write to MH i2c: E2 08 00 F7 22 80 0D 01 02 00 00 00 00 92 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 03 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 03 00 F7 22 00 90 00 8D [17:46:31]RAPDU: 90 00 [17:46:31]wFMCommunicate OK [17:46:31]wFMCommunicate request_size=255 [17:46:31]MH_SAM_APDU [17:46: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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 7E 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B3 01 00 35 04 06 00 0C 26 A2 0D [17:46:31]Write to MH i2c: E2 02 01 F8 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 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 7E 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B3 01 00 35 04 06 00 0C 26 A2 0D 00 00 6E [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 03 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 03 00 F8 22 00 90 00 8E [17:46:31]RAPDU: 90 00 [17:46:31]wFMCommunicate OK [17:46:31]wFMCommunicate request_size=7 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 0D 02 02 02 C8 3B [17:46:31]Write to MH i2c: E2 0A 00 F9 22 80 0D 02 02 02 00 C8 3B 00 00 9C [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:31]Read from MH i2c: E2 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 03 00 [17:46:31]MH_I2C_Read... [17:46:31]Read from MH i2c: E2 03 00 F9 22 00 90 00 8F [17:46:31]RAPDU: 90 00 [17:46:31]wFMCommunicate OK [17:46:31]wFMCommunicate request_size=4 [17:46:31]MH_SAM_APDU [17:46:31]CAPDU: 80 0D 03 02 [17:46:31]Write to MH i2c: E2 08 00 FA 22 80 0D 03 02 00 00 00 00 97 [17:46:31]Write i2c OK [17:46:31]MH_I2C_Read... [17:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:32]Read from MH i2c: E2 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 0B 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 0B 00 FA 22 00 FA F1 3E CC 14 6F 22 BD 90 00 EF [17:46:32]RAPDU: FA F1 3E CC 14 6F 22 BD 90 00 [17:46:32]wFMCommunicate OK [17:46:32]SAM_PROTO_SignData done [17:46:32]FM_MakeSignedData done [17:46:32]CreateOFDProtocolMessage [17:46:32]wFMCommunicate request_size=4 [17:46:32]MH_SAM_APDU [17:46:32]CAPDU: 80 11 00 00 [17:46:32]Write to MH i2c: E2 08 00 FB 22 80 11 00 00 00 00 00 00 97 [17:46:32]Write i2c OK [17:46:32]MH_I2C_Read... [17:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:32]Read from MH i2c: E2 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 17 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: E2 17 00 FB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E9 [17:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:46:32]wFMCommunicate OK [17:46:32]CreateOFDProtocolMessage done [17:46:32]OFDSenderStorePacket 111450 [17:46:32]StoreOFDPacket docnum=111450 [17:46:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 33 15 04 01 61 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 7E 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B3 01 00 35 04 06 00 0C 26 A2 0D C8 3B FA F1 3E CC 14 6F 22 BD [17:46:32]CheckFolder [17:46:32]dirname=/storage/ofd_packets [17:46:32]CheckFolder done [17:46:32]ProducePacketName [17:46:32]name=ofd_packets/00111450 [17:46:32]NVStorageSaveData ofd_packets/00111450 [17:46:32]File name is /storage/ofd_packets/00111450 [17:46:32]Write 298 bytes [17:46:32]NVStorageSaveData done [17:46:32]OFDSenderStorePacket done [17:46:32]KKMCreateOFDPacket done [17:46:32]NVStorageSaveData kkm_last_timestamp [17:46:32]File name is /storage/kkm_last_timestamp [17:46:32]Write 4 bytes [17:46:32]NVStorageSaveData done [17:46:32]ExternCall_PrintAddStr [17:46:32]wPrintStart [17:46:32]Write to MH i2c: 01 00 00 FC 22 1E [17:46:32]Write i2c OK [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: 01 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: 01 07 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: 01 07 00 FC 22 00 00 00 00 00 FF 0F 33 [17:46:32]RasterBufferAndPrint [17:46:32]line Счет N : (1)320032 [17:46:32]line ИНН: 02508201610067 [17:46:32]line Контрольно-Кассовый Чек [17:46:32]line ПРОДАЖА [17:46:32]line ТРК (МРК, ГНК) : 22 [17:46:32]line Товар: 2710194210 [17:46:32]line ДТ-К-5 [17:46:32]line 10.020 * 72.90 [17:46:32]line = 730.46 [17:46:32]line НДС 12% НСП 1% [17:46:32]line > о реализуемом товаре [17:46:32]line ОКРУГЛЕНИЕ: -0.46 [17:46:32]line ИТОГО: 730.00 [17:46:32]line Внесено: 730.00 [17:46:32]line СДАЧА: 0.00 [17:46:32]line НСП 1% : 6.46 [17:46:32]line НДС 12% : 77.57 [17:46:32]line Наличными: 730.00 [17:46:32]line Безнал.: 0.00 [17:46:32]line Место: АЗС № 65 "Партнер Нефть" [17:46:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:46:32]line СНО: Общий режим [17:46:32]line Чек 199 19.06.2024 17:46 [17:46:32]line Смена: 388 ФФД: 1.0 [17:46:32]line ЗНМ: 0300000198 [17:46:32]line РНМ: 0000000000092771 [17:46:32]line Версия ККМ: 001 [17:46:32]line ФМ: 0000000000875083 [17:46:32]line ФД: 111450 [17:46:32]line ФПД: 13360067102779 [17:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174638&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111450&fm=13360067102779&tin=02508201610067®Number=0000000000092771&sum=73000 [17:46:32]OFD Sender: Processing packet 111450 [packets to send 38, broken 37] [17:46:32]ProducePacketName [17:46:32]name=ofd_packets/00111450 [17:46:32]OFD Sender: To server: pG, [17:46:32]CommunicateWithHost lk.salyk.kg:30040 [17:46:32]ConnectInit lk.salyk.kg [17:46:32]written 0, free lines is 4095 [17:46:32]Connected sock=10 [17:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 33 15 04 01 61 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 1E 00 00 00 00 07 04 06 00 28 1D 01 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 7E 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B3 01 00 35 04 06 00 0C 26 A2 0D C8 3B FA F1 3E CC 14 6F 22 BD [17:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2B D3 47 00 94 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5A B3 01 00 F4 03 04 00 E1 B0 72 66 B6 04 01 00 00 28 B2 CF 23 9D 99 DD E7 [17:46:32]CommunicateWithHost err = 0 [17:46:32]CheckOFDResponse [17:46:32]1017 (14) - 77093643461234 [17:46:32]1041 (16) - 0000000000875083 [17:46:32]1040 (4) - 111450 [17:46:32]1012 (4) - 19.06.2024 10:20 [17:46:32]1206 (1) - 0 [17:46:32]OFD Sender: Remove packet 111450 [17:46:32]ProducePacketName [17:46:32]name=ofd_packets/00111450 [17:46:32]NVStorageDeleteData [17:46:32]Write to MH i2c: 01 00 00 27 23 4A [17:46:32]Write i2c OK [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: 01 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: 01 07 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 D4 0C 31 [17:46:32]RasterBufferAndPrint [17:46:32]line [17:46:32]line [17:46:32]line [17:46:32]line [17:46:32]line [17:46:32]written 0, free lines is 3288 [17:46:32]MH_Cut [17:46:32]Write to MH i2c: D1 01 00 2E 23 01 23 [17:46:32]Write i2c OK [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: D1 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: D1 01 00 [17:46:32]MH_I2C_Read... [17:46:32]Read from MH i2c: D1 01 00 2E 23 00 22 [17:46:32]Write to MH i2c: 01 00 00 2F 23 52 [17:46:32]Write i2c OK [17:46:32]MH_I2C_Read... [17:46:33]OFD Sender: No OFD packet to send [17:46:33]*** Cut start [17:46:33]*** Partial cut [17:46:33]*** CUTSNS_PIN = 1 [17:46:33]*** CUTSNS_PIN = 0 [17:46:33]*** Brake cut motor [17:46:34]Read from MH i2c: 01 [17:46:34]MH_I2C_Read... [17:46:34]*** Stop cut motor [17:46:34]*** Cut end [17:46:34]Read from MH i2c: 01 07 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: 01 07 00 2F 23 00 00 00 00 00 FF 0F 67 [17:46:34]process_action close_receipt done [17:46:34]requested_data is exist [17:46:34]produce_requested_data [17:46:34]requested_item fm.sn is exist - process it [17:46:34]wFMCommunicate request_size=4 [17:46:34]MH_SAM_APDU [17:46:34]CAPDU: 80 11 00 00 [17:46:34]Write to MH i2c: E2 08 00 30 23 80 11 00 00 00 00 00 00 CD [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 17 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 17 00 30 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [17:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:46:34]wFMCommunicate OK [17:46:34]requested_item fd.num is exist - process it [17:46:34]SAM_PROTO_GetFieldsCounters [17:46:34]wFMCommunicate request_size=4 [17:46:34]MH_SAM_APDU [17:46:34]CAPDU: 80 13 00 00 [17:46:34]Write to MH i2c: E2 08 00 31 23 80 13 00 00 00 00 00 00 D0 [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 62 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 62 00 31 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B3 01 00 0E 04 04 00 84 01 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 D9 [17:46: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:34]wFMCommunicate OK [17:46:34]SAM_PROTO_GetFieldsCounters done [17:46:34]requested_item shift.num is exist - process it [17:46:34]requested_item shift.opened is exist - process it [17:46:34]req_shift_opened [17:46:34]FM_GetShiftState [17:46:34]SAM_PROTO_GetShiftState [17:46:34]wFMCommunicate request_size=4 [17:46:34]MH_SAM_APDU [17:46:34]CAPDU: 80 13 01 00 [17:46:34]Write to MH i2c: E2 08 00 32 23 80 13 01 00 00 00 00 00 D2 [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 0E 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 0E 00 32 23 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1C [17:46:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:46:34]wFMCommunicate OK [17:46:34]SAM_PROTO_GetShiftState done [17:46:34]FM_GetShiftState done [17:46:34]req_shift_opened done [17:46:34]requested_item shift.open_date is exist - process it [17:46:34]req_shift_open_date [17:46:34]req_shift_open_date done [17:46:34]produce_requested_data done [17:46:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111450,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:46:34]process_action_free close_receipt [17:46:34]json_value_free [17:46:34]json_value_free done [17:46:34]process_json_proto returns [17:46:34]Send response to host [17:46:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111450,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:46:34]free response buf [17:46:34]execute_script done [17:46:34]execute_script returns [17:46:34]free content buf [17:46:34]Sock 7.Close socket [17:46:34]Sock 7.Thread stoped [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:46:58]accept exits with 9 [17:46:58]New connection [17:46:58]New thread 3067465060 created [17:46:58]Thread 3067321700 joined [17:46:58]Waiting for new connection... [17:46:58] Sock 9.Parse request [17:46:58]Sock 9.Check first char [17:46:58]Sock 9.First char is OK [17:46:58]request: POST /json_proto HTTP/1.0 [17:46:58]Method: POST [17:46:58]URL: /json_proto [17:46:58]Method is POST - this is cgi request [17:46:58]url: /json_proto [17:46:58]query_string will be loaded in cgi processing [17:46:58]execute_cgi json_proto POST (null) [17:46:58]execute_cgi path=json_proto method=POST [17:46:58]POST find Content-Length [17:46:58]Host: 172.17.59.68:8080 [17:46:58]Content-Length: 677 [17:46:58]Content-Type: application/json [17:46:58] [17:46:58]POST finish read [17:46:58]Found Content-Length = 677 [17:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:58]execute_script... [17:46: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)320033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:58]POST & json_proto [17:46:58]process_json_proto [17:46:58]json parsed OK: [17:46:58]protocol is kg_v1.0 [17:46:58]action value=close_receipt [17:46:58]process_action close_receipt [17:46:58]cmd_close_receipt [17:46:58]MH_GetDate [17:46:58]Write to MH i2c: F0 00 00 33 23 45 [17:46:58]Write i2c OK [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: F0 [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: F0 09 00 [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: F0 09 00 33 23 00 9A 19 73 66 BC EC 60 65 47 [17:46:58]GetLastDocTimeStamp 1718819198 [17:46:58]current date 1718819226 [17:46:58]FM_GetShiftState [17:46:58]SAM_PROTO_GetShiftState [17:46:58]wFMCommunicate request_size=4 [17:46:58]MH_SAM_APDU [17:46:58]CAPDU: 80 13 01 00 [17:46:58]Write to MH i2c: E2 08 00 34 23 80 13 01 00 00 00 00 00 D4 [17:46:58]Write i2c OK [17:46:58]MH_I2C_Read... [17:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:58]Read from MH i2c: E2 [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: E2 0E 00 [17:46:58]MH_I2C_Read... [17:46:58]Read from MH i2c: E2 0E 00 34 23 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1E [17:46:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:46:58]wFMCommunicate OK [17:46:58]SAM_PROTO_GetShiftState done [17:46:58]FM_GetShiftState done [17:46:58]opened in 1718760753 [17:46:58]opened+sec_in_day 1718847153 [17:46:58]quantity*price = 50065 [17:46:58]sum+1 = 50067 [17:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 200 19.06.2024 17:47 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111451 ФПД: 170642443624716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174706&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111451&fm=170642443624716&tin=02508201610067®Number=0000000000092771&sum=50000 [17:46:59]StoreToDocumentArchive [17:46:59]shift 388 fd 111451 [17:46:59]save to /storage/0388/doc_00111451 [17:46:59]save last doc name /storage/0388/doc_00111451 to /storage/kkm_last_doc_name [17:46:59]save OK [17:46:59]Clear old archive folders... [17:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:59]tlvbuf is 00F382E0 [17:46:59]SAM_PROTO_ClearQueue [17:46:59]wFMCommunicate request_size=4 [17:46:59]MH_SAM_APDU [17:46:59]CAPDU: 80 09 00 00 [17:46:59]Write to MH i2c: E2 08 00 41 23 80 09 00 00 00 00 00 00 D6 [17:46:59]Write i2c OK [17:46:59]MH_I2C_Read... [17:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:59]Read from MH i2c: E2 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 03 00 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 03 00 41 23 00 90 00 D8 [17:46:59]RAPDU: 90 00 [17:46:59]wFMCommunicate OK [17:46:59]SAM_PROTO_ClearQueue done [17:46:59]KKMCreateOFDPacket [17:46:59]OFDProtocolAddRootSTLVToBuf [17:46:59]FM_MakeSignedData [17:46:59]FM_MakeSignedData [17:46:59]SAM_PROTO_SignData [17:46:59]wFMCommunicate request_size=4 [17:46:59]MH_SAM_APDU [17:46:59]CAPDU: 80 0D 01 02 [17:46:59]Write to MH i2c: E2 08 00 42 23 80 0D 01 02 00 00 00 00 DE [17:46:59]Write i2c OK [17:46:59]MH_I2C_Read... [17:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:59]Read from MH i2c: E2 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 03 00 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 03 00 42 23 00 90 00 D9 [17:46:59]RAPDU: 90 00 [17:46:59]wFMCommunicate OK [17:46:59]wFMCommunicate request_size=255 [17:46:59]MH_SAM_APDU [17:46: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9A 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B3 01 00 35 04 06 00 9B [17:46:59]Write to MH i2c: E2 02 01 43 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9A 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B3 01 00 35 04 06 00 9B 00 00 15 [17:46:59]Write i2c OK [17:46:59]MH_I2C_Read... [17:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:59]Read from MH i2c: E2 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 03 00 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 03 00 43 23 00 90 00 DA [17:46:59]RAPDU: 90 00 [17:46:59]wFMCommunicate OK [17:46:59]wFMCommunicate request_size=10 [17:46:59]MH_SAM_APDU [17:46:59]CAPDU: 80 0D 02 02 05 32 CA 3C 61 0C [17:46:59]Write to MH i2c: E2 0D 00 44 23 80 0D 02 02 05 00 32 CA 3C 61 0C 00 00 90 [17:46:59]Write i2c OK [17:46:59]MH_I2C_Read... [17:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:59]Read from MH i2c: E2 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 03 00 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [17:46:59]RAPDU: 90 00 [17:46:59]wFMCommunicate OK [17:46:59]wFMCommunicate request_size=4 [17:46:59]MH_SAM_APDU [17:46:59]CAPDU: 80 0D 03 02 [17:46:59]Write to MH i2c: E2 08 00 45 23 80 0D 03 02 00 00 00 00 E3 [17:46:59]Write i2c OK [17:46:59]MH_I2C_Read... [17:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:59]Read from MH i2c: E2 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 0B 00 [17:46:59]MH_I2C_Read... [17:46:59]Read from MH i2c: E2 0B 00 45 23 00 13 49 A7 43 08 0C BE 06 90 00 02 [17:46:59]RAPDU: 13 49 A7 43 08 0C BE 06 90 00 [17:46:59]wFMCommunicate OK [17:46:59]SAM_PROTO_SignData done [17:46:59]FM_MakeSignedData done [17:46:59]CreateOFDProtocolMessage [17:46:59]wFMCommunicate request_size=4 [17:46:59]MH_SAM_APDU [17:46:59]CAPDU: 80 11 00 00 [17:46:59]Write to MH i2c: E2 08 00 46 23 80 11 00 00 00 00 00 00 E3 [17:46:59]Write i2c OK [17:46:59]MH_I2C_Read... [17:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:00]Read from MH i2c: E2 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 17 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: E2 17 00 46 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 35 [17:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:47:00]wFMCommunicate OK [17:47:00]CreateOFDProtocolMessage done [17:47:00]OFDSenderStorePacket 111451 [17:47:00]StoreOFDPacket docnum=111451 [17:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 30 07 01 3C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9A 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B3 01 00 35 04 06 00 9B 32 CA 3C 61 0C 13 49 A7 43 08 0C BE 06 [17:47:00]CheckFolder [17:47:00]dirname=/storage/ofd_packets [17:47:00]CheckFolder done [17:47:00]ProducePacketName [17:47:00]name=ofd_packets/00111451 [17:47:00]NVStorageSaveData ofd_packets/00111451 [17:47:00]File name is /storage/ofd_packets/00111451 [17:47:00]Write 301 bytes [17:47:00]NVStorageSaveData done [17:47:00]OFDSenderStorePacket done [17:47:00]KKMCreateOFDPacket done [17:47:00]NVStorageSaveData kkm_last_timestamp [17:47:00]File name is /storage/kkm_last_timestamp [17:47:00]Write 4 bytes [17:47:00]NVStorageSaveData done [17:47:00]ExternCall_PrintAddStr [17:47:00]wPrintStart [17:47:00]Write to MH i2c: 01 00 00 47 23 6A [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 47 23 00 00 00 00 00 FF 0F 7F [17:47:00]RasterBufferAndPrint [17:47:00]line Счет N : (1)320033 [17:47:00]line ИНН: 02508201610067 [17:47:00]line Контрольно-Кассовый Чек [17:47:00]line ПРОДАЖА [17:47:00]line ТРК (МРК, ГНК) : 11 [17:47:00]line Товар: 2710124130 [17:47:00]line Аи-92-К-5 [17:47:00]line 7.540 * 66.40 [17:47:00]line = 500.66 [17:47:00]line НДС 12% НСП 1% [17:47:00]line > о реализуемом товаре [17:47:00]line ОКРУГЛЕНИЕ: -0.66 [17:47:00]line ИТОГО: 500.00 [17:47:00]line Внесено: 500.00 [17:47:00]line СДАЧА: 0.00 [17:47:00]line НСП 1% : 4.43 [17:47:00]line НДС 12% : 53.17 [17:47:00]line Наличными: 500.00 [17:47:00]line Безнал.: 0.00 [17:47:00]line Место: АЗС № 65 "Партнер Нефть" [17:47:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:47:00]line СНО: Общий режим [17:47:00]line Чек 200 19.06.2024 17:47 [17:47:00]line Смена: 388 ФФД: 1.0 [17:47:00]line ЗНМ: 0300000198 [17:47:00]line РНМ: 0000000000092771 [17:47:00]line Версия ККМ: 001 [17:47:00]line ФМ: 0000000000875083 [17:47:00]line ФД: 111451 [17:47:00]line ФПД: 170642443624716 [17:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174706&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111451&fm=170642443624716&tin=02508201610067®Number=0000000000092771&sum=50000 [17:47:00]OFD Sender: Processing packet 111451 [packets to send 38, broken 37] [17:47:00]ProducePacketName [17:47:00]name=ofd_packets/00111451 [17:47:00]OFD Sender: To server: pG, [17:47:00]CommunicateWithHost lk.salyk.kg:30040 [17:47:00]ConnectInit lk.salyk.kg [17:47:00]written 0, free lines is 4095 [17:47:00]Connected sock=10 [17:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E3 30 07 01 3C 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9A 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5B B3 01 00 35 04 06 00 9B 32 CA 3C 61 0C 13 49 A7 43 08 0C BE 06 [17:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C4 D2 47 00 66 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 35 30 38 33 10 04 04 00 5B B3 01 00 F4 03 04 00 FD B0 72 66 B6 04 01 00 00 4E 9B D5 60 ED DC 34 45 [17:47:00]CommunicateWithHost err = 0 [17:47:00]CheckOFDResponse [17:47:00]1017 (14) - 77093643461234 [17:47:00]1041 (16) - 0000000000875083 [17:47:00]1040 (4) - 111451 [17:47:00]1012 (4) - 19.06.2024 10:20 [17:47:00]1206 (1) - 0 [17:47:00]OFD Sender: Remove packet 111451 [17:47:00]ProducePacketName [17:47:00]name=ofd_packets/00111451 [17:47:00]NVStorageDeleteData [17:47:00]Write to MH i2c: 01 00 00 72 23 95 [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: 01 07 00 72 23 00 00 00 00 00 CD 0C 75 [17:47:00]RasterBufferAndPrint [17:47:00]line [17:47:00]line [17:47:00]line [17:47:00]line [17:47:00]line [17:47:00]written 0, free lines is 3283 [17:47:00]MH_Cut [17:47:00]Write to MH i2c: D1 01 00 79 23 01 6E [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: D1 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: D1 01 00 [17:47:00]MH_I2C_Read... [17:47:00]Read from MH i2c: D1 01 00 79 23 00 6D [17:47:00]Write to MH i2c: 01 00 00 7A 23 9D [17:47:00]Write i2c OK [17:47:00]MH_I2C_Read... [17:47:01]OFD Sender: No OFD packet to send [17:47:01]*** Cut start [17:47:01]*** Partial cut [17:47:01]*** CUTSNS_PIN = 1 [17:47:01]*** CUTSNS_PIN = 0 [17:47:01]*** Brake cut motor [17:47:02]Read from MH i2c: 01 [17:47:02]MH_I2C_Read... [17:47:02]*** Stop cut motor [17:47:02]*** Cut end [17:47:02]Read from MH i2c: 01 07 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: 01 07 00 7A 23 00 00 00 00 00 FF 0F B2 [17:47:02]process_action close_receipt done [17:47:02]requested_data is exist [17:47:02]produce_requested_data [17:47:02]requested_item fm.sn is exist - process it [17:47:02]wFMCommunicate request_size=4 [17:47:02]MH_SAM_APDU [17:47:02]CAPDU: 80 11 00 00 [17:47:02]Write to MH i2c: E2 08 00 7B 23 80 11 00 00 00 00 00 00 18 [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:02]Read from MH i2c: E2 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 17 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 17 00 7B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [17:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:47:02]wFMCommunicate OK [17:47:02]requested_item fd.num is exist - process it [17:47:02]SAM_PROTO_GetFieldsCounters [17:47:02]wFMCommunicate request_size=4 [17:47:02]MH_SAM_APDU [17:47:02]CAPDU: 80 13 00 00 [17:47:02]Write to MH i2c: E2 08 00 7C 23 80 13 00 00 00 00 00 00 1B [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:02]Read from MH i2c: E2 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 62 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 62 00 7C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B3 01 00 0E 04 04 00 84 01 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 28 [17:47: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:02]wFMCommunicate OK [17:47:02]SAM_PROTO_GetFieldsCounters done [17:47:02]requested_item shift.num is exist - process it [17:47:02]requested_item shift.opened is exist - process it [17:47:02]req_shift_opened [17:47:02]FM_GetShiftState [17:47:02]SAM_PROTO_GetShiftState [17:47:02]wFMCommunicate request_size=4 [17:47:02]MH_SAM_APDU [17:47:02]CAPDU: 80 13 01 00 [17:47:02]Write to MH i2c: E2 08 00 7D 23 80 13 01 00 00 00 00 00 1D [17:47:02]Write i2c OK [17:47:02]MH_I2C_Read... [17:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:02]Read from MH i2c: E2 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 0E 00 [17:47:02]MH_I2C_Read... [17:47:02]Read from MH i2c: E2 0E 00 7D 23 00 09 00 01 31 35 72 66 00 00 00 00 90 00 67 [17:47:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:47:02]wFMCommunicate OK [17:47:02]SAM_PROTO_GetShiftState done [17:47:02]FM_GetShiftState done [17:47:02]req_shift_opened done [17:47:02]requested_item shift.open_date is exist - process it [17:47:02]req_shift_open_date [17:47:02]req_shift_open_date done [17:47:02]produce_requested_data done [17:47:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111451,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:47:02]process_action_free close_receipt [17:47:02]json_value_free [17:47:02]json_value_free done [17:47:02]process_json_proto returns [17:47:02]Send response to host [17:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111451,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:47:02]free response buf [17:47:02]execute_script done [17:47:02]execute_script returns [17:47:02]free content buf [17:47:02]Sock 9.Close socket [17:47:02]Sock 9.Thread stoped [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:30]accept exits with 7 [17:48:30]New connection [17:48:30]New thread 3067321700 created [17:48:30]Thread 3067465060 joined [17:48:30]Waiting for new connection... [17:48:30] Sock 7.Parse request [17:48:30]Sock 7.Check first char [17:48:30]Sock 7.First char is OK [17:48:30]request: POST /json_proto HTTP/1.0 [17:48:30]Method: POST [17:48:30]URL: /json_proto [17:48:30]Method is POST - this is cgi request [17:48:30]url: /json_proto [17:48:30]query_string will be loaded in cgi processing [17:48:30]execute_cgi json_proto POST (null) [17:48:30]execute_cgi path=json_proto method=POST [17:48:30]POST find Content-Length [17:48:30]Host: 172.17.59.68:8080 [17:48:30]Content-Length: 682 [17:48:30]Content-Type: application/json [17:48:30] [17:48:30]POST finish read [17:48:30]Found Content-Length = 682 [17:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:30]execute_script... [17:48: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)320034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:30]POST & json_proto [17:48:30]process_json_proto [17:48:30]json parsed OK: [17:48:30]protocol is kg_v1.0 [17:48:30]action value=close_receipt [17:48:30]process_action close_receipt [17:48:30]cmd_close_receipt [17:48:30]MH_GetDate [17:48:30]Write to MH i2c: F0 00 00 7E 23 90 [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: F0 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: F0 09 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: F0 09 00 7E 23 00 F6 19 73 66 BC EC 60 65 EE [17:48:30]GetLastDocTimeStamp 1718819226 [17:48:30]current date 1718819318 [17:48:30]FM_GetShiftState [17:48:30]SAM_PROTO_GetShiftState [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 13 01 00 [17:48:30]Write to MH i2c: E2 08 00 7F 23 80 13 01 00 00 00 00 00 1F [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0E 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0E 00 7F 23 00 09 00 01 31 35 72 66 00 00 00 00 90 00 69 [17:48:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:48:30]wFMCommunicate OK [17:48:30]SAM_PROTO_GetShiftState done [17:48:30]FM_GetShiftState done [17:48:30]opened in 1718760753 [17:48:30]opened+sec_in_day 1718847153 [17:48:30]quantity*price = 100064 [17:48:30]sum+1 = 100066 [17:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 201 19.06.2024 17:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111452 ФПД: 177145591977838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174838&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111452&fm=177145591977838&tin=02508201610067®Number=0000000000092771&sum=100000 [17:48:31]StoreToDocumentArchive [17:48:31]shift 388 fd 111452 [17:48:31]save to /storage/0388/doc_00111452 [17:48:31]save last doc name /storage/0388/doc_00111452 to /storage/kkm_last_doc_name [17:48:31]save OK [17:48:31]Clear old archive folders... [17:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:31]tlvbuf is 00EBF0E0 [17:48:31]SAM_PROTO_ClearQueue [17:48:31]wFMCommunicate request_size=4 [17:48:31]MH_SAM_APDU [17:48:31]CAPDU: 80 09 00 00 [17:48:31]Write to MH i2c: E2 08 00 8C 23 80 09 00 00 00 00 00 00 21 [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 [17:48:31]MH_I2C_Read... [17:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:31]Read from MH i2c: E2 03 00 [17:48:31]MH_I2C_Read... [17:48:31]Read from MH i2c: E2 03 00 8C 23 00 90 00 23 [17:48:31]RAPDU: 90 00 [17:48:31]wFMCommunicate OK [17:48:31]SAM_PROTO_ClearQueue done [17:48:31]KKMCreateOFDPacket [17:48:31]OFDProtocolAddRootSTLVToBuf [17:48:31]FM_MakeSignedData [17:48:31]FM_MakeSignedData [17:48:31]SAM_PROTO_SignData [17:48:31]wFMCommunicate request_size=4 [17:48:31]MH_SAM_APDU [17:48:31]CAPDU: 80 0D 01 02 [17:48:31]Write to MH i2c: E2 08 00 8D 23 80 0D 01 02 00 00 00 00 29 [17:48:31]Write i2c OK [17:48:31]MH_I2C_Read... [17:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:32]Read from MH i2c: E2 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 03 00 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 03 00 8D 23 00 90 00 24 [17:48:32]RAPDU: 90 00 [17:48:32]wFMCommunicate OK [17:48:32]wFMCommunicate request_size=255 [17:48:32]MH_SAM_APDU [17:48: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 F6 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B3 01 00 35 04 06 00 A1 [17:48:32]Write to MH i2c: E2 02 01 8E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 F6 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B3 01 00 35 04 06 00 A1 00 00 14 [17:48:32]Write i2c OK [17:48:32]MH_I2C_Read... [17:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:32]Read from MH i2c: E2 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 03 00 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 03 00 8E 23 00 90 00 25 [17:48:32]RAPDU: 90 00 [17:48:32]wFMCommunicate OK [17:48:32]wFMCommunicate request_size=10 [17:48:32]MH_SAM_APDU [17:48:32]CAPDU: 80 0D 02 02 05 1C EC 15 57 6E [17:48:32]Write to MH i2c: E2 0D 00 8F 23 80 0D 02 02 05 00 1C EC 15 57 6E 00 00 18 [17:48:32]Write i2c OK [17:48:32]MH_I2C_Read... [17:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:32]Read from MH i2c: E2 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 03 00 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 03 00 8F 23 00 90 00 26 [17:48:32]RAPDU: 90 00 [17:48:32]wFMCommunicate OK [17:48:32]wFMCommunicate request_size=4 [17:48:32]MH_SAM_APDU [17:48:32]CAPDU: 80 0D 03 02 [17:48:32]Write to MH i2c: E2 08 00 90 23 80 0D 03 02 00 00 00 00 2E [17:48:32]Write i2c OK [17:48:32]MH_I2C_Read... [17:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:32]Read from MH i2c: E2 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 0B 00 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 0B 00 90 23 00 47 5D AC ED 45 74 5E FA 90 00 7D [17:48:32]RAPDU: 47 5D AC ED 45 74 5E FA 90 00 [17:48:32]wFMCommunicate OK [17:48:32]SAM_PROTO_SignData done [17:48:32]FM_MakeSignedData done [17:48:32]CreateOFDProtocolMessage [17:48:32]wFMCommunicate request_size=4 [17:48:32]MH_SAM_APDU [17:48:32]CAPDU: 80 11 00 00 [17:48:32]Write to MH i2c: E2 08 00 91 23 80 11 00 00 00 00 00 00 2E [17:48:32]Write i2c OK [17:48:32]MH_I2C_Read... [17:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:32]Read from MH i2c: E2 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 17 00 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: E2 17 00 91 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 80 [17:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:48:32]wFMCommunicate OK [17:48:32]CreateOFDProtocolMessage done [17:48:32]OFDSenderStorePacket 111452 [17:48:32]StoreOFDPacket docnum=111452 [17:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 35 0E 07 01 9B 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 F6 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B3 01 00 35 04 06 00 A1 1C EC 15 57 6E 47 5D AC ED 45 74 5E FA [17:48:32]CheckFolder [17:48:32]dirname=/storage/ofd_packets [17:48:32]CheckFolder done [17:48:32]ProducePacketName [17:48:32]name=ofd_packets/00111452 [17:48:32]NVStorageSaveData ofd_packets/00111452 [17:48:32]File name is /storage/ofd_packets/00111452 [17:48:32]Write 301 bytes [17:48:32]NVStorageSaveData done [17:48:32]OFDSenderStorePacket done [17:48:32]KKMCreateOFDPacket done [17:48:32]NVStorageSaveData kkm_last_timestamp [17:48:32]File name is /storage/kkm_last_timestamp [17:48:32]Write 4 bytes [17:48:32]NVStorageSaveData done [17:48:32]ExternCall_PrintAddStr [17:48:32]wPrintStart [17:48:32]Write to MH i2c: 01 00 00 92 23 B5 [17:48:32]Write i2c OK [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: 01 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: 01 07 00 [17:48:32]MH_I2C_Read... [17:48:32]Read from MH i2c: 01 07 00 92 23 00 00 00 00 00 FF 0F CA [17:48:32]RasterBufferAndPrint [17:48:32]line Счет N : (1)320034 [17:48:32]line ИНН: 02508201610067 [17:48:32]line Контрольно-Кассовый Чек [17:48:32]line ПРОДАЖА [17:48:32]line ТРК (МРК, ГНК) : 11 [17:48:32]line Товар: 2710124130 [17:48:32]line Аи-92-К-5 [17:48:32]line 15.070 * 66.40 [17:48:32]line = 1000.65 [17:48:32]line НДС 12% НСП 1% [17:48:32]line > о реализуемом товаре [17:48:32]line ОКРУГЛЕНИЕ: -0.65 [17:48:32]line ИТОГО: 1000.00 [17:48:32]line Внесено: 1000.00 [17:48:32]line СДАЧА: 0.00 [17:48:32]line НСП 1% : 8.85 [17:48:32]line НДС 12% : 106.26 [17:48:32]line Наличными: 1000.00 [17:48:32]line Безнал.: 0.00 [17:48:32]line Место: АЗС № 65 "Партнер Нефть" [17:48:32]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:48:32]line СНО: Общий режим [17:48:32]line Чек 201 19.06.2024 17:48 [17:48:32]line Смена: 388 ФФД: 1.0 [17:48:32]line ЗНМ: 0300000198 [17:48:32]line РНМ: 0000000000092771 [17:48:32]line Версия ККМ: 001 [17:48:32]line ФМ: 0000000000875083 [17:48:32]line ФД: 111452 [17:48:32]line ФПД: 177145591977838 [17:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T174838&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111452&fm=177145591977838&tin=02508201610067®Number=0000000000092771&sum=100000 [17:48:32]OFD Sender: Processing packet 111452 [packets to send 38, broken 37] [17:48:32]ProducePacketName [17:48:32]name=ofd_packets/00111452 [17:48:32]OFD Sender: To server: pG, [17:48:32]CommunicateWithHost lk.salyk.kg:30040 [17:48:32]ConnectInit lk.salyk.kg [17:48:32]written 0, free lines is 4095 [17:48:32]Connected sock=10 [17:48:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 35 0E 07 01 9B 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 F6 19 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5C B3 01 00 35 04 06 00 A1 1C EC 15 57 6E 47 5D AC ED 45 74 5E FA [17:48:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 41 2F 47 00 14 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 35 30 38 33 10 04 04 00 5C B3 01 00 F4 03 04 00 59 B1 72 66 B6 04 01 00 00 60 1F 85 AD 57 9E F3 7B [17:48:33]CommunicateWithHost err = 0 [17:48:33]CheckOFDResponse [17:48:33]1017 (14) - 77093643461234 [17:48:33]1041 (16) - 0000000000875083 [17:48:33]1040 (4) - 111452 [17:48:33]1012 (4) - 19.06.2024 10:22 [17:48:33]1206 (1) - 0 [17:48:33]OFD Sender: Remove packet 111452 [17:48:33]ProducePacketName [17:48:33]name=ofd_packets/00111452 [17:48:33]NVStorageDeleteData [17:48:33]Write to MH i2c: 01 00 00 BD 23 E0 [17:48:33]Write i2c OK [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: 01 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: 01 07 00 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: 01 07 00 BD 23 00 00 00 00 00 E1 0C D4 [17:48:33]RasterBufferAndPrint [17:48:33]line [17:48:33]line [17:48:33]line [17:48:33]line [17:48:33]line [17:48:33]written 0, free lines is 3305 [17:48:33]MH_Cut [17:48:33]Write to MH i2c: D1 01 00 C4 23 01 B9 [17:48:33]Write i2c OK [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: D1 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: D1 01 00 [17:48:33]MH_I2C_Read... [17:48:33]Read from MH i2c: D1 01 00 C4 23 00 B8 [17:48:33]Write to MH i2c: 01 00 00 C5 23 E8 [17:48:33]Write i2c OK [17:48:33]MH_I2C_Read... [17:48:33]OFD Sender: No OFD packet to send [17:48:33]*** Cut start [17:48:33]*** Partial cut [17:48:33]*** CUTSNS_PIN = 1 [17:48:34]*** CUTSNS_PIN = 0 [17:48:34]*** Brake cut motor [17:48:34]Read from MH i2c: 01 [17:48:34]MH_I2C_Read... [17:48:34]*** Stop cut motor [17:48:34]*** Cut end [17:48:34]Read from MH i2c: 01 07 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: 01 07 00 C5 23 00 00 00 00 00 FF 0F FD [17:48:34]process_action close_receipt done [17:48:34]requested_data is exist [17:48:34]produce_requested_data [17:48:34]requested_item fm.sn is exist - process it [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 11 00 00 [17:48:34]Write to MH i2c: E2 08 00 C6 23 80 11 00 00 00 00 00 00 63 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 17 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 17 00 C6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [17:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:48:34]wFMCommunicate OK [17:48:34]requested_item fd.num is exist - process it [17:48:34]SAM_PROTO_GetFieldsCounters [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 13 00 00 [17:48:34]Write to MH i2c: E2 08 00 C7 23 80 13 00 00 00 00 00 00 66 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 62 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 62 00 C7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B3 01 00 0E 04 04 00 84 01 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 77 [17:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:34]wFMCommunicate OK [17:48:34]SAM_PROTO_GetFieldsCounters done [17:48:34]requested_item shift.num is exist - process it [17:48:34]requested_item shift.opened is exist - process it [17:48:34]req_shift_opened [17:48:34]FM_GetShiftState [17:48:34]SAM_PROTO_GetShiftState [17:48:34]wFMCommunicate request_size=4 [17:48:34]MH_SAM_APDU [17:48:34]CAPDU: 80 13 01 00 [17:48:34]Write to MH i2c: E2 08 00 C8 23 80 13 01 00 00 00 00 00 68 [17:48:34]Write i2c OK [17:48:34]MH_I2C_Read... [17:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:34]Read from MH i2c: E2 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 0E 00 [17:48:34]MH_I2C_Read... [17:48:34]Read from MH i2c: E2 0E 00 C8 23 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B2 [17:48:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:48:34]wFMCommunicate OK [17:48:34]SAM_PROTO_GetShiftState done [17:48:34]FM_GetShiftState done [17:48:34]req_shift_opened done [17:48:34]requested_item shift.open_date is exist - process it [17:48:34]req_shift_open_date [17:48:34]req_shift_open_date done [17:48:34]produce_requested_data done [17:48:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111452,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:48:34]process_action_free close_receipt [17:48:34]json_value_free [17:48:34]json_value_free done [17:48:34]process_json_proto returns [17:48:34]Send response to host [17:48:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111452,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:48:34]free response buf [17:48:34]execute_script done [17:48:34]execute_script returns [17:48:34]free content buf [17:48:34]Sock 7.Close socket [17:48:34]Sock 7.Thread stoped [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:09]accept exits with 9 [17:50:09]New connection [17:50:09]New thread 3067465060 created [17:50:09]Thread 3067321700 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.59.68:8080 [17:50:09]Content-Length: 677 [17:50:09]Content-Type: application/json [17:50:09] [17:50:09]POST finish read [17:50:09]Found Content-Length = 677 [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)320035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "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" ] } } [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)320035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "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" ] } } [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 C9 23 DB [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 C9 23 00 59 1A 73 66 BC EC 60 65 9D [17:50:09]GetLastDocTimeStamp 1718819318 [17:50:09]current date 1718819417 [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 CA 23 80 13 01 00 00 00 00 00 6A [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 CA 23 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B4 [17:50:09]RAPDU: 09 00 01 31 35 72 66 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 1718760753 [17:50:09]opened+sec_in_day 1718847153 [17:50:09]quantity*price = 32004 [17:50:09]sum+1 = 32006 [17:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 202 19.06.2024 17:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111453 ФПД: 240627684179889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175017&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111453&fm=240627684179889&tin=02508201610067®Number=0000000000092771&sum=32000 [17:50:10]StoreToDocumentArchive [17:50:10]shift 388 fd 111453 [17:50:10]save to /storage/0388/doc_00111453 [17:50:10]save last doc name /storage/0388/doc_00111453 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 B6F25090 [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 D7 23 80 09 00 00 00 00 00 00 6C [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 D7 23 00 90 00 6E [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 D8 23 80 0D 01 02 00 00 00 00 74 [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 D8 23 00 90 00 6F [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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 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 CA 00 00 00 F4 03 04 00 59 1A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B3 01 00 35 04 06 00 DA [17:50:10]Write to MH i2c: E2 02 01 D9 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 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 CA 00 00 00 F4 03 04 00 59 1A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B3 01 00 35 04 06 00 DA 00 00 DF [17:50:10]Write i2c OK [17:50:10]MH_I2C_Read... [17:50:10]*** iso7816_exchange 80 0D 02 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 D9 23 00 90 00 70 [17:50:10]RAPDU: 90 00 [17:50:10]wFMCommunicate OK [17:50:10]wFMCommunicate request_size=10 [17:50:10]MH_SAM_APDU [17:50:10]CAPDU: 80 0D 02 02 05 D9 7F A3 7F B1 [17:50:10]Write to MH i2c: E2 0D 00 DA 23 80 0D 02 02 05 00 D9 7F A3 7F B1 00 00 AC [17:50:10]Write i2c OK [17:50:10]MH_I2C_Read... [17:50:10]*** iso7816_exchange 80 0D 02 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 DA 23 00 90 00 71 [17:50:10]RAPDU: 90 00 [17:50:10]wFMCommunicate OK [17:50:10]wFMCommunicate request_size=4 [17:50:10]MH_SAM_APDU [17:50:10]CAPDU: 80 0D 03 02 [17:50:10]Write to MH i2c: E2 08 00 DB 23 80 0D 03 02 00 00 00 00 79 [17:50:10]Write i2c OK [17:50:10]MH_I2C_Read... [17:50:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:10]Read from MH i2c: E2 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: E2 0B 00 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: E2 0B 00 DB 23 00 E6 95 25 B3 18 73 C8 5F 90 00 7F [17:50:10]RAPDU: E6 95 25 B3 18 73 C8 5F 90 00 [17:50:10]wFMCommunicate OK [17:50:10]SAM_PROTO_SignData done [17:50:10]FM_MakeSignedData done [17:50:10]CreateOFDProtocolMessage [17:50:10]wFMCommunicate request_size=4 [17:50:10]MH_SAM_APDU [17:50:10]CAPDU: 80 11 00 00 [17:50:10]Write to MH i2c: E2 08 00 DC 23 80 11 00 00 00 00 00 00 79 [17:50:10]Write i2c OK [17:50:10]MH_I2C_Read... [17:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:10]Read from MH i2c: E2 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: E2 17 00 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: E2 17 00 DC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CB [17:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:50:10]wFMCommunicate OK [17:50:10]CreateOFDProtocolMessage done [17:50:10]OFDSenderStorePacket 111453 [17:50:10]StoreOFDPacket docnum=111453 [17:50:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 05 F8 07 01 26 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 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 CA 00 00 00 F4 03 04 00 59 1A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B3 01 00 35 04 06 00 DA D9 7F A3 7F B1 E6 95 25 B3 18 73 C8 5F [17:50:10]CheckFolder [17:50:10]dirname=/storage/ofd_packets [17:50:10]CheckFolder done [17:50:10]ProducePacketName [17:50:10]name=ofd_packets/00111453 [17:50:10]NVStorageSaveData ofd_packets/00111453 [17:50:10]File name is /storage/ofd_packets/00111453 [17:50:10]Write 301 bytes [17:50:10]NVStorageSaveData done [17:50:10]OFDSenderStorePacket done [17:50:10]KKMCreateOFDPacket done [17:50:10]NVStorageSaveData kkm_last_timestamp [17:50:10]File name is /storage/kkm_last_timestamp [17:50:10]Write 4 bytes [17:50:10]NVStorageSaveData done [17:50:10]ExternCall_PrintAddStr [17:50:10]wPrintStart [17:50:10]Write to MH i2c: 01 00 00 DD 23 00 [17:50:10]Write i2c OK [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: 01 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: 01 07 00 [17:50:10]MH_I2C_Read... [17:50:10]Read from MH i2c: 01 07 00 DD 23 00 00 00 00 00 FF 0F 15 [17:50:10]RasterBufferAndPrint [17:50:10]line Счет N : (1)320035 [17:50:10]line ИНН: 02508201610067 [17:50:10]line Контрольно-Кассовый Чек [17:50:10]line ПРОДАЖА [17:50:10]line ТРК (МРК, ГНК) : 11 [17:50:10]line Товар: 2710124130 [17:50:10]line Аи-92-К-5 [17:50:10]line 4.820 * 66.40 [17:50:10]line = 320.05 [17:50:10]line НДС 12% НСП 1% [17:50:10]line > о реализуемом товаре [17:50:10]line ОКРУГЛЕНИЕ: -0.05 [17:50:10]line ИТОГО: 320.00 [17:50:10]line Внесено: 320.00 [17:50:10]line СДАЧА: 0.00 [17:50:10]line НСП 1% : 2.83 [17:50:10]line НДС 12% : 33.99 [17:50:10]line Наличными: 320.00 [17:50:10]line Безнал.: 0.00 [17:50:10]line Место: АЗС № 65 "Партнер Нефть" [17:50:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:50:10]line СНО: Общий режим [17:50:10]line Чек 202 19.06.2024 17:50 [17:50:10]line Смена: 388 ФФД: 1.0 [17:50:10]line ЗНМ: 0300000198 [17:50:10]line РНМ: 0000000000092771 [17:50:10]line Версия ККМ: 001 [17:50:10]line ФМ: 0000000000875083 [17:50:11]line ФД: 111453 [17:50:11]line ФПД: 240627684179889 [17:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175017&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111453&fm=240627684179889&tin=02508201610067®Number=0000000000092771&sum=32000 [17:50:11]OFD Sender: Processing packet 111453 [packets to send 38, broken 37] [17:50:11]ProducePacketName [17:50:11]name=ofd_packets/00111453 [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 35 30 38 33 0F 01 00 00 05 F8 07 01 26 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 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 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 CA 00 00 00 F4 03 04 00 59 1A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B3 01 00 35 04 06 00 DA D9 7F A3 7F B1 E6 95 25 B3 18 73 C8 5F [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 35 30 38 33 4F 00 00 00 43 2D 47 00 74 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5D B3 01 00 F4 03 04 00 BC B1 72 66 B6 04 01 00 00 0C 65 22 0A 5B 74 06 21 [17:50:11]CommunicateWithHost err = 0 [17:50:11]CheckOFDResponse [17:50:11]1017 (14) - 77093643461234 [17:50:11]1041 (16) - 0000000000875083 [17:50:11]1040 (4) - 111453 [17:50:11]1012 (4) - 19.06.2024 10:23 [17:50:11]1206 (1) - 0 [17:50:11]OFD Sender: Remove packet 111453 [17:50:11]ProducePacketName [17:50:11]name=ofd_packets/00111453 [17:50:11]NVStorageDeleteData [17:50:11]Write to MH i2c: 01 00 00 08 24 2C [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 08 24 00 00 00 00 00 E3 0C 22 [17:50:11]RasterBufferAndPrint [17:50:11]line [17:50:11]line [17:50:11]line [17:50:11]line [17:50:11]line [17:50:11]written 0, free lines is 3305 [17:50:11]MH_Cut [17:50:11]Write to MH i2c: D1 01 00 0F 24 01 05 [17:50:11]Write i2c OK [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: D1 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: D1 01 00 [17:50:11]MH_I2C_Read... [17:50:11]Read from MH i2c: D1 01 00 0F 24 00 04 [17:50:11]Write to MH i2c: 01 00 00 10 24 34 [17:50:11]Write i2c OK [17:50:11]MH_I2C_Read... [17:50:12]int [17:50:12]*** FLAG_PRN_PAP2 set [17:50:12]*** Cut start [17:50:12]*** Partial cut [17:50:12]*** CUTSNS_PIN = 1 [17:50:12]*** CUTSNS_PIN = 0 [17:50:12]OFD Sender: No OFD packet to send [17:50:12]*** Brake cut motor [17:50:12]Read from MH i2c: 01 [17:50:12]MH_I2C_Read... [17:50:12]*** Stop cut motor [17:50:12]*** Cut end [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 10 24 00 02 00 00 00 FF 0F 4B [17:50:12]process_action close_receipt done [17:50:12]requested_data is exist [17:50:12]produce_requested_data [17:50:12]requested_item fm.sn is exist - process it [17:50:12]wFMCommunicate request_size=4 [17:50:12]MH_SAM_APDU [17:50:12]CAPDU: 80 11 00 00 [17:50:12]Write to MH i2c: E2 08 00 11 24 80 11 00 00 00 00 00 00 AF [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:12]Read from MH i2c: E2 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 17 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 17 00 11 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [17:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:50:12]wFMCommunicate OK [17:50:12]requested_item fd.num is exist - process it [17:50:12]SAM_PROTO_GetFieldsCounters [17:50:12]wFMCommunicate request_size=4 [17:50:12]MH_SAM_APDU [17:50:12]CAPDU: 80 13 00 00 [17:50:12]Write to MH i2c: E2 08 00 12 24 80 13 00 00 00 00 00 00 B2 [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:12]Read from MH i2c: E2 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 62 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 62 00 12 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B3 01 00 0E 04 04 00 84 01 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 C7 [17:50: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5D B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:12]wFMCommunicate OK [17:50:12]SAM_PROTO_GetFieldsCounters done [17:50:12]requested_item shift.num is exist - process it [17:50:12]requested_item shift.opened is exist - process it [17:50:12]req_shift_opened [17:50:12]FM_GetShiftState [17:50:12]SAM_PROTO_GetShiftState [17:50:12]wFMCommunicate request_size=4 [17:50:12]MH_SAM_APDU [17:50:12]CAPDU: 80 13 01 00 [17:50:12]Write to MH i2c: 01 00 00 13 24 37 [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 13 24 00 02 00 00 00 FF 0F 4E [17:50:12]state=0 [17:50:12]Cover opened [17:50:12]Write to MH i2c: E2 08 00 14 24 80 13 01 00 00 00 00 00 B5 [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:12]Read from MH i2c: E2 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 0E 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 0E 00 14 24 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FF [17:50:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:50:12]wFMCommunicate OK [17:50:12]SAM_PROTO_GetShiftState done [17:50:12]FM_GetShiftState done [17:50:12]req_shift_opened done [17:50:12]requested_item shift.open_date is exist - process it [17:50:12]req_shift_open_date [17:50:12]req_shift_open_date done [17:50:12]produce_requested_data done [17:50:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111453,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:50:12]process_action_free close_receipt [17:50:12]json_value_free [17:50:12]json_value_free done [17:50:12]process_json_proto returns [17:50:12]Send response to host [17:50:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111453,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:50:12]free response buf [17:50:12]execute_script done [17:50:12]execute_script returns [17:50:12]free content buf [17:50:12]Sock 9.Close socket [17:50:12]Sock 9.Thread stoped [17:50:17]OFD Sender: No OFD packet to send [17:50:17]Write to MH i2c: 01 00 00 15 24 39 [17:50:17]Write i2c OK [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 07 00 [17:50:17]MH_I2C_Read... [17:50:17]Read from MH i2c: 01 07 00 15 24 00 02 00 00 00 FF 0F 50 [17:50:17]state=3 [17:50:17]Cover opened [17:50:20]int [17:50:20]Write to MH i2c: 01 00 00 16 24 3A [17:50:20]*** FLAG_PRN_PAP1 set [17:50:20]Write i2c OK [17:50:20]MH_I2C_Read... [17:50:20]Read from MH i2c: 01 [17:50:20]MH_I2C_Read... [17:50:20]Read from MH i2c: 01 07 00 [17:50:20]MH_I2C_Read... [17:50:20]Read from MH i2c: 01 07 00 16 24 00 03 00 00 00 FF 0F 52 [17:50:20]state=3 [17:50:20]No paper [17:50:20]Cover opened [17:50:22]OFD Sender: No OFD packet to send [17:50:25]Write to MH i2c: 01 00 00 17 24 3B [17:50:25]Write i2c OK [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: 01 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: 01 07 00 [17:50:25]MH_I2C_Read... [17:50:25]Read from MH i2c: 01 07 00 17 24 00 03 00 00 00 FF 0F 53 [17:50:25]state=3 [17:50:25]No paper [17:50:25]Cover opened [17:50:27]OFD Sender: No OFD packet to send [17:50:30]Write to MH i2c: 01 00 00 18 24 3C [17:50:30]Write i2c OK [17:50:30]MH_I2C_Read... [17:50:30]Read from MH i2c: 01 [17:50:30]MH_I2C_Read... [17:50:30]Read from MH i2c: 01 07 00 [17:50:30]MH_I2C_Read... [17:50:30]Read from MH i2c: 01 07 00 18 24 00 03 00 00 00 FF 0F 54 [17:50:30]state=3 [17:50:30]No paper [17:50:30]Cover opened [17:50:31]int [17:50:31]Write to MH i2c: 01 00 00 19 24 3D [17:50:31]*** FLAG_PRN_PAP2 reset [17:50:31]Write i2c OK [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: 01 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: 01 07 00 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: 01 07 00 19 24 00 01 00 00 00 FF 0F 53 [17:50:31]state=3 [17:50:31]No paper [17:50:31]Cover closed [17:50:31]int [17:50:31]Write to MH i2c: 01 00 00 1A 24 3E [17:50:31]*** FLAG_PRN_PAP1 reset [17:50:31]Write i2c OK [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: 01 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: 01 07 00 [17:50:31]MH_I2C_Read... [17:50:31]Read from MH i2c: 01 07 00 1A 24 00 00 00 00 00 FF 0F 53 [17:50:31]state=0 [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:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:53:58]accept exits with 7 [17:53:58]New connection [17:53:58]New thread 3067321700 created [17:53:58]Thread 3067465060 joined [17:53:58]Waiting for new connection... [17:53:58] Sock 7.Parse request [17:53:58]Sock 7.Check first char [17:53:58]Sock 7.First char is OK [17:53:58]request: POST /json_proto HTTP/1.0 [17:53:58]Method: POST [17:53:58]URL: /json_proto [17:53:58]Method is POST - this is cgi request [17:53:58]url: /json_proto [17:53:58]query_string will be loaded in cgi processing [17:53:58]execute_cgi json_proto POST (null) [17:53:58]execute_cgi path=json_proto method=POST [17:53:58]POST find Content-Length [17:53:58]Host: 172.17.59.68:8080 [17:53:58]Content-Length: 808 [17:53:58]Content-Type: application/json [17:53:58] [17:53:58]POST finish read [17:53:58]Found Content-Length = 808 [17:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:58]execute_script... [17:53: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)320037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:58]POST & json_proto [17:53:58]process_json_proto [17:53:58]json parsed OK: [17:53:58]protocol is kg_v1.0 [17:53:58]action value=close_receipt [17:53:58]process_action close_receipt [17:53:58]cmd_close_receipt [17:53:58]MH_GetDate [17:53:58]Write to MH i2c: F0 00 00 1B 24 2E [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: F0 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: F0 09 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: F0 09 00 1B 24 00 3E 1B 73 66 BC EC 60 65 D6 [17:53:58]GetLastDocTimeStamp 1718819417 [17:53:58]current date 1718819646 [17:53:58]FM_GetShiftState [17:53:58]SAM_PROTO_GetShiftState [17:53:58]wFMCommunicate request_size=4 [17:53:58]MH_SAM_APDU [17:53:58]CAPDU: 80 13 01 00 [17:53:58]Write to MH i2c: E2 08 00 1C 24 80 13 01 00 00 00 00 00 BD [17:53:58]Write i2c OK [17:53:58]MH_I2C_Read... [17:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:58]Read from MH i2c: E2 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 0E 00 [17:53:58]MH_I2C_Read... [17:53:58]Read from MH i2c: E2 0E 00 1C 24 00 09 00 01 31 35 72 66 00 00 00 00 90 00 07 [17:53:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:53:58]wFMCommunicate OK [17:53:58]SAM_PROTO_GetShiftState done [17:53:58]FM_GetShiftState done [17:53:58]opened in 1718760753 [17:53:58]opened+sec_in_day 1718847153 [17:53:58]quantity*price = 100064 [17:53:58]sum+1 = 100066 [17:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 203 19.06.2024 17:54 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111454 ФПД: 23037361275169 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111454&fm=23037361275169&tin=02508201610067®Number=0000000000092771&sum=100065 [17:53:59]StoreToDocumentArchive [17:53:59]shift 388 fd 111454 [17:53:59]save to /storage/0388/doc_00111454 [17:53:59]save last doc name /storage/0388/doc_00111454 to /storage/kkm_last_doc_name [17:53:59]save OK [17:53:59]Clear old archive folders... [17:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:59]tlvbuf is B6F3E2A0 [17:53:59]SAM_PROTO_ClearQueue [17:53:59]wFMCommunicate request_size=4 [17:53:59]MH_SAM_APDU [17:53:59]CAPDU: 80 09 00 00 [17:53:59]Write to MH i2c: E2 08 00 29 24 80 09 00 00 00 00 00 00 BF [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:59]Read from MH i2c: E2 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: E2 03 00 [17:53:59]MH_I2C_Read... [17:53:59]Read from MH i2c: E2 03 00 29 24 00 90 00 C1 [17:53:59]RAPDU: 90 00 [17:53:59]wFMCommunicate OK [17:53:59]SAM_PROTO_ClearQueue done [17:53:59]KKMCreateOFDPacket [17:53:59]OFDProtocolAddRootSTLVToBuf [17:53:59]FM_MakeSignedData [17:53:59]FM_MakeSignedData [17:53:59]SAM_PROTO_SignData [17:53:59]wFMCommunicate request_size=4 [17:53:59]MH_SAM_APDU [17:53:59]CAPDU: 80 0D 01 02 [17:53:59]Write to MH i2c: E2 08 00 2A 24 80 0D 01 02 00 00 00 00 C7 [17:53:59]Write i2c OK [17:53:59]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 2A 24 00 90 00 C2 [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]wFMCommunicate request_size=255 [17:54:00]MH_SAM_APDU [17:54: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 3E 1B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B3 01 00 35 04 06 00 14 [17:54:00]Write to MH i2c: E2 02 01 2B 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 3E 1B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B3 01 00 35 04 06 00 14 00 00 F5 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 2B 24 00 90 00 C3 [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]wFMCommunicate request_size=10 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 0D 02 02 05 F3 CD BC 41 21 [17:54:00]Write to MH i2c: E2 0D 00 2C 24 80 0D 02 02 05 00 F3 CD BC 41 21 00 00 B2 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 03 00 2C 24 00 90 00 C4 [17:54:00]RAPDU: 90 00 [17:54:00]wFMCommunicate OK [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 0D 03 02 [17:54:00]Write to MH i2c: E2 08 00 2D 24 80 0D 03 02 00 00 00 00 CC [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 0B 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 0B 00 2D 24 00 A2 32 50 55 45 EE B2 C6 90 00 F1 [17:54:00]RAPDU: A2 32 50 55 45 EE B2 C6 90 00 [17:54:00]wFMCommunicate OK [17:54:00]SAM_PROTO_SignData done [17:54:00]FM_MakeSignedData done [17:54:00]CreateOFDProtocolMessage [17:54:00]wFMCommunicate request_size=4 [17:54:00]MH_SAM_APDU [17:54:00]CAPDU: 80 11 00 00 [17:54:00]Write to MH i2c: E2 08 00 2E 24 80 11 00 00 00 00 00 00 CC [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:00]Read from MH i2c: E2 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 17 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: E2 17 00 2E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [17:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:54:00]wFMCommunicate OK [17:54:00]CreateOFDProtocolMessage done [17:54:00]OFDSenderStorePacket 111454 [17:54:00]StoreOFDPacket docnum=111454 [17:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E B7 07 01 DB 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 3E 1B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B3 01 00 35 04 06 00 14 F3 CD BC 41 21 A2 32 50 55 45 EE B2 C6 [17:54:00]CheckFolder [17:54:00]dirname=/storage/ofd_packets [17:54:00]CheckFolder done [17:54:00]ProducePacketName [17:54:00]name=ofd_packets/00111454 [17:54:00]NVStorageSaveData ofd_packets/00111454 [17:54:00]File name is /storage/ofd_packets/00111454 [17:54:00]Write 301 bytes [17:54:00]NVStorageSaveData done [17:54:00]OFDSenderStorePacket done [17:54:00]KKMCreateOFDPacket done [17:54:00]NVStorageSaveData kkm_last_timestamp [17:54:00]File name is /storage/kkm_last_timestamp [17:54:00]Write 4 bytes [17:54:00]NVStorageSaveData done [17:54:00]ExternCall_PrintAddStr [17:54:00]wPrintStart [17:54:00]Write to MH i2c: 01 00 00 2F 24 53 [17:54:00]Write i2c OK [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: 01 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: 01 07 00 [17:54:00]MH_I2C_Read... [17:54:00]Read from MH i2c: 01 07 00 2F 24 00 00 00 00 00 FF 0F 68 [17:54:00]RasterBufferAndPrint [17:54:00]line Счет N : (1)320037 [17:54:00]line ИНН: 02508201610067 [17:54:00]line Контрольно-Кассовый Чек [17:54:00]line ПРОДАЖА [17:54:00]line ТРК (МРК, ГНК) : 11 [17:54:00]line Товар: 2710124130 [17:54:00]line Аи-92-К-5 [17:54:00]line 15.070 * 66.40 [17:54:00]line = 1000.65 [17:54:00]line НДС 12% НСП 1% [17:54:00]line > о реализуемом товаре [17:54:00]line ИТОГО: 1000.65 [17:54:00]line НСП 1% : 8.85 [17:54:00]line НДС 12% : 106.26 [17:54:00]line Наличными: 0.00 [17:54:00]line Безнал.: 1000.65 [17:54:00]line Место: АЗС № 65 "Партнер Нефть" [17:54:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:54:00]line СНО: Общий режим [17:54:00]line Чек 203 19.06.2024 17:54 [17:54:00]line Смена: 388 ФФД: 1.0 [17:54:00]line ЗНМ: 0300000198 [17:54:00]line РНМ: 0000000000092771 [17:54:00]line Версия ККМ: 001 [17:54:00]line Платежная система: О! деньги [17:54:00]line ФМ: 0000000000875083 [17:54:00]line ФД: 111454 [17:54:00]line ФПД: 23037361275169 [17:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111454&fm=23037361275169&tin=02508201610067®Number=0000000000092771&sum=100065 [17:54:00]written 0, free lines is 4095 [17:54:00]OFD Sender: Processing packet 111454 [packets to send 38, broken 37] [17:54:00]ProducePacketName [17:54:00]name=ofd_packets/00111454 [17:54:00]OFD Sender: To server: pG, [17:54:00]CommunicateWithHost lk.salyk.kg:30040 [17:54:00]ConnectInit lk.salyk.kg [17:54:00]Connected sock=10 [17:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5E B7 07 01 DB 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 3E 1B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5E B3 01 00 35 04 06 00 14 F3 CD BC 41 21 A2 32 50 55 45 EE B2 C6 [17:54:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 39 CB 47 00 B1 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 35 30 38 33 10 04 04 00 5E B3 01 00 F4 03 04 00 A1 B2 72 66 B6 04 01 00 00 46 6D 48 CB C2 C2 B9 5F [17:54:01]CommunicateWithHost err = 0 [17:54:01]CheckOFDResponse [17:54:01]1017 (14) - 77093643461234 [17:54:01]1041 (16) - 0000000000875083 [17:54:01]1040 (4) - 111454 [17:54:01]1012 (4) - 19.06.2024 10:27 [17:54:01]1206 (1) - 0 [17:54:01]OFD Sender: Remove packet 111454 [17:54:01]ProducePacketName [17:54:01]name=ofd_packets/00111454 [17:54:01]NVStorageDeleteData [17:54:01]Write to MH i2c: 01 00 00 59 24 7D [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 07 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: 01 07 00 59 24 00 00 00 00 00 01 0D 92 [17:54:01]RasterBufferAndPrint [17:54:01]line [17:54:01]line [17:54:01]line [17:54:01]line [17:54:01]line [17:54:01]written 0, free lines is 3338 [17:54:01]MH_Cut [17:54:01]Write to MH i2c: D1 01 00 60 24 01 56 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: D1 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: D1 01 00 [17:54:01]MH_I2C_Read... [17:54:01]Read from MH i2c: D1 01 00 60 24 00 55 [17:54:01]Write to MH i2c: 01 00 00 61 24 85 [17:54:01]Write i2c OK [17:54:01]MH_I2C_Read... [17:54:01]OFD Sender: No OFD packet to send [17:54:01]*** Cut start [17:54:01]*** Partial cut [17:54:01]*** CUTSNS_PIN = 1 [17:54:02]*** CUTSNS_PIN = 0 [17:54:02]*** Brake cut motor [17:54:02]Read from MH i2c: 01 [17:54:02]MH_I2C_Read... [17:54:02]*** Stop cut motor [17:54:02]*** Cut end [17:54:02]Read from MH i2c: 01 07 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: 01 07 00 61 24 00 00 00 00 00 FF 0F 9A [17:54:02]process_action close_receipt done [17:54:02]requested_data is exist [17:54:02]produce_requested_data [17:54:02]requested_item fm.sn is exist - process it [17:54:02]wFMCommunicate request_size=4 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 11 00 00 [17:54:02]Write to MH i2c: E2 08 00 62 24 80 11 00 00 00 00 00 00 00 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 17 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 17 00 62 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 52 [17:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:54:02]wFMCommunicate OK [17:54:02]requested_item fd.num is exist - process it [17:54:02]SAM_PROTO_GetFieldsCounters [17:54:02]wFMCommunicate request_size=4 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 13 00 00 [17:54:02]Write to MH i2c: E2 08 00 63 24 80 13 00 00 00 00 00 00 03 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 62 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 62 00 63 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B3 01 00 0E 04 04 00 84 01 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 1C [17:54: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5E B3 01 00 0E 04 04 00 84 01 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 [17:54:02]wFMCommunicate OK [17:54:02]SAM_PROTO_GetFieldsCounters done [17:54:02]requested_item shift.num is exist - process it [17:54:02]requested_item shift.opened is exist - process it [17:54:02]req_shift_opened [17:54:02]FM_GetShiftState [17:54:02]SAM_PROTO_GetShiftState [17:54:02]wFMCommunicate request_size=4 [17:54:02]MH_SAM_APDU [17:54:02]CAPDU: 80 13 01 00 [17:54:02]Write to MH i2c: E2 08 00 64 24 80 13 01 00 00 00 00 00 05 [17:54:02]Write i2c OK [17:54:02]MH_I2C_Read... [17:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:02]Read from MH i2c: E2 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 0E 00 [17:54:02]MH_I2C_Read... [17:54:02]Read from MH i2c: E2 0E 00 64 24 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4F [17:54:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:54:02]wFMCommunicate OK [17:54:02]SAM_PROTO_GetShiftState done [17:54:02]FM_GetShiftState done [17:54:02]req_shift_opened done [17:54:02]requested_item shift.open_date is exist - process it [17:54:02]req_shift_open_date [17:54:02]req_shift_open_date done [17:54:02]produce_requested_data done [17:54:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111454,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:54:02]process_action_free close_receipt [17:54:02]json_value_free [17:54:02]json_value_free done [17:54:02]process_json_proto returns [17:54:02]Send response to host [17:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111454,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:54:02]free response buf [17:54:02]execute_script done [17:54:02]execute_script returns [17:54:02]free content buf [17:54:02]Sock 7.Close socket [17:54:02]Sock 7.Thread stoped [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:07]accept exits with 9 [17:57:07]New connection [17:57:07]New thread 3067465060 created [17:57:07]Thread 3067321700 joined [17:57:07]Waiting for new connection... [17:57:07] Sock 9.Parse request [17:57:07]Sock 9.Check first char [17:57:07]Sock 9.First char is OK [17:57:07]request: POST /json_proto HTTP/1.0 [17:57:07]Method: POST [17:57:07]URL: /json_proto [17:57:07]Method is POST - this is cgi request [17:57:07]url: /json_proto [17:57:07]query_string will be loaded in cgi processing [17:57:07]execute_cgi json_proto POST (null) [17:57:07]execute_cgi path=json_proto method=POST [17:57:07]POST find Content-Length [17:57:07]Host: 172.17.59.68:8080 [17:57:07]Content-Length: 677 [17:57:07]Content-Type: application/json [17:57:07] [17:57:07]POST finish read [17:57:07]Found Content-Length = 677 [17:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07]execute_script... [17:57:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07]POST & json_proto [17:57:07]process_json_proto [17:57:07]json parsed OK: [17:57:07]protocol is kg_v1.0 [17:57:07]action value=close_receipt [17:57:07]process_action close_receipt [17:57:07]cmd_close_receipt [17:57:07]MH_GetDate [17:57:07]Write to MH i2c: F0 00 00 65 24 78 [17:57:07]Write i2c OK [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: F0 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: F0 09 00 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: F0 09 00 65 24 00 FC 1B 73 66 BC EC 60 65 DE [17:57:07]GetLastDocTimeStamp 1718819646 [17:57:07]current date 1718819836 [17:57:07]FM_GetShiftState [17:57:07]SAM_PROTO_GetShiftState [17:57:07]wFMCommunicate request_size=4 [17:57:07]MH_SAM_APDU [17:57:07]CAPDU: 80 13 01 00 [17:57:07]Write to MH i2c: E2 08 00 66 24 80 13 01 00 00 00 00 00 07 [17:57:07]Write i2c OK [17:57:07]MH_I2C_Read... [17:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:07]Read from MH i2c: E2 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 0E 00 [17:57:07]MH_I2C_Read... [17:57:07]Read from MH i2c: E2 0E 00 66 24 00 09 00 01 31 35 72 66 00 00 00 00 90 00 51 [17:57:07]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:57:07]wFMCommunicate OK [17:57:07]SAM_PROTO_GetShiftState done [17:57:07]FM_GetShiftState done [17:57:07]opened in 1718760753 [17:57:07]opened+sec_in_day 1718847153 [17:57:07]quantity*price = 50065 [17:57:07]sum+1 = 50067 [17:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 204 19.06.2024 17:57 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111455 ФПД: 197905281752741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175716&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111455&fm=197905281752741&tin=02508201610067®Number=0000000000092771&sum=50000 [17:57:09]StoreToDocumentArchive [17:57:09]shift 388 fd 111455 [17:57:09]save to /storage/0388/doc_00111455 [17:57:09]save last doc name /storage/0388/doc_00111455 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 00F00460 [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 73 24 80 09 00 00 00 00 00 00 09 [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:09]Read from MH i2c: E2 03 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 03 00 73 24 00 90 00 0B [17:57:09]RAPDU: 90 00 [17:57:09]wFMCommunicate OK [17:57:09]SAM_PROTO_ClearQueue done [17:57:09]KKMCreateOFDPacket [17:57:09]OFDProtocolAddRootSTLVToBuf [17:57:09]FM_MakeSignedData [17:57:09]FM_MakeSignedData [17:57:09]SAM_PROTO_SignData [17:57:09]wFMCommunicate request_size=4 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 0D 01 02 [17:57:09]Write to MH i2c: E2 08 00 74 24 80 0D 01 02 00 00 00 00 11 [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 03 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 03 00 74 24 00 90 00 0C [17:57:09]RAPDU: 90 00 [17:57:09]wFMCommunicate OK [17:57:09]wFMCommunicate request_size=255 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FC 1B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B3 01 00 35 04 06 00 B3 [17:57:09]Write to MH i2c: E2 02 01 75 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FC 1B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B3 01 00 35 04 06 00 B3 00 00 CC [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 03 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 03 00 75 24 00 90 00 0D [17:57:09]RAPDU: 90 00 [17:57:09]wFMCommunicate OK [17:57:09]wFMCommunicate request_size=10 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 0D 02 02 05 FE 6A 04 9E A5 [17:57:09]Write to MH i2c: E2 0D 00 76 24 80 0D 02 02 05 00 FE 6A 04 9E A5 00 00 CD [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 03 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 03 00 76 24 00 90 00 0E [17:57:09]RAPDU: 90 00 [17:57:09]wFMCommunicate OK [17:57:09]wFMCommunicate request_size=4 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 0D 03 02 [17:57:09]Write to MH i2c: E2 08 00 77 24 80 0D 03 02 00 00 00 00 16 [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 0B 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 0B 00 77 24 00 28 78 C4 26 CB 9A A5 69 90 00 14 [17:57:09]RAPDU: 28 78 C4 26 CB 9A A5 69 90 00 [17:57:09]wFMCommunicate OK [17:57:09]SAM_PROTO_SignData done [17:57:09]FM_MakeSignedData done [17:57:09]CreateOFDProtocolMessage [17:57:09]wFMCommunicate request_size=4 [17:57:09]MH_SAM_APDU [17:57:09]CAPDU: 80 11 00 00 [17:57:09]Write to MH i2c: E2 08 00 78 24 80 11 00 00 00 00 00 00 16 [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:09]Read from MH i2c: E2 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 17 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: E2 17 00 78 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 68 [17:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:57:09]wFMCommunicate OK [17:57:09]CreateOFDProtocolMessage done [17:57:09]OFDSenderStorePacket 111455 [17:57:09]StoreOFDPacket docnum=111455 [17:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DB 91 07 01 47 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FC 1B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B3 01 00 35 04 06 00 B3 FE 6A 04 9E A5 28 78 C4 26 CB 9A A5 69 [17:57:09]CheckFolder [17:57:09]dirname=/storage/ofd_packets [17:57:09]CheckFolder done [17:57:09]ProducePacketName [17:57:09]name=ofd_packets/00111455 [17:57:09]NVStorageSaveData ofd_packets/00111455 [17:57:09]File name is /storage/ofd_packets/00111455 [17:57:09]Write 301 bytes [17:57:09]NVStorageSaveData done [17:57:09]OFDSenderStorePacket done [17:57:09]KKMCreateOFDPacket done [17:57:09]NVStorageSaveData kkm_last_timestamp [17:57:09]File name is /storage/kkm_last_timestamp [17:57:09]Write 4 bytes [17:57:09]NVStorageSaveData done [17:57:09]ExternCall_PrintAddStr [17:57:09]wPrintStart [17:57:09]Write to MH i2c: 01 00 00 79 24 9D [17:57:09]Write i2c OK [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: 01 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: 01 07 00 [17:57:09]MH_I2C_Read... [17:57:09]Read from MH i2c: 01 07 00 79 24 00 00 00 00 00 FF 0F B2 [17:57:09]RasterBufferAndPrint [17:57:09]line Счет N : (1)320038 [17:57:09]line ИНН: 02508201610067 [17:57:09]line Контрольно-Кассовый Чек [17:57:09]line ПРОДАЖА [17:57:09]line ТРК (МРК, ГНК) : 11 [17:57:09]line Товар: 2710124130 [17:57:09]line Аи-92-К-5 [17:57:09]line 7.540 * 66.40 [17:57:09]line = 500.66 [17:57:09]line НДС 12% НСП 1% [17:57:09]line > о реализуемом товаре [17:57:09]line ОКРУГЛЕНИЕ: -0.66 [17:57:09]line ИТОГО: 500.00 [17:57:09]line Внесено: 500.00 [17:57:09]line СДАЧА: 0.00 [17:57:09]line НСП 1% : 4.43 [17:57:09]line НДС 12% : 53.17 [17:57:09]line Наличными: 500.00 [17:57:09]line Безнал.: 0.00 [17:57:09]line Место: АЗС № 65 "Партнер Нефть" [17:57:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:57:09]line СНО: Общий режим [17:57:09]line Чек 204 19.06.2024 17:57 [17:57:09]line Смена: 388 ФФД: 1.0 [17:57:09]line ЗНМ: 0300000198 [17:57:09]line РНМ: 0000000000092771 [17:57:09]line Версия ККМ: 001 [17:57:09]line ФМ: 0000000000875083 [17:57:09]line ФД: 111455 [17:57:09]line ФПД: 197905281752741 [17:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175716&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111455&fm=197905281752741&tin=02508201610067®Number=0000000000092771&sum=50000 [17:57:09]OFD Sender: Processing packet 111455 [packets to send 38, broken 37] [17:57:09]ProducePacketName [17:57:09]name=ofd_packets/00111455 [17:57:09]OFD Sender: To server: pG, [17:57:09]CommunicateWithHost lk.salyk.kg:30040 [17:57:09]ConnectInit lk.salyk.kg [17:57:09]written 0, free lines is 4095 [17:57:10]Connected sock=10 [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 35 30 38 33 0F 01 00 00 DB 91 07 01 47 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 FC 1B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 5F B3 01 00 35 04 06 00 B3 FE 6A 04 9E A5 28 78 C4 26 CB 9A A5 69 [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 35 30 38 33 4F 00 00 00 04 78 47 00 C0 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 35 30 38 33 10 04 04 00 5F B3 01 00 F4 03 04 00 5E B3 72 66 B6 04 01 00 00 6A E3 49 76 9B 8A CE 4A [17:57:10]CommunicateWithHost err = 0 [17:57:10]CheckOFDResponse [17:57:10]1017 (14) - 77093643461234 [17:57:10]1041 (16) - 0000000000875083 [17:57:10]1040 (4) - 111455 [17:57:10]1012 (4) - 19.06.2024 10:30 [17:57:10]1206 (1) - 0 [17:57:10]OFD Sender: Remove packet 111455 [17:57:10]ProducePacketName [17:57:10]name=ofd_packets/00111455 [17:57:10]NVStorageDeleteData [17:57:10]Write to MH i2c: 01 00 00 A4 24 C8 [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 A4 24 00 00 00 00 00 E7 0C C2 [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 3309 [17:57:10]MH_Cut [17:57:10]Write to MH i2c: D1 01 00 AB 24 01 A1 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: D1 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: D1 01 00 [17:57:10]MH_I2C_Read... [17:57:10]Read from MH i2c: D1 01 00 AB 24 00 A0 [17:57:10]Write to MH i2c: 01 00 00 AC 24 D0 [17:57:10]Write i2c OK [17:57:10]MH_I2C_Read... [17:57:10]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:11]*** Brake cut motor [17:57:11]Read from MH i2c: 01 [17:57:11]MH_I2C_Read... [17:57:11]*** Stop cut motor [17:57:11]*** Cut end [17:57:11]Read from MH i2c: 01 07 00 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: 01 07 00 AC 24 00 00 00 00 00 FF 0F E5 [17:57:11]process_action close_receipt done [17:57:11]requested_data is exist [17:57:11]produce_requested_data [17:57:11]requested_item fm.sn is exist - process it [17:57:11]wFMCommunicate request_size=4 [17:57:11]MH_SAM_APDU [17:57:11]CAPDU: 80 11 00 00 [17:57:11]Write to MH i2c: E2 08 00 AD 24 80 11 00 00 00 00 00 00 4B [17:57:11]Write i2c OK [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: E2 [17:57:11]MH_I2C_Read... [17:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:11]Read from MH i2c: E2 17 00 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: E2 17 00 AD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9D [17:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:57:11]wFMCommunicate OK [17:57:11]requested_item fd.num is exist - process it [17:57:11]SAM_PROTO_GetFieldsCounters [17:57:11]wFMCommunicate request_size=4 [17:57:11]MH_SAM_APDU [17:57:11]CAPDU: 80 13 00 00 [17:57:11]Write to MH i2c: E2 08 00 AE 24 80 13 00 00 00 00 00 00 4E [17:57:11]Write i2c OK [17:57:11]MH_I2C_Read... [17:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:11]Read from MH i2c: E2 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: E2 62 00 [17:57:11]MH_I2C_Read... [17:57:11]Read from MH i2c: E2 62 00 AE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B3 01 00 0E 04 04 00 84 01 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 6B [17:57:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 5F B3 01 00 0E 04 04 00 84 01 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 [17:57:11]wFMCommunicate OK [17:57:11]SAM_PROTO_GetFieldsCounters done [17:57:11]requested_item shift.num is exist - process it [17:57:11]requested_item shift.opened is exist - process it [17:57:11]req_shift_opened [17:57:11]FM_GetShiftState [17:57:11]SAM_PROTO_GetShiftState [17:57:11]wFMCommunicate request_size=4 [17:57:11]MH_SAM_APDU [17:57:11]CAPDU: 80 13 01 00 [17:57:11]Write to MH i2c: E2 08 00 AF 24 80 13 01 00 00 00 00 00 50 [17:57:11]Write i2c OK [17:57:11]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 AF 24 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9A [17:57:12]RAPDU: 09 00 01 31 35 72 66 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":"0000000000875083","fd.num":111455,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [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":"0000000000875083","fd.num":111455,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [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 9.Close socket [17:57:12]Sock 9.Thread stoped [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]accept exits with 7 [17:59:05]New connection [17:59:05]New thread 3067321700 created [17:59:05]Thread 3067465060 joined [17:59:05]Waiting for new connection... [17:59:05] Sock 7.Parse request [17:59:05]Sock 7.Check first char [17:59:05]Sock 7.First char is OK [17:59:05]request: POST /json_proto HTTP/1.0 [17:59:05]Method: POST [17:59:05]URL: /json_proto [17:59:05]Method is POST - this is cgi request [17:59:05]url: /json_proto [17:59:05]query_string will be loaded in cgi processing [17:59:05]execute_cgi json_proto POST (null) [17:59:05]execute_cgi path=json_proto method=POST [17:59:05]POST find Content-Length [17:59:05]Host: 172.17.59.68:8080 [17:59:05]Content-Length: 679 [17:59:05]Content-Type: application/json [17:59:05] [17:59:05]POST finish read [17:59:05]Found Content-Length = 679 [17:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [17:59:05]execute_script... [17:59: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)320039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "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" ] } } [17:59:05]POST & json_proto [17:59:05]process_json_proto [17:59:05]json parsed OK: [17:59:05]protocol is kg_v1.0 [17:59:05]action value=close_receipt [17:59:05]process_action close_receipt [17:59:05]cmd_close_receipt [17:59:05]MH_GetDate [17:59:05]Write to MH i2c: F0 00 00 B0 24 C3 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: F0 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: F0 09 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: F0 09 00 B0 24 00 71 1C 73 66 BC EC 60 65 9F [17:59:05]GetLastDocTimeStamp 1718819836 [17:59:05]current date 1718819953 [17:59:05]FM_GetShiftState [17:59:05]SAM_PROTO_GetShiftState [17:59:05]wFMCommunicate request_size=4 [17:59:05]MH_SAM_APDU [17:59:05]CAPDU: 80 13 01 00 [17:59:05]Write to MH i2c: E2 08 00 B1 24 80 13 01 00 00 00 00 00 52 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 0E 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 0E 00 B1 24 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9C [17:59:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:59:05]wFMCommunicate OK [17:59:05]SAM_PROTO_GetShiftState done [17:59:05]FM_GetShiftState done [17:59:05]opened in 1718760753 [17:59:05]opened+sec_in_day 1718847153 [17:59:05]quantity*price = 300056 [17:59:05]sum+1 = 300057 [17:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 205 19.06.2024 17:59 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111456 ФПД: 110288991698718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175913&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111456&fm=110288991698718&tin=02508201610067®Number=0000000000092771&sum=300000 [17:59:06]StoreToDocumentArchive [17:59:06]shift 388 fd 111456 [17:59:06]save to /storage/0388/doc_00111456 [17:59:06]save last doc name /storage/0388/doc_00111456 to /storage/kkm_last_doc_name [17:59:06]save OK [17:59:06]Clear old archive folders... [17:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:59:06]tlvbuf is B6F3E3E0 [17:59:06]SAM_PROTO_ClearQueue [17:59:06]wFMCommunicate request_size=4 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 09 00 00 [17:59:06]Write to MH i2c: E2 08 00 BE 24 80 09 00 00 00 00 00 00 54 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 03 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 03 00 BE 24 00 90 00 56 [17:59:06]RAPDU: 90 00 [17:59:06]wFMCommunicate OK [17:59:06]SAM_PROTO_ClearQueue done [17:59:06]KKMCreateOFDPacket [17:59:06]OFDProtocolAddRootSTLVToBuf [17:59:06]FM_MakeSignedData [17:59:06]FM_MakeSignedData [17:59:06]SAM_PROTO_SignData [17:59:06]wFMCommunicate request_size=4 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 0D 01 02 [17:59:06]Write to MH i2c: E2 08 00 BF 24 80 0D 01 02 00 00 00 00 5C [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 03 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 03 00 BF 24 00 90 00 57 [17:59:06]RAPDU: 90 00 [17:59:06]wFMCommunicate OK [17:59:06]wFMCommunicate request_size=255 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 CD 00 00 00 F4 03 04 00 71 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B3 01 00 35 04 06 00 64 4E A8 2C [17:59:06]Write to MH i2c: E2 02 01 C0 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 CD 00 00 00 F4 03 04 00 71 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B3 01 00 35 04 06 00 64 4E A8 2C 00 00 04 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 03 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 03 00 C0 24 00 90 00 58 [17:59:06]RAPDU: 90 00 [17:59:06]wFMCommunicate OK [17:59:06]wFMCommunicate request_size=7 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 0D 02 02 02 3F 1E [17:59:06]Write to MH i2c: E2 0A 00 C1 24 80 0D 02 02 02 00 3F 1E 00 00 C0 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 03 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 03 00 C1 24 00 90 00 59 [17:59:06]RAPDU: 90 00 [17:59:06]wFMCommunicate OK [17:59:06]wFMCommunicate request_size=4 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 0D 03 02 [17:59:06]Write to MH i2c: E2 08 00 C2 24 80 0D 03 02 00 00 00 00 61 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 0B 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 0B 00 C2 24 00 80 62 EC FE 33 49 13 85 90 00 42 [17:59:06]RAPDU: 80 62 EC FE 33 49 13 85 90 00 [17:59:06]wFMCommunicate OK [17:59:06]SAM_PROTO_SignData done [17:59:06]FM_MakeSignedData done [17:59:06]CreateOFDProtocolMessage [17:59:06]wFMCommunicate request_size=4 [17:59:06]MH_SAM_APDU [17:59:06]CAPDU: 80 11 00 00 [17:59:06]Write to MH i2c: E2 08 00 C3 24 80 11 00 00 00 00 00 00 61 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:06]Read from MH i2c: E2 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 17 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: E2 17 00 C3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B3 [17:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:59:06]wFMCommunicate OK [17:59:06]CreateOFDProtocolMessage done [17:59:06]OFDSenderStorePacket 111456 [17:59:06]StoreOFDPacket docnum=111456 [17:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 44 F1 04 01 5E 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 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 CD 00 00 00 F4 03 04 00 71 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B3 01 00 35 04 06 00 64 4E A8 2C 3F 1E 80 62 EC FE 33 49 13 85 [17:59:06]CheckFolder [17:59:06]dirname=/storage/ofd_packets [17:59:06]CheckFolder done [17:59:06]ProducePacketName [17:59:06]name=ofd_packets/00111456 [17:59:06]NVStorageSaveData ofd_packets/00111456 [17:59:06]File name is /storage/ofd_packets/00111456 [17:59:06]Write 298 bytes [17:59:06]NVStorageSaveData done [17:59:06]OFDSenderStorePacket done [17:59:06]KKMCreateOFDPacket done [17:59:06]NVStorageSaveData kkm_last_timestamp [17:59:06]File name is /storage/kkm_last_timestamp [17:59:06]Write 4 bytes [17:59:06]NVStorageSaveData done [17:59:06]ExternCall_PrintAddStr [17:59:06]wPrintStart [17:59:06]Write to MH i2c: 01 00 00 C4 24 E8 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: 01 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: 01 07 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: 01 07 00 C4 24 00 00 00 00 00 FF 0F FD [17:59:06]RasterBufferAndPrint [17:59:06]line Счет N : (1)320039 [17:59:06]line ИНН: 02508201610067 [17:59:06]line Контрольно-Кассовый Чек [17:59:06]line ПРОДАЖА [17:59:06]line ТРК (МРК, ГНК) : 22 [17:59:06]line Товар: 2710194210 [17:59:06]line ДТ-К-5 [17:59:06]line 41.160 * 72.90 [17:59:06]line = 3000.56 [17:59:06]line НДС 12% НСП 1% [17:59:06]line > о реализуемом товаре [17:59:06]line ОКРУГЛЕНИЕ: -0.56 [17:59:06]line ИТОГО: 3000.00 [17:59:06]line Внесено: 3000.00 [17:59:06]line СДАЧА: 0.00 [17:59:06]line НСП 1% : 26.55 [17:59:06]line НДС 12% : 318.64 [17:59:06]line Наличными: 3000.00 [17:59:06]line Безнал.: 0.00 [17:59:06]line Место: АЗС № 65 "Партнер Нефть" [17:59:06]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [17:59:06]line СНО: Общий режим [17:59:06]line Чек 205 19.06.2024 17:59 [17:59:06]line Смена: 388 ФФД: 1.0 [17:59:06]line ЗНМ: 0300000198 [17:59:06]line РНМ: 0000000000092771 [17:59:06]line Версия ККМ: 001 [17:59:06]line ФМ: 0000000000875083 [17:59:06]line ФД: 111456 [17:59:06]line ФПД: 110288991698718 [17:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T175913&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111456&fm=110288991698718&tin=02508201610067®Number=0000000000092771&sum=300000 [17:59:07]OFD Sender: Processing packet 111456 [packets to send 38, broken 37] [17:59:07]ProducePacketName [17:59:07]name=ofd_packets/00111456 [17:59:07]OFD Sender: To server: pG, [17:59:07]CommunicateWithHost lk.salyk.kg:30040 [17:59:07]ConnectInit lk.salyk.kg [17:59:07]written 0, free lines is 4095 [17:59:07]Connected sock=10 [17:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 44 F1 04 01 5E 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 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 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 78 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 CD 00 00 00 F4 03 04 00 71 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 60 B3 01 00 35 04 06 00 64 4E A8 2C 3F 1E 80 62 EC FE 33 49 13 85 [17:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C9 E5 47 00 60 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 35 30 38 33 10 04 04 00 60 B3 01 00 F4 03 04 00 D4 B3 72 66 B6 04 01 00 00 FC C3 86 D6 2C BE 53 00 [17:59:07]CommunicateWithHost err = 0 [17:59:07]CheckOFDResponse [17:59:07]1017 (14) - 77093643461234 [17:59:07]1041 (16) - 0000000000875083 [17:59:07]1040 (4) - 111456 [17:59:07]1012 (4) - 19.06.2024 10:32 [17:59:07]1206 (1) - 0 [17:59:07]OFD Sender: Remove packet 111456 [17:59:07]ProducePacketName [17:59:07]name=ofd_packets/00111456 [17:59:07]NVStorageDeleteData [17:59:07]Write to MH i2c: 01 00 00 EF 24 13 [17:59:07]Write i2c OK [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: 01 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: 01 07 00 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: 01 07 00 EF 24 00 00 00 00 00 EE 0C 14 [17:59:07]RasterBufferAndPrint [17:59:07]line [17:59:07]line [17:59:07]line [17:59:07]line [17:59:07]line [17:59:07]written 0, free lines is 3316 [17:59:07]MH_Cut [17:59:07]Write to MH i2c: D1 01 00 F6 24 01 EC [17:59:07]Write i2c OK [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: D1 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: D1 01 00 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: D1 01 00 F6 24 00 EB [17:59:07]Write to MH i2c: 01 00 00 F7 24 1B [17:59:07]Write i2c OK [17:59:07]MH_I2C_Read... [17:59:08]OFD Sender: No OFD packet to send [17:59:08]*** Cut start [17:59:08]*** Partial cut [17:59:08]*** CUTSNS_PIN = 1 [17:59:08]*** CUTSNS_PIN = 0 [17:59:08]*** Brake cut motor [17:59:09]Read from MH i2c: 01 [17:59:09]MH_I2C_Read... [17:59:09]*** Stop cut motor [17:59:09]*** Cut end [17:59:09]Read from MH i2c: 01 07 00 [17:59:09]MH_I2C_Read... [17:59:09]Read from MH i2c: 01 07 00 F7 24 00 00 00 00 00 FF 0F 30 [17:59:09]process_action close_receipt done [17:59:09]requested_data is exist [17:59:09]produce_requested_data [17:59:09]requested_item fm.sn is exist - process it [17:59:09]wFMCommunicate request_size=4 [17:59:09]MH_SAM_APDU [17:59:09]CAPDU: 80 11 00 00 [17:59:09]Write to MH i2c: E2 08 00 F8 24 80 11 00 00 00 00 00 00 96 [17:59:09]Write i2c OK [17:59:09]MH_I2C_Read... [17:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:09]Read from MH i2c: E2 [17:59:09]MH_I2C_Read... [17:59:09]Read from MH i2c: E2 17 00 [17:59:09]MH_I2C_Read... [17:59:09]Read from MH i2c: E2 17 00 F8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [17:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [17:59:09]wFMCommunicate OK [17:59:09]requested_item fd.num is exist - process it [17:59:09]SAM_PROTO_GetFieldsCounters [17:59:09]wFMCommunicate request_size=4 [17:59:09]MH_SAM_APDU [17:59:09]CAPDU: 80 13 00 00 [17:59:09]Write to MH i2c: E2 08 00 F9 24 80 13 00 00 00 00 00 00 99 [17:59:09]Write i2c OK [17:59:09]MH_I2C_Read... [17:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:09]Read from MH i2c: E2 [17:59:09]MH_I2C_Read... [17:59:09]Read from MH i2c: E2 62 00 [17:59:09]MH_I2C_Read... [17:59:09]Read from MH i2c: E2 62 00 F9 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B3 01 00 0E 04 04 00 84 01 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 BA [17:59: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 60 B3 01 00 0E 04 04 00 84 01 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 [17:59:09]wFMCommunicate OK [17:59:09]SAM_PROTO_GetFieldsCounters done [17:59:09]requested_item shift.num is exist - process it [17:59:09]requested_item shift.opened is exist - process it [17:59:09]req_shift_opened [17:59:09]FM_GetShiftState [17:59:09]SAM_PROTO_GetShiftState [17:59:09]wFMCommunicate request_size=4 [17:59:09]MH_SAM_APDU [17:59:09]CAPDU: 80 13 01 00 [17:59:09]Write to MH i2c: E2 08 00 FA 24 80 13 01 00 00 00 00 00 9B [17:59:09]Write i2c OK [17:59:09]MH_I2C_Read... [17:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:09]Read from MH i2c: E2 [17:59:09]MH_I2C_Read... [17:59:09]Read from MH i2c: E2 0E 00 [17:59:09]MH_I2C_Read... [17:59:09]Read from MH i2c: E2 0E 00 FA 24 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E5 [17:59:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [17:59:09]wFMCommunicate OK [17:59:09]SAM_PROTO_GetShiftState done [17:59:09]FM_GetShiftState done [17:59:09]req_shift_opened done [17:59:09]requested_item shift.open_date is exist - process it [17:59:09]req_shift_open_date [17:59:09]req_shift_open_date done [17:59:09]produce_requested_data done [17:59:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111456,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [17:59:09]process_action_free close_receipt [17:59:09]json_value_free [17:59:09]json_value_free done [17:59:09]process_json_proto returns [17:59:09]Send response to host [17:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111456,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [17:59:09]free response buf [17:59:09]execute_script done [17:59:09]execute_script returns [17:59:09]free content buf [17:59:09]Sock 7.Close socket [17:59:09]Sock 7.Thread stoped [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [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:50]accept exits with 9 [18:00:50]New connection [18:00:50]New thread 3067465060 created [18:00:50]Thread 3067321700 joined [18:00:50]Waiting for new connection... [18:00:50] Sock 9.Parse request [18:00:50]Sock 9.Check first char [18:00:50]Sock 9.First char is OK [18:00:50]request: POST /json_proto HTTP/1.0 [18:00:50]Method: POST [18:00:50]URL: /json_proto [18:00:50]Method is POST - this is cgi request [18:00:50]url: /json_proto [18:00:50]query_string will be loaded in cgi processing [18:00:50]execute_cgi json_proto POST (null) [18:00:50]execute_cgi path=json_proto method=POST [18:00:50]POST find Content-Length [18:00:50]Host: 172.17.59.68:8080 [18:00:50]Content-Length: 674 [18:00:50]Content-Type: application/json [18:00:50] [18:00:50]POST finish read [18:00:50]Found Content-Length = 674 [18:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "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:00:50]execute_script... [18:00: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)320040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "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:00:50]POST & json_proto [18:00:50]process_json_proto [18:00:50]json parsed OK: [18:00:50]protocol is kg_v1.0 [18:00:50]action value=close_receipt [18:00:50]process_action close_receipt [18:00:50]cmd_close_receipt [18:00:50]MH_GetDate [18:00:50]Write to MH i2c: F0 00 00 FB 24 0E [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: F0 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: F0 09 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: F0 09 00 FB 24 00 DA 1C 73 66 BC EC 60 65 53 [18:00:50]GetLastDocTimeStamp 1718819953 [18:00:50]current date 1718820058 [18:00:50]FM_GetShiftState [18:00:50]SAM_PROTO_GetShiftState [18:00:50]wFMCommunicate request_size=4 [18:00:50]MH_SAM_APDU [18:00:50]CAPDU: 80 13 01 00 [18:00:50]Write to MH i2c: E2 08 00 FC 24 80 13 01 00 00 00 00 00 9D [18:00:50]Write i2c OK [18:00:50]MH_I2C_Read... [18:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:50]Read from MH i2c: E2 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 0E 00 [18:00:50]MH_I2C_Read... [18:00:50]Read from MH i2c: E2 0E 00 FC 24 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E7 [18:00:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:00:50]wFMCommunicate OK [18:00:50]SAM_PROTO_GetShiftState done [18:00:50]FM_GetShiftState done [18:00:50]opened in 1718760753 [18:00:50]opened+sec_in_day 1718847153 [18:00:50]quantity*price = 30034 [18:00:50]sum+1 = 30036 [18:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 206 19.06.2024 18:00 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111457 ФПД: 105999352553619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180058&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111457&fm=105999352553619&tin=02508201610067®Number=0000000000092771&sum=30000 [18:00:51]StoreToDocumentArchive [18:00:51]shift 388 fd 111457 [18:00:51]save to /storage/0388/doc_00111457 [18:00:51]save last doc name /storage/0388/doc_00111457 to /storage/kkm_last_doc_name [18:00:51]save OK [18:00:51]Clear old archive folders... [18:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:00:51]tlvbuf is B6F25210 [18:00:51]SAM_PROTO_ClearQueue [18:00:51]wFMCommunicate request_size=4 [18:00:51]MH_SAM_APDU [18:00:51]CAPDU: 80 09 00 00 [18:00:51]Write to MH i2c: E2 08 00 09 25 80 09 00 00 00 00 00 00 A0 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 [18:00:51]MH_I2C_Read... [18:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:51]Read from MH i2c: E2 03 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 09 25 00 90 00 A2 [18:00:51]RAPDU: 90 00 [18:00:51]wFMCommunicate OK [18:00:51]SAM_PROTO_ClearQueue done [18:00:51]KKMCreateOFDPacket [18:00:51]OFDProtocolAddRootSTLVToBuf [18:00:51]FM_MakeSignedData [18:00:51]FM_MakeSignedData [18:00:51]SAM_PROTO_SignData [18:00:51]wFMCommunicate request_size=4 [18:00:51]MH_SAM_APDU [18:00:51]CAPDU: 80 0D 01 02 [18:00:51]Write to MH i2c: E2 08 00 0A 25 80 0D 01 02 00 00 00 00 A8 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:51]Read from MH i2c: E2 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 [18:00:51]MH_I2C_Read... [18:00:51]Read from MH i2c: E2 03 00 0A 25 00 90 00 A3 [18:00:51]RAPDU: 90 00 [18:00:51]wFMCommunicate OK [18:00:51]wFMCommunicate request_size=255 [18:00:51]MH_SAM_APDU [18:00: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 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 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 CE 00 00 00 F4 03 04 00 DA 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B3 01 00 35 04 06 00 60 67 E5 C1 [18:00:51]Write to MH i2c: E2 02 01 0B 25 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 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 CE 00 00 00 F4 03 04 00 DA 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B3 01 00 35 04 06 00 60 67 E5 C1 00 00 06 [18:00:51]Write i2c OK [18:00:51]MH_I2C_Read... [18:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:52]Read from MH i2c: E2 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: E2 03 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: E2 03 00 0B 25 00 90 00 A4 [18:00:52]RAPDU: 90 00 [18:00:52]wFMCommunicate OK [18:00:52]wFMCommunicate request_size=7 [18:00:52]MH_SAM_APDU [18:00:52]CAPDU: 80 0D 02 02 02 60 93 [18:00:52]Write to MH i2c: E2 0A 00 0C 25 80 0D 02 02 02 00 60 93 00 00 A2 [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:52]Read from MH i2c: E2 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: E2 03 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: E2 03 00 0C 25 00 90 00 A5 [18:00:52]RAPDU: 90 00 [18:00:52]wFMCommunicate OK [18:00:52]wFMCommunicate request_size=4 [18:00:52]MH_SAM_APDU [18:00:52]CAPDU: 80 0D 03 02 [18:00:52]Write to MH i2c: E2 08 00 0D 25 80 0D 03 02 00 00 00 00 AD [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:52]Read from MH i2c: E2 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: E2 0B 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: E2 0B 00 0D 25 00 FF 36 75 19 A8 50 5B 32 90 00 F6 [18:00:52]RAPDU: FF 36 75 19 A8 50 5B 32 90 00 [18:00:52]wFMCommunicate OK [18:00:52]SAM_PROTO_SignData done [18:00:52]FM_MakeSignedData done [18:00:52]CreateOFDProtocolMessage [18:00:52]wFMCommunicate request_size=4 [18:00:52]MH_SAM_APDU [18:00:52]CAPDU: 80 11 00 00 [18:00:52]Write to MH i2c: E2 08 00 0E 25 80 11 00 00 00 00 00 00 AD [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:52]Read from MH i2c: E2 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: E2 17 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: E2 17 00 0E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FF [18:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:00:52]wFMCommunicate OK [18:00:52]CreateOFDProtocolMessage done [18:00:52]OFDSenderStorePacket 111457 [18:00:52]StoreOFDPacket docnum=111457 [18:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CC 43 04 01 BB 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 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 CE 00 00 00 F4 03 04 00 DA 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B3 01 00 35 04 06 00 60 67 E5 C1 60 93 FF 36 75 19 A8 50 5B 32 [18:00:52]CheckFolder [18:00:52]dirname=/storage/ofd_packets [18:00:52]CheckFolder done [18:00:52]ProducePacketName [18:00:52]name=ofd_packets/00111457 [18:00:52]NVStorageSaveData ofd_packets/00111457 [18:00:52]File name is /storage/ofd_packets/00111457 [18:00:52]Write 298 bytes [18:00:52]NVStorageSaveData done [18:00:52]OFDSenderStorePacket done [18:00:52]KKMCreateOFDPacket done [18:00:52]NVStorageSaveData kkm_last_timestamp [18:00:52]File name is /storage/kkm_last_timestamp [18:00:52]Write 4 bytes [18:00:52]NVStorageSaveData done [18:00:52]ExternCall_PrintAddStr [18:00:52]wPrintStart [18:00:52]Write to MH i2c: 01 00 00 0F 25 34 [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 07 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 07 00 0F 25 00 00 00 00 00 FF 0F 49 [18:00:52]RasterBufferAndPrint [18:00:52]line Счет N : (1)320040 [18:00:52]line ИНН: 02508201610067 [18:00:52]line Контрольно-Кассовый Чек [18:00:52]line ПРОДАЖА [18:00:52]line ТРК (МРК, ГНК) : 22 [18:00:52]line Товар: 2710194210 [18:00:52]line ДТ-К-5 [18:00:52]line 4.120 * 72.90 [18:00:52]line = 300.35 [18:00:52]line НДС 12% НСП 1% [18:00:52]line > о реализуемом товаре [18:00:52]line ОКРУГЛЕНИЕ: -0.35 [18:00:52]line ИТОГО: 300.00 [18:00:52]line Внесено: 300.00 [18:00:52]line СДАЧА: 0.00 [18:00:52]line НСП 1% : 2.66 [18:00:52]line НДС 12% : 31.90 [18:00:52]line Наличными: 300.00 [18:00:52]line Безнал.: 0.00 [18:00:52]line Место: АЗС № 65 "Партнер Нефть" [18:00:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:00:52]line СНО: Общий режим [18:00:52]line Чек 206 19.06.2024 18:00 [18:00:52]line Смена: 388 ФФД: 1.0 [18:00:52]line ЗНМ: 0300000198 [18:00:52]line РНМ: 0000000000092771 [18:00:52]line Версия ККМ: 001 [18:00:52]line ФМ: 0000000000875083 [18:00:52]line ФД: 111457 [18:00:52]line ФПД: 105999352553619 [18:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180058&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111457&fm=105999352553619&tin=02508201610067®Number=0000000000092771&sum=30000 [18:00:52]OFD Sender: Processing packet 111457 [packets to send 38, broken 37] [18:00:52]ProducePacketName [18:00:52]name=ofd_packets/00111457 [18:00:52]OFD Sender: To server: pG, [18:00:52]CommunicateWithHost lk.salyk.kg:30040 [18:00:52]ConnectInit lk.salyk.kg [18:00:52]written 0, free lines is 4095 [18:00:52]Connected sock=10 [18:00:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 CC 43 04 01 BB 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 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 CE 00 00 00 F4 03 04 00 DA 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 61 B3 01 00 35 04 06 00 60 67 E5 C1 60 93 FF 36 75 19 A8 50 5B 32 [18:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC 54 47 00 0D 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 35 30 38 33 10 04 04 00 61 B3 01 00 F4 03 04 00 3D B4 72 66 B6 04 01 00 00 4C B0 8E 6B 3B FD 27 E6 [18:00:52]CommunicateWithHost err = 0 [18:00:52]CheckOFDResponse [18:00:52]1017 (14) - 77093643461234 [18:00:52]1041 (16) - 0000000000875083 [18:00:52]1040 (4) - 111457 [18:00:52]1012 (4) - 19.06.2024 10:34 [18:00:52]1206 (1) - 0 [18:00:52]OFD Sender: Remove packet 111457 [18:00:52]ProducePacketName [18:00:52]name=ofd_packets/00111457 [18:00:52]NVStorageDeleteData [18:00:52]Write to MH i2c: 01 00 00 3A 25 5F [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 07 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: 01 07 00 3A 25 00 00 00 00 00 EA 0C 5C [18:00:52]RasterBufferAndPrint [18:00:52]line [18:00:52]line [18:00:52]line [18:00:52]line [18:00:52]line [18:00:52]written 0, free lines is 3312 [18:00:52]MH_Cut [18:00:52]Write to MH i2c: D1 01 00 41 25 01 38 [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: D1 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: D1 01 00 [18:00:52]MH_I2C_Read... [18:00:52]Read from MH i2c: D1 01 00 41 25 00 37 [18:00:52]Write to MH i2c: 01 00 00 42 25 67 [18:00:52]Write i2c OK [18:00:52]MH_I2C_Read... [18:00:53]OFD Sender: No OFD packet to send [18:00:53]*** Cut start [18:00:53]*** Partial cut [18:00:53]*** CUTSNS_PIN = 1 [18:00:53]*** CUTSNS_PIN = 0 [18:00:53]*** Brake cut motor [18:00:54]Read from MH i2c: 01 [18:00:54]MH_I2C_Read... [18:00:54]*** Stop cut motor [18:00:54]*** Cut end [18:00:54]Read from MH i2c: 01 07 00 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: 01 07 00 42 25 00 00 00 00 00 FF 0F 7C [18:00:54]process_action close_receipt done [18:00:54]requested_data is exist [18:00:54]produce_requested_data [18:00:54]requested_item fm.sn is exist - process it [18:00:54]wFMCommunicate request_size=4 [18:00:54]MH_SAM_APDU [18:00:54]CAPDU: 80 11 00 00 [18:00:54]Write to MH i2c: E2 08 00 43 25 80 11 00 00 00 00 00 00 E2 [18:00:54]Write i2c OK [18:00:54]MH_I2C_Read... [18:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:54]Read from MH i2c: E2 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 17 00 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 17 00 43 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [18:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:00:54]wFMCommunicate OK [18:00:54]requested_item fd.num is exist - process it [18:00:54]SAM_PROTO_GetFieldsCounters [18:00:54]wFMCommunicate request_size=4 [18:00:54]MH_SAM_APDU [18:00:54]CAPDU: 80 13 00 00 [18:00:54]Write to MH i2c: E2 08 00 44 25 80 13 00 00 00 00 00 00 E5 [18:00:54]Write i2c OK [18:00:54]MH_I2C_Read... [18:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:54]Read from MH i2c: E2 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 62 00 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 62 00 44 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B3 01 00 0E 04 04 00 84 01 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 0A [18:00: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 61 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:54]wFMCommunicate OK [18:00:54]SAM_PROTO_GetFieldsCounters done [18:00:54]requested_item shift.num is exist - process it [18:00:54]requested_item shift.opened is exist - process it [18:00:54]req_shift_opened [18:00:54]FM_GetShiftState [18:00:54]SAM_PROTO_GetShiftState [18:00:54]wFMCommunicate request_size=4 [18:00:54]MH_SAM_APDU [18:00:54]CAPDU: 80 13 01 00 [18:00:54]Write to MH i2c: E2 08 00 45 25 80 13 01 00 00 00 00 00 E7 [18:00:54]Write i2c OK [18:00:54]MH_I2C_Read... [18:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:54]Read from MH i2c: E2 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 0E 00 [18:00:54]MH_I2C_Read... [18:00:54]Read from MH i2c: E2 0E 00 45 25 00 09 00 01 31 35 72 66 00 00 00 00 90 00 31 [18:00:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:00:54]wFMCommunicate OK [18:00:54]SAM_PROTO_GetShiftState done [18:00:54]FM_GetShiftState done [18:00:54]req_shift_opened done [18:00:54]requested_item shift.open_date is exist - process it [18:00:54]req_shift_open_date [18:00:54]req_shift_open_date done [18:00:54]produce_requested_data done [18:00:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111457,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:00:54]process_action_free close_receipt [18:00:54]json_value_free [18:00:54]json_value_free done [18:00:54]process_json_proto returns [18:00:54]Send response to host [18:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111457,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:00:54]free response buf [18:00:54]execute_script done [18:00:54]execute_script returns [18:00:54]free content buf [18:00:54]Sock 9.Close socket [18:00:54]Sock 9.Thread stoped [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:16]accept exits with 7 [18:01:16]New connection [18:01:16]New thread 3067321700 created [18:01:16]Thread 3067465060 joined [18:01:16]Waiting for new connection... [18:01:16] Sock 7.Parse request [18:01:16]Sock 7.Check first char [18:01:16]Sock 7.First char is OK [18:01:16]request: POST /json_proto HTTP/1.0 [18:01:16]Method: POST [18:01:16]URL: /json_proto [18:01:16]Method is POST - this is cgi request [18:01:16]url: /json_proto [18:01:16]query_string will be loaded in cgi processing [18:01:16]execute_cgi json_proto POST (null) [18:01:16]execute_cgi path=json_proto method=POST [18:01:16]POST find Content-Length [18:01:16]Host: 172.17.59.68:8080 [18:01:16]Content-Length: 677 [18:01:16]Content-Type: application/json [18:01:16] [18:01:16]POST finish read [18:01:16]Found Content-Length = 677 [18:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:16]execute_script... [18:01:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:16]POST & json_proto [18:01:16]process_json_proto [18:01:16]json parsed OK: [18:01:16]protocol is kg_v1.0 [18:01:16]action value=close_receipt [18:01:16]process_action close_receipt [18:01:16]cmd_close_receipt [18:01:16]MH_GetDate [18:01:16]Write to MH i2c: F0 00 00 46 25 5A [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 09 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: F0 09 00 46 25 00 F4 1C 73 66 BC EC 60 65 B9 [18:01:16]GetLastDocTimeStamp 1718820058 [18:01:16]current date 1718820084 [18:01:16]FM_GetShiftState [18:01:16]SAM_PROTO_GetShiftState [18:01:16]wFMCommunicate request_size=4 [18:01:16]MH_SAM_APDU [18:01:16]CAPDU: 80 13 01 00 [18:01:16]Write to MH i2c: E2 08 00 47 25 80 13 01 00 00 00 00 00 E9 [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:16]Read from MH i2c: E2 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 0E 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: E2 0E 00 47 25 00 09 00 01 31 35 72 66 00 00 00 00 90 00 33 [18:01:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:01:16]wFMCommunicate OK [18:01:16]SAM_PROTO_GetShiftState done [18:01:16]FM_GetShiftState done [18:01:16]opened in 1718760753 [18:01:16]opened+sec_in_day 1718847153 [18:01:16]quantity*price = 50065 [18:01:16]sum+1 = 50067 [18:01:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 207 19.06.2024 18:01 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111458 ФПД: 270152312179963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111458&fm=270152312179963&tin=02508201610067®Number=0000000000092771&sum=50000 [18:01:17]StoreToDocumentArchive [18:01:17]shift 388 fd 111458 [18:01:17]save to /storage/0388/doc_00111458 [18:01:17]save last doc name /storage/0388/doc_00111458 to /storage/kkm_last_doc_name [18:01:17]save OK [18:01:17]Clear old archive folders... [18:01:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:17]tlvbuf is 00F02780 [18:01:17]SAM_PROTO_ClearQueue [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 09 00 00 [18:01:17]Write to MH i2c: E2 08 00 54 25 80 09 00 00 00 00 00 00 EB [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 54 25 00 90 00 ED [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]SAM_PROTO_ClearQueue done [18:01:17]KKMCreateOFDPacket [18:01:17]OFDProtocolAddRootSTLVToBuf [18:01:17]FM_MakeSignedData [18:01:17]FM_MakeSignedData [18:01:17]SAM_PROTO_SignData [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 01 02 [18:01:17]Write to MH i2c: E2 08 00 55 25 80 0D 01 02 00 00 00 00 F3 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 55 25 00 90 00 EE [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=255 [18:01:17]MH_SAM_APDU [18:01: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F4 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B3 01 00 35 04 06 00 F5 [18:01:17]Write to MH i2c: E2 02 01 56 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F4 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B3 01 00 35 04 06 00 F5 00 00 EF [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 56 25 00 90 00 EF [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=10 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 02 02 05 B3 BC 9A 4C FB [18:01:17]Write to MH i2c: E2 0D 00 57 25 80 0D 02 02 05 00 B3 BC 9A 4C FB 00 00 50 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 03 00 57 25 00 90 00 F0 [18:01:17]RAPDU: 90 00 [18:01:17]wFMCommunicate OK [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 0D 03 02 [18:01:17]Write to MH i2c: E2 08 00 58 25 80 0D 03 02 00 00 00 00 F8 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 0B 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 0B 00 58 25 00 B4 08 43 44 79 43 3E F2 90 00 28 [18:01:17]RAPDU: B4 08 43 44 79 43 3E F2 90 00 [18:01:17]wFMCommunicate OK [18:01:17]SAM_PROTO_SignData done [18:01:17]FM_MakeSignedData done [18:01:17]CreateOFDProtocolMessage [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 11 00 00 [18:01:17]Write to MH i2c: E2 08 00 59 25 80 11 00 00 00 00 00 00 F8 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 17 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 17 00 59 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4A [18:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:01:17]wFMCommunicate OK [18:01:17]CreateOFDProtocolMessage done [18:01:17]OFDSenderStorePacket 111458 [18:01:17]StoreOFDPacket docnum=111458 [18:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A0 20 07 01 C3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F4 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B3 01 00 35 04 06 00 F5 B3 BC 9A 4C FB B4 08 43 44 79 43 3E F2 [18:01:17]CheckFolder [18:01:17]dirname=/storage/ofd_packets [18:01:17]CheckFolder done [18:01:17]ProducePacketName [18:01:17]name=ofd_packets/00111458 [18:01:17]NVStorageSaveData ofd_packets/00111458 [18:01:17]File name is /storage/ofd_packets/00111458 [18:01:17]Write 301 bytes [18:01:17]NVStorageSaveData done [18:01:17]OFDSenderStorePacket done [18:01:17]KKMCreateOFDPacket done [18:01:17]NVStorageSaveData kkm_last_timestamp [18:01:17]File name is /storage/kkm_last_timestamp [18:01:17]Write 4 bytes [18:01:17]NVStorageSaveData done [18:01:17]ExternCall_PrintAddStr [18:01:17]wPrintStart [18:01:17]Write to MH i2c: 01 00 00 5A 25 7F [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 07 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 07 00 5A 25 00 00 00 00 00 FF 0F 94 [18:01:17]RasterBufferAndPrint [18:01:17]line Счет N : (1)320041 [18:01:17]line ИНН: 02508201610067 [18:01:17]line Контрольно-Кассовый Чек [18:01:17]line ПРОДАЖА [18:01:17]line ТРК (МРК, ГНК) : 11 [18:01:17]line Товар: 2710124130 [18:01:17]line Аи-92-К-5 [18:01:17]line 7.540 * 66.40 [18:01:17]line = 500.66 [18:01:17]line НДС 12% НСП 1% [18:01:17]line > о реализуемом товаре [18:01:17]line ОКРУГЛЕНИЕ: -0.66 [18:01:17]line ИТОГО: 500.00 [18:01:17]line Внесено: 500.00 [18:01:17]line СДАЧА: 0.00 [18:01:17]line НСП 1% : 4.43 [18:01:17]line НДС 12% : 53.17 [18:01:17]line Наличными: 500.00 [18:01:17]line Безнал.: 0.00 [18:01:17]line Место: АЗС № 65 "Партнер Нефть" [18:01:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:01:17]line СНО: Общий режим [18:01:17]line Чек 207 19.06.2024 18:01 [18:01:17]line Смена: 388 ФФД: 1.0 [18:01:18]line ЗНМ: 0300000198 [18:01:18]line РНМ: 0000000000092771 [18:01:18]line Версия ККМ: 001 [18:01:18]line ФМ: 0000000000875083 [18:01:18]line ФД: 111458 [18:01:18]line ФПД: 270152312179963 [18:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180124&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111458&fm=270152312179963&tin=02508201610067®Number=0000000000092771&sum=50000 [18:01:18]OFD Sender: Processing packet 111458 [packets to send 38, broken 37] [18:01:18]ProducePacketName [18:01:18]name=ofd_packets/00111458 [18:01:18]OFD Sender: To server: pG, [18:01:18]CommunicateWithHost lk.salyk.kg:30040 [18:01:18]ConnectInit lk.salyk.kg [18:01:18]written 0, free lines is 4095 [18:01:18]Connected sock=10 [18:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A0 20 07 01 C3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F4 1C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B3 01 00 35 04 06 00 F5 B3 BC 9A 4C FB B4 08 43 44 79 43 3E F2 [18:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3E 4E 47 00 E0 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 62 B3 01 00 F4 03 04 00 56 B4 72 66 B6 04 01 00 00 B9 9E FE 34 83 F4 E5 8E [18:01:18]CommunicateWithHost err = 0 [18:01:18]CheckOFDResponse [18:01:18]1017 (14) - 77093643461234 [18:01:18]1041 (16) - 0000000000875083 [18:01:18]1040 (4) - 111458 [18:01:18]1012 (4) - 19.06.2024 10:35 [18:01:18]1206 (1) - 0 [18:01:18]OFD Sender: Remove packet 111458 [18:01:18]ProducePacketName [18:01:18]name=ofd_packets/00111458 [18:01:18]NVStorageDeleteData [18:01:18]Write to MH i2c: 01 00 00 85 25 AA [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: 01 07 00 85 25 00 00 00 00 00 E4 0C A1 [18:01:18]RasterBufferAndPrint [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]line [18:01:18]written 0, free lines is 3306 [18:01:18]MH_Cut [18:01:18]Write to MH i2c: D1 01 00 8C 25 01 83 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: D1 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: D1 01 00 [18:01:18]MH_I2C_Read... [18:01:18]Read from MH i2c: D1 01 00 8C 25 00 82 [18:01:18]Write to MH i2c: 01 00 00 8D 25 B2 [18:01:18]Write i2c OK [18:01:18]MH_I2C_Read... [18:01:18]OFD Sender: No OFD packet to send [18:01:19]*** Cut start [18:01:19]*** Partial cut [18:01:19]*** CUTSNS_PIN = 1 [18:01:19]*** CUTSNS_PIN = 0 [18:01:19]*** Brake cut motor [18:01:19]Read from MH i2c: 01 [18:01:19]MH_I2C_Read... [18:01:19]*** Stop cut motor [18:01:19]*** Cut end [18:01:19]Read from MH i2c: 01 07 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: 01 07 00 8D 25 00 00 00 00 00 FF 0F C7 [18:01:19]process_action close_receipt done [18:01:19]requested_data is exist [18:01:19]produce_requested_data [18:01:19]requested_item fm.sn is exist - process it [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 11 00 00 [18:01:19]Write to MH i2c: E2 08 00 8E 25 80 11 00 00 00 00 00 00 2D [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:19]Read from MH i2c: E2 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 17 00 [18:01:19]MH_I2C_Read... [18:01:19]Read from MH i2c: E2 17 00 8E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [18:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:01:19]wFMCommunicate OK [18:01:19]requested_item fd.num is exist - process it [18:01:19]SAM_PROTO_GetFieldsCounters [18:01:19]wFMCommunicate request_size=4 [18:01:19]MH_SAM_APDU [18:01:19]CAPDU: 80 13 00 00 [18:01:19]Write to MH i2c: E2 08 00 8F 25 80 13 00 00 00 00 00 00 30 [18:01:19]Write i2c OK [18:01:19]MH_I2C_Read... [18:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:20]Read from MH i2c: E2 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 62 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 62 00 8F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B3 01 00 0E 04 04 00 84 01 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 59 [18:01: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 62 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:20]wFMCommunicate OK [18:01:20]SAM_PROTO_GetFieldsCounters done [18:01:20]requested_item shift.num is exist - process it [18:01:20]requested_item shift.opened is exist - process it [18:01:20]req_shift_opened [18:01:20]FM_GetShiftState [18:01:20]SAM_PROTO_GetShiftState [18:01:20]wFMCommunicate request_size=4 [18:01:20]MH_SAM_APDU [18:01:20]CAPDU: 80 13 01 00 [18:01:20]Write to MH i2c: E2 08 00 90 25 80 13 01 00 00 00 00 00 32 [18:01:20]Write i2c OK [18:01:20]MH_I2C_Read... [18:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:20]Read from MH i2c: E2 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 0E 00 [18:01:20]MH_I2C_Read... [18:01:20]Read from MH i2c: E2 0E 00 90 25 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7C [18:01:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:01:20]wFMCommunicate OK [18:01:20]SAM_PROTO_GetShiftState done [18:01:20]FM_GetShiftState done [18:01:20]req_shift_opened done [18:01:20]requested_item shift.open_date is exist - process it [18:01:20]req_shift_open_date [18:01:20]req_shift_open_date done [18:01:20]produce_requested_data done [18:01:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111458,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:01:20]process_action_free close_receipt [18:01:20]json_value_free [18:01:20]json_value_free done [18:01:20]process_json_proto returns [18:01:20]Send response to host [18:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111458,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:01:20]free response buf [18:01:20]execute_script done [18:01:20]execute_script returns [18:01:20]free content buf [18:01:20]Sock 7.Close socket [18:01:20]Sock 7.Thread stoped [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]accept exits with 9 [18:01:53]New connection [18:01:53]New thread 3067465060 created [18:01:53]Thread 3067321700 joined [18:01:53]Waiting for new connection... [18:01:53] Sock 9.Parse request [18:01:53]Sock 9.Check first char [18:01:53]Sock 9.First char is OK [18:01:53]request: POST /json_proto HTTP/1.0 [18:01:53]Method: POST [18:01:53]URL: /json_proto [18:01:53]Method is POST - this is cgi request [18:01:53]url: /json_proto [18:01:53]query_string will be loaded in cgi processing [18:01:53]execute_cgi json_proto POST (null) [18:01:53]execute_cgi path=json_proto method=POST [18:01:53]POST find Content-Length [18:01:53]Host: 172.17.59.68:8080 [18:01:53]Content-Length: 677 [18:01:53]Content-Type: application/json [18:01:53] [18:01:53]POST finish read [18:01:53]Found Content-Length = 677 [18:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "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" ] } } [18:01:53]execute_script... [18:01: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)320042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.510, "sum" : 100.26, "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" ] } } [18:01:53]POST & json_proto [18:01:53]process_json_proto [18:01:53]json parsed OK: [18:01:53]protocol is kg_v1.0 [18:01:53]action value=close_receipt [18:01:53]process_action close_receipt [18:01:53]cmd_close_receipt [18:01:53]MH_GetDate [18:01:53]Write to MH i2c: F0 00 00 91 25 A5 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: F0 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: F0 09 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: F0 09 00 91 25 00 19 1D 73 66 BC EC 60 65 2A [18:01:53]GetLastDocTimeStamp 1718820084 [18:01:53]current date 1718820121 [18:01:53]FM_GetShiftState [18:01:53]SAM_PROTO_GetShiftState [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 13 01 00 [18:01:53]Write to MH i2c: E2 08 00 92 25 80 13 01 00 00 00 00 00 34 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0E 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0E 00 92 25 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7E [18:01:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:01:53]wFMCommunicate OK [18:01:53]SAM_PROTO_GetShiftState done [18:01:53]FM_GetShiftState done [18:01:53]opened in 1718760753 [18:01:53]opened+sec_in_day 1718847153 [18:01:53]quantity*price = 10026 [18:01:53]sum+1 = 10027 [18:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 208 19.06.2024 18:02 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111459 ФПД: 111668731760278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180201&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111459&fm=111668731760278&tin=02508201610067®Number=0000000000092771&sum=10000 [18:01:54]StoreToDocumentArchive [18:01:54]shift 388 fd 111459 [18:01:54]save to /storage/0388/doc_00111459 [18:01:54]save last doc name /storage/0388/doc_00111459 to /storage/kkm_last_doc_name [18:01:54]save OK [18:01:54]Clear old archive folders... [18:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:54]tlvbuf is 00F02780 [18:01:54]SAM_PROTO_ClearQueue [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 09 00 00 [18:01:54]Write to MH i2c: E2 08 00 9F 25 80 09 00 00 00 00 00 00 36 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 9F 25 00 90 00 38 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_ClearQueue done [18:01:54]KKMCreateOFDPacket [18:01:54]OFDProtocolAddRootSTLVToBuf [18:01:54]FM_MakeSignedData [18:01:54]FM_MakeSignedData [18:01:54]SAM_PROTO_SignData [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 01 02 [18:01:54]Write to MH i2c: E2 08 00 A0 25 80 0D 01 02 00 00 00 00 3E [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 A0 25 00 90 00 39 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=255 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 19 1D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B3 01 00 35 04 06 00 65 [18:01:54]Write to MH i2c: E2 02 01 A1 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 19 1D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B3 01 00 35 04 06 00 65 00 00 61 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 A1 25 00 90 00 3A [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=10 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 02 02 05 8F E7 16 CE 96 [18:01:54]Write to MH i2c: E2 0D 00 A2 25 80 0D 02 02 05 00 8F E7 16 CE 96 00 00 3B [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 A2 25 00 90 00 3B [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 03 02 [18:01:54]Write to MH i2c: E2 08 00 A3 25 80 0D 03 02 00 00 00 00 43 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 A3 25 00 54 FC 93 D8 C3 BD D2 F5 90 00 46 [18:01:54]RAPDU: 54 FC 93 D8 C3 BD D2 F5 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_SignData done [18:01:54]FM_MakeSignedData done [18:01:54]CreateOFDProtocolMessage [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 11 00 00 [18:01:54]Write to MH i2c: E2 08 00 A4 25 80 11 00 00 00 00 00 00 43 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 A4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [18:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:01:54]wFMCommunicate OK [18:01:54]CreateOFDProtocolMessage done [18:01:54]OFDSenderStorePacket 111459 [18:01:54]StoreOFDPacket docnum=111459 [18:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A C5 07 01 19 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 19 1D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B3 01 00 35 04 06 00 65 8F E7 16 CE 96 54 FC 93 D8 C3 BD D2 F5 [18:01:54]CheckFolder [18:01:54]dirname=/storage/ofd_packets [18:01:54]CheckFolder done [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00111459 [18:01:54]NVStorageSaveData ofd_packets/00111459 [18:01:54]File name is /storage/ofd_packets/00111459 [18:01:54]Write 301 bytes [18:01:54]NVStorageSaveData done [18:01:54]OFDSenderStorePacket done [18:01:54]KKMCreateOFDPacket done [18:01:54]NVStorageSaveData kkm_last_timestamp [18:01:54]File name is /storage/kkm_last_timestamp [18:01:54]Write 4 bytes [18:01:54]NVStorageSaveData done [18:01:54]ExternCall_PrintAddStr [18:01:54]wPrintStart [18:01:54]Write to MH i2c: 01 00 00 A5 25 CA [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 A5 25 00 00 00 00 00 FF 0F DF [18:01:54]RasterBufferAndPrint [18:01:54]line Счет N : (1)320042 [18:01:54]line ИНН: 02508201610067 [18:01:54]line Контрольно-Кассовый Чек [18:01:54]line ПРОДАЖА [18:01:54]line ТРК (МРК, ГНК) : 11 [18:01:54]line Товар: 2710124130 [18:01:54]line Аи-92-К-5 [18:01:54]line 1.510 * 66.40 [18:01:54]line = 100.26 [18:01:54]line НДС 12% НСП 1% [18:01:54]line > о реализуемом товаре [18:01:54]line ОКРУГЛЕНИЕ: -0.26 [18:01:54]line ИТОГО: 100.00 [18:01:54]line Внесено: 100.00 [18:01:54]line СДАЧА: 0.00 [18:01:54]line НСП 1% : 0.89 [18:01:54]line НДС 12% : 10.65 [18:01:54]line Наличными: 100.00 [18:01:54]line Безнал.: 0.00 [18:01:54]line Место: АЗС № 65 "Партнер Нефть" [18:01:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:01:54]line СНО: Общий режим [18:01:54]line Чек 208 19.06.2024 18:02 [18:01:54]line Смена: 388 ФФД: 1.0 [18:01:54]line ЗНМ: 0300000198 [18:01:54]line РНМ: 0000000000092771 [18:01:54]line Версия ККМ: 001 [18:01:54]line ФМ: 0000000000875083 [18:01:54]line ФД: 111459 [18:01:54]line ФПД: 111668731760278 [18:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180201&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111459&fm=111668731760278&tin=02508201610067®Number=0000000000092771&sum=10000 [18:01:55]OFD Sender: Processing packet 111459 [packets to send 38, broken 37] [18:01:55]ProducePacketName [18:01:55]name=ofd_packets/00111459 [18:01:55]OFD Sender: To server: pG, [18:01:55]CommunicateWithHost lk.salyk.kg:30040 [18:01:55]ConnectInit lk.salyk.kg [18:01:55]written 0, free lines is 4095 [18:01:55]Connected sock=10 [18:01:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7A C5 07 01 19 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 E6 05 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 2A 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 19 1D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 63 B3 01 00 35 04 06 00 65 8F E7 16 CE 96 54 FC 93 D8 C3 BD D2 F5 [18:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F0 B3 47 00 1F 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 35 30 38 33 10 04 04 00 63 B3 01 00 F4 03 04 00 7B B4 72 66 B6 04 01 00 00 D3 71 29 DA 25 EE E7 63 [18:01:55]CommunicateWithHost err = 0 [18:01:55]CheckOFDResponse [18:01:55]1017 (14) - 77093643461234 [18:01:55]1041 (16) - 0000000000875083 [18:01:55]1040 (4) - 111459 [18:01:55]1012 (4) - 19.06.2024 10:35 [18:01:55]1206 (1) - 0 [18:01:55]OFD Sender: Remove packet 111459 [18:01:55]ProducePacketName [18:01:55]name=ofd_packets/00111459 [18:01:55]NVStorageDeleteData [18:01:55]Write to MH i2c: 01 00 00 D0 25 F5 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 D0 25 00 00 00 00 00 E4 0C EC [18:01:55]RasterBufferAndPrint [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]written 0, free lines is 3306 [18:01:55]MH_Cut [18:01:55]Write to MH i2c: D1 01 00 D7 25 01 CE [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 D7 25 00 CD [18:01:55]Write to MH i2c: 01 00 00 D8 25 FD [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]OFD Sender: No OFD packet to send [18:01:56]*** Cut start [18:01:56]*** Partial cut [18:01:56]*** CUTSNS_PIN = 1 [18:01:56]*** CUTSNS_PIN = 0 [18:01:56]*** Brake cut motor [18:01:56]Read from MH i2c: 01 [18:01:56]MH_I2C_Read... [18:01:56]*** Stop cut motor [18:01:56]*** Cut end [18:01:56]Read from MH i2c: 01 07 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: 01 07 00 D8 25 00 00 00 00 00 FF 0F 12 [18:01:56]process_action close_receipt done [18:01:56]requested_data is exist [18:01:56]produce_requested_data [18:01:56]requested_item fm.sn is exist - process it [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 11 00 00 [18:01:56]Write to MH i2c: E2 08 00 D9 25 80 11 00 00 00 00 00 00 78 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 17 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 17 00 D9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [18:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:01:56]wFMCommunicate OK [18:01:56]requested_item fd.num is exist - process it [18:01:56]SAM_PROTO_GetFieldsCounters [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 13 00 00 [18:01:56]Write to MH i2c: E2 08 00 DA 25 80 13 00 00 00 00 00 00 7B [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:57]Read from MH i2c: E2 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 62 00 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 62 00 DA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B3 01 00 0E 04 04 00 84 01 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 A8 [18:01: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 63 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:57]wFMCommunicate OK [18:01:57]SAM_PROTO_GetFieldsCounters done [18:01:57]requested_item shift.num is exist - process it [18:01:57]requested_item shift.opened is exist - process it [18:01:57]req_shift_opened [18:01:57]FM_GetShiftState [18:01:57]SAM_PROTO_GetShiftState [18:01:57]wFMCommunicate request_size=4 [18:01:57]MH_SAM_APDU [18:01:57]CAPDU: 80 13 01 00 [18:01:57]Write to MH i2c: E2 08 00 DB 25 80 13 01 00 00 00 00 00 7D [18:01:57]Write i2c OK [18:01:57]MH_I2C_Read... [18:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:57]Read from MH i2c: E2 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 0E 00 [18:01:57]MH_I2C_Read... [18:01:57]Read from MH i2c: E2 0E 00 DB 25 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C7 [18:01:57]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:01:57]wFMCommunicate OK [18:01:57]SAM_PROTO_GetShiftState done [18:01:57]FM_GetShiftState done [18:01:57]req_shift_opened done [18:01:57]requested_item shift.open_date is exist - process it [18:01:57]req_shift_open_date [18:01:57]req_shift_open_date done [18:01:57]produce_requested_data done [18:01:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111459,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:01:57]process_action_free close_receipt [18:01:57]json_value_free [18:01:57]json_value_free done [18:01:57]process_json_proto returns [18:01:57]Send response to host [18:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111459,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:01:57]free response buf [18:01:57]execute_script done [18:01:57]execute_script returns [18:01:57]free content buf [18:01:57]Sock 9.Close socket [18:01:57]Sock 9.Thread stoped [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:28]accept exits with 7 [18:05:28]New connection [18:05:28]New thread 3067321700 created [18:05:28]Thread 3067465060 joined [18:05:28]Waiting for new connection... [18:05:28] Sock 7.Parse request [18:05:28]Sock 7.Check first char [18:05:28]Sock 7.First char is OK [18:05:28]request: POST /json_proto HTTP/1.0 [18:05:28]Method: POST [18:05:28]URL: /json_proto [18:05:28]Method is POST - this is cgi request [18:05:28]url: /json_proto [18:05:28]query_string will be loaded in cgi processing [18:05:28]execute_cgi json_proto POST (null) [18:05:28]execute_cgi path=json_proto method=POST [18:05:28]POST find Content-Length [18:05:28]Host: 172.17.59.68:8080 [18:05:28]Content-Length: 677 [18:05:28]Content-Type: application/json [18:05:28] [18:05:28]POST finish read [18:05:28]Found Content-Length = 677 [18:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:05:28]execute_script... [18:05: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)320043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "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:05:28]POST & json_proto [18:05:28]process_json_proto [18:05:28]json parsed OK: [18:05:28]protocol is kg_v1.0 [18:05:28]action value=close_receipt [18:05:28]process_action close_receipt [18:05:28]cmd_close_receipt [18:05:28]MH_GetDate [18:05:28]Write to MH i2c: F0 00 00 DC 25 F0 [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: F0 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: F0 09 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: F0 09 00 DC 25 00 F0 1D 73 66 BC EC 60 65 4C [18:05:28]GetLastDocTimeStamp 1718820121 [18:05:28]current date 1718820336 [18:05:28]FM_GetShiftState [18:05:28]SAM_PROTO_GetShiftState [18:05:28]wFMCommunicate request_size=4 [18:05:28]MH_SAM_APDU [18:05:28]CAPDU: 80 13 01 00 [18:05:28]Write to MH i2c: E2 08 00 DD 25 80 13 01 00 00 00 00 00 7F [18:05:28]Write i2c OK [18:05:28]MH_I2C_Read... [18:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:28]Read from MH i2c: E2 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 0E 00 [18:05:28]MH_I2C_Read... [18:05:28]Read from MH i2c: E2 0E 00 DD 25 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C9 [18:05:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:05:28]wFMCommunicate OK [18:05:28]SAM_PROTO_GetShiftState done [18:05:28]FM_GetShiftState done [18:05:28]opened in 1718760753 [18:05:28]opened+sec_in_day 1718847153 [18:05:28]quantity*price = 40039 [18:05:28]sum+1 = 40040 [18:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 209 19.06.2024 18:05 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111460 ФПД: 22214183494748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111460&fm=22214183494748&tin=02508201610067®Number=0000000000092771&sum=40000 [18:05:29]StoreToDocumentArchive [18:05:29]shift 388 fd 111460 [18:05:29]save to /storage/0388/doc_00111460 [18:05:29]save last doc name /storage/0388/doc_00111460 to /storage/kkm_last_doc_name [18:05:29]save OK [18:05:29]Clear old archive folders... [18:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:29]tlvbuf is B6F25200 [18:05:29]SAM_PROTO_ClearQueue [18:05:29]wFMCommunicate request_size=4 [18:05:29]MH_SAM_APDU [18:05:29]CAPDU: 80 09 00 00 [18:05:29]Write to MH i2c: E2 08 00 EA 25 80 09 00 00 00 00 00 00 81 [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:29]Read from MH i2c: E2 03 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 03 00 EA 25 00 90 00 83 [18:05:29]RAPDU: 90 00 [18:05:29]wFMCommunicate OK [18:05:29]SAM_PROTO_ClearQueue done [18:05:29]KKMCreateOFDPacket [18:05:29]OFDProtocolAddRootSTLVToBuf [18:05:29]FM_MakeSignedData [18:05:29]FM_MakeSignedData [18:05:29]SAM_PROTO_SignData [18:05:29]wFMCommunicate request_size=4 [18:05:29]MH_SAM_APDU [18:05:29]CAPDU: 80 0D 01 02 [18:05:29]Write to MH i2c: E2 08 00 EB 25 80 0D 01 02 00 00 00 00 89 [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 03 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 03 00 EB 25 00 90 00 84 [18:05:29]RAPDU: 90 00 [18:05:29]wFMCommunicate OK [18:05:29]wFMCommunicate request_size=255 [18:05:29]MH_SAM_APDU [18:05: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 D1 00 00 00 F4 03 04 00 F0 1D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B3 01 00 35 04 06 00 14 [18:05:29]Write to MH i2c: E2 02 01 EC 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 D1 00 00 00 F4 03 04 00 F0 1D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B3 01 00 35 04 06 00 14 00 00 73 [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 03 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 03 00 EC 25 00 90 00 85 [18:05:29]RAPDU: 90 00 [18:05:29]wFMCommunicate OK [18:05:29]wFMCommunicate request_size=10 [18:05:29]MH_SAM_APDU [18:05:29]CAPDU: 80 0D 02 02 05 34 24 84 24 5C [18:05:29]Write to MH i2c: E2 0D 00 ED 25 80 0D 02 02 05 00 34 24 84 24 5C 00 00 F2 [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 03 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 03 00 ED 25 00 90 00 86 [18:05:29]RAPDU: 90 00 [18:05:29]wFMCommunicate OK [18:05:29]wFMCommunicate request_size=4 [18:05:29]MH_SAM_APDU [18:05:29]CAPDU: 80 0D 03 02 [18:05:29]Write to MH i2c: E2 08 00 EE 25 80 0D 03 02 00 00 00 00 8E [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 0B 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 0B 00 EE 25 00 E9 48 75 F4 B0 03 AE 6E 90 00 F8 [18:05:29]RAPDU: E9 48 75 F4 B0 03 AE 6E 90 00 [18:05:29]wFMCommunicate OK [18:05:29]SAM_PROTO_SignData done [18:05:29]FM_MakeSignedData done [18:05:29]CreateOFDProtocolMessage [18:05:29]wFMCommunicate request_size=4 [18:05:29]MH_SAM_APDU [18:05:29]CAPDU: 80 11 00 00 [18:05:29]Write to MH i2c: E2 08 00 EF 25 80 11 00 00 00 00 00 00 8E [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 17 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 17 00 EF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [18:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:05:29]wFMCommunicate OK [18:05:29]CreateOFDProtocolMessage done [18:05:29]OFDSenderStorePacket 111460 [18:05:29]StoreOFDPacket docnum=111460 [18:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D 7E 07 01 E4 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 D1 00 00 00 F4 03 04 00 F0 1D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B3 01 00 35 04 06 00 14 34 24 84 24 5C E9 48 75 F4 B0 03 AE 6E [18:05:29]CheckFolder [18:05:29]dirname=/storage/ofd_packets [18:05:29]CheckFolder done [18:05:29]ProducePacketName [18:05:29]name=ofd_packets/00111460 [18:05:29]NVStorageSaveData ofd_packets/00111460 [18:05:29]File name is /storage/ofd_packets/00111460 [18:05:29]Write 301 bytes [18:05:29]NVStorageSaveData done [18:05:29]OFDSenderStorePacket done [18:05:29]KKMCreateOFDPacket done [18:05:29]NVStorageSaveData kkm_last_timestamp [18:05:29]File name is /storage/kkm_last_timestamp [18:05:29]Write 4 bytes [18:05:29]NVStorageSaveData done [18:05:29]ExternCall_PrintAddStr [18:05:29]wPrintStart [18:05:29]Write to MH i2c: 01 00 00 F0 25 15 [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: 01 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: 01 07 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: 01 07 00 F0 25 00 00 00 00 00 FF 0F 2A [18:05:29]RasterBufferAndPrint [18:05:29]line Счет N : (1)320043 [18:05:29]line ИНН: 02508201610067 [18:05:29]line Контрольно-Кассовый Чек [18:05:29]line ПРОДАЖА [18:05:29]line ТРК (МРК, ГНК) : 11 [18:05:29]line Товар: 2710124130 [18:05:29]line Аи-92-К-5 [18:05:29]line 6.030 * 66.40 [18:05:29]line = 400.39 [18:05:29]line НДС 12% НСП 1% [18:05:29]line > о реализуемом товаре [18:05:29]line ОКРУГЛЕНИЕ: -0.39 [18:05:29]line ИТОГО: 400.00 [18:05:29]line Внесено: 400.00 [18:05:29]line СДАЧА: 0.00 [18:05:29]line НСП 1% : 3.54 [18:05:29]line НДС 12% : 42.52 [18:05:29]line Наличными: 400.00 [18:05:29]line Безнал.: 0.00 [18:05:29]line Место: АЗС № 65 "Партнер Нефть" [18:05:29]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:05:29]line СНО: Общий режим [18:05:29]line Чек 209 19.06.2024 18:05 [18:05:29]line Смена: 388 ФФД: 1.0 [18:05:29]line ЗНМ: 0300000198 [18:05:29]line РНМ: 0000000000092771 [18:05:29]line Версия ККМ: 001 [18:05:29]line ФМ: 0000000000875083 [18:05:29]line ФД: 111460 [18:05:29]line ФПД: 22214183494748 [18:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111460&fm=22214183494748&tin=02508201610067®Number=0000000000092771&sum=40000 [18:05:30]OFD Sender: Processing packet 111460 [packets to send 38, broken 37] [18:05:30]ProducePacketName [18:05:30]name=ofd_packets/00111460 [18:05:30]OFD Sender: To server: pG, [18:05:30]CommunicateWithHost lk.salyk.kg:30040 [18:05:30]ConnectInit lk.salyk.kg [18:05:30]written 0, free lines is 4095 [18:05:30]Connected sock=10 [18:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5D 7E 07 01 E4 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 D1 00 00 00 F4 03 04 00 F0 1D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B3 01 00 35 04 06 00 14 34 24 84 24 5C E9 48 75 F4 B0 03 AE 6E [18:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B0 27 47 00 40 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 64 B3 01 00 F4 03 04 00 53 B5 72 66 B6 04 01 00 00 7D 99 7B 83 CF 0A 15 79 [18:05:30]CommunicateWithHost err = 0 [18:05:30]CheckOFDResponse [18:05:30]1017 (14) - 77093643461234 [18:05:30]1041 (16) - 0000000000875083 [18:05:30]1040 (4) - 111460 [18:05:30]1012 (4) - 19.06.2024 10:39 [18:05:30]1206 (1) - 0 [18:05:30]OFD Sender: Remove packet 111460 [18:05:30]ProducePacketName [18:05:30]name=ofd_packets/00111460 [18:05:30]NVStorageDeleteData [18:05:30]Write to MH i2c: 01 00 00 1B 26 41 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: 01 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: 01 07 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: 01 07 00 1B 26 00 00 00 00 00 EA 0C 3E [18:05:30]RasterBufferAndPrint [18:05:30]line [18:05:30]line [18:05:30]line [18:05:30]line [18:05:30]line [18:05:30]written 0, free lines is 3312 [18:05:30]MH_Cut [18:05:30]Write to MH i2c: D1 01 00 22 26 01 1A [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: D1 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: D1 01 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: D1 01 00 22 26 00 19 [18:05:30]Write to MH i2c: 01 00 00 23 26 49 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:31]OFD Sender: No OFD packet to send [18:05:31]*** Cut start [18:05:31]*** Partial cut [18:05:31]*** CUTSNS_PIN = 1 [18:05:31]*** CUTSNS_PIN = 0 [18:05:31]*** Brake cut motor [18:05:32]Read from MH i2c: 01 [18:05:32]MH_I2C_Read... [18:05:32]*** Stop cut motor [18:05:32]*** Cut end [18:05:32]Read from MH i2c: 01 07 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 07 00 23 26 00 00 00 00 00 FF 0F 5E [18:05:32]process_action close_receipt done [18:05:32]requested_data is exist [18:05:32]produce_requested_data [18:05:32]requested_item fm.sn is exist - process it [18:05:32]wFMCommunicate request_size=4 [18:05:32]MH_SAM_APDU [18:05:32]CAPDU: 80 11 00 00 [18:05:32]Write to MH i2c: E2 08 00 24 26 80 11 00 00 00 00 00 00 C4 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:32]Read from MH i2c: E2 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 17 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 17 00 24 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 16 [18:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:05:32]wFMCommunicate OK [18:05:32]requested_item fd.num is exist - process it [18:05:32]SAM_PROTO_GetFieldsCounters [18:05:32]wFMCommunicate request_size=4 [18:05:32]MH_SAM_APDU [18:05:32]CAPDU: 80 13 00 00 [18:05:32]Write to MH i2c: E2 08 00 25 26 80 13 00 00 00 00 00 00 C7 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:32]Read from MH i2c: E2 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 62 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 62 00 25 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B3 01 00 0E 04 04 00 84 01 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 F8 [18:05: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 64 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:32]wFMCommunicate OK [18:05:32]SAM_PROTO_GetFieldsCounters done [18:05:32]requested_item shift.num is exist - process it [18:05:32]requested_item shift.opened is exist - process it [18:05:32]req_shift_opened [18:05:32]FM_GetShiftState [18:05:32]SAM_PROTO_GetShiftState [18:05:32]wFMCommunicate request_size=4 [18:05:32]MH_SAM_APDU [18:05:32]CAPDU: 80 13 01 00 [18:05:32]Write to MH i2c: E2 08 00 26 26 80 13 01 00 00 00 00 00 C9 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:32]Read from MH i2c: E2 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 0E 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 0E 00 26 26 00 09 00 01 31 35 72 66 00 00 00 00 90 00 13 [18:05:32]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:05:32]wFMCommunicate OK [18:05:32]SAM_PROTO_GetShiftState done [18:05:32]FM_GetShiftState done [18:05:32]req_shift_opened done [18:05:32]requested_item shift.open_date is exist - process it [18:05:32]req_shift_open_date [18:05:32]req_shift_open_date done [18:05:32]produce_requested_data done [18:05:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111460,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:05:32]process_action_free close_receipt [18:05:32]json_value_free [18:05:32]json_value_free done [18:05:32]process_json_proto returns [18:05:32]Send response to host [18:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111460,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:05:32]free response buf [18:05:32]execute_script done [18:05:32]execute_script returns [18:05:32]free content buf [18:05:32]Sock 7.Close socket [18:05:32]Sock 7.Thread stoped [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [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:49]accept exits with 9 [18:09:49]New connection [18:09:49]New thread 3067465060 created [18:09:49]Thread 3067321700 joined [18:09:49]Waiting for new connection... [18:09:49] Sock 9.Parse request [18:09:49]Sock 9.Check first char [18:09:49]Sock 9.First char is OK [18:09:49]request: POST /json_proto HTTP/1.0 [18:09:49]Method: POST [18:09:49]URL: /json_proto [18:09:49]Method is POST - this is cgi request [18:09:49]url: /json_proto [18:09:49]query_string will be loaded in cgi processing [18:09:49]execute_cgi json_proto POST (null) [18:09:49]execute_cgi path=json_proto method=POST [18:09:49]POST find Content-Length [18:09:49]Host: 172.17.59.68:8080 [18:09:49]Content-Length: 677 [18:09:49]Content-Type: application/json [18:09:49] [18:09:49]POST finish read [18:09:49]Found Content-Length = 677 [18:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:49]execute_script... [18:09: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)320044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:49]POST & json_proto [18:09:49]process_json_proto [18:09:49]json parsed OK: [18:09:49]protocol is kg_v1.0 [18:09:49]action value=close_receipt [18:09:49]process_action close_receipt [18:09:49]cmd_close_receipt [18:09:49]MH_GetDate [18:09:49]Write to MH i2c: F0 00 00 27 26 3C [18:09:49]Write i2c OK [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: F0 [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: F0 09 00 [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: F0 09 00 27 26 00 F5 1E 73 66 BC EC 60 65 9E [18:09:49]GetLastDocTimeStamp 1718820336 [18:09:49]current date 1718820597 [18:09:49]FM_GetShiftState [18:09:49]SAM_PROTO_GetShiftState [18:09:49]wFMCommunicate request_size=4 [18:09:49]MH_SAM_APDU [18:09:49]CAPDU: 80 13 01 00 [18:09:49]Write to MH i2c: E2 08 00 28 26 80 13 01 00 00 00 00 00 CB [18:09:49]Write i2c OK [18:09:49]MH_I2C_Read... [18:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:49]Read from MH i2c: E2 [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: E2 0E 00 [18:09:49]MH_I2C_Read... [18:09:49]Read from MH i2c: E2 0E 00 28 26 00 09 00 01 31 35 72 66 00 00 00 00 90 00 15 [18:09:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:09:49]wFMCommunicate OK [18:09:49]SAM_PROTO_GetShiftState done [18:09:49]FM_GetShiftState done [18:09:49]opened in 1718760753 [18:09:49]opened+sec_in_day 1718847153 [18:09:49]quantity*price = 50065 [18:09:49]sum+1 = 50067 [18:09:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 210 19.06.2024 18:09 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111461 ФПД: 276632605349661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180957&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111461&fm=276632605349661&tin=02508201610067®Number=0000000000092771&sum=50000 [18:09:50]StoreToDocumentArchive [18:09:50]shift 388 fd 111461 [18:09:50]save to /storage/0388/doc_00111461 [18:09:50]save last doc name /storage/0388/doc_00111461 to /storage/kkm_last_doc_name [18:09:50]save OK [18:09:50]Clear old archive folders... [18:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:50]tlvbuf is B6F3E740 [18:09:50]SAM_PROTO_ClearQueue [18:09:50]wFMCommunicate request_size=4 [18:09:50]MH_SAM_APDU [18:09:50]CAPDU: 80 09 00 00 [18:09:50]Write to MH i2c: E2 08 00 35 26 80 09 00 00 00 00 00 00 CD [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:50]Read from MH i2c: E2 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 35 26 00 90 00 CF [18:09:50]RAPDU: 90 00 [18:09:50]wFMCommunicate OK [18:09:50]SAM_PROTO_ClearQueue done [18:09:50]KKMCreateOFDPacket [18:09:50]OFDProtocolAddRootSTLVToBuf [18:09:50]FM_MakeSignedData [18:09:50]FM_MakeSignedData [18:09:50]SAM_PROTO_SignData [18:09:50]wFMCommunicate request_size=4 [18:09:50]MH_SAM_APDU [18:09:50]CAPDU: 80 0D 01 02 [18:09:50]Write to MH i2c: E2 08 00 36 26 80 0D 01 02 00 00 00 00 D5 [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:50]Read from MH i2c: E2 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 [18:09:50]MH_I2C_Read... [18:09:50]Read from MH i2c: E2 03 00 36 26 00 90 00 D0 [18:09:50]RAPDU: 90 00 [18:09:50]wFMCommunicate OK [18:09:50]wFMCommunicate request_size=255 [18:09:50]MH_SAM_APDU [18:09: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 F5 1E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B3 01 00 35 04 06 00 FB [18:09:50]Write to MH i2c: E2 02 01 37 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 F5 1E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B3 01 00 35 04 06 00 FB 00 00 E0 [18:09:50]Write i2c OK [18:09:50]MH_I2C_Read... [18:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:51]Read from MH i2c: E2 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: E2 03 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: E2 03 00 37 26 00 90 00 D1 [18:09:51]RAPDU: 90 00 [18:09:51]wFMCommunicate OK [18:09:51]wFMCommunicate request_size=10 [18:09:51]MH_SAM_APDU [18:09:51]CAPDU: 80 0D 02 02 05 98 8C 2C D7 1D [18:09:51]Write to MH i2c: E2 0D 00 38 26 80 0D 02 02 05 00 98 8C 2C D7 1D 00 00 26 [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:51]Read from MH i2c: E2 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: E2 03 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: E2 03 00 38 26 00 90 00 D2 [18:09:51]RAPDU: 90 00 [18:09:51]wFMCommunicate OK [18:09:51]wFMCommunicate request_size=4 [18:09:51]MH_SAM_APDU [18:09:51]CAPDU: 80 0D 03 02 [18:09:51]Write to MH i2c: E2 08 00 39 26 80 0D 03 02 00 00 00 00 DA [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:51]Read from MH i2c: E2 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: E2 0B 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: E2 0B 00 39 26 00 8A AA 2B A5 C3 7B 32 17 90 00 66 [18:09:51]RAPDU: 8A AA 2B A5 C3 7B 32 17 90 00 [18:09:51]wFMCommunicate OK [18:09:51]SAM_PROTO_SignData done [18:09:51]FM_MakeSignedData done [18:09:51]CreateOFDProtocolMessage [18:09:51]wFMCommunicate request_size=4 [18:09:51]MH_SAM_APDU [18:09:51]CAPDU: 80 11 00 00 [18:09:51]Write to MH i2c: E2 08 00 3A 26 80 11 00 00 00 00 00 00 DA [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:51]Read from MH i2c: E2 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: E2 17 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: E2 17 00 3A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [18:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:09:51]wFMCommunicate OK [18:09:51]CreateOFDProtocolMessage done [18:09:51]OFDSenderStorePacket 111461 [18:09:51]StoreOFDPacket docnum=111461 [18:09:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 B8 07 01 C9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 F5 1E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B3 01 00 35 04 06 00 FB 98 8C 2C D7 1D 8A AA 2B A5 C3 7B 32 17 [18:09:51]CheckFolder [18:09:51]dirname=/storage/ofd_packets [18:09:51]CheckFolder done [18:09:51]ProducePacketName [18:09:51]name=ofd_packets/00111461 [18:09:51]NVStorageSaveData ofd_packets/00111461 [18:09:51]File name is /storage/ofd_packets/00111461 [18:09:51]Write 301 bytes [18:09:51]NVStorageSaveData done [18:09:51]OFDSenderStorePacket done [18:09:51]KKMCreateOFDPacket done [18:09:51]NVStorageSaveData kkm_last_timestamp [18:09:51]File name is /storage/kkm_last_timestamp [18:09:51]Write 4 bytes [18:09:51]NVStorageSaveData done [18:09:51]ExternCall_PrintAddStr [18:09:51]wPrintStart [18:09:51]Write to MH i2c: 01 00 00 3B 26 61 [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 07 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 07 00 3B 26 00 00 00 00 00 FF 0F 76 [18:09:51]RasterBufferAndPrint [18:09:51]line Счет N : (1)320044 [18:09:51]line ИНН: 02508201610067 [18:09:51]line Контрольно-Кассовый Чек [18:09:51]line ПРОДАЖА [18:09:51]line ТРК (МРК, ГНК) : 11 [18:09:51]line Товар: 2710124130 [18:09:51]line Аи-92-К-5 [18:09:51]line 7.540 * 66.40 [18:09:51]line = 500.66 [18:09:51]line НДС 12% НСП 1% [18:09:51]line > о реализуемом товаре [18:09:51]line ОКРУГЛЕНИЕ: -0.66 [18:09:51]line ИТОГО: 500.00 [18:09:51]line Внесено: 500.00 [18:09:51]line СДАЧА: 0.00 [18:09:51]line НСП 1% : 4.43 [18:09:51]line НДС 12% : 53.17 [18:09:51]line Наличными: 500.00 [18:09:51]line Безнал.: 0.00 [18:09:51]line Место: АЗС № 65 "Партнер Нефть" [18:09:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:09:51]line СНО: Общий режим [18:09:51]line Чек 210 19.06.2024 18:09 [18:09:51]line Смена: 388 ФФД: 1.0 [18:09:51]line ЗНМ: 0300000198 [18:09:51]line РНМ: 0000000000092771 [18:09:51]line Версия ККМ: 001 [18:09:51]line ФМ: 0000000000875083 [18:09:51]line ФД: 111461 [18:09:51]line ФПД: 276632605349661 [18:09:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T180957&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111461&fm=276632605349661&tin=02508201610067®Number=0000000000092771&sum=50000 [18:09:51]OFD Sender: Processing packet 111461 [packets to send 38, broken 37] [18:09:51]ProducePacketName [18:09:51]name=ofd_packets/00111461 [18:09:51]OFD Sender: To server: pG, [18:09:51]CommunicateWithHost lk.salyk.kg:30040 [18:09:51]ConnectInit lk.salyk.kg [18:09:51]written 0, free lines is 4095 [18:09:51]Connected sock=10 [18:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 B8 07 01 C9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 F5 1E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 65 B3 01 00 35 04 06 00 FB 98 8C 2C D7 1D 8A AA 2B A5 C3 7B 32 17 [18:09:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 17 BF 47 00 98 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 35 30 38 33 10 04 04 00 65 B3 01 00 F4 03 04 00 58 B6 72 66 B6 04 01 00 00 A4 E1 3B 27 A6 65 22 CA [18:09:51]CommunicateWithHost err = 0 [18:09:51]CheckOFDResponse [18:09:51]1017 (14) - 77093643461234 [18:09:51]1041 (16) - 0000000000875083 [18:09:51]1040 (4) - 111461 [18:09:51]1012 (4) - 19.06.2024 10:43 [18:09:51]1206 (1) - 0 [18:09:51]OFD Sender: Remove packet 111461 [18:09:51]ProducePacketName [18:09:51]name=ofd_packets/00111461 [18:09:51]NVStorageDeleteData [18:09:51]Write to MH i2c: 01 00 00 66 26 8C [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 07 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: 01 07 00 66 26 00 00 00 00 00 E6 0C 85 [18:09:51]RasterBufferAndPrint [18:09:51]line [18:09:51]line [18:09:51]line [18:09:51]line [18:09:51]line [18:09:51]written 0, free lines is 3308 [18:09:51]MH_Cut [18:09:51]Write to MH i2c: D1 01 00 6D 26 01 65 [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: D1 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: D1 01 00 [18:09:51]MH_I2C_Read... [18:09:51]Read from MH i2c: D1 01 00 6D 26 00 64 [18:09:51]Write to MH i2c: 01 00 00 6E 26 94 [18:09:51]Write i2c OK [18:09:51]MH_I2C_Read... [18:09:52]OFD Sender: No OFD packet to send [18:09:52]*** Cut start [18:09:52]*** Partial cut [18:09:52]*** CUTSNS_PIN = 1 [18:09:52]*** CUTSNS_PIN = 0 [18:09:52]*** Brake cut motor [18:09:53]Read from MH i2c: 01 [18:09:53]MH_I2C_Read... [18:09:53]*** Stop cut motor [18:09:53]*** Cut end [18:09:53]Read from MH i2c: 01 07 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: 01 07 00 6E 26 00 00 00 00 00 FF 0F A9 [18:09:53]process_action close_receipt done [18:09:53]requested_data is exist [18:09:53]produce_requested_data [18:09:53]requested_item fm.sn is exist - process it [18:09:53]wFMCommunicate request_size=4 [18:09:53]MH_SAM_APDU [18:09:53]CAPDU: 80 11 00 00 [18:09:53]Write to MH i2c: E2 08 00 6F 26 80 11 00 00 00 00 00 00 0F [18:09:53]Write i2c OK [18:09:53]MH_I2C_Read... [18:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:53]Read from MH i2c: E2 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 17 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 17 00 6F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [18:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:09:53]wFMCommunicate OK [18:09:53]requested_item fd.num is exist - process it [18:09:53]SAM_PROTO_GetFieldsCounters [18:09:53]wFMCommunicate request_size=4 [18:09:53]MH_SAM_APDU [18:09:53]CAPDU: 80 13 00 00 [18:09:53]Write to MH i2c: E2 08 00 70 26 80 13 00 00 00 00 00 00 12 [18:09:53]Write i2c OK [18:09:53]MH_I2C_Read... [18:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:53]Read from MH i2c: E2 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 62 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 62 00 70 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B3 01 00 0E 04 04 00 84 01 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 47 [18:09: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 65 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:53]wFMCommunicate OK [18:09:53]SAM_PROTO_GetFieldsCounters done [18:09:53]requested_item shift.num is exist - process it [18:09:53]requested_item shift.opened is exist - process it [18:09:53]req_shift_opened [18:09:53]FM_GetShiftState [18:09:53]SAM_PROTO_GetShiftState [18:09:53]wFMCommunicate request_size=4 [18:09:53]MH_SAM_APDU [18:09:53]CAPDU: 80 13 01 00 [18:09:53]Write to MH i2c: E2 08 00 71 26 80 13 01 00 00 00 00 00 14 [18:09:53]Write i2c OK [18:09:53]MH_I2C_Read... [18:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:53]Read from MH i2c: E2 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 0E 00 [18:09:53]MH_I2C_Read... [18:09:53]Read from MH i2c: E2 0E 00 71 26 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5E [18:09:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:09:53]wFMCommunicate OK [18:09:53]SAM_PROTO_GetShiftState done [18:09:53]FM_GetShiftState done [18:09:53]req_shift_opened done [18:09:53]requested_item shift.open_date is exist - process it [18:09:53]req_shift_open_date [18:09:53]req_shift_open_date done [18:09:53]produce_requested_data done [18:09:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111461,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:09:53]process_action_free close_receipt [18:09:53]json_value_free [18:09:53]json_value_free done [18:09:53]process_json_proto returns [18:09:53]Send response to host [18:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111461,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:09:53]free response buf [18:09:53]execute_script done [18:09:53]execute_script returns [18:09:53]free content buf [18:09:53]Sock 9.Close socket [18:09:53]Sock 9.Thread stoped [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:42]accept exits with 7 [18:12:42]New connection [18:12:42]New thread 3067321700 created [18:12:42]Thread 3067465060 joined [18:12:42]Waiting for new connection... [18:12:42] Sock 7.Parse request [18:12:42]Sock 7.Check first char [18:12:42]Sock 7.First char is OK [18:12:42]request: POST /json_proto HTTP/1.0 [18:12:42]Method: POST [18:12:42]URL: /json_proto [18:12:42]Method is POST - this is cgi request [18:12:42]url: /json_proto [18:12:42]query_string will be loaded in cgi processing [18:12:42]execute_cgi json_proto POST (null) [18:12:42]execute_cgi path=json_proto method=POST [18:12:42]POST find Content-Length [18:12:42]Host: 172.17.59.68:8080 [18:12:42]Content-Length: 805 [18:12:42]Content-Type: application/json [18:12:42] [18:12:42]POST finish read [18:12:42]Found Content-Length = 805 [18:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.970, "sum" : 330.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 330.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:42]execute_script... [18:12: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)320045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.970, "sum" : 330.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 330.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:42]POST & json_proto [18:12:42]process_json_proto [18:12:42]json parsed OK: [18:12:42]protocol is kg_v1.0 [18:12:42]action value=close_receipt [18:12:42]process_action close_receipt [18:12:42]cmd_close_receipt [18:12:42]MH_GetDate [18:12:42]Write to MH i2c: F0 00 00 72 26 87 [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: F0 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: F0 09 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: F0 09 00 72 26 00 A3 1F 73 66 BC EC 60 65 98 [18:12:42]GetLastDocTimeStamp 1718820597 [18:12:42]current date 1718820771 [18:12:42]FM_GetShiftState [18:12:42]SAM_PROTO_GetShiftState [18:12:42]wFMCommunicate request_size=4 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 13 01 00 [18:12:42]Write to MH i2c: E2 08 00 73 26 80 13 01 00 00 00 00 00 16 [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 0E 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 0E 00 73 26 00 09 00 01 31 35 72 66 00 00 00 00 90 00 60 [18:12:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:12:42]wFMCommunicate OK [18:12:42]SAM_PROTO_GetShiftState done [18:12:42]FM_GetShiftState done [18:12:42]opened in 1718760753 [18:12:42]opened+sec_in_day 1718847153 [18:12:42]quantity*price = 33000 [18:12:42]sum+1 = 33002 [18:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.01 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 0.00 Безнал.: 330.01 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 211 19.06.2024 18:12 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111462 ФПД: 255615693714164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T181251&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111462&fm=255615693714164&tin=02508201610067®Number=0000000000092771&sum=33001 [18:12:43]StoreToDocumentArchive [18:12:43]shift 388 fd 111462 [18:12:43]save to /storage/0388/doc_00111462 [18:12:43]save last doc name /storage/0388/doc_00111462 to /storage/kkm_last_doc_name [18:12:43]save OK [18:12:43]Clear old archive folders... [18:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:43]tlvbuf is B6F25350 [18:12:43]SAM_PROTO_ClearQueue [18:12:43]wFMCommunicate request_size=4 [18:12:43]MH_SAM_APDU [18:12:43]CAPDU: 80 09 00 00 [18:12:43]Write to MH i2c: E2 08 00 80 26 80 09 00 00 00 00 00 00 18 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:43]Read from MH i2c: E2 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 03 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 03 00 80 26 00 90 00 1A [18:12:43]RAPDU: 90 00 [18:12:43]wFMCommunicate OK [18:12:43]SAM_PROTO_ClearQueue done [18:12:43]KKMCreateOFDPacket [18:12:43]OFDProtocolAddRootSTLVToBuf [18:12:43]FM_MakeSignedData [18:12:43]FM_MakeSignedData [18:12:43]SAM_PROTO_SignData [18:12:43]wFMCommunicate request_size=4 [18:12:43]MH_SAM_APDU [18:12:43]CAPDU: 80 0D 01 02 [18:12:43]Write to MH i2c: E2 08 00 81 26 80 0D 01 02 00 00 00 00 20 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:43]Read from MH i2c: E2 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 03 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 03 00 81 26 00 90 00 1B [18:12:43]RAPDU: 90 00 [18:12:43]wFMCommunicate OK [18:12:43]wFMCommunicate request_size=255 [18:12:43]MH_SAM_APDU [18:12: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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A3 1F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B3 01 00 35 04 06 00 E8 [18:12:44]Write to MH i2c: E2 02 01 82 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 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A3 1F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B3 01 00 35 04 06 00 E8 00 00 C2 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 82 26 00 90 00 1C [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=10 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 02 02 05 7B 2A 9F 72 F4 [18:12:44]Write to MH i2c: E2 0D 00 83 26 80 0D 02 02 05 00 7B 2A 9F 72 F4 00 00 D7 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 83 26 00 90 00 1D [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 03 02 [18:12:44]Write to MH i2c: E2 08 00 84 26 80 0D 03 02 00 00 00 00 25 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 0B 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 0B 00 84 26 00 1D 22 69 25 AD F6 D0 4D 90 00 B3 [18:12:44]RAPDU: 1D 22 69 25 AD F6 D0 4D 90 00 [18:12:44]wFMCommunicate OK [18:12:44]SAM_PROTO_SignData done [18:12:44]FM_MakeSignedData done [18:12:44]CreateOFDProtocolMessage [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 11 00 00 [18:12:44]Write to MH i2c: E2 08 00 85 26 80 11 00 00 00 00 00 00 25 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 17 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 17 00 85 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [18:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:12:44]wFMCommunicate OK [18:12:44]CreateOFDProtocolMessage done [18:12:44]OFDSenderStorePacket 111462 [18:12:44]StoreOFDPacket docnum=111462 [18:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 A7 07 01 0F 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A3 1F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B3 01 00 35 04 06 00 E8 7B 2A 9F 72 F4 1D 22 69 25 AD F6 D0 4D [18:12:44]CheckFolder [18:12:44]dirname=/storage/ofd_packets [18:12:44]CheckFolder done [18:12:44]ProducePacketName [18:12:44]name=ofd_packets/00111462 [18:12:44]NVStorageSaveData ofd_packets/00111462 [18:12:44]File name is /storage/ofd_packets/00111462 [18:12:44]Write 301 bytes [18:12:44]NVStorageSaveData done [18:12:44]OFDSenderStorePacket done [18:12:44]KKMCreateOFDPacket done [18:12:44]NVStorageSaveData kkm_last_timestamp [18:12:44]File name is /storage/kkm_last_timestamp [18:12:44]Write 4 bytes [18:12:44]NVStorageSaveData done [18:12:44]ExternCall_PrintAddStr [18:12:44]wPrintStart [18:12:44]Write to MH i2c: 01 00 00 86 26 AC [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 86 26 00 00 00 00 00 FF 0F C1 [18:12:44]RasterBufferAndPrint [18:12:44]line Счет N : (1)320045 [18:12:44]line ИНН: 02508201610067 [18:12:44]line Контрольно-Кассовый Чек [18:12:44]line ПРОДАЖА [18:12:44]line ТРК (МРК, ГНК) : 11 [18:12:44]line Товар: 2710124130 [18:12:44]line Аи-92-К-5 [18:12:44]line 4.970 * 66.40 [18:12:44]line = 330.01 [18:12:44]line НДС 12% НСП 1% [18:12:44]line > о реализуемом товаре [18:12:44]line ИТОГО: 330.01 [18:12:44]line НСП 1% : 2.92 [18:12:44]line НДС 12% : 35.04 [18:12:44]line Наличными: 0.00 [18:12:44]line Безнал.: 330.01 [18:12:44]line Место: АЗС № 65 "Партнер Нефть" [18:12:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:12:44]line СНО: Общий режим [18:12:44]line Чек 211 19.06.2024 18:12 [18:12:44]line Смена: 388 ФФД: 1.0 [18:12:44]line ЗНМ: 0300000198 [18:12:44]line РНМ: 0000000000092771 [18:12:44]line Версия ККМ: 001 [18:12:44]line Платежная система: О! деньги [18:12:44]line ФМ: 0000000000875083 [18:12:44]line ФД: 111462 [18:12:44]line ФПД: 255615693714164 [18:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T181251&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111462&fm=255615693714164&tin=02508201610067®Number=0000000000092771&sum=33001 [18:12:44]OFD Sender: Processing packet 111462 [packets to send 38, broken 37] [18:12:44]ProducePacketName [18:12:44]name=ofd_packets/00111462 [18:12:44]OFD Sender: To server: pG, [18:12:44]CommunicateWithHost lk.salyk.kg:30040 [18:12:44]ConnectInit lk.salyk.kg [18:12:44]written 0, free lines is 4095 [18:12:44]Connected sock=10 [18:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 A7 07 01 0F 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 A3 1F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 66 B3 01 00 35 04 06 00 E8 7B 2A 9F 72 F4 1D 22 69 25 AD F6 D0 4D [18:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4E C4 47 00 1C 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 35 30 38 33 10 04 04 00 66 B3 01 00 F4 03 04 00 05 B7 72 66 B6 04 01 00 00 3A BC 55 E3 32 E7 75 63 [18:12:45]CommunicateWithHost err = 0 [18:12:45]CheckOFDResponse [18:12:45]1017 (14) - 77093643461234 [18:12:45]1041 (16) - 0000000000875083 [18:12:45]1040 (4) - 111462 [18:12:45]1012 (4) - 19.06.2024 10:46 [18:12:45]1206 (1) - 0 [18:12:45]OFD Sender: Remove packet 111462 [18:12:45]ProducePacketName [18:12:45]name=ofd_packets/00111462 [18:12:45]NVStorageDeleteData [18:12:45]Write to MH i2c: 01 00 00 B0 26 D6 [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: 01 07 00 B0 26 00 00 00 00 00 FE 0C E7 [18:12:45]RasterBufferAndPrint [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]line [18:12:45]written 0, free lines is 3332 [18:12:45]MH_Cut [18:12:45]Write to MH i2c: D1 01 00 B7 26 01 AF [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: D1 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: D1 01 00 [18:12:45]MH_I2C_Read... [18:12:45]Read from MH i2c: D1 01 00 B7 26 00 AE [18:12:45]Write to MH i2c: 01 00 00 B8 26 DE [18:12:45]Write i2c OK [18:12:45]MH_I2C_Read... [18:12:45]OFD Sender: No OFD packet to send [18:12:45]*** Cut start [18:12:45]*** Partial cut [18:12:45]*** CUTSNS_PIN = 1 [18:12:46]*** CUTSNS_PIN = 0 [18:12:46]*** Brake cut motor [18:12:46]Read from MH i2c: 01 [18:12:46]MH_I2C_Read... [18:12:46]*** Stop cut motor [18:12:46]*** Cut end [18:12:46]Read from MH i2c: 01 07 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: 01 07 00 B8 26 00 00 00 00 00 FF 0F F3 [18:12:46]process_action close_receipt done [18:12:46]requested_data is exist [18:12:46]produce_requested_data [18:12:46]requested_item fm.sn is exist - process it [18:12:46]wFMCommunicate request_size=4 [18:12:46]MH_SAM_APDU [18:12:46]CAPDU: 80 11 00 00 [18:12:46]Write to MH i2c: E2 08 00 B9 26 80 11 00 00 00 00 00 00 59 [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:46]Read from MH i2c: E2 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 17 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 17 00 B9 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AB [18:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:12:46]wFMCommunicate OK [18:12:46]requested_item fd.num is exist - process it [18:12:46]SAM_PROTO_GetFieldsCounters [18:12:46]wFMCommunicate request_size=4 [18:12:46]MH_SAM_APDU [18:12:46]CAPDU: 80 13 00 00 [18:12:46]Write to MH i2c: E2 08 00 BA 26 80 13 00 00 00 00 00 00 5C [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:46]Read from MH i2c: E2 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 62 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 62 00 BA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B3 01 00 0E 04 04 00 84 01 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 95 [18:12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 66 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:46]wFMCommunicate OK [18:12:46]SAM_PROTO_GetFieldsCounters done [18:12:46]requested_item shift.num is exist - process it [18:12:46]requested_item shift.opened is exist - process it [18:12:46]req_shift_opened [18:12:46]FM_GetShiftState [18:12:46]SAM_PROTO_GetShiftState [18:12:46]wFMCommunicate request_size=4 [18:12:46]MH_SAM_APDU [18:12:46]CAPDU: 80 13 01 00 [18:12:46]Write to MH i2c: E2 08 00 BB 26 80 13 01 00 00 00 00 00 5E [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:46]Read from MH i2c: E2 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 0E 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 0E 00 BB 26 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A8 [18:12:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:12:46]wFMCommunicate OK [18:12:46]SAM_PROTO_GetShiftState done [18:12:46]FM_GetShiftState done [18:12:46]req_shift_opened done [18:12:46]requested_item shift.open_date is exist - process it [18:12:46]req_shift_open_date [18:12:46]req_shift_open_date done [18:12:46]produce_requested_data done [18:12:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111462,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:12:46]process_action_free close_receipt [18:12:46]json_value_free [18:12:46]json_value_free done [18:12:46]process_json_proto returns [18:12:46]Send response to host [18:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111462,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:12:46]free response buf [18:12:46]execute_script done [18:12:46]execute_script returns [18:12:46]free content buf [18:12:46]Sock 7.Close socket [18:12:46]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:16]accept exits with 9 [18:18:16]New connection [18:18:16]New thread 3067465060 created [18:18:16]Thread 3067321700 joined [18:18:16]Waiting for new connection... [18:18:16] Sock 9.Parse request [18:18:16]Sock 9.Check first char [18:18:16]Sock 9.First char is OK [18:18:16]request: POST /json_proto HTTP/1.0 [18:18:16]Method: POST [18:18:16]URL: /json_proto [18:18:16]Method is POST - this is cgi request [18:18:16]url: /json_proto [18:18:16]query_string will be loaded in cgi processing [18:18:16]execute_cgi json_proto POST (null) [18:18:16]execute_cgi path=json_proto method=POST [18:18:16]POST find Content-Length [18:18:16]Host: 172.17.59.68:8080 [18:18:16]Content-Length: 677 [18:18:16]Content-Type: application/json [18:18:16] [18:18:16]POST finish read [18:18:16]Found Content-Length = 677 [18:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.170, "sum" : 210.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:16]execute_script... [18:18: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)320046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.170, "sum" : 210.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:16]POST & json_proto [18:18:16]process_json_proto [18:18:16]json parsed OK: [18:18:16]protocol is kg_v1.0 [18:18:16]action value=close_receipt [18:18:16]process_action close_receipt [18:18:16]cmd_close_receipt [18:18:16]MH_GetDate [18:18:16]Write to MH i2c: F0 00 00 BC 26 D1 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: F0 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: F0 09 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: F0 09 00 BC 26 00 F0 20 73 66 BC EC 60 65 30 [18:18:16]GetLastDocTimeStamp 1718820771 [18:18:16]current date 1718821104 [18:18:16]FM_GetShiftState [18:18:16]SAM_PROTO_GetShiftState [18:18:16]wFMCommunicate request_size=4 [18:18:16]MH_SAM_APDU [18:18:16]CAPDU: 80 13 01 00 [18:18:16]Write to MH i2c: E2 08 00 BD 26 80 13 01 00 00 00 00 00 60 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:16]Read from MH i2c: E2 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 0E 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: E2 0E 00 BD 26 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AA [18:18:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:18:16]wFMCommunicate OK [18:18:16]SAM_PROTO_GetShiftState done [18:18:16]FM_GetShiftState done [18:18:16]opened in 1718760753 [18:18:16]opened+sec_in_day 1718847153 [18:18:16]quantity*price = 21048 [18:18:16]sum+1 = 21050 [18:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.35 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 212 19.06.2024 18:18 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111463 ФПД: 140005866223225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T181824&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111463&fm=140005866223225&tin=02508201610067®Number=0000000000092771&sum=21000 [18:18:17]StoreToDocumentArchive [18:18:17]shift 388 fd 111463 [18:18:17]save to /storage/0388/doc_00111463 [18:18:17]save last doc name /storage/0388/doc_00111463 to /storage/kkm_last_doc_name [18:18:17]save OK [18:18:17]Clear old archive folders... [18:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:17]tlvbuf is B6FD2300 [18:18:17]SAM_PROTO_ClearQueue [18:18:17]wFMCommunicate request_size=4 [18:18:17]MH_SAM_APDU [18:18:17]CAPDU: 80 09 00 00 [18:18:17]Write to MH i2c: E2 08 00 CA 26 80 09 00 00 00 00 00 00 62 [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:17]Read from MH i2c: E2 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 03 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 03 00 CA 26 00 90 00 64 [18:18:17]RAPDU: 90 00 [18:18:17]wFMCommunicate OK [18:18:17]SAM_PROTO_ClearQueue done [18:18:17]KKMCreateOFDPacket [18:18:17]OFDProtocolAddRootSTLVToBuf [18:18:17]FM_MakeSignedData [18:18:17]FM_MakeSignedData [18:18:17]SAM_PROTO_SignData [18:18:17]wFMCommunicate request_size=4 [18:18:17]MH_SAM_APDU [18:18:17]CAPDU: 80 0D 01 02 [18:18:17]Write to MH i2c: E2 08 00 CB 26 80 0D 01 02 00 00 00 00 6A [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:17]Read from MH i2c: E2 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 03 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 03 00 CB 26 00 90 00 65 [18:18:17]RAPDU: 90 00 [18:18:17]wFMCommunicate OK [18:18:17]wFMCommunicate request_size=255 [18:18:17]MH_SAM_APDU [18:18: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 62 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 39 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F0 20 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B3 01 00 35 04 06 00 7F [18:18:17]Write to MH i2c: E2 02 01 CC 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 62 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 39 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F0 20 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B3 01 00 35 04 06 00 7F 00 00 83 [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:17]Read from MH i2c: E2 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 03 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 03 00 CC 26 00 90 00 66 [18:18:17]RAPDU: 90 00 [18:18:17]wFMCommunicate OK [18:18:17]wFMCommunicate request_size=10 [18:18:17]MH_SAM_APDU [18:18:17]CAPDU: 80 0D 02 02 05 55 A7 EC 36 79 [18:18:17]Write to MH i2c: E2 0D 00 CD 26 80 0D 02 02 05 00 55 A7 EC 36 79 00 00 0E [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:17]Read from MH i2c: E2 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 03 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 03 00 CD 26 00 90 00 67 [18:18:17]RAPDU: 90 00 [18:18:17]wFMCommunicate OK [18:18:17]wFMCommunicate request_size=4 [18:18:17]MH_SAM_APDU [18:18:17]CAPDU: 80 0D 03 02 [18:18:17]Write to MH i2c: E2 08 00 CE 26 80 0D 03 02 00 00 00 00 6F [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:17]Read from MH i2c: E2 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 0B 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 0B 00 CE 26 00 EA FD 37 20 3C EE 4D 23 90 00 48 [18:18:17]RAPDU: EA FD 37 20 3C EE 4D 23 90 00 [18:18:17]wFMCommunicate OK [18:18:17]SAM_PROTO_SignData done [18:18:17]FM_MakeSignedData done [18:18:17]CreateOFDProtocolMessage [18:18:17]wFMCommunicate request_size=4 [18:18:17]MH_SAM_APDU [18:18:17]CAPDU: 80 11 00 00 [18:18:17]Write to MH i2c: E2 08 00 CF 26 80 11 00 00 00 00 00 00 6F [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:17]Read from MH i2c: E2 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 17 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 17 00 CF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C1 [18:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:18:17]wFMCommunicate OK [18:18:17]CreateOFDProtocolMessage done [18:18:17]OFDSenderStorePacket 111463 [18:18:17]StoreOFDPacket docnum=111463 [18:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 3A 07 01 4B 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 39 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F0 20 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B3 01 00 35 04 06 00 7F 55 A7 EC 36 79 EA FD 37 20 3C EE 4D 23 [18:18:17]CheckFolder [18:18:17]dirname=/storage/ofd_packets [18:18:17]CheckFolder done [18:18:17]ProducePacketName [18:18:17]name=ofd_packets/00111463 [18:18:17]NVStorageSaveData ofd_packets/00111463 [18:18:17]File name is /storage/ofd_packets/00111463 [18:18:17]Write 301 bytes [18:18:17]NVStorageSaveData done [18:18:17]OFDSenderStorePacket done [18:18:17]KKMCreateOFDPacket done [18:18:17]NVStorageSaveData kkm_last_timestamp [18:18:17]File name is /storage/kkm_last_timestamp [18:18:17]Write 4 bytes [18:18:17]NVStorageSaveData done [18:18:17]ExternCall_PrintAddStr [18:18:17]wPrintStart [18:18:17]Write to MH i2c: 01 00 00 D0 26 F6 [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: 01 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: 01 07 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: 01 07 00 D0 26 00 00 00 00 00 FF 0F 0B [18:18:17]RasterBufferAndPrint [18:18:17]line Счет N : (1)320046 [18:18:17]line ИНН: 02508201610067 [18:18:17]line Контрольно-Кассовый Чек [18:18:17]line ПРОДАЖА [18:18:17]line ТРК (МРК, ГНК) : 11 [18:18:17]line Товар: 2710124130 [18:18:17]line Аи-92-К-5 [18:18:17]line 3.170 * 66.40 [18:18:17]line = 210.49 [18:18:17]line НДС 12% НСП 1% [18:18:17]line > о реализуемом товаре [18:18:17]line ОКРУГЛЕНИЕ: -0.49 [18:18:17]line ИТОГО: 210.00 [18:18:17]line Внесено: 210.00 [18:18:17]line СДАЧА: 0.00 [18:18:17]line НСП 1% : 1.86 [18:18:17]line НДС 12% : 22.35 [18:18:17]line Наличными: 210.00 [18:18:17]line Безнал.: 0.00 [18:18:17]line Место: АЗС № 65 "Партнер Нефть" [18:18:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:18:17]line СНО: Общий режим [18:18:17]line Чек 212 19.06.2024 18:18 [18:18:17]line Смена: 388 ФФД: 1.0 [18:18:17]line ЗНМ: 0300000198 [18:18:17]line РНМ: 0000000000092771 [18:18:17]line Версия ККМ: 001 [18:18:17]line ФМ: 0000000000875083 [18:18:17]line ФД: 111463 [18:18:17]line ФПД: 140005866223225 [18:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T181824&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111463&fm=140005866223225&tin=02508201610067®Number=0000000000092771&sum=21000 [18:18:18]OFD Sender: Processing packet 111463 [packets to send 38, broken 37] [18:18:18]ProducePacketName [18:18:18]name=ofd_packets/00111463 [18:18:18]OFD Sender: To server: pG, [18:18:18]CommunicateWithHost lk.salyk.kg:30040 [18:18:18]ConnectInit lk.salyk.kg [18:18:18]written 0, free lines is 4095 [18:18:18]Connected sock=10 [18:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 07 3A 07 01 4B 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 0C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 39 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 F0 20 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B3 01 00 35 04 06 00 7F 55 A7 EC 36 79 EA FD 37 20 3C EE 4D 23 [18:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 13 90 47 00 93 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 67 B3 01 00 F4 03 04 00 53 B8 72 66 B6 04 01 00 00 6C CC B4 74 49 6C D6 6F [18:18:18]CommunicateWithHost err = 0 [18:18:18]CheckOFDResponse [18:18:18]1017 (14) - 77093643461234 [18:18:18]1041 (16) - 0000000000875083 [18:18:18]1040 (4) - 111463 [18:18:18]1012 (4) - 19.06.2024 10:52 [18:18:18]1206 (1) - 0 [18:18:18]OFD Sender: Remove packet 111463 [18:18:18]ProducePacketName [18:18:18]name=ofd_packets/00111463 [18:18:18]NVStorageDeleteData [18:18:18]Write to MH i2c: 01 00 00 FB 26 21 [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: 01 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: 01 07 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: 01 07 00 FB 26 00 00 00 00 00 F6 0C 2A [18:18:18]RasterBufferAndPrint [18:18:18]line [18:18:18]line [18:18:18]line [18:18:18]line [18:18:18]line [18:18:18]written 0, free lines is 3326 [18:18:18]MH_Cut [18:18:18]Write to MH i2c: D1 01 00 02 27 01 FB [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: D1 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: D1 01 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: D1 01 00 02 27 00 FA [18:18:18]Write to MH i2c: 01 00 00 03 27 2A [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:19]OFD Sender: No OFD packet to send [18:18:19]*** Cut start [18:18:19]*** Partial cut [18:18:19]*** CUTSNS_PIN = 1 [18:18:19]*** CUTSNS_PIN = 0 [18:18:19]*** Brake cut motor [18:18:19]Read from MH i2c: 01 [18:18:19]MH_I2C_Read... [18:18:19]*** Stop cut motor [18:18:19]*** Cut end [18:18:19]Read from MH i2c: 01 07 00 [18:18:19]MH_I2C_Read... [18:18:19]Read from MH i2c: 01 07 00 03 27 00 00 00 00 00 FF 0F 3F [18:18:19]process_action close_receipt done [18:18:19]requested_data is exist [18:18:19]produce_requested_data [18:18:19]requested_item fm.sn is exist - process it [18:18:19]wFMCommunicate request_size=4 [18:18:19]MH_SAM_APDU [18:18:19]CAPDU: 80 11 00 00 [18:18:19]Write to MH i2c: E2 08 00 04 27 80 11 00 00 00 00 00 00 A5 [18:18:19]Write i2c OK [18:18:19]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 17 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 17 00 04 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [18:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:18:20]wFMCommunicate OK [18:18:20]requested_item fd.num is exist - process it [18:18:20]SAM_PROTO_GetFieldsCounters [18:18:20]wFMCommunicate request_size=4 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 13 00 00 [18:18:20]Write to MH i2c: E2 08 00 05 27 80 13 00 00 00 00 00 00 A8 [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 62 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 62 00 05 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B3 01 00 0E 04 04 00 84 01 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 E5 [18:18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 67 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:20]wFMCommunicate OK [18:18:20]SAM_PROTO_GetFieldsCounters done [18:18:20]requested_item shift.num is exist - process it [18:18:20]requested_item shift.opened is exist - process it [18:18:20]req_shift_opened [18:18:20]FM_GetShiftState [18:18:20]SAM_PROTO_GetShiftState [18:18:20]wFMCommunicate request_size=4 [18:18:20]MH_SAM_APDU [18:18:20]CAPDU: 80 13 01 00 [18:18:20]Write to MH i2c: E2 08 00 06 27 80 13 01 00 00 00 00 00 AA [18:18:20]Write i2c OK [18:18:20]MH_I2C_Read... [18:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:20]Read from MH i2c: E2 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 0E 00 [18:18:20]MH_I2C_Read... [18:18:20]Read from MH i2c: E2 0E 00 06 27 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F4 [18:18:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:18:20]wFMCommunicate OK [18:18:20]SAM_PROTO_GetShiftState done [18:18:20]FM_GetShiftState done [18:18:20]req_shift_opened done [18:18:20]requested_item shift.open_date is exist - process it [18:18:20]req_shift_open_date [18:18:20]req_shift_open_date done [18:18:20]produce_requested_data done [18:18:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111463,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:18:20]process_action_free close_receipt [18:18:20]json_value_free [18:18:20]json_value_free done [18:18:20]process_json_proto returns [18:18:20]Send response to host [18:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111463,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:18:20]free response buf [18:18:20]execute_script done [18:18:20]execute_script returns [18:18:20]free content buf [18:18:20]Sock 9.Close socket [18:18:20]Sock 9.Thread stoped [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:09]accept exits with 7 [18:19:09]New connection [18:19:09]New thread 3067321700 created [18:19:09]Thread 3067465060 joined [18:19:09]Waiting for new connection... [18:19:09] Sock 7.Parse request [18:19:09]Sock 7.Check first char [18:19:09]Sock 7.First char is OK [18:19:09]request: POST /json_proto HTTP/1.0 [18:19:09]Method: POST [18:19:09]URL: /json_proto [18:19:09]Method is POST - this is cgi request [18:19:09]url: /json_proto [18:19:09]query_string will be loaded in cgi processing [18:19:09]execute_cgi json_proto POST (null) [18:19:09]execute_cgi path=json_proto method=POST [18:19:09]POST find Content-Length [18:19:09]Host: 172.17.59.68:8080 [18:19:09]Content-Length: 677 [18:19:09]Content-Type: application/json [18:19:09] [18:19:09]POST finish read [18:19:09]Found Content-Length = 677 [18:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:09]execute_script... [18:19:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:09]POST & json_proto [18:19:09]process_json_proto [18:19:09]json parsed OK: [18:19:09]protocol is kg_v1.0 [18:19:09]action value=close_receipt [18:19:09]process_action close_receipt [18:19:09]cmd_close_receipt [18:19:09]MH_GetDate [18:19:09]Write to MH i2c: F0 00 00 07 27 1D [18:19:09]Write i2c OK [18:19:09]MH_I2C_Read... [18:19:09]Read from MH i2c: F0 [18:19:09]MH_I2C_Read... [18:19:09]Read from MH i2c: F0 09 00 [18:19:09]MH_I2C_Read... [18:19:09]Read from MH i2c: F0 09 00 07 27 00 25 21 73 66 BC EC 60 65 B2 [18:19:09]GetLastDocTimeStamp 1718821104 [18:19:09]current date 1718821157 [18:19:09]FM_GetShiftState [18:19:09]SAM_PROTO_GetShiftState [18:19:09]wFMCommunicate request_size=4 [18:19:09]MH_SAM_APDU [18:19:09]CAPDU: 80 13 01 00 [18:19:09]Write to MH i2c: E2 08 00 08 27 80 13 01 00 00 00 00 00 AC [18:19:09]Write i2c OK [18:19:09]MH_I2C_Read... [18:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:09]Read from MH i2c: E2 [18:19:09]MH_I2C_Read... [18:19:09]Read from MH i2c: E2 0E 00 [18:19:09]MH_I2C_Read... [18:19:09]Read from MH i2c: E2 0E 00 08 27 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F6 [18:19:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:19:09]wFMCommunicate OK [18:19:09]SAM_PROTO_GetShiftState done [18:19:09]FM_GetShiftState done [18:19:09]opened in 1718760753 [18:19:09]opened+sec_in_day 1718847153 [18:19:09]quantity*price = 50065 [18:19:09]sum+1 = 50067 [18:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 213 19.06.2024 18:19 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111464 ФПД: 84505080064195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T181917&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111464&fm=84505080064195&tin=02508201610067®Number=0000000000092771&sum=50000 [18:19:10]StoreToDocumentArchive [18:19:10]shift 388 fd 111464 [18:19:10]save to /storage/0388/doc_00111464 [18:19:10]save last doc name /storage/0388/doc_00111464 to /storage/kkm_last_doc_name [18:19:10]save OK [18:19:10]Clear old archive folders... [18:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:19:10]tlvbuf is 00F70610 [18:19:10]SAM_PROTO_ClearQueue [18:19:10]wFMCommunicate request_size=4 [18:19:10]MH_SAM_APDU [18:19:10]CAPDU: 80 09 00 00 [18:19:10]Write to MH i2c: E2 08 00 15 27 80 09 00 00 00 00 00 00 AE [18:19:10]Write i2c OK [18:19:10]MH_I2C_Read... [18:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:10]Read from MH i2c: E2 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 03 00 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 03 00 15 27 00 90 00 B0 [18:19:10]RAPDU: 90 00 [18:19:10]wFMCommunicate OK [18:19:10]SAM_PROTO_ClearQueue done [18:19:10]KKMCreateOFDPacket [18:19:10]OFDProtocolAddRootSTLVToBuf [18:19:10]FM_MakeSignedData [18:19:10]FM_MakeSignedData [18:19:10]SAM_PROTO_SignData [18:19:10]wFMCommunicate request_size=4 [18:19:10]MH_SAM_APDU [18:19:10]CAPDU: 80 0D 01 02 [18:19:10]Write to MH i2c: E2 08 00 16 27 80 0D 01 02 00 00 00 00 B6 [18:19:10]Write i2c OK [18:19:10]MH_I2C_Read... [18:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:10]Read from MH i2c: E2 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 03 00 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 03 00 16 27 00 90 00 B1 [18:19:10]RAPDU: 90 00 [18:19:10]wFMCommunicate OK [18:19:10]wFMCommunicate request_size=255 [18:19:10]MH_SAM_APDU [18:19: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 25 21 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B3 01 00 35 04 06 00 4C [18:19:10]Write to MH i2c: E2 02 01 17 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 25 21 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B3 01 00 35 04 06 00 4C 00 00 4B [18:19:10]Write i2c OK [18:19:10]MH_I2C_Read... [18:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:10]Read from MH i2c: E2 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 03 00 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 03 00 17 27 00 90 00 B2 [18:19:10]RAPDU: 90 00 [18:19:10]wFMCommunicate OK [18:19:10]wFMCommunicate request_size=10 [18:19:10]MH_SAM_APDU [18:19:10]CAPDU: 80 0D 02 02 05 DB 5F 47 68 C3 [18:19:10]Write to MH i2c: E2 0D 00 18 27 80 0D 02 02 05 00 DB 5F 47 68 C3 00 00 6F [18:19:10]Write i2c OK [18:19:10]MH_I2C_Read... [18:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:10]Read from MH i2c: E2 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 03 00 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 03 00 18 27 00 90 00 B3 [18:19:10]RAPDU: 90 00 [18:19:10]wFMCommunicate OK [18:19:10]wFMCommunicate request_size=4 [18:19:10]MH_SAM_APDU [18:19:10]CAPDU: 80 0D 03 02 [18:19:10]Write to MH i2c: E2 08 00 19 27 80 0D 03 02 00 00 00 00 BB [18:19:10]Write i2c OK [18:19:10]MH_I2C_Read... [18:19:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:10]Read from MH i2c: E2 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 0B 00 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 0B 00 19 27 00 83 A4 3D F0 65 15 DC 5D 90 00 C3 [18:19:10]RAPDU: 83 A4 3D F0 65 15 DC 5D 90 00 [18:19:10]wFMCommunicate OK [18:19:10]SAM_PROTO_SignData done [18:19:10]FM_MakeSignedData done [18:19:10]CreateOFDProtocolMessage [18:19:10]wFMCommunicate request_size=4 [18:19:10]MH_SAM_APDU [18:19:10]CAPDU: 80 11 00 00 [18:19:10]Write to MH i2c: E2 08 00 1A 27 80 11 00 00 00 00 00 00 BB [18:19:10]Write i2c OK [18:19:10]MH_I2C_Read... [18:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:10]Read from MH i2c: E2 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 17 00 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: E2 17 00 1A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [18:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:19:10]wFMCommunicate OK [18:19:10]CreateOFDProtocolMessage done [18:19:10]OFDSenderStorePacket 111464 [18:19:10]StoreOFDPacket docnum=111464 [18:19:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2A D7 07 01 36 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 25 21 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B3 01 00 35 04 06 00 4C DB 5F 47 68 C3 83 A4 3D F0 65 15 DC 5D [18:19:10]CheckFolder [18:19:10]dirname=/storage/ofd_packets [18:19:10]CheckFolder done [18:19:10]ProducePacketName [18:19:10]name=ofd_packets/00111464 [18:19:10]NVStorageSaveData ofd_packets/00111464 [18:19:10]File name is /storage/ofd_packets/00111464 [18:19:10]Write 301 bytes [18:19:10]NVStorageSaveData done [18:19:10]OFDSenderStorePacket done [18:19:10]KKMCreateOFDPacket done [18:19:10]NVStorageSaveData kkm_last_timestamp [18:19:10]File name is /storage/kkm_last_timestamp [18:19:10]Write 4 bytes [18:19:10]NVStorageSaveData done [18:19:10]ExternCall_PrintAddStr [18:19:10]wPrintStart [18:19:10]Write to MH i2c: 01 00 00 1B 27 42 [18:19:10]Write i2c OK [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: 01 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: 01 07 00 [18:19:10]MH_I2C_Read... [18:19:10]Read from MH i2c: 01 07 00 1B 27 00 00 00 00 00 FF 0F 57 [18:19:10]RasterBufferAndPrint [18:19:10]line Счет N : (1)320047 [18:19:10]line ИНН: 02508201610067 [18:19:10]line Контрольно-Кассовый Чек [18:19:10]line ПРОДАЖА [18:19:10]line ТРК (МРК, ГНК) : 11 [18:19:10]line Товар: 2710124130 [18:19:10]line Аи-92-К-5 [18:19:10]line 7.540 * 66.40 [18:19:10]line = 500.66 [18:19:10]line НДС 12% НСП 1% [18:19:10]line > о реализуемом товаре [18:19:10]line ОКРУГЛЕНИЕ: -0.66 [18:19:10]line ИТОГО: 500.00 [18:19:10]line Внесено: 500.00 [18:19:10]line СДАЧА: 0.00 [18:19:10]line НСП 1% : 4.43 [18:19:10]line НДС 12% : 53.17 [18:19:10]line Наличными: 500.00 [18:19:10]line Безнал.: 0.00 [18:19:10]line Место: АЗС № 65 "Партнер Нефть" [18:19:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:19:10]line СНО: Общий режим [18:19:10]line Чек 213 19.06.2024 18:19 [18:19:10]line Смена: 388 ФФД: 1.0 [18:19:10]line ЗНМ: 0300000198 [18:19:10]line РНМ: 0000000000092771 [18:19:10]line Версия ККМ: 001 [18:19:10]line ФМ: 0000000000875083 [18:19:10]line ФД: 111464 [18:19:10]line ФПД: 84505080064195 [18:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T181917&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111464&fm=84505080064195&tin=02508201610067®Number=0000000000092771&sum=50000 [18:19:11]OFD Sender: Processing packet 111464 [packets to send 38, broken 37] [18:19:11]ProducePacketName [18:19:11]name=ofd_packets/00111464 [18:19:11]OFD Sender: To server: pG, [18:19:11]CommunicateWithHost lk.salyk.kg:30040 [18:19:11]ConnectInit lk.salyk.kg [18:19:11]written 0, free lines is 4095 [18:19:11]Connected sock=10 [18:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2A D7 07 01 36 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 25 21 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 68 B3 01 00 35 04 06 00 4C DB 5F 47 68 C3 83 A4 3D F0 65 15 DC 5D [18:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 88 C1 47 00 56 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 35 30 38 33 10 04 04 00 68 B3 01 00 F4 03 04 00 88 B8 72 66 B6 04 01 00 00 32 50 A9 F2 95 8C 9E 74 [18:19:11]CommunicateWithHost err = 0 [18:19:11]CheckOFDResponse [18:19:11]1017 (14) - 77093643461234 [18:19:11]1041 (16) - 0000000000875083 [18:19:11]1040 (4) - 111464 [18:19:11]1012 (4) - 19.06.2024 10:52 [18:19:11]1206 (1) - 0 [18:19:11]OFD Sender: Remove packet 111464 [18:19:11]ProducePacketName [18:19:11]name=ofd_packets/00111464 [18:19:11]NVStorageDeleteData [18:19:11]Write to MH i2c: 01 00 00 46 27 6D [18:19:11]Write i2c OK [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: 01 [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: 01 07 00 [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: 01 07 00 46 27 00 00 00 00 00 D9 0C 59 [18:19:11]RasterBufferAndPrint [18:19:11]line [18:19:11]line [18:19:11]line [18:19:11]line [18:19:11]line [18:19:11]written 0, free lines is 3296 [18:19:11]MH_Cut [18:19:11]Write to MH i2c: D1 01 00 4D 27 01 46 [18:19:11]Write i2c OK [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: D1 [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: D1 01 00 [18:19:11]MH_I2C_Read... [18:19:11]Read from MH i2c: D1 01 00 4D 27 00 45 [18:19:11]Write to MH i2c: 01 00 00 4E 27 75 [18:19:11]Write i2c OK [18:19:11]MH_I2C_Read... [18:19:12]OFD Sender: No OFD packet to send [18:19:12]*** Cut start [18:19:12]*** Partial cut [18:19:12]*** CUTSNS_PIN = 1 [18:19:12]*** CUTSNS_PIN = 0 [18:19:12]*** Brake cut motor [18:19:13]Read from MH i2c: 01 [18:19:13]MH_I2C_Read... [18:19:13]*** Stop cut motor [18:19:13]*** Cut end [18:19:13]Read from MH i2c: 01 07 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: 01 07 00 4E 27 00 00 00 00 00 FF 0F 8A [18:19:13]process_action close_receipt done [18:19:13]requested_data is exist [18:19:13]produce_requested_data [18:19:13]requested_item fm.sn is exist - process it [18:19:13]wFMCommunicate request_size=4 [18:19:13]MH_SAM_APDU [18:19:13]CAPDU: 80 11 00 00 [18:19:13]Write to MH i2c: E2 08 00 4F 27 80 11 00 00 00 00 00 00 F0 [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:13]Read from MH i2c: E2 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 17 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 17 00 4F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 42 [18:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:19:13]wFMCommunicate OK [18:19:13]requested_item fd.num is exist - process it [18:19:13]SAM_PROTO_GetFieldsCounters [18:19:13]wFMCommunicate request_size=4 [18:19:13]MH_SAM_APDU [18:19:13]CAPDU: 80 13 00 00 [18:19:13]Write to MH i2c: E2 08 00 50 27 80 13 00 00 00 00 00 00 F3 [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:13]Read from MH i2c: E2 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 62 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 62 00 50 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B3 01 00 0E 04 04 00 84 01 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 34 [18:19:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 68 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:13]wFMCommunicate OK [18:19:13]SAM_PROTO_GetFieldsCounters done [18:19:13]requested_item shift.num is exist - process it [18:19:13]requested_item shift.opened is exist - process it [18:19:13]req_shift_opened [18:19:13]FM_GetShiftState [18:19:13]SAM_PROTO_GetShiftState [18:19:13]wFMCommunicate request_size=4 [18:19:13]MH_SAM_APDU [18:19:13]CAPDU: 80 13 01 00 [18:19:13]Write to MH i2c: E2 08 00 51 27 80 13 01 00 00 00 00 00 F5 [18:19:13]Write i2c OK [18:19:13]MH_I2C_Read... [18:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:13]Read from MH i2c: E2 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 0E 00 [18:19:13]MH_I2C_Read... [18:19:13]Read from MH i2c: E2 0E 00 51 27 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3F [18:19:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:19:13]wFMCommunicate OK [18:19:13]SAM_PROTO_GetShiftState done [18:19:13]FM_GetShiftState done [18:19:13]req_shift_opened done [18:19:13]requested_item shift.open_date is exist - process it [18:19:13]req_shift_open_date [18:19:13]req_shift_open_date done [18:19:13]produce_requested_data done [18:19:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111464,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:19:13]process_action_free close_receipt [18:19:13]json_value_free [18:19:13]json_value_free done [18:19:13]process_json_proto returns [18:19:13]Send response to host [18:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111464,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:19:13]free response buf [18:19:13]execute_script done [18:19:13]execute_script returns [18:19:13]free content buf [18:19:13]Sock 7.Close socket [18:19:13]Sock 7.Thread stoped [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:45]accept exits with 9 [18:21:45]New connection [18:21:45]New thread 3067465060 created [18:21:45]Thread 3067321700 joined [18:21:45]Waiting for new connection... [18:21:45] Sock 9.Parse request [18:21:45]Sock 9.Check first char [18:21:45]Sock 9.First char is OK [18:21:45]request: POST /json_proto HTTP/1.0 [18:21:45]Method: POST [18:21:45]URL: /json_proto [18:21:45]Method is POST - this is cgi request [18:21:45]url: /json_proto [18:21:45]query_string will be loaded in cgi processing [18:21:45]execute_cgi json_proto POST (null) [18:21:45]execute_cgi path=json_proto method=POST [18:21:45]POST find Content-Length [18:21:45]Host: 172.17.59.68:8080 [18:21:45]Content-Length: 677 [18:21:45]Content-Type: application/json [18:21:45] [18:21:45]POST finish read [18:21:45]Found Content-Length = 677 [18:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:45]execute_script... [18:21: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)320048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:45]POST & json_proto [18:21:45]process_json_proto [18:21:45]json parsed OK: [18:21:45]protocol is kg_v1.0 [18:21:45]action value=close_receipt [18:21:45]process_action close_receipt [18:21:45]cmd_close_receipt [18:21:45]MH_GetDate [18:21:45]Write to MH i2c: F0 00 00 52 27 68 [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: F0 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: F0 09 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: F0 09 00 52 27 00 C2 21 73 66 BC EC 60 65 9A [18:21:45]GetLastDocTimeStamp 1718821157 [18:21:45]current date 1718821314 [18:21:45]FM_GetShiftState [18:21:45]SAM_PROTO_GetShiftState [18:21:45]wFMCommunicate request_size=4 [18:21:45]MH_SAM_APDU [18:21:45]CAPDU: 80 13 01 00 [18:21:45]Write to MH i2c: E2 08 00 53 27 80 13 01 00 00 00 00 00 F7 [18:21:45]Write i2c OK [18:21:45]MH_I2C_Read... [18:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:45]Read from MH i2c: E2 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 0E 00 [18:21:45]MH_I2C_Read... [18:21:45]Read from MH i2c: E2 0E 00 53 27 00 09 00 01 31 35 72 66 00 00 00 00 90 00 41 [18:21:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:21:45]wFMCommunicate OK [18:21:45]SAM_PROTO_GetShiftState done [18:21:45]FM_GetShiftState done [18:21:45]opened in 1718760753 [18:21:45]opened+sec_in_day 1718847153 [18:21:45]quantity*price = 50065 [18:21:45]sum+1 = 50067 [18:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 214 19.06.2024 18:21 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111465 ФПД: 256924088893701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T182154&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111465&fm=256924088893701&tin=02508201610067®Number=0000000000092771&sum=50000 [18:21:46]StoreToDocumentArchive [18:21:46]shift 388 fd 111465 [18:21:46]save to /storage/0388/doc_00111465 [18:21:46]save last doc name /storage/0388/doc_00111465 to /storage/kkm_last_doc_name [18:21:46]save OK [18:21:46]Clear old archive folders... [18:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:46]tlvbuf is 00F50180 [18:21:46]SAM_PROTO_ClearQueue [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 09 00 00 [18:21:46]Write to MH i2c: E2 08 00 60 27 80 09 00 00 00 00 00 00 F9 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 60 27 00 90 00 FB [18:21:46]RAPDU: 90 00 [18:21:46]wFMCommunicate OK [18:21:46]SAM_PROTO_ClearQueue done [18:21:46]KKMCreateOFDPacket [18:21:46]OFDProtocolAddRootSTLVToBuf [18:21:46]FM_MakeSignedData [18:21:46]FM_MakeSignedData [18:21:46]SAM_PROTO_SignData [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 0D 01 02 [18:21:46]Write to MH i2c: E2 08 00 61 27 80 0D 01 02 00 00 00 00 01 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 61 27 00 90 00 FC [18:21:46]RAPDU: 90 00 [18:21:46]wFMCommunicate OK [18:21:46]wFMCommunicate request_size=255 [18:21:46]MH_SAM_APDU [18:21: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 C2 21 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B3 01 00 35 04 06 00 E9 [18:21:46]Write to MH i2c: E2 02 01 62 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 C2 21 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B3 01 00 35 04 06 00 E9 00 00 D2 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 62 27 00 90 00 FD [18:21:47]RAPDU: 90 00 [18:21:47]wFMCommunicate OK [18:21:47]wFMCommunicate request_size=10 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 0D 02 02 05 AB CD 0D 81 05 [18:21:47]Write to MH i2c: E2 0D 00 63 27 80 0D 02 02 05 00 AB CD 0D 81 05 00 00 19 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 63 27 00 90 00 FE [18:21:47]RAPDU: 90 00 [18:21:47]wFMCommunicate OK [18:21:47]wFMCommunicate request_size=4 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 0D 03 02 [18:21:47]Write to MH i2c: E2 08 00 64 27 80 0D 03 02 00 00 00 00 06 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]OFD Sender: No OFD packet to send [18:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 0B 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 0B 00 64 27 00 38 AE D2 C5 D7 6E F3 68 90 00 24 [18:21:47]RAPDU: 38 AE D2 C5 D7 6E F3 68 90 00 [18:21:47]wFMCommunicate OK [18:21:47]SAM_PROTO_SignData done [18:21:47]FM_MakeSignedData done [18:21:47]CreateOFDProtocolMessage [18:21:47]wFMCommunicate request_size=4 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 11 00 00 [18:21:47]Write to MH i2c: E2 08 00 65 27 80 11 00 00 00 00 00 00 06 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 17 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 17 00 65 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 58 [18:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:21:47]wFMCommunicate OK [18:21:47]CreateOFDProtocolMessage done [18:21:47]OFDSenderStorePacket 111465 [18:21:47]StoreOFDPacket docnum=111465 [18:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C 5C 07 01 31 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 C2 21 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B3 01 00 35 04 06 00 E9 AB CD 0D 81 05 38 AE D2 C5 D7 6E F3 68 [18:21:47]CheckFolder [18:21:47]dirname=/storage/ofd_packets [18:21:47]CheckFolder done [18:21:47]ProducePacketName [18:21:47]name=ofd_packets/00111465 [18:21:47]NVStorageSaveData ofd_packets/00111465 [18:21:47]File name is /storage/ofd_packets/00111465 [18:21:47]Write 301 bytes [18:21:47]NVStorageSaveData done [18:21:47]OFDSenderStorePacket done [18:21:47]KKMCreateOFDPacket done [18:21:47]NVStorageSaveData kkm_last_timestamp [18:21:47]File name is /storage/kkm_last_timestamp [18:21:47]Write 4 bytes [18:21:47]NVStorageSaveData done [18:21:47]ExternCall_PrintAddStr [18:21:47]wPrintStart [18:21:47]Write to MH i2c: 01 00 00 66 27 8D [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: 01 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: 01 07 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: 01 07 00 66 27 00 00 00 00 00 FF 0F A2 [18:21:47]RasterBufferAndPrint [18:21:47]line Счет N : (1)320048 [18:21:47]line ИНН: 02508201610067 [18:21:47]line Контрольно-Кассовый Чек [18:21:47]line ПРОДАЖА [18:21:47]line ТРК (МРК, ГНК) : 11 [18:21:47]line Товар: 2710124130 [18:21:47]line Аи-92-К-5 [18:21:47]line 7.540 * 66.40 [18:21:47]line = 500.66 [18:21:47]line НДС 12% НСП 1% [18:21:47]line > о реализуемом товаре [18:21:47]line ОКРУГЛЕНИЕ: -0.66 [18:21:47]line ИТОГО: 500.00 [18:21:47]line Внесено: 500.00 [18:21:47]line СДАЧА: 0.00 [18:21:47]line НСП 1% : 4.43 [18:21:47]line НДС 12% : 53.17 [18:21:47]line Наличными: 500.00 [18:21:47]line Безнал.: 0.00 [18:21:47]line Место: АЗС № 65 "Партнер Нефть" [18:21:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:21:47]line СНО: Общий режим [18:21:47]line Чек 214 19.06.2024 18:21 [18:21:47]line Смена: 388 ФФД: 1.0 [18:21:47]line ЗНМ: 0300000198 [18:21:47]line РНМ: 0000000000092771 [18:21:47]line Версия ККМ: 001 [18:21:47]line ФМ: 0000000000875083 [18:21:47]line ФД: 111465 [18:21:47]line ФПД: 256924088893701 [18:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T182154&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111465&fm=256924088893701&tin=02508201610067®Number=0000000000092771&sum=50000 [18:21:47]OFD Sender: Processing packet 111465 [packets to send 38, broken 37] [18:21:47]ProducePacketName [18:21:47]name=ofd_packets/00111465 [18:21:47]OFD Sender: To server: pG, [18:21:47]CommunicateWithHost lk.salyk.kg:30040 [18:21:47]ConnectInit lk.salyk.kg [18:21:47]written 0, free lines is 4095 [18:21:47]Connected sock=10 [18: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 35 30 38 33 0F 01 00 00 1C 5C 07 01 31 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 C2 21 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 69 B3 01 00 35 04 06 00 E9 AB CD 0D 81 05 38 AE D2 C5 D7 6E F3 68 [18:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 51 4E 47 00 0D 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 35 30 38 33 10 04 04 00 69 B3 01 00 F4 03 04 00 24 B9 72 66 B6 04 01 00 00 AA BD 1B E4 E0 82 B4 03 [18:21:48]CommunicateWithHost err = 0 [18:21:48]CheckOFDResponse [18:21:48]1017 (14) - 77093643461234 [18:21:48]1041 (16) - 0000000000875083 [18:21:48]1040 (4) - 111465 [18:21:48]1012 (4) - 19.06.2024 10:55 [18:21:48]1206 (1) - 0 [18:21:48]OFD Sender: Remove packet 111465 [18:21:48]ProducePacketName [18:21:48]name=ofd_packets/00111465 [18:21:48]NVStorageDeleteData [18:21:48]Write to MH i2c: 01 00 00 91 27 B8 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 91 27 00 00 00 00 00 EB 0C B6 [18:21:48]RasterBufferAndPrint [18:21:48]line [18:21:48]line [18:21:48]line [18:21:48]line [18:21:48]line [18:21:48]written 0, free lines is 3313 [18:21:48]MH_Cut [18:21:48]Write to MH i2c: D1 01 00 98 27 01 91 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: D1 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: D1 01 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: D1 01 00 98 27 00 90 [18:21:48]Write to MH i2c: 01 00 00 99 27 C0 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]OFD Sender: No OFD packet to send [18:21:48]*** Cut start [18:21:48]*** Partial cut [18:21:48]*** CUTSNS_PIN = 1 [18:21:48]*** CUTSNS_PIN = 0 [18:21:49]*** Brake cut motor [18:21:49]Read from MH i2c: 01 [18:21:49]MH_I2C_Read... [18:21:49]*** Stop cut motor [18:21:49]*** Cut end [18:21:49]Read from MH i2c: 01 07 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: 01 07 00 99 27 00 00 00 00 00 FF 0F D5 [18:21:49]process_action close_receipt done [18:21:49]requested_data is exist [18:21:49]produce_requested_data [18:21:49]requested_item fm.sn is exist - process it [18:21:49]wFMCommunicate request_size=4 [18:21:49]MH_SAM_APDU [18:21:49]CAPDU: 80 11 00 00 [18:21:49]Write to MH i2c: E2 08 00 9A 27 80 11 00 00 00 00 00 00 3B [18:21:49]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:49]Read from MH i2c: E2 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 17 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 17 00 9A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [18:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:21:49]wFMCommunicate OK [18:21:49]requested_item fd.num is exist - process it [18:21:49]SAM_PROTO_GetFieldsCounters [18:21:49]wFMCommunicate request_size=4 [18:21:49]MH_SAM_APDU [18:21:49]CAPDU: 80 13 00 00 [18:21:49]Write to MH i2c: E2 08 00 9B 27 80 13 00 00 00 00 00 00 3E [18:21:49]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:49]Read from MH i2c: E2 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 62 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 62 00 9B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B3 01 00 0E 04 04 00 84 01 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 83 [18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:49]wFMCommunicate OK [18:21:49]SAM_PROTO_GetFieldsCounters done [18:21:49]requested_item shift.num is exist - process it [18:21:49]requested_item shift.opened is exist - process it [18:21:49]req_shift_opened [18:21:49]FM_GetShiftState [18:21:49]SAM_PROTO_GetShiftState [18:21:49]wFMCommunicate request_size=4 [18:21:49]MH_SAM_APDU [18:21:49]CAPDU: 80 13 01 00 [18:21:49]Write to MH i2c: E2 08 00 9C 27 80 13 01 00 00 00 00 00 40 [18:21:49]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:49]Read from MH i2c: E2 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 0E 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 0E 00 9C 27 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8A [18:21:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:21:49]wFMCommunicate OK [18:21:49]SAM_PROTO_GetShiftState done [18:21:49]FM_GetShiftState done [18:21:49]req_shift_opened done [18:21:49]requested_item shift.open_date is exist - process it [18:21:49]req_shift_open_date [18:21:49]req_shift_open_date done [18:21:49]produce_requested_data done [18:21:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111465,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:21:49]process_action_free close_receipt [18:21:49]json_value_free [18:21:49]json_value_free done [18:21:49]process_json_proto returns [18:21:49]Send response to host [18:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111465,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:21:49]free response buf [18:21:49]execute_script done [18:21:49]execute_script returns [18:21:49]free content buf [18:21:49]Sock 9.Close socket [18:21:49]Sock 9.Thread stoped [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:49]accept exits with 7 [18:22:49]New connection [18:22:49]New thread 3067321700 created [18:22:49]Thread 3067465060 joined [18:22:49]Waiting for new connection... [18:22:49] Sock 7.Parse request [18:22:49]Sock 7.Check first char [18:22:49]Sock 7.First char is OK [18:22:49]request: POST /json_proto HTTP/1.0 [18:22:49]Method: POST [18:22:49]URL: /json_proto [18:22:49]Method is POST - this is cgi request [18:22:49]url: /json_proto [18:22:49]query_string will be loaded in cgi processing [18:22:49]execute_cgi json_proto POST (null) [18:22:49]execute_cgi path=json_proto method=POST [18:22:49]POST find Content-Length [18:22:49]Host: 172.17.59.68:8080 [18:22:49]Content-Length: 1190 [18:22:49]Content-Type: application/json [18:22:49] [18:22:49]POST finish read [18:22:49]Found Content-Length = 1190 [18:22:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320049\u000A19.06.2024 16:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4101407\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:49]execute_script... [18:22:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320049\u000A19.06.2024 16:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4101407\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:49]POST & json_proto [18:22:49]process_json_proto [18:22:49]json parsed OK: [18:22:49]protocol is kg_v1.0 [18:22:49]action value=print_text [18:22:49]process_action print_text [18:22:49]cmd_print_text [18:22:49]ExternCall_PrintAddStr [18:22:49]wPrintStart [18:22:49]Write to MH i2c: 01 00 00 9D 27 C4 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 07 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 07 00 9D 27 00 00 00 00 00 FF 0F D9 [18:22:49]RasterBufferAndPrint [18:22:49]line *****ТОВАРНЫЙ ЧЕК***** [18:22:49]line АЗС 65 [18:22:49]line Партнер нефть [18:22:49]line 02508201610067 [18:22:49]line Кассир : Амантуров Р. [18:22:49]line Счет N : (1)320049 [18:22:49]line 19.06.2024 16:51 [18:22:49]line ПРОДАЖА [18:22:49]line ТРК (МРК, ГНК): 11 [18:22:49]line Вид ГСМ : 2710124130 [18:22:49]line Аи-92-К-5 [18:22:49]line 10.000 x 66.40 [18:22:49]line ИТОГ: 664.00 [18:22:49]line Тип оплаты: Талоны: Партнер нефть [18:22:49]line 4101407 [18:22:49]line ______________________ [18:22:49]line (подпись) [18:22:49]written 0, free lines is 4095 [18:22:49]Write to MH i2c: 01 00 00 B1 27 D8 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 07 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 07 00 B1 27 00 00 00 00 00 10 0E FD [18:22:49]RasterBufferAndPrint [18:22:49]line [18:22:49]line [18:22:49]line [18:22:49]line [18:22:49]line [18:22:49]written 0, free lines is 3602 [18:22:49]MH_Cut [18:22:49]Write to MH i2c: D1 01 00 B8 27 01 B1 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: D1 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: D1 01 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: D1 01 00 B8 27 00 B0 [18:22:49]Write to MH i2c: 01 00 00 B9 27 E0 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:50]*** Cut start [18:22:50]*** Partial cut [18:22:50]*** CUTSNS_PIN = 1 [18:22:50]*** CUTSNS_PIN = 0 [18:22:50]*** Brake cut motor [18:22:51]Read from MH i2c: 01 [18:22:51]MH_I2C_Read... [18:22:51]*** Stop cut motor [18:22:51]*** Cut end [18:22:51]Read from MH i2c: 01 07 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: 01 07 00 B9 27 00 00 00 00 00 FF 0F F5 [18:22:51]process_action print_text done [18:22:51]requested_data is exist [18:22:51]produce_requested_data [18:22:51]requested_item fm.sn is exist - process it [18:22:51]wFMCommunicate request_size=4 [18:22:51]MH_SAM_APDU [18:22:51]CAPDU: 80 11 00 00 [18:22:51]Write to MH i2c: E2 08 00 BA 27 80 11 00 00 00 00 00 00 5B [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:51]Read from MH i2c: E2 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 17 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 17 00 BA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AD [18:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:22:51]wFMCommunicate OK [18:22:51]requested_item fd.num is exist - process it [18:22:51]SAM_PROTO_GetFieldsCounters [18:22:51]wFMCommunicate request_size=4 [18:22:51]MH_SAM_APDU [18:22:51]CAPDU: 80 13 00 00 [18:22:51]Write to MH i2c: E2 08 00 BB 27 80 13 00 00 00 00 00 00 5E [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:51]Read from MH i2c: E2 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 62 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 62 00 BB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B3 01 00 0E 04 04 00 84 01 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 A3 [18:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 69 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:51]wFMCommunicate OK [18:22:51]SAM_PROTO_GetFieldsCounters done [18:22:51]requested_item shift.num is exist - process it [18:22:51]requested_item shift.opened is exist - process it [18:22:51]req_shift_opened [18:22:51]FM_GetShiftState [18:22:51]SAM_PROTO_GetShiftState [18:22:51]wFMCommunicate request_size=4 [18:22:51]MH_SAM_APDU [18:22:51]CAPDU: 80 13 01 00 [18:22:51]Write to MH i2c: E2 08 00 BC 27 80 13 01 00 00 00 00 00 60 [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:51]Read from MH i2c: E2 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 0E 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 0E 00 BC 27 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AA [18:22:51]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:22:51]wFMCommunicate OK [18:22:51]SAM_PROTO_GetShiftState done [18:22:51]FM_GetShiftState done [18:22:51]req_shift_opened done [18:22:51]requested_item shift.open_date is exist - process it [18:22:51]req_shift_open_date [18:22:51]req_shift_open_date done [18:22:51]produce_requested_data done [18:22:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111465,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:22:51]process_action_free print_text [18:22:51]json_value_free [18:22:51]json_value_free done [18:22:51]process_json_proto returns [18:22:51]Send response to host [18:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111465,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:22:51]free response buf [18:22:51]execute_script done [18:22:51]execute_script returns [18:22:51]free content buf [18:22:51]Sock 7.Close socket [18:22:51]Sock 7.Thread stoped [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:14]OFD Sender: No OFD packet to send [18:30:19]OFD Sender: No OFD packet to send [18:30:24]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:31]accept exits with 9 [18:30:31]New connection [18:30:31]New thread 3067465060 created [18:30:31]Thread 3067321700 joined [18:30:31]Waiting for new connection... [18:30:31] Sock 9.Parse request [18:30:31]Sock 9.Check first char [18:30:31]Sock 9.First char is OK [18:30:31]request: POST /json_proto HTTP/1.0 [18:30:31]Method: POST [18:30:31]URL: /json_proto [18:30:31]Method is POST - this is cgi request [18:30:31]url: /json_proto [18:30:31]query_string will be loaded in cgi processing [18:30:31]execute_cgi json_proto POST (null) [18:30:31]execute_cgi path=json_proto method=POST [18:30:31]POST find Content-Length [18:30:31]Host: 172.17.59.68:8080 [18:30:31]Content-Length: 682 [18:30:31]Content-Type: application/json [18:30:31] [18:30:31]POST finish read [18:30:31]Found Content-Length = 682 [18:30:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [18:30:31]execute_script... [18:30: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)320050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [18:30:31]POST & json_proto [18:30:31]process_json_proto [18:30:31]json parsed OK: [18:30:31]protocol is kg_v1.0 [18:30:31]action value=close_receipt [18:30:31]process_action close_receipt [18:30:31]cmd_close_receipt [18:30:31]MH_GetDate [18:30:31]Write to MH i2c: F0 00 00 BD 27 D3 [18:30:31]Write i2c OK [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: F0 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: F0 09 00 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: F0 09 00 BD 27 00 D0 23 73 66 BC EC 60 65 15 [18:30:31]GetLastDocTimeStamp 1718821314 [18:30:31]current date 1718821840 [18:30:31]FM_GetShiftState [18:30:31]SAM_PROTO_GetShiftState [18:30:31]wFMCommunicate request_size=4 [18:30:31]MH_SAM_APDU [18:30:31]CAPDU: 80 13 01 00 [18:30:31]Write to MH i2c: E2 08 00 BE 27 80 13 01 00 00 00 00 00 62 [18:30:31]Write i2c OK [18:30:31]MH_I2C_Read... [18:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:31]Read from MH i2c: E2 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: E2 0E 00 [18:30:31]MH_I2C_Read... [18:30:31]Read from MH i2c: E2 0E 00 BE 27 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AC [18:30:31]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:30:31]wFMCommunicate OK [18:30:31]SAM_PROTO_GetShiftState done [18:30:31]FM_GetShiftState done [18:30:31]opened in 1718760753 [18:30:31]opened+sec_in_day 1718847153 [18:30:31]quantity*price = 200063 [18:30:31]sum+1 = 200064 [18:30:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 215 19.06.2024 18:30 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111466 ФПД: 14552140542901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111466&fm=14552140542901&tin=02508201610067®Number=0000000000092771&sum=200000 [18:30:33]StoreToDocumentArchive [18:30:33]shift 388 fd 111466 [18:30:33]save to /storage/0388/doc_00111466 [18:30:33]save last doc name /storage/0388/doc_00111466 to /storage/kkm_last_doc_name [18:30:33]save OK [18:30:33]Clear old archive folders... [18:30:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:33]tlvbuf is 00F3BFA0 [18:30:33]SAM_PROTO_ClearQueue [18:30:33]wFMCommunicate request_size=4 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 09 00 00 [18:30:33]Write to MH i2c: E2 08 00 CB 27 80 09 00 00 00 00 00 00 64 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 CB 27 00 90 00 66 [18:30:33]RAPDU: 90 00 [18:30:33]wFMCommunicate OK [18:30:33]SAM_PROTO_ClearQueue done [18:30:33]KKMCreateOFDPacket [18:30:33]OFDProtocolAddRootSTLVToBuf [18:30:33]FM_MakeSignedData [18:30:33]FM_MakeSignedData [18:30:33]SAM_PROTO_SignData [18:30:33]wFMCommunicate request_size=4 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 0D 01 02 [18:30:33]Write to MH i2c: E2 08 00 CC 27 80 0D 01 02 00 00 00 00 6C [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [18:30:33]RAPDU: 90 00 [18:30:33]wFMCommunicate OK [18:30:33]wFMCommunicate request_size=255 [18:30:33]MH_SAM_APDU [18: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 D7 00 00 00 F4 03 04 00 D0 23 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B3 01 00 35 04 06 00 0D [18:30:33]Write to MH i2c: E2 02 01 CD 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 D7 00 00 00 F4 03 04 00 D0 23 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B3 01 00 35 04 06 00 0D 00 00 68 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 CD 27 00 90 00 68 [18:30:33]RAPDU: 90 00 [18:30:33]wFMCommunicate OK [18:30:33]wFMCommunicate request_size=10 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 0D 02 02 05 3C 2F 2A F3 B5 [18:30:33]Write to MH i2c: E2 0D 00 CE 27 80 0D 02 02 05 00 3C 2F 2A F3 B5 00 00 B6 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 03 00 CE 27 00 90 00 69 [18:30:33]RAPDU: 90 00 [18:30:33]wFMCommunicate OK [18:30:33]wFMCommunicate request_size=4 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 0D 03 02 [18:30:33]Write to MH i2c: E2 08 00 CF 27 80 0D 03 02 00 00 00 00 71 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 0B 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 0B 00 CF 27 00 34 0D 68 4D F6 AB AD 94 90 00 4A [18:30:33]RAPDU: 34 0D 68 4D F6 AB AD 94 90 00 [18:30:33]wFMCommunicate OK [18:30:33]SAM_PROTO_SignData done [18:30:33]FM_MakeSignedData done [18:30:33]CreateOFDProtocolMessage [18:30:33]wFMCommunicate request_size=4 [18:30:33]MH_SAM_APDU [18:30:33]CAPDU: 80 11 00 00 [18:30:33]Write to MH i2c: E2 08 00 D0 27 80 11 00 00 00 00 00 00 71 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:33]Read from MH i2c: E2 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 17 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: E2 17 00 D0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C3 [18:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:30:33]wFMCommunicate OK [18:30:33]CreateOFDProtocolMessage done [18:30:33]OFDSenderStorePacket 111466 [18:30:33]StoreOFDPacket docnum=111466 [18:30:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5C F7 07 01 7E F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 D7 00 00 00 F4 03 04 00 D0 23 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B3 01 00 35 04 06 00 0D 3C 2F 2A F3 B5 34 0D 68 4D F6 AB AD 94 [18:30:33]CheckFolder [18:30:33]dirname=/storage/ofd_packets [18:30:33]CheckFolder done [18:30:33]ProducePacketName [18:30:33]name=ofd_packets/00111466 [18:30:33]NVStorageSaveData ofd_packets/00111466 [18:30:33]File name is /storage/ofd_packets/00111466 [18:30:33]Write 301 bytes [18:30:33]NVStorageSaveData done [18:30:33]OFDSenderStorePacket done [18:30:33]KKMCreateOFDPacket done [18:30:33]NVStorageSaveData kkm_last_timestamp [18:30:33]File name is /storage/kkm_last_timestamp [18:30:33]Write 4 bytes [18:30:33]NVStorageSaveData done [18:30:33]ExternCall_PrintAddStr [18:30:33]wPrintStart [18:30:33]Write to MH i2c: 01 00 00 D1 27 F8 [18:30:33]Write i2c OK [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 [18:30:33]MH_I2C_Read... [18:30:33]Read from MH i2c: 01 07 00 D1 27 00 00 00 00 00 FF 0F 0D [18:30:33]RasterBufferAndPrint [18:30:33]line Счет N : (1)320050 [18:30:33]line ИНН: 02508201610067 [18:30:33]line Контрольно-Кассовый Чек [18:30:33]line ПРОДАЖА [18:30:33]line ТРК (МРК, ГНК) : 11 [18:30:33]line Товар: 2710124130 [18:30:33]line Аи-92-К-5 [18:30:33]line 30.130 * 66.40 [18:30:33]line = 2000.63 [18:30:33]line НДС 12% НСП 1% [18:30:33]line > о реализуемом товаре [18:30:33]line ОКРУГЛЕНИЕ: -0.63 [18:30:33]line ИТОГО: 2000.00 [18:30:33]line Внесено: 2000.00 [18:30:33]line СДАЧА: 0.00 [18:30:33]line НСП 1% : 17.70 [18:30:33]line НДС 12% : 212.46 [18:30:33]line Наличными: 2000.00 [18:30:33]line Безнал.: 0.00 [18:30:33]line Место: АЗС № 65 "Партнер Нефть" [18:30:33]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:30:33]line СНО: Общий режим [18:30:33]line Чек 215 19.06.2024 18:30 [18:30:33]line Смена: 388 ФФД: 1.0 [18:30:33]line ЗНМ: 0300000198 [18:30:33]line РНМ: 0000000000092771 [18:30:33]line Версия ККМ: 001 [18:30:33]line ФМ: 0000000000875083 [18:30:33]line ФД: 111466 [18:30:33]line ФПД: 14552140542901 [18:30:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183040&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111466&fm=14552140542901&tin=02508201610067®Number=0000000000092771&sum=200000 [18:30:33]OFD Sender: Processing packet 111466 [packets to send 38, broken 37] [18:30:33]ProducePacketName [18:30:33]name=ofd_packets/00111466 [18:30:33]OFD Sender: To server: pG, [18:30:33]CommunicateWithHost lk.salyk.kg:30040 [18:30:33]ConnectInit lk.salyk.kg [18:30:33]written 0, free lines is 4095 [18:30:34]Connected sock=5 [18:30:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 5C F7 07 01 7E F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 D7 00 00 00 F4 03 04 00 D0 23 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6A B3 01 00 35 04 06 00 0D 3C 2F 2A F3 B5 34 0D 68 4D F6 AB AD 94 [18:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6C D6 47 00 94 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 35 30 38 33 10 04 04 00 6A B3 01 00 F4 03 04 00 32 BB 72 66 B6 04 01 00 00 9F F2 B3 85 5D 90 48 39 [18:30:34]CommunicateWithHost err = 0 [18:30:34]CheckOFDResponse [18:30:34]1017 (14) - 77093643461234 [18:30:34]1041 (16) - 0000000000875083 [18:30:34]1040 (4) - 111466 [18:30:34]1012 (4) - 19.06.2024 11:04 [18:30:34]1206 (1) - 0 [18:30:34]OFD Sender: Remove packet 111466 [18:30:34]ProducePacketName [18:30:34]name=ofd_packets/00111466 [18:30:34]NVStorageDeleteData [18:30:34]Write to MH i2c: 01 00 00 FC 27 23 [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: 01 07 00 FC 27 00 00 00 00 00 E4 0C 1A [18:30:34]RasterBufferAndPrint [18:30:34]line [18:30:34]line [18:30:34]line [18:30:34]line [18:30:34]line [18:30:34]written 0, free lines is 3306 [18:30:34]MH_Cut [18:30:34]Write to MH i2c: D1 01 00 03 28 01 FD [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: D1 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: D1 01 00 [18:30:34]MH_I2C_Read... [18:30:34]Read from MH i2c: D1 01 00 03 28 00 FC [18:30:34]Write to MH i2c: 01 00 00 04 28 2C [18:30:34]Write i2c OK [18:30:34]MH_I2C_Read... [18:30:34]OFD Sender: No OFD packet to send [18:30:35]*** Cut start [18:30:35]*** Partial cut [18:30:35]*** CUTSNS_PIN = 1 [18:30:35]*** CUTSNS_PIN = 0 [18:30:35]*** Brake cut motor [18:30:35]Read from MH i2c: 01 [18:30:35]MH_I2C_Read... [18:30:35]*** Stop cut motor [18:30:35]*** Cut end [18:30:35]Read from MH i2c: 01 07 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: 01 07 00 04 28 00 00 00 00 00 FF 0F 41 [18:30:35]process_action close_receipt done [18:30:35]requested_data is exist [18:30:35]produce_requested_data [18:30:35]requested_item fm.sn is exist - process it [18:30:35]wFMCommunicate request_size=4 [18:30:35]MH_SAM_APDU [18:30:35]CAPDU: 80 11 00 00 [18:30:35]Write to MH i2c: E2 08 00 05 28 80 11 00 00 00 00 00 00 A7 [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:35]Read from MH i2c: E2 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 17 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 17 00 05 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F9 [18:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:30:35]wFMCommunicate OK [18:30:35]requested_item fd.num is exist - process it [18:30:35]SAM_PROTO_GetFieldsCounters [18:30:35]wFMCommunicate request_size=4 [18:30:35]MH_SAM_APDU [18:30:35]CAPDU: 80 13 00 00 [18:30:35]Write to MH i2c: E2 08 00 06 28 80 13 00 00 00 00 00 00 AA [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:35]Read from MH i2c: E2 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 62 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 62 00 06 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B3 01 00 0E 04 04 00 84 01 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 F3 [18:30: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:35]wFMCommunicate OK [18:30:35]SAM_PROTO_GetFieldsCounters done [18:30:35]requested_item shift.num is exist - process it [18:30:35]requested_item shift.opened is exist - process it [18:30:35]req_shift_opened [18:30:35]FM_GetShiftState [18:30:35]SAM_PROTO_GetShiftState [18:30:35]wFMCommunicate request_size=4 [18:30:35]MH_SAM_APDU [18:30:35]CAPDU: 80 13 01 00 [18:30:35]Write to MH i2c: E2 08 00 07 28 80 13 01 00 00 00 00 00 AC [18:30:35]Write i2c OK [18:30:35]MH_I2C_Read... [18:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:35]Read from MH i2c: E2 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 0E 00 [18:30:35]MH_I2C_Read... [18:30:35]Read from MH i2c: E2 0E 00 07 28 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F6 [18:30:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:30:35]wFMCommunicate OK [18:30:35]SAM_PROTO_GetShiftState done [18:30:35]FM_GetShiftState done [18:30:35]req_shift_opened done [18:30:35]requested_item shift.open_date is exist - process it [18:30:35]req_shift_open_date [18:30:35]req_shift_open_date done [18:30:35]produce_requested_data done [18:30:35]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111466,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:30:35]process_action_free close_receipt [18:30:35]json_value_free [18:30:35]json_value_free done [18:30:35]process_json_proto returns [18:30:35]Send response to host [18:30:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111466,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:30:35]free response buf [18:30:35]execute_script done [18:30:35]execute_script returns [18:30:35]free content buf [18:30:35]Sock 9.Close socket [18:30:35]Sock 9.Thread stoped [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:43]accept exits with 7 [18:32:43]New connection [18:32:43]New thread 3067321700 created [18:32:43]Thread 3067465060 joined [18:32:43]Waiting for new connection... [18:32:43] Sock 7.Parse request [18:32:43]Sock 7.Check first char [18:32:43]Sock 7.First char is OK [18:32:43]request: POST /json_proto HTTP/1.0 [18:32:43]Method: POST [18:32:43]URL: /json_proto [18:32:43]Method is POST - this is cgi request [18:32:43]url: /json_proto [18:32:43]query_string will be loaded in cgi processing [18:32:43]execute_cgi json_proto POST (null) [18:32:43]execute_cgi path=json_proto method=POST [18:32:43]POST find Content-Length [18:32:43]Host: 172.17.59.68:8080 [18:32:43]Content-Length: 682 [18:32:43]Content-Type: application/json [18:32:43] [18:32:43]POST finish read [18:32:43]Found Content-Length = 682 [18:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "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" ] } } [18:32:43]execute_script... [18:32: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)320051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 18.080, "sum" : 1200.51, "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" ] } } [18:32:43]POST & json_proto [18:32:43]process_json_proto [18:32:43]json parsed OK: [18:32:43]protocol is kg_v1.0 [18:32:43]action value=close_receipt [18:32:43]process_action close_receipt [18:32:43]cmd_close_receipt [18:32:43]MH_GetDate [18:32:43]Write to MH i2c: F0 00 00 08 28 1F [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 09 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: F0 09 00 08 28 00 54 24 73 66 BC EC 60 65 E6 [18:32:43]GetLastDocTimeStamp 1718821840 [18:32:43]current date 1718821972 [18:32:43]FM_GetShiftState [18:32:43]SAM_PROTO_GetShiftState [18:32:43]wFMCommunicate request_size=4 [18:32:43]MH_SAM_APDU [18:32:43]CAPDU: 80 13 01 00 [18:32:43]Write to MH i2c: E2 08 00 09 28 80 13 01 00 00 00 00 00 AE [18:32:43]Write i2c OK [18:32:43]MH_I2C_Read... [18:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:43]Read from MH i2c: E2 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 0E 00 [18:32:43]MH_I2C_Read... [18:32:43]Read from MH i2c: E2 0E 00 09 28 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F8 [18:32:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:32:43]wFMCommunicate OK [18:32:43]SAM_PROTO_GetShiftState done [18:32:43]FM_GetShiftState done [18:32:43]opened in 1718760753 [18:32:43]opened+sec_in_day 1718847153 [18:32:43]quantity*price = 120051 [18:32:43]sum+1 = 120052 [18:32:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 216 19.06.2024 18:32 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111467 ФПД: 244730758403474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183252&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111467&fm=244730758403474&tin=02508201610067®Number=0000000000092771&sum=120000 [18:32:45]StoreToDocumentArchive [18:32:45]shift 388 fd 111467 [18:32:45]save to /storage/0388/doc_00111467 [18:32:45]save last doc name /storage/0388/doc_00111467 to /storage/kkm_last_doc_name [18:32:45]save OK [18:32:45]Clear old archive folders... [18:32:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:45]tlvbuf is 00F2FC90 [18:32:45]SAM_PROTO_ClearQueue [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 09 00 00 [18:32:45]Write to MH i2c: E2 08 00 16 28 80 09 00 00 00 00 00 00 B0 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 16 28 00 90 00 B2 [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]SAM_PROTO_ClearQueue done [18:32:45]KKMCreateOFDPacket [18:32:45]OFDProtocolAddRootSTLVToBuf [18:32:45]FM_MakeSignedData [18:32:45]FM_MakeSignedData [18:32:45]SAM_PROTO_SignData [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 0D 01 02 [18:32:45]Write to MH i2c: E2 08 00 17 28 80 0D 01 02 00 00 00 00 B8 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 17 28 00 90 00 B3 [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]wFMCommunicate request_size=255 [18:32:45]MH_SAM_APDU [18:32: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 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 D8 00 00 00 F4 03 04 00 54 24 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B3 01 00 35 04 06 00 DE [18:32:45]Write to MH i2c: E2 02 01 18 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 D8 00 00 00 F4 03 04 00 54 24 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B3 01 00 35 04 06 00 DE 00 00 76 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 18 28 00 90 00 B4 [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]wFMCommunicate request_size=10 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 0D 02 02 05 94 D1 EB 95 92 [18:32:45]Write to MH i2c: E2 0D 00 19 28 80 0D 02 02 05 00 94 D1 EB 95 92 00 00 3C [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 03 00 19 28 00 90 00 B5 [18:32:45]RAPDU: 90 00 [18:32:45]wFMCommunicate OK [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 0D 03 02 [18:32:45]Write to MH i2c: E2 08 00 1A 28 80 0D 03 02 00 00 00 00 BD [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 0B 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 0B 00 1A 28 00 D2 93 F3 E3 8F C3 87 FF 90 00 D1 [18:32:45]RAPDU: D2 93 F3 E3 8F C3 87 FF 90 00 [18:32:45]wFMCommunicate OK [18:32:45]SAM_PROTO_SignData done [18:32:45]FM_MakeSignedData done [18:32:45]CreateOFDProtocolMessage [18:32:45]wFMCommunicate request_size=4 [18:32:45]MH_SAM_APDU [18:32:45]CAPDU: 80 11 00 00 [18:32:45]Write to MH i2c: E2 08 00 1B 28 80 11 00 00 00 00 00 00 BD [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:45]Read from MH i2c: E2 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 17 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: E2 17 00 1B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0F [18:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:32:45]wFMCommunicate OK [18:32:45]CreateOFDProtocolMessage done [18:32:45]OFDSenderStorePacket 111467 [18:32:45]StoreOFDPacket docnum=111467 [18:32:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 98 48 07 01 FB 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 D8 00 00 00 F4 03 04 00 54 24 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B3 01 00 35 04 06 00 DE 94 D1 EB 95 92 D2 93 F3 E3 8F C3 87 FF [18:32:45]CheckFolder [18:32:45]dirname=/storage/ofd_packets [18:32:45]CheckFolder done [18:32:45]ProducePacketName [18:32:45]name=ofd_packets/00111467 [18:32:45]NVStorageSaveData ofd_packets/00111467 [18:32:45]File name is /storage/ofd_packets/00111467 [18:32:45]Write 301 bytes [18:32:45]NVStorageSaveData done [18:32:45]OFDSenderStorePacket done [18:32:45]KKMCreateOFDPacket done [18:32:45]NVStorageSaveData kkm_last_timestamp [18:32:45]File name is /storage/kkm_last_timestamp [18:32:45]Write 4 bytes [18:32:45]NVStorageSaveData done [18:32:45]ExternCall_PrintAddStr [18:32:45]wPrintStart [18:32:45]Write to MH i2c: 01 00 00 1C 28 44 [18:32:45]Write i2c OK [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 [18:32:45]MH_I2C_Read... [18:32:45]Read from MH i2c: 01 07 00 1C 28 00 00 00 00 00 FF 0F 59 [18:32:45]RasterBufferAndPrint [18:32:45]line Счет N : (1)320051 [18:32:45]line ИНН: 02508201610067 [18:32:45]line Контрольно-Кассовый Чек [18:32:45]line ПРОДАЖА [18:32:45]line ТРК (МРК, ГНК) : 11 [18:32:45]line Товар: 2710124130 [18:32:45]line Аи-92-К-5 [18:32:45]line 18.080 * 66.40 [18:32:45]line = 1200.51 [18:32:45]line НДС 12% НСП 1% [18:32:45]line > о реализуемом товаре [18:32:45]line ОКРУГЛЕНИЕ: -0.51 [18:32:45]line ИТОГО: 1200.00 [18:32:45]line Внесено: 1200.00 [18:32:45]line СДАЧА: 0.00 [18:32:45]line НСП 1% : 10.62 [18:32:45]line НДС 12% : 127.49 [18:32:45]line Наличными: 1200.00 [18:32:45]line Безнал.: 0.00 [18:32:45]line Место: АЗС № 65 "Партнер Нефть" [18:32:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:32:45]line СНО: Общий режим [18:32:45]line Чек 216 19.06.2024 18:32 [18:32:45]line Смена: 388 ФФД: 1.0 [18:32:45]line ЗНМ: 0300000198 [18:32:45]line РНМ: 0000000000092771 [18:32:45]line Версия ККМ: 001 [18:32:45]line ФМ: 0000000000875083 [18:32:45]line ФД: 111467 [18:32:45]line ФПД: 244730758403474 [18:32:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T183252&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111467&fm=244730758403474&tin=02508201610067®Number=0000000000092771&sum=120000 [18:32:45]OFD Sender: Processing packet 111467 [packets to send 38, broken 37] [18:32:45]ProducePacketName [18:32:45]name=ofd_packets/00111467 [18:32:45]OFD Sender: To server: pG, [18:32:45]CommunicateWithHost lk.salyk.kg:30040 [18:32:45]ConnectInit lk.salyk.kg [18:32:45]written 0, free lines is 4095 [18:32:46]Connected sock=10 [18:32:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 98 48 07 01 FB 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 46 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 CD 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 D8 00 00 00 F4 03 04 00 54 24 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B3 01 00 35 04 06 00 DE 94 D1 EB 95 92 D2 93 F3 E3 8F C3 87 FF [18:32:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 28 94 47 00 5D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6B B3 01 00 F4 03 04 00 B6 BB 72 66 B6 04 01 00 00 FD FD 4E F2 F7 74 9C 57 [18:32:46]CommunicateWithHost err = 0 [18:32:46]CheckOFDResponse [18:32:46]1017 (14) - 77093643461234 [18:32:46]1041 (16) - 0000000000875083 [18:32:46]1040 (4) - 111467 [18:32:46]1012 (4) - 19.06.2024 11:06 [18:32:46]1206 (1) - 0 [18:32:46]OFD Sender: Remove packet 111467 [18:32:46]ProducePacketName [18:32:46]name=ofd_packets/00111467 [18:32:46]NVStorageDeleteData [18:32:46]Write to MH i2c: 01 00 00 47 28 6F [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: 01 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: 01 07 00 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: 01 07 00 47 28 00 00 00 00 00 F9 0C 7B [18:32:46]RasterBufferAndPrint [18:32:46]line [18:32:46]line [18:32:46]line [18:32:46]line [18:32:46]line [18:32:46]written 0, free lines is 3327 [18:32:46]MH_Cut [18:32:46]Write to MH i2c: D1 01 00 4E 28 01 48 [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: D1 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: D1 01 00 [18:32:46]MH_I2C_Read... [18:32:46]Read from MH i2c: D1 01 00 4E 28 00 47 [18:32:46]Write to MH i2c: 01 00 00 4F 28 77 [18:32:46]Write i2c OK [18:32:46]MH_I2C_Read... [18:32:46]OFD Sender: No OFD packet to send [18:32:47]*** Cut start [18:32:47]*** Partial cut [18:32:47]*** CUTSNS_PIN = 1 [18:32:47]*** CUTSNS_PIN = 0 [18:32:47]*** Brake cut motor [18:32:47]Read from MH i2c: 01 [18:32:47]MH_I2C_Read... [18:32:47]*** Stop cut motor [18:32:47]*** Cut end [18:32:47]Read from MH i2c: 01 07 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: 01 07 00 4F 28 00 00 00 00 00 FF 0F 8C [18:32:47]process_action close_receipt done [18:32:47]requested_data is exist [18:32:47]produce_requested_data [18:32:47]requested_item fm.sn is exist - process it [18:32:47]wFMCommunicate request_size=4 [18:32:47]MH_SAM_APDU [18:32:47]CAPDU: 80 11 00 00 [18:32:47]Write to MH i2c: E2 08 00 50 28 80 11 00 00 00 00 00 00 F2 [18:32:47]Write i2c OK [18:32:47]MH_I2C_Read... [18:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:47]Read from MH i2c: E2 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 17 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 17 00 50 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 44 [18:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:32:47]wFMCommunicate OK [18:32:47]requested_item fd.num is exist - process it [18:32:47]SAM_PROTO_GetFieldsCounters [18:32:47]wFMCommunicate request_size=4 [18:32:47]MH_SAM_APDU [18:32:47]CAPDU: 80 13 00 00 [18:32:47]Write to MH i2c: E2 08 00 51 28 80 13 00 00 00 00 00 00 F5 [18:32:47]Write i2c OK [18:32:47]MH_I2C_Read... [18:32:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:47]Read from MH i2c: E2 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 62 00 [18:32:47]MH_I2C_Read... [18:32:47]Read from MH i2c: E2 62 00 51 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B3 01 00 0E 04 04 00 84 01 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 42 [18:32: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:47]wFMCommunicate OK [18:32:47]SAM_PROTO_GetFieldsCounters done [18:32:47]requested_item shift.num is exist - process it [18:32:47]requested_item shift.opened is exist - process it [18:32:47]req_shift_opened [18:32:47]FM_GetShiftState [18:32:47]SAM_PROTO_GetShiftState [18:32:47]wFMCommunicate request_size=4 [18:32:47]MH_SAM_APDU [18:32:47]CAPDU: 80 13 01 00 [18:32:47]Write to MH i2c: E2 08 00 52 28 80 13 01 00 00 00 00 00 F7 [18:32:47]Write i2c OK [18:32:47]MH_I2C_Read... [18:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:48]Read from MH i2c: E2 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 0E 00 [18:32:48]MH_I2C_Read... [18:32:48]Read from MH i2c: E2 0E 00 52 28 00 09 00 01 31 35 72 66 00 00 00 00 90 00 41 [18:32:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:32:48]wFMCommunicate OK [18:32:48]SAM_PROTO_GetShiftState done [18:32:48]FM_GetShiftState done [18:32:48]req_shift_opened done [18:32:48]requested_item shift.open_date is exist - process it [18:32:48]req_shift_open_date [18:32:48]req_shift_open_date done [18:32:48]produce_requested_data done [18:32:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111467,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:32:48]process_action_free close_receipt [18:32:48]json_value_free [18:32:48]json_value_free done [18:32:48]process_json_proto returns [18:32:48]Send response to host [18:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111467,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:32:48]free response buf [18:32:48]execute_script done [18:32:48]execute_script returns [18:32:48]free content buf [18:32:48]Sock 7.Close socket [18:32:48]Sock 7.Thread stoped [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:17]accept exits with 9 [18:35:17]New connection [18:35:17]New thread 3067465060 created [18:35:17]Thread 3067321700 joined [18:35:17]Waiting for new connection... [18:35:17] Sock 9.Parse request [18:35:17]Sock 9.Check first char [18:35:17]Sock 9.First char is OK [18:35:17]request: POST /json_proto HTTP/1.0 [18:35:17]Method: POST [18:35:17]URL: /json_proto [18:35:17]Method is POST - this is cgi request [18:35:17]url: /json_proto [18:35:17]query_string will be loaded in cgi processing [18:35:17]execute_cgi json_proto POST (null) [18:35:17]execute_cgi path=json_proto method=POST [18:35:17]POST find Content-Length [18:35:17]Host: 172.17.59.68:8080 [18:35:17]Content-Length: 1200 [18:35:17]Content-Type: application/json [18:35:17] [18:35:17]POST finish read [18:35:17]Found Content-Length = 1200 [18:35:17]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320052\u000A19.06.2024 17:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:17]execute_script... [18:35:17]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320052\u000A19.06.2024 17:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74814\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:17]POST & json_proto [18:35:17]process_json_proto [18:35:17]json parsed OK: [18:35:17]protocol is kg_v1.0 [18:35:17]action value=print_text [18:35:17]process_action print_text [18:35:17]cmd_print_text [18:35:17]ExternCall_PrintAddStr [18:35:17]wPrintStart [18:35:17]Write to MH i2c: 01 00 00 53 28 7B [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: 01 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: 01 07 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: 01 07 00 53 28 00 00 00 00 00 FF 0F 90 [18:35:17]RasterBufferAndPrint [18:35:17]line *****ТОВАРНЫЙ ЧЕК***** [18:35:17]line АЗС 65 [18:35:17]line Партнер нефть [18:35:17]line 02508201610067 [18:35:17]line Кассир : Амантуров Р. [18:35:17]line Счет N : (1)320052 [18:35:17]line 19.06.2024 17:03 [18:35:17]line ПРОДАЖА [18:35:17]line ТРК (МРК, ГНК): 11 [18:35:17]line Вид ГСМ : 2710124130 [18:35:17]line Аи-92-К-5 [18:35:17]line 10.000 x 66.40 [18:35:17]line ИТОГ: 664.00 [18:35:17]line Тип оплаты: Талоны: Топливная Карта [18:35:17]line 74814 [18:35:17]line ______________________ [18:35:17]line (подпись) [18:35:17]written 0, free lines is 4095 [18:35:18]Write to MH i2c: 01 00 00 67 28 8F [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 07 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 07 00 67 28 00 00 00 00 00 11 0E B5 [18:35:18]RasterBufferAndPrint [18:35:18]line [18:35:18]line [18:35:18]line [18:35:18]line [18:35:18]line [18:35:18]written 0, free lines is 3603 [18:35:18]MH_Cut [18:35:18]Write to MH i2c: D1 01 00 6E 28 01 68 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: D1 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: D1 01 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: D1 01 00 6E 28 00 67 [18:35:18]Write to MH i2c: 01 00 00 6F 28 97 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]*** Cut start [18:35:18]*** Partial cut [18:35:18]*** CUTSNS_PIN = 1 [18:35:18]*** CUTSNS_PIN = 0 [18:35:18]*** Brake cut motor [18:35:19]Read from MH i2c: 01 [18:35:19]MH_I2C_Read... [18:35:19]*** Stop cut motor [18:35:19]*** Cut end [18:35:19]Read from MH i2c: 01 07 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: 01 07 00 6F 28 00 00 00 00 00 FF 0F AC [18:35:19]process_action print_text done [18:35:19]requested_data is exist [18:35:19]produce_requested_data [18:35:19]requested_item fm.sn is exist - process it [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 11 00 00 [18:35:19]Write to MH i2c: E2 08 00 70 28 80 11 00 00 00 00 00 00 12 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 17 00 [18:35:19]MH_I2C_Read... [18:35:19]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 35 30 38 33 90 00 64 [18:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:35:19]wFMCommunicate OK [18:35:19]requested_item fd.num is exist - process it [18:35:19]SAM_PROTO_GetFieldsCounters [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 13 00 00 [18:35:19]Write to MH i2c: E2 08 00 71 28 80 13 00 00 00 00 00 00 15 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 62 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 62 00 71 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B3 01 00 0E 04 04 00 84 01 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 62 [18:35: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:19]wFMCommunicate OK [18:35:19]SAM_PROTO_GetFieldsCounters done [18:35:19]requested_item shift.num is exist - process it [18:35:19]requested_item shift.opened is exist - process it [18:35:19]req_shift_opened [18:35:19]FM_GetShiftState [18:35:19]SAM_PROTO_GetShiftState [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 13 01 00 [18:35:19]Write to MH i2c: E2 08 00 72 28 80 13 01 00 00 00 00 00 17 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 0E 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 0E 00 72 28 00 09 00 01 31 35 72 66 00 00 00 00 90 00 61 [18:35:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:35:19]wFMCommunicate OK [18:35:19]SAM_PROTO_GetShiftState done [18:35:19]FM_GetShiftState done [18:35:19]req_shift_opened done [18:35:19]requested_item shift.open_date is exist - process it [18:35:19]req_shift_open_date [18:35:19]req_shift_open_date done [18:35:19]produce_requested_data done [18:35:19]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111467,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:35:19]process_action_free print_text [18:35:19]json_value_free [18:35:19]json_value_free done [18:35:19]process_json_proto returns [18:35:19]Send response to host [18:35:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111467,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:35:19]free response buf [18:35:19]execute_script done [18:35:19]execute_script returns [18:35:19]free content buf [18:35:19]Sock 9.Close socket [18:35:19]Sock 9.Thread stoped [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:37]accept exits with 10 [18:42:37]New connection [18:42:37]New thread 3067321700 created [18:42:37]Thread 3067465060 joined [18:42:37]Waiting for new connection... [18:42:37] Sock 10.Parse request [18:42:37]Sock 10.Check first char [18:42:37]Sock 10.First char is OK [18:42:37]request: POST /json_proto HTTP/1.0 [18:42:37]Method: POST [18:42:37]URL: /json_proto [18:42:37]Method is POST - this is cgi request [18:42:37]url: /json_proto [18:42:37]query_string will be loaded in cgi processing [18:42:37]execute_cgi json_proto POST (null) [18:42:37]execute_cgi path=json_proto method=POST [18:42:37]POST find Content-Length [18:42:37]Host: 172.17.59.68:8080 [18:42:37]Content-Length: 678 [18:42:37]Content-Type: application/json [18:42:37] [18:42:37]POST finish read [18:42:37]Found Content-Length = 678 [18:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.710, "sum" : 910.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 910.00, "total" : 910.00, "payments": [ { "type": 0, "sum" : 910.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:37]execute_script... [18: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)320053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 13.710, "sum" : 910.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 910.00, "total" : 910.00, "payments": [ { "type": 0, "sum" : 910.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:37]POST & json_proto [18:42:37]process_json_proto [18:42:37]json parsed OK: [18:42:37]protocol is kg_v1.0 [18:42:37]action value=close_receipt [18:42:37]process_action close_receipt [18:42:37]cmd_close_receipt [18:42:37]MH_GetDate [18:42:37]Write to MH i2c: F0 00 00 73 28 8A [18:42:37]Write i2c OK [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: F0 [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: F0 09 00 [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: F0 09 00 73 28 00 A6 26 73 66 BC EC 60 65 A5 [18:42:37]GetLastDocTimeStamp 1718821972 [18:42:37]current date 1718822566 [18:42:37]FM_GetShiftState [18:42:37]SAM_PROTO_GetShiftState [18:42:37]wFMCommunicate request_size=4 [18:42:37]MH_SAM_APDU [18:42:37]CAPDU: 80 13 01 00 [18:42:37]Write to MH i2c: E2 08 00 74 28 80 13 01 00 00 00 00 00 19 [18:42:37]Write i2c OK [18:42:37]MH_I2C_Read... [18:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:37]Read from MH i2c: E2 [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: E2 0E 00 [18:42:37]MH_I2C_Read... [18:42:37]Read from MH i2c: E2 0E 00 74 28 00 09 00 01 31 35 72 66 00 00 00 00 90 00 63 [18:42:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:42:37]wFMCommunicate OK [18:42:37]SAM_PROTO_GetShiftState done [18:42:37]FM_GetShiftState done [18:42:37]opened in 1718760753 [18:42:37]opened+sec_in_day 1718847153 [18:42:37]quantity*price = 91034 [18:42:37]sum+1 = 91035 [18:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 910.00 Внесено: 910.00 СДАЧА: 0.00 НСП 1% : 8.06 НДС 12% : 96.67 Наличными: 910.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 217 19.06.2024 18:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111468 ФПД: 32132438145035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184246&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111468&fm=32132438145035&tin=02508201610067®Number=0000000000092771&sum=91000 [18:42:38]StoreToDocumentArchive [18:42:38]shift 388 fd 111468 [18:42:38]save to /storage/0388/doc_00111468 [18:42:38]save last doc name /storage/0388/doc_00111468 to /storage/kkm_last_doc_name [18:42:38]save OK [18:42:38]Clear old archive folders... [18:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:38]tlvbuf is 00F64660 [18:42:38]SAM_PROTO_ClearQueue [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 09 00 00 [18:42:38]Write to MH i2c: E2 08 00 81 28 80 09 00 00 00 00 00 00 1B [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 81 28 00 90 00 1D [18:42:38]RAPDU: 90 00 [18:42:38]wFMCommunicate OK [18:42:38]SAM_PROTO_ClearQueue done [18:42:38]KKMCreateOFDPacket [18:42:38]OFDProtocolAddRootSTLVToBuf [18:42:38]FM_MakeSignedData [18:42:38]FM_MakeSignedData [18:42:38]SAM_PROTO_SignData [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 0D 01 02 [18:42:38]Write to MH i2c: E2 08 00 82 28 80 0D 01 02 00 00 00 00 23 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 82 28 00 90 00 1E [18:42:38]RAPDU: 90 00 [18:42:38]wFMCommunicate OK [18:42:38]wFMCommunicate request_size=255 [18:42:38]MH_SAM_APDU [18:42: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 8E 35 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9A 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A6 26 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B3 01 00 35 04 06 00 1D [18:42:38]Write to MH i2c: E2 02 01 83 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 8E 35 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9A 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A6 26 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B3 01 00 35 04 06 00 1D 00 00 00 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 83 28 00 90 00 1F [18:42:38]RAPDU: 90 00 [18:42:38]wFMCommunicate OK [18:42:38]wFMCommunicate request_size=10 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 0D 02 02 05 39 6A 8F B8 0B [18:42:38]Write to MH i2c: E2 0D 00 84 28 80 0D 02 02 05 00 39 6A 8F B8 0B 00 00 25 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 03 00 84 28 00 90 00 20 [18:42:38]RAPDU: 90 00 [18:42:38]wFMCommunicate OK [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 0D 03 02 [18:42:38]Write to MH i2c: E2 08 00 85 28 80 0D 03 02 00 00 00 00 28 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:38]Read from MH i2c: E2 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 0B 00 [18:42:38]MH_I2C_Read... [18:42:38]Read from MH i2c: E2 0B 00 85 28 00 6C D5 BA 81 47 D9 8D A0 90 00 F2 [18:42:38]RAPDU: 6C D5 BA 81 47 D9 8D A0 90 00 [18:42:38]wFMCommunicate OK [18:42:38]SAM_PROTO_SignData done [18:42:38]FM_MakeSignedData done [18:42:38]CreateOFDProtocolMessage [18:42:38]wFMCommunicate request_size=4 [18:42:38]MH_SAM_APDU [18:42:38]CAPDU: 80 11 00 00 [18:42:38]Write to MH i2c: E2 08 00 86 28 80 11 00 00 00 00 00 00 28 [18:42:38]Write i2c OK [18:42:38]MH_I2C_Read... [18:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:39]Read from MH i2c: E2 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 17 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: E2 17 00 86 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7A [18:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:42:39]wFMCommunicate OK [18:42:39]CreateOFDProtocolMessage done [18:42:39]OFDSenderStorePacket 111468 [18:42:39]StoreOFDPacket docnum=111468 [18:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 80 07 01 26 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 35 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9A 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A6 26 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B3 01 00 35 04 06 00 1D 39 6A 8F B8 0B 6C D5 BA 81 47 D9 8D A0 [18:42:39]CheckFolder [18:42:39]dirname=/storage/ofd_packets [18:42:39]CheckFolder done [18:42:39]ProducePacketName [18:42:39]name=ofd_packets/00111468 [18:42:39]NVStorageSaveData ofd_packets/00111468 [18:42:39]File name is /storage/ofd_packets/00111468 [18:42:39]Write 301 bytes [18:42:39]NVStorageSaveData done [18:42:39]OFDSenderStorePacket done [18:42:39]KKMCreateOFDPacket done [18:42:39]NVStorageSaveData kkm_last_timestamp [18:42:39]File name is /storage/kkm_last_timestamp [18:42:39]Write 4 bytes [18:42:39]NVStorageSaveData done [18:42:39]ExternCall_PrintAddStr [18:42:39]wPrintStart [18:42:39]Write to MH i2c: 01 00 00 87 28 AF [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 07 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 FF 0F C4 [18:42:39]RasterBufferAndPrint [18:42:39]line Счет N : (1)320053 [18:42:39]line ИНН: 02508201610067 [18:42:39]line Контрольно-Кассовый Чек [18:42:39]line ПРОДАЖА [18:42:39]line ТРК (МРК, ГНК) : 11 [18:42:39]line Товар: 2710124130 [18:42:39]line Аи-92-К-5 [18:42:39]line 13.710 * 66.40 [18:42:39]line = 910.34 [18:42:39]line НДС 12% НСП 1% [18:42:39]line > о реализуемом товаре [18:42:39]line ОКРУГЛЕНИЕ: -0.34 [18:42:39]line ИТОГО: 910.00 [18:42:39]line Внесено: 910.00 [18:42:39]line СДАЧА: 0.00 [18:42:39]line НСП 1% : 8.06 [18:42:39]line НДС 12% : 96.67 [18:42:39]line Наличными: 910.00 [18:42:39]line Безнал.: 0.00 [18:42:39]line Место: АЗС № 65 "Партнер Нефть" [18:42:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:42:39]line СНО: Общий режим [18:42:39]line Чек 217 19.06.2024 18:42 [18:42:39]line Смена: 388 ФФД: 1.0 [18:42:39]line ЗНМ: 0300000198 [18:42:39]line РНМ: 0000000000092771 [18:42:39]line Версия ККМ: 001 [18:42:39]line ФМ: 0000000000875083 [18:42:39]line ФД: 111468 [18:42:39]line ФПД: 32132438145035 [18:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184246&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111468&fm=32132438145035&tin=02508201610067®Number=0000000000092771&sum=91000 [18:42:39]OFD Sender: Processing packet 111468 [packets to send 38, broken 37] [18:42:39]ProducePacketName [18:42:39]name=ofd_packets/00111468 [18:42:39]OFD Sender: To server: pG, [18:42:39]CommunicateWithHost lk.salyk.kg:30040 [18:42:39]ConnectInit lk.salyk.kg [18:42:39]written 0, free lines is 4095 [18:42:39]Connected sock=9 [18:42:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E7 80 07 01 26 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 35 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 9A 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 A6 26 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B3 01 00 35 04 06 00 1D 39 6A 8F B8 0B 6C D5 BA 81 47 D9 8D A0 [18:42:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 00 B9 47 00 8F 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6C B3 01 00 F4 03 04 00 08 BE 72 66 B6 04 01 00 00 BF 00 BD 42 71 EF 82 3C [18:42:39]CommunicateWithHost err = 0 [18:42:39]CheckOFDResponse [18:42:39]1017 (14) - 77093643461234 [18:42:39]1041 (16) - 0000000000875083 [18:42:39]1040 (4) - 111468 [18:42:39]1012 (4) - 19.06.2024 11:16 [18:42:39]1206 (1) - 0 [18:42:39]OFD Sender: Remove packet 111468 [18:42:39]ProducePacketName [18:42:39]name=ofd_packets/00111468 [18:42:39]NVStorageDeleteData [18:42:39]Write to MH i2c: 01 00 00 B2 28 DA [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 07 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: 01 07 00 B2 28 00 00 00 00 00 EC 0C D9 [18:42:39]RasterBufferAndPrint [18:42:39]line [18:42:39]line [18:42:39]line [18:42:39]line [18:42:39]line [18:42:39]written 0, free lines is 3314 [18:42:39]MH_Cut [18:42:39]Write to MH i2c: D1 01 00 B9 28 01 B3 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: D1 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: D1 01 00 [18:42:39]MH_I2C_Read... [18:42:39]Read from MH i2c: D1 01 00 B9 28 00 B2 [18:42:39]Write to MH i2c: 01 00 00 BA 28 E2 [18:42:39]Write i2c OK [18:42:39]MH_I2C_Read... [18:42:40]OFD Sender: No OFD packet to send [18:42:40]*** Cut start [18:42:40]*** Partial cut [18:42:40]*** CUTSNS_PIN = 1 [18:42:40]*** CUTSNS_PIN = 0 [18:42:40]*** Brake cut motor [18:42:41]Read from MH i2c: 01 [18:42:41]MH_I2C_Read... [18:42:41]*** Stop cut motor [18:42:41]*** Cut end [18:42:41]Read from MH i2c: 01 07 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: 01 07 00 BA 28 00 00 00 00 00 FF 0F F7 [18:42:41]process_action close_receipt done [18:42:41]requested_data is exist [18:42:41]produce_requested_data [18:42:41]requested_item fm.sn is exist - process it [18:42:41]wFMCommunicate request_size=4 [18:42:41]MH_SAM_APDU [18:42:41]CAPDU: 80 11 00 00 [18:42:41]Write to MH i2c: E2 08 00 BB 28 80 11 00 00 00 00 00 00 5D [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 17 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 17 00 BB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AF [18:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:42:41]wFMCommunicate OK [18:42:41]requested_item fd.num is exist - process it [18:42:41]SAM_PROTO_GetFieldsCounters [18:42:41]wFMCommunicate request_size=4 [18:42:41]MH_SAM_APDU [18:42:41]CAPDU: 80 13 00 00 [18:42:41]Write to MH i2c: E2 08 00 BC 28 80 13 00 00 00 00 00 00 60 [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 62 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 62 00 BC 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B3 01 00 0E 04 04 00 84 01 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 B1 [18:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:41]wFMCommunicate OK [18:42:41]SAM_PROTO_GetFieldsCounters done [18:42:41]requested_item shift.num is exist - process it [18:42:41]requested_item shift.opened is exist - process it [18:42:41]req_shift_opened [18:42:41]FM_GetShiftState [18:42:41]SAM_PROTO_GetShiftState [18:42:41]wFMCommunicate request_size=4 [18:42:41]MH_SAM_APDU [18:42:41]CAPDU: 80 13 01 00 [18:42:41]Write to MH i2c: E2 08 00 BD 28 80 13 01 00 00 00 00 00 62 [18:42:41]Write i2c OK [18:42:41]MH_I2C_Read... [18:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:41]Read from MH i2c: E2 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 0E 00 [18:42:41]MH_I2C_Read... [18:42:41]Read from MH i2c: E2 0E 00 BD 28 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AC [18:42:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:42:41]wFMCommunicate OK [18:42:41]SAM_PROTO_GetShiftState done [18:42:41]FM_GetShiftState done [18:42:41]req_shift_opened done [18:42:41]requested_item shift.open_date is exist - process it [18:42:41]req_shift_open_date [18:42:41]req_shift_open_date done [18:42:41]produce_requested_data done [18:42:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111468,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:42:41]process_action_free close_receipt [18:42:41]json_value_free [18:42:41]json_value_free done [18:42:41]process_json_proto returns [18:42:41]Send response to host [18:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111468,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:42:41]free response buf [18:42:41]execute_script done [18:42:41]execute_script returns [18:42:41]free content buf [18:42:41]Sock 10.Close socket [18:42:41]Sock 10.Thread stoped [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:37]accept exits with 7 [18:44:37]New connection [18:44:37]New thread 3067465060 created [18:44:37]Thread 3067321700 joined [18:44:37]Waiting for new connection... [18:44:37] Sock 7.Parse request [18:44:37]Sock 7.Check first char [18:44:37]Sock 7.First char is OK [18:44:37]request: POST /json_proto HTTP/1.0 [18:44:37]Method: POST [18:44:37]URL: /json_proto [18:44:37]Method is POST - this is cgi request [18:44:37]url: /json_proto [18:44:37]query_string will be loaded in cgi processing [18:44:37]execute_cgi json_proto POST (null) [18:44:37]execute_cgi path=json_proto method=POST [18:44:37]POST find Content-Length [18:44:37]Host: 172.17.59.68:8080 [18:44:37]Content-Length: 677 [18:44:37]Content-Type: application/json [18:44:37] [18:44:37]POST finish read [18:44:37]Found Content-Length = 677 [18:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:37]execute_script... [18: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)320055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 9.480, "sum" : 700.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:37]POST & json_proto [18:44:37]process_json_proto [18:44:37]json parsed OK: [18:44:37]protocol is kg_v1.0 [18:44:37]action value=close_receipt [18:44:37]process_action close_receipt [18:44:37]cmd_close_receipt [18:44:37]MH_GetDate [18:44:37]Write to MH i2c: F0 00 00 BE 28 D5 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: F0 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: F0 09 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: F0 09 00 BE 28 00 1E 27 73 66 BC EC 60 65 69 [18:44:37]GetLastDocTimeStamp 1718822566 [18:44:37]current date 1718822686 [18:44:37]FM_GetShiftState [18:44:37]SAM_PROTO_GetShiftState [18:44:37]wFMCommunicate request_size=4 [18:44:37]MH_SAM_APDU [18:44:37]CAPDU: 80 13 01 00 [18:44:37]Write to MH i2c: E2 08 00 BF 28 80 13 01 00 00 00 00 00 64 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:37]Read from MH i2c: E2 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 0E 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: E2 0E 00 BF 28 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AE [18:44:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:44:37]wFMCommunicate OK [18:44:37]SAM_PROTO_GetShiftState done [18:44:37]FM_GetShiftState done [18:44:37]opened in 1718760753 [18:44:37]opened+sec_in_day 1718847153 [18:44:37]quantity*price = 70057 [18:44:37]sum+1 = 70058 [18:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 218 19.06.2024 18:44 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111469 ФПД: 158140288608059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184446&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111469&fm=158140288608059&tin=02508201610067®Number=0000000000092771&sum=70000 [18:44:38]StoreToDocumentArchive [18:44:38]shift 388 fd 111469 [18:44:38]save to /storage/0388/doc_00111469 [18:44:38]save last doc name /storage/0388/doc_00111469 to /storage/kkm_last_doc_name [18:44:38]save OK [18:44:38]Clear old archive folders... [18:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:38]tlvbuf is 00EC1CD0 [18:44:38]SAM_PROTO_ClearQueue [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 09 00 00 [18:44:38]Write to MH i2c: E2 08 00 CC 28 80 09 00 00 00 00 00 00 66 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 CC 28 00 90 00 68 [18:44:38]RAPDU: 90 00 [18:44:38]wFMCommunicate OK [18:44:38]SAM_PROTO_ClearQueue done [18:44:38]KKMCreateOFDPacket [18:44:38]OFDProtocolAddRootSTLVToBuf [18:44:38]FM_MakeSignedData [18:44:38]FM_MakeSignedData [18:44:38]SAM_PROTO_SignData [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 0D 01 02 [18:44:38]Write to MH i2c: E2 08 00 CD 28 80 0D 01 02 00 00 00 00 6E [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 CD 28 00 90 00 69 [18:44:38]RAPDU: 90 00 [18:44:38]wFMCommunicate OK [18:44:38]wFMCommunicate request_size=255 [18:44:38]MH_SAM_APDU [18:44: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 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 10 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 DA 00 00 00 F4 03 04 00 1E 27 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B3 01 00 35 04 06 00 8F [18:44:38]Write to MH i2c: E2 02 01 CE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 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 10 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 DA 00 00 00 F4 03 04 00 1E 27 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B3 01 00 35 04 06 00 8F 00 00 2A [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 CE 28 00 90 00 6A [18:44:38]RAPDU: 90 00 [18:44:38]wFMCommunicate OK [18:44:38]wFMCommunicate request_size=10 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 0D 02 02 05 D3 E7 BA 27 3B [18:44:38]Write to MH i2c: E2 0D 00 CF 28 80 0D 02 02 05 00 D3 E7 BA 27 3B 00 00 51 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 03 00 CF 28 00 90 00 6B [18:44:38]RAPDU: 90 00 [18:44:38]wFMCommunicate OK [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 0D 03 02 [18:44:38]Write to MH i2c: E2 08 00 D0 28 80 0D 03 02 00 00 00 00 73 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 0B 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 0B 00 D0 28 00 26 F6 7C 01 70 AB 18 BF 90 00 FF [18:44:38]RAPDU: 26 F6 7C 01 70 AB 18 BF 90 00 [18:44:38]wFMCommunicate OK [18:44:38]SAM_PROTO_SignData done [18:44:38]FM_MakeSignedData done [18:44:38]CreateOFDProtocolMessage [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 11 00 00 [18:44:38]Write to MH i2c: E2 08 00 D1 28 80 11 00 00 00 00 00 00 73 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 17 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 17 00 D1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C5 [18:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:44:38]wFMCommunicate OK [18:44:38]CreateOFDProtocolMessage done [18:44:38]OFDSenderStorePacket 111469 [18:44:38]StoreOFDPacket docnum=111469 [18:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1D 3D 07 01 44 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 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 10 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 DA 00 00 00 F4 03 04 00 1E 27 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B3 01 00 35 04 06 00 8F D3 E7 BA 27 3B 26 F6 7C 01 70 AB 18 BF [18:44:38]CheckFolder [18:44:38]dirname=/storage/ofd_packets [18:44:38]CheckFolder done [18:44:38]ProducePacketName [18:44:38]name=ofd_packets/00111469 [18:44:38]NVStorageSaveData ofd_packets/00111469 [18:44:38]File name is /storage/ofd_packets/00111469 [18:44:38]Write 301 bytes [18:44:38]NVStorageSaveData done [18:44:38]OFDSenderStorePacket done [18:44:38]KKMCreateOFDPacket done [18:44:38]NVStorageSaveData kkm_last_timestamp [18:44:38]File name is /storage/kkm_last_timestamp [18:44:38]Write 4 bytes [18:44:38]NVStorageSaveData done [18:44:38]ExternCall_PrintAddStr [18:44:38]wPrintStart [18:44:38]Write to MH i2c: 01 00 00 D2 28 FA [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: 01 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: 01 07 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: 01 07 00 D2 28 00 00 00 00 00 FF 0F 0F [18:44:38]RasterBufferAndPrint [18:44:38]line Счет N : (1)320055 [18:44:38]line ИНН: 02508201610067 [18:44:38]line Контрольно-Кассовый Чек [18:44:38]line ПРОДАЖА [18:44:38]line ТРК (МРК, ГНК) : 12 [18:44:38]line Товар: 2710124500 [18:44:38]line Аи-95-К-5 [18:44:38]line 9.480 * 73.90 [18:44:38]line = 700.57 [18:44:38]line НДС 12% НСП 1% [18:44:38]line > о реализуемом товаре [18:44:38]line ОКРУГЛЕНИЕ: -0.57 [18:44:38]line ИТОГО: 700.00 [18:44:38]line Внесено: 700.00 [18:44:38]line СДАЧА: 0.00 [18:44:38]line НСП 1% : 6.20 [18:44:38]line НДС 12% : 74.40 [18:44:38]line Наличными: 700.00 [18:44:38]line Безнал.: 0.00 [18:44:38]line Место: АЗС № 65 "Партнер Нефть" [18:44:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:44:38]line СНО: Общий режим [18:44:38]line Чек 218 19.06.2024 18:44 [18:44:38]line Смена: 388 ФФД: 1.0 [18:44:38]line ЗНМ: 0300000198 [18:44:38]line РНМ: 0000000000092771 [18:44:38]line Версия ККМ: 001 [18:44:38]line ФМ: 0000000000875083 [18:44:38]line ФД: 111469 [18:44:38]line ФПД: 158140288608059 [18:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184446&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111469&fm=158140288608059&tin=02508201610067®Number=0000000000092771&sum=70000 [18:44:39]OFD Sender: Processing packet 111469 [packets to send 38, broken 37] [18:44:39]ProducePacketName [18:44:39]name=ofd_packets/00111469 [18:44:39]OFD Sender: To server: pG, [18:44:39]CommunicateWithHost lk.salyk.kg:30040 [18:44:39]ConnectInit lk.salyk.kg [18:44:39]written 0, free lines is 4095 [18:44:39]Connected sock=10 [18: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 35 30 38 33 0F 01 00 00 1D 3D 07 01 44 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 25 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 A9 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 10 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 DA 00 00 00 F4 03 04 00 1E 27 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6D B3 01 00 35 04 06 00 8F D3 E7 BA 27 3B 26 F6 7C 01 70 AB 18 BF [18:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BC EB 47 00 1F 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 35 30 38 33 10 04 04 00 6D B3 01 00 F4 03 04 00 80 BE 72 66 B6 04 01 00 00 4E 85 55 70 65 89 89 FC [18:44:39]CommunicateWithHost err = 0 [18:44:39]CheckOFDResponse [18:44:39]1017 (14) - 77093643461234 [18:44:39]1041 (16) - 0000000000875083 [18:44:39]1040 (4) - 111469 [18:44:39]1012 (4) - 19.06.2024 11:18 [18:44:39]1206 (1) - 0 [18:44:39]OFD Sender: Remove packet 111469 [18:44:39]ProducePacketName [18:44:39]name=ofd_packets/00111469 [18:44:39]NVStorageDeleteData [18:44:39]Write to MH i2c: 01 00 00 FD 28 25 [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 07 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: 01 07 00 FD 28 00 00 00 00 00 EA 0C 22 [18:44:39]RasterBufferAndPrint [18:44:39]line [18:44:39]line [18:44:39]line [18:44:39]line [18:44:39]line [18:44:39]written 0, free lines is 3313 [18:44:39]MH_Cut [18:44:39]Write to MH i2c: D1 01 00 04 29 01 FF [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: D1 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: D1 01 00 [18:44:39]MH_I2C_Read... [18:44:39]Read from MH i2c: D1 01 00 04 29 00 FE [18:44:39]Write to MH i2c: 01 00 00 05 29 2E [18:44:39]Write i2c OK [18:44:39]MH_I2C_Read... [18:44:39]OFD Sender: No OFD packet to send [18:44:40]*** Cut start [18:44:40]*** Partial cut [18:44:40]*** CUTSNS_PIN = 1 [18:44:40]*** CUTSNS_PIN = 0 [18:44:40]*** Brake cut motor [18:44:40]Read from MH i2c: 01 [18:44:40]MH_I2C_Read... [18:44:40]*** Stop cut motor [18:44:40]*** Cut end [18:44:40]Read from MH i2c: 01 07 00 [18:44:40]MH_I2C_Read... [18:44:40]Read from MH i2c: 01 07 00 05 29 00 00 00 00 00 FF 0F 43 [18:44:40]process_action close_receipt done [18:44:40]requested_data is exist [18:44:40]produce_requested_data [18:44:40]requested_item fm.sn is exist - process it [18:44:40]wFMCommunicate request_size=4 [18:44:40]MH_SAM_APDU [18:44:40]CAPDU: 80 11 00 00 [18:44:40]Write to MH i2c: E2 08 00 06 29 80 11 00 00 00 00 00 00 A9 [18:44:40]Write i2c OK [18:44:40]MH_I2C_Read... [18:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:40]Read from MH i2c: E2 [18:44:40]MH_I2C_Read... [18:44:40]Read from MH i2c: E2 17 00 [18:44:40]MH_I2C_Read... [18:44:40]Read from MH i2c: E2 17 00 06 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [18:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:44:40]wFMCommunicate OK [18:44:40]requested_item fd.num is exist - process it [18:44:40]SAM_PROTO_GetFieldsCounters [18:44:40]wFMCommunicate request_size=4 [18:44:40]MH_SAM_APDU [18:44:40]CAPDU: 80 13 00 00 [18:44:40]Write to MH i2c: E2 08 00 07 29 80 13 00 00 00 00 00 00 AC [18:44:40]Write i2c OK [18:44:40]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 62 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 62 00 07 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B3 01 00 0E 04 04 00 84 01 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 01 [18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6D B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:41]wFMCommunicate OK [18:44:41]SAM_PROTO_GetFieldsCounters done [18:44:41]requested_item shift.num is exist - process it [18:44:41]requested_item shift.opened is exist - process it [18:44:41]req_shift_opened [18:44:41]FM_GetShiftState [18:44:41]SAM_PROTO_GetShiftState [18:44:41]wFMCommunicate request_size=4 [18:44:41]MH_SAM_APDU [18:44:41]CAPDU: 80 13 01 00 [18:44:41]Write to MH i2c: E2 08 00 08 29 80 13 01 00 00 00 00 00 AE [18:44:41]Write i2c OK [18:44:41]MH_I2C_Read... [18:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:41]Read from MH i2c: E2 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 0E 00 [18:44:41]MH_I2C_Read... [18:44:41]Read from MH i2c: E2 0E 00 08 29 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F8 [18:44:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:44:41]wFMCommunicate OK [18:44:41]SAM_PROTO_GetShiftState done [18:44:41]FM_GetShiftState done [18:44:41]req_shift_opened done [18:44:41]requested_item shift.open_date is exist - process it [18:44:41]req_shift_open_date [18:44:41]req_shift_open_date done [18:44:41]produce_requested_data done [18:44:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111469,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:44:41]process_action_free close_receipt [18:44:41]json_value_free [18:44:41]json_value_free done [18:44:41]process_json_proto returns [18:44:41]Send response to host [18:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111469,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:44:41]free response buf [18:44:41]execute_script done [18:44:41]execute_script returns [18:44:41]free content buf [18:44:41]Sock 7.Close socket [18:44:41]Sock 7.Thread stoped [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:25]accept exits with 9 [18:45:25]New connection [18:45:25]New thread 3067321700 created [18:45:25]Thread 3067465060 joined [18:45:25]Waiting for new connection... [18:45:25] Sock 9.Parse request [18:45:25]Sock 9.Check first char [18:45:25]Sock 9.First char is OK [18:45:25]request: POST /json_proto HTTP/1.0 [18:45:25]Method: POST [18:45:25]URL: /json_proto [18:45:25]Method is POST - this is cgi request [18:45:25]url: /json_proto [18:45:25]query_string will be loaded in cgi processing [18:45:25]execute_cgi json_proto POST (null) [18:45:25]execute_cgi path=json_proto method=POST [18:45:25]POST find Content-Length [18:45:25]Host: 172.17.59.68:8080 [18:45:25]Content-Length: 679 [18:45:25]Content-Type: application/json [18:45:25] [18:45:25]POST finish read [18:45:25]Found Content-Length = 679 [18:45:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 29.290, "sum" : 2135.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2135.00, "payments": [ { "type": 0, "sum" : 2135.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:25]execute_script... [18:45:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 29.290, "sum" : 2135.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2135.00, "payments": [ { "type": 0, "sum" : 2135.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:25]POST & json_proto [18:45:25]process_json_proto [18:45:25]json parsed OK: [18:45:25]protocol is kg_v1.0 [18:45:25]action value=close_receipt [18:45:25]process_action close_receipt [18:45:25]cmd_close_receipt [18:45:25]MH_GetDate [18:45:25]Write to MH i2c: F0 00 00 09 29 21 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: F0 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: F0 09 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: F0 09 00 09 29 00 4E 27 73 66 BC EC 60 65 E5 [18:45:25]GetLastDocTimeStamp 1718822686 [18:45:25]current date 1718822734 [18:45:25]FM_GetShiftState [18:45:25]SAM_PROTO_GetShiftState [18:45:25]wFMCommunicate request_size=4 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 13 01 00 [18:45:25]Write to MH i2c: E2 08 00 0A 29 80 13 01 00 00 00 00 00 B0 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 0E 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 0E 00 0A 29 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FA [18:45:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:45:25]wFMCommunicate OK [18:45:25]SAM_PROTO_GetShiftState done [18:45:25]FM_GetShiftState done [18:45:25]opened in 1718760753 [18:45:25]opened+sec_in_day 1718847153 [18:45:25]quantity*price = 213524 [18:45:25]sum+1 = 213525 [18:45:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2135.00 Внесено: 3000.00 СДАЧА: 865.00 НСП 1% : 18.90 НДС 12% : 226.75 Наличными: 2135.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 219 19.06.2024 18:45 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111470 ФПД: 81431299988813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184534&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111470&fm=81431299988813&tin=02508201610067®Number=0000000000092771&sum=213500 [18:45:26]StoreToDocumentArchive [18:45:26]shift 388 fd 111470 [18:45:26]save to /storage/0388/doc_00111470 [18:45:26]save last doc name /storage/0388/doc_00111470 to /storage/kkm_last_doc_name [18:45:26]save OK [18:45:26]Clear old archive folders... [18:45:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:45:26]tlvbuf is 00F0C810 [18:45:26]SAM_PROTO_ClearQueue [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 09 00 00 [18:45:26]Write to MH i2c: E2 08 00 17 29 80 09 00 00 00 00 00 00 B2 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 17 29 00 90 00 B4 [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]SAM_PROTO_ClearQueue done [18:45:26]KKMCreateOFDPacket [18:45:26]OFDProtocolAddRootSTLVToBuf [18:45:26]FM_MakeSignedData [18:45:26]FM_MakeSignedData [18:45:26]SAM_PROTO_SignData [18:45:26]wFMCommunicate request_size=4 [18:45:26]MH_SAM_APDU [18:45:26]CAPDU: 80 0D 01 02 [18:45:26]Write to MH i2c: E2 08 00 18 29 80 0D 01 02 00 00 00 00 BA [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:26]Read from MH i2c: E2 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: E2 03 00 18 29 00 90 00 B5 [18:45:26]RAPDU: 90 00 [18:45:26]wFMCommunicate OK [18:45:26]wFMCommunicate request_size=255 [18:45:26]MH_SAM_APDU [18:45: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 6A 72 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 42 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 41 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 58 00 00 00 00 07 04 06 00 FC 41 03 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 4E 27 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B3 01 00 35 04 06 00 4A 0F B3 B5 [18:45:26]Write to MH i2c: E2 02 01 19 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 72 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 42 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 41 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 58 00 00 00 00 07 04 06 00 FC 41 03 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 4E 27 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B3 01 00 35 04 06 00 4A 0F B3 B5 00 00 47 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 19 29 00 90 00 B6 [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=7 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 02 02 02 9D 4D [18:45:27]Write to MH i2c: E2 0A 00 1A 29 80 0D 02 02 02 00 9D 4D 00 00 AB [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 03 00 1A 29 00 90 00 B7 [18:45:27]RAPDU: 90 00 [18:45:27]wFMCommunicate OK [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 0D 03 02 [18:45:27]Write to MH i2c: E2 08 00 1B 29 80 0D 03 02 00 00 00 00 BF [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0B 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 0B 00 1B 29 00 1E EE 1E 70 34 6E 01 ED 90 00 EA [18:45:27]RAPDU: 1E EE 1E 70 34 6E 01 ED 90 00 [18:45:27]wFMCommunicate OK [18:45:27]SAM_PROTO_SignData done [18:45:27]FM_MakeSignedData done [18:45:27]CreateOFDProtocolMessage [18:45:27]wFMCommunicate request_size=4 [18:45:27]MH_SAM_APDU [18:45:27]CAPDU: 80 11 00 00 [18:45:27]Write to MH i2c: E2 08 00 1C 29 80 11 00 00 00 00 00 00 BF [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:27]Read from MH i2c: E2 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 17 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: E2 17 00 1C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [18:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:45:27]wFMCommunicate OK [18:45:27]CreateOFDProtocolMessage done [18:45:27]OFDSenderStorePacket 111470 [18:45:27]StoreOFDPacket docnum=111470 [18:45:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 AA CD 04 01 C9 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 72 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 42 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 41 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 58 00 00 00 00 07 04 06 00 FC 41 03 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 4E 27 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B3 01 00 35 04 06 00 4A 0F B3 B5 9D 4D 1E EE 1E 70 34 6E 01 ED [18:45:27]CheckFolder [18:45:27]dirname=/storage/ofd_packets [18:45:27]CheckFolder done [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00111470 [18:45:27]NVStorageSaveData ofd_packets/00111470 [18:45:27]File name is /storage/ofd_packets/00111470 [18:45:27]Write 298 bytes [18:45:27]NVStorageSaveData done [18:45:27]OFDSenderStorePacket done [18:45:27]KKMCreateOFDPacket done [18:45:27]NVStorageSaveData kkm_last_timestamp [18:45:27]File name is /storage/kkm_last_timestamp [18:45:27]Write 4 bytes [18:45:27]NVStorageSaveData done [18:45:27]ExternCall_PrintAddStr [18:45:27]wPrintStart [18:45:27]Write to MH i2c: 01 00 00 1D 29 46 [18:45:27]Write i2c OK [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 [18:45:27]MH_I2C_Read... [18:45:27]Read from MH i2c: 01 07 00 1D 29 00 00 00 00 00 FF 0F 5B [18:45:27]RasterBufferAndPrint [18:45:27]line Счет N : (1)320054 [18:45:27]line ИНН: 02508201610067 [18:45:27]line Контрольно-Кассовый Чек [18:45:27]line ПРОДАЖА [18:45:27]line ТРК (МРК, ГНК) : 22 [18:45:27]line Товар: 2710194210 [18:45:27]line ДТ-К-5 [18:45:27]line 29.290 * 72.90 [18:45:27]line = 2135.24 [18:45:27]line НДС 12% НСП 1% [18:45:27]line > о реализуемом товаре [18:45:27]line ОКРУГЛЕНИЕ: -0.24 [18:45:27]line ИТОГО: 2135.00 [18:45:27]line Внесено: 3000.00 [18:45:27]line СДАЧА: 865.00 [18:45:27]line НСП 1% : 18.90 [18:45:27]line НДС 12% : 226.75 [18:45:27]line Наличными: 2135.00 [18:45:27]line Безнал.: 0.00 [18:45:27]line Место: АЗС № 65 "Партнер Нефть" [18:45:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [18:45:27]line СНО: Общий режим [18:45:27]line Чек 219 19.06.2024 18:45 [18:45:27]line Смена: 388 ФФД: 1.0 [18:45:27]line ЗНМ: 0300000198 [18:45:27]line РНМ: 0000000000092771 [18:45:27]line Версия ККМ: 001 [18:45:27]line ФМ: 0000000000875083 [18:45:27]line ФД: 111470 [18:45:27]line ФПД: 81431299988813 [18:45:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T184534&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111470&fm=81431299988813&tin=02508201610067®Number=0000000000092771&sum=213500 [18:45:27]OFD Sender: Processing packet 111470 [packets to send 38, broken 37] [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00111470 [18:45:27]OFD Sender: To server: pG, [18:45:27]CommunicateWithHost lk.salyk.kg:30040 [18:45:27]ConnectInit lk.salyk.kg [18:45:27]written 0, free lines is 4095 [18:45:27]Connected sock=10 [18:45:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 AA CD 04 01 C9 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6A 72 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 14 42 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 41 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 58 00 00 00 00 07 04 06 00 FC 41 03 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 4E 27 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6E B3 01 00 35 04 06 00 4A 0F B3 B5 9D 4D 1E EE 1E 70 34 6E 01 ED [18:45:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 97 3C 47 00 23 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 35 30 38 33 10 04 04 00 6E B3 01 00 F4 03 04 00 B0 BE 72 66 B6 04 01 00 00 04 CC E9 4C A1 19 53 35 [18:45:27]CommunicateWithHost err = 0 [18:45:27]CheckOFDResponse [18:45:27]1017 (14) - 77093643461234 [18:45:27]1041 (16) - 0000000000875083 [18:45:27]1040 (4) - 111470 [18:45:27]1012 (4) - 19.06.2024 11:19 [18:45:27]1206 (1) - 0 [18:45:27]OFD Sender: Remove packet 111470 [18:45:27]ProducePacketName [18:45:27]name=ofd_packets/00111470 [18:45:27]NVStorageDeleteData [18:45:28]Write to MH i2c: 01 00 00 48 29 71 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 48 29 00 00 00 00 00 E9 0C 6D [18:45:28]RasterBufferAndPrint [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]line [18:45:28]written 0, free lines is 3311 [18:45:28]MH_Cut [18:45:28]Write to MH i2c: D1 01 00 4F 29 01 4A [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 01 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: D1 01 00 4F 29 00 49 [18:45:28]Write to MH i2c: 01 00 00 50 29 79 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]OFD Sender: No OFD packet to send [18:45:28]*** Cut start [18:45:28]*** Partial cut [18:45:28]*** CUTSNS_PIN = 1 [18:45:28]*** CUTSNS_PIN = 0 [18:45:28]*** Brake cut motor [18:45:29]Read from MH i2c: 01 [18:45:29]MH_I2C_Read... [18:45:29]*** Stop cut motor [18:45:29]*** Cut end [18:45:29]Read from MH i2c: 01 07 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: 01 07 00 50 29 00 00 00 00 00 FF 0F 8E [18:45:29]process_action close_receipt done [18:45:29]requested_data is exist [18:45:29]produce_requested_data [18:45:29]requested_item fm.sn is exist - process it [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 11 00 00 [18:45:29]Write to MH i2c: E2 08 00 51 29 80 11 00 00 00 00 00 00 F4 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 17 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 17 00 51 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [18:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [18:45:29]wFMCommunicate OK [18:45:29]requested_item fd.num is exist - process it [18:45:29]SAM_PROTO_GetFieldsCounters [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 13 00 00 [18:45:29]Write to MH i2c: E2 08 00 52 29 80 13 00 00 00 00 00 00 F7 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 62 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 62 00 52 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B3 01 00 0E 04 04 00 84 01 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 50 [18:45: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6E B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:29]wFMCommunicate OK [18:45:29]SAM_PROTO_GetFieldsCounters done [18:45:29]requested_item shift.num is exist - process it [18:45:29]requested_item shift.opened is exist - process it [18:45:29]req_shift_opened [18:45:29]FM_GetShiftState [18:45:29]SAM_PROTO_GetShiftState [18:45:29]wFMCommunicate request_size=4 [18:45:29]MH_SAM_APDU [18:45:29]CAPDU: 80 13 01 00 [18:45:29]Write to MH i2c: E2 08 00 53 29 80 13 01 00 00 00 00 00 F9 [18:45:29]Write i2c OK [18:45:29]MH_I2C_Read... [18:45:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:29]Read from MH i2c: E2 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 0E 00 [18:45:29]MH_I2C_Read... [18:45:29]Read from MH i2c: E2 0E 00 53 29 00 09 00 01 31 35 72 66 00 00 00 00 90 00 43 [18:45:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [18:45:29]wFMCommunicate OK [18:45:29]SAM_PROTO_GetShiftState done [18:45:29]FM_GetShiftState done [18:45:29]req_shift_opened done [18:45:29]requested_item shift.open_date is exist - process it [18:45:29]req_shift_open_date [18:45:29]req_shift_open_date done [18:45:29]produce_requested_data done [18:45:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111470,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [18:45:29]process_action_free close_receipt [18:45:29]json_value_free [18:45:29]json_value_free done [18:45:29]process_json_proto returns [18:45:29]Send response to host [18:45:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111470,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [18:45:29]free response buf [18:45:29]execute_script done [18:45:29]execute_script returns [18:45:29]free content buf [18:45:29]Sock 9.Close socket [18:45:29]Sock 9.Thread stoped [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]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:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:43]accept exits with 7 [19:01:43]New connection [19:01:43]New thread 3067465060 created [19:01:43]Thread 3067321700 joined [19:01:43]Waiting for new connection... [19:01:43] Sock 7.Parse request [19:01:43]Sock 7.Check first char [19:01:43]Sock 7.First char is OK [19:01:43]request: POST /json_proto HTTP/1.0 [19:01:43]Method: POST [19:01:43]URL: /json_proto [19:01:43]Method is POST - this is cgi request [19:01:43]url: /json_proto [19:01:43]query_string will be loaded in cgi processing [19:01:43]execute_cgi json_proto POST (null) [19:01:43]execute_cgi path=json_proto method=POST [19:01:43]POST find Content-Length [19:01:43]Host: 172.17.59.68:8080 [19:01:43]Content-Length: 805 [19:01:43]Content-Type: application/json [19:01:43] [19:01:43]POST finish read [19:01:43]Found Content-Length = 805 [19:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:43]execute_script... [19: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)320056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:43]POST & json_proto [19:01:43]process_json_proto [19:01:43]json parsed OK: [19:01:43]protocol is kg_v1.0 [19:01:43]action value=close_receipt [19:01:43]process_action close_receipt [19:01:43]cmd_close_receipt [19:01:43]MH_GetDate [19:01:43]Write to MH i2c: F0 00 00 54 29 6C [19:01:43]Write i2c OK [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: F0 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: F0 09 00 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: F0 09 00 54 29 00 21 2B 73 66 BC EC 60 65 07 [19:01:43]GetLastDocTimeStamp 1718822734 [19:01:43]current date 1718823713 [19:01:43]FM_GetShiftState [19:01:43]SAM_PROTO_GetShiftState [19:01:43]wFMCommunicate request_size=4 [19:01:43]MH_SAM_APDU [19:01:43]CAPDU: 80 13 01 00 [19:01:43]Write to MH i2c: E2 08 00 55 29 80 13 01 00 00 00 00 00 FB [19:01:43]Write i2c OK [19:01:43]MH_I2C_Read... [19:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:43]Read from MH i2c: E2 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: E2 0E 00 [19:01:43]MH_I2C_Read... [19:01:43]Read from MH i2c: E2 0E 00 55 29 00 09 00 01 31 35 72 66 00 00 00 00 90 00 45 [19:01:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:01:43]wFMCommunicate OK [19:01:43]SAM_PROTO_GetShiftState done [19:01:43]FM_GetShiftState done [19:01:43]opened in 1718760753 [19:01:43]opened+sec_in_day 1718847153 [19:01:43]quantity*price = 100018 [19:01:43]sum+1 = 100020 [19:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 220 19.06.2024 19:01 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111471 ФПД: 227957350110858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T190153&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111471&fm=227957350110858&tin=02508201610067®Number=0000000000092771&sum=100019 [19:01:44]StoreToDocumentArchive [19:01:44]shift 388 fd 111471 [19:01:44]save to /storage/0388/doc_00111471 [19:01:44]save last doc name /storage/0388/doc_00111471 to /storage/kkm_last_doc_name [19:01:44]save OK [19:01:44]Clear old archive folders... [19:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:01:44]tlvbuf is B6FD54F0 [19:01:44]SAM_PROTO_ClearQueue [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 09 00 00 [19:01:44]Write to MH i2c: E2 08 00 62 29 80 09 00 00 00 00 00 00 FD [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:44]Read from MH i2c: E2 03 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 62 29 00 90 00 FF [19:01:44]RAPDU: 90 00 [19:01:44]wFMCommunicate OK [19:01:44]SAM_PROTO_ClearQueue done [19:01:44]KKMCreateOFDPacket [19:01:44]OFDProtocolAddRootSTLVToBuf [19:01:44]FM_MakeSignedData [19:01:44]FM_MakeSignedData [19:01:44]SAM_PROTO_SignData [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 0D 01 02 [19:01:44]Write to MH i2c: E2 08 00 63 29 80 0D 01 02 00 00 00 00 05 [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 63 29 00 90 00 00 [19:01:44]RAPDU: 90 00 [19:01:44]wFMCommunicate OK [19:01:44]wFMCommunicate request_size=255 [19:01:44]MH_SAM_APDU [19:01: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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 21 2B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B3 01 00 35 04 06 00 CF 53 74 E0 [19:01:44]Write to MH i2c: E2 02 01 64 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 21 2B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B3 01 00 35 04 06 00 CF 53 74 E0 00 00 B0 [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 64 29 00 90 00 01 [19:01:44]RAPDU: 90 00 [19:01:44]wFMCommunicate OK [19:01:44]wFMCommunicate request_size=7 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 0D 02 02 02 96 8A [19:01:44]Write to MH i2c: E2 0A 00 65 29 80 0D 02 02 02 00 96 8A 00 00 2C [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 03 00 65 29 00 90 00 02 [19:01:44]RAPDU: 90 00 [19:01:44]wFMCommunicate OK [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 0D 03 02 [19:01:44]Write to MH i2c: E2 08 00 66 29 80 0D 03 02 00 00 00 00 0A [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:44]Read from MH i2c: E2 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 0B 00 [19:01:44]MH_I2C_Read... [19:01:44]Read from MH i2c: E2 0B 00 66 29 00 24 A9 8A 82 6B CB AD 13 90 00 DA [19:01:44]RAPDU: 24 A9 8A 82 6B CB AD 13 90 00 [19:01:44]wFMCommunicate OK [19:01:44]SAM_PROTO_SignData done [19:01:44]FM_MakeSignedData done [19:01:44]CreateOFDProtocolMessage [19:01:44]wFMCommunicate request_size=4 [19:01:44]MH_SAM_APDU [19:01:44]CAPDU: 80 11 00 00 [19:01:44]Write to MH i2c: E2 08 00 67 29 80 11 00 00 00 00 00 00 0A [19:01:44]Write i2c OK [19:01:44]MH_I2C_Read... [19:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:45]Read from MH i2c: E2 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: E2 17 00 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: E2 17 00 67 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5C [19:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:01:45]wFMCommunicate OK [19:01:45]CreateOFDProtocolMessage done [19:01:45]OFDSenderStorePacket 111471 [19:01:45]StoreOFDPacket docnum=111471 [19:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 69 04 04 01 EC BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 21 2B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B3 01 00 35 04 06 00 CF 53 74 E0 96 8A 24 A9 8A 82 6B CB AD 13 [19:01:45]CheckFolder [19:01:45]dirname=/storage/ofd_packets [19:01:45]CheckFolder done [19:01:45]ProducePacketName [19:01:45]name=ofd_packets/00111471 [19:01:45]NVStorageSaveData ofd_packets/00111471 [19:01:45]File name is /storage/ofd_packets/00111471 [19:01:45]Write 298 bytes [19:01:45]NVStorageSaveData done [19:01:45]OFDSenderStorePacket done [19:01:45]KKMCreateOFDPacket done [19:01:45]NVStorageSaveData kkm_last_timestamp [19:01:45]File name is /storage/kkm_last_timestamp [19:01:45]Write 4 bytes [19:01:45]NVStorageSaveData done [19:01:45]ExternCall_PrintAddStr [19:01:45]wPrintStart [19:01:45]Write to MH i2c: 01 00 00 68 29 91 [19:01:45]Write i2c OK [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 07 00 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 07 00 68 29 00 00 00 00 00 FF 0F A6 [19:01:45]RasterBufferAndPrint [19:01:45]line Счет N : (1)320056 [19:01:45]line ИНН: 02508201610067 [19:01:45]line Контрольно-Кассовый Чек [19:01:45]line ПРОДАЖА [19:01:45]line ТРК (МРК, ГНК) : 22 [19:01:45]line Товар: 2710194210 [19:01:45]line ДТ-К-5 [19:01:45]line 13.720 * 72.90 [19:01:45]line = 1000.19 [19:01:45]line НДС 12% НСП 1% [19:01:45]line > о реализуемом товаре [19:01:45]line ИТОГО: 1000.19 [19:01:45]line НСП 1% : 8.85 [19:01:45]line НДС 12% : 106.21 [19:01:45]line Наличными: 0.00 [19:01:45]line Безнал.: 1000.19 [19:01:45]line Место: АЗС № 65 "Партнер Нефть" [19:01:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:01:45]line СНО: Общий режим [19:01:45]line Чек 220 19.06.2024 19:01 [19:01:45]line Смена: 388 ФФД: 1.0 [19:01:45]line ЗНМ: 0300000198 [19:01:45]line РНМ: 0000000000092771 [19:01:45]line Версия ККМ: 001 [19:01:45]line Платежная система: О! деньги [19:01:45]line ФМ: 0000000000875083 [19:01:45]line ФД: 111471 [19:01:45]line ФПД: 227957350110858 [19:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T190153&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111471&fm=227957350110858&tin=02508201610067®Number=0000000000092771&sum=100019 [19:01:45]OFD Sender: Processing packet 111471 [packets to send 38, broken 37] [19:01:45]ProducePacketName [19:01:45]name=ofd_packets/00111471 [19:01:45]OFD Sender: To server: pG, [19:01:45]CommunicateWithHost lk.salyk.kg:30040 [19:01:45]ConnectInit lk.salyk.kg [19:01:45]written 0, free lines is 4095 [19:01:45]Connected sock=10 [19: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 35 30 38 33 0C 01 00 00 69 04 04 01 EC BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 21 2B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 6F B3 01 00 35 04 06 00 CF 53 74 E0 96 8A 24 A9 8A 82 6B CB AD 13 [19:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0F 97 47 00 2B 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 35 30 38 33 10 04 04 00 6F B3 01 00 F4 03 04 00 82 C2 72 66 B6 04 01 00 00 B9 5C F6 F9 2C F3 6E F1 [19:01:45]CommunicateWithHost err = 0 [19:01:45]CheckOFDResponse [19:01:45]1017 (14) - 77093643461234 [19:01:45]1041 (16) - 0000000000875083 [19:01:45]1040 (4) - 111471 [19:01:45]1012 (4) - 19.06.2024 11:35 [19:01:45]1206 (1) - 0 [19:01:45]OFD Sender: Remove packet 111471 [19:01:45]ProducePacketName [19:01:45]name=ofd_packets/00111471 [19:01:45]NVStorageDeleteData [19:01:45]Write to MH i2c: 01 00 00 92 29 BB [19:01:45]Write i2c OK [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 07 00 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: 01 07 00 92 29 00 00 00 00 00 DD 0C AB [19:01:45]RasterBufferAndPrint [19:01:45]line [19:01:45]line [19:01:45]line [19:01:45]line [19:01:45]line [19:01:45]written 0, free lines is 3302 [19:01:45]MH_Cut [19:01:45]Write to MH i2c: D1 01 00 99 29 01 94 [19:01:45]Write i2c OK [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: D1 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: D1 01 00 [19:01:45]MH_I2C_Read... [19:01:45]Read from MH i2c: D1 01 00 99 29 00 93 [19:01:45]Write to MH i2c: 01 00 00 9A 29 C3 [19:01:45]Write i2c OK [19:01:45]MH_I2C_Read... [19:01:46]OFD Sender: No OFD packet to send [19:01:46]*** Cut start [19:01:46]*** Partial cut [19:01:46]*** CUTSNS_PIN = 1 [19:01:46]*** CUTSNS_PIN = 0 [19:01:46]*** Brake cut motor [19:01:47]Read from MH i2c: 01 [19:01:47]MH_I2C_Read... [19:01:47]*** Stop cut motor [19:01:47]*** Cut end [19:01:47]Read from MH i2c: 01 07 00 [19:01:47]MH_I2C_Read... [19:01:47]Read from MH i2c: 01 07 00 9A 29 00 00 00 00 00 FF 0F D8 [19:01:47]process_action close_receipt done [19:01:47]requested_data is exist [19:01:47]produce_requested_data [19:01:47]requested_item fm.sn is exist - process it [19:01:47]wFMCommunicate request_size=4 [19:01:47]MH_SAM_APDU [19:01:47]CAPDU: 80 11 00 00 [19:01:47]Write to MH i2c: E2 08 00 9B 29 80 11 00 00 00 00 00 00 3E [19:01:47]Write i2c OK [19:01:47]MH_I2C_Read... [19:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:47]Read from MH i2c: E2 [19:01:47]MH_I2C_Read... [19:01:47]Read from MH i2c: E2 17 00 [19:01:47]MH_I2C_Read... [19:01:47]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 35 30 38 33 90 00 90 [19:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:01:47]wFMCommunicate OK [19:01:47]requested_item fd.num is exist - process it [19:01:47]SAM_PROTO_GetFieldsCounters [19:01:47]wFMCommunicate request_size=4 [19:01:47]MH_SAM_APDU [19:01:47]CAPDU: 80 13 00 00 [19:01:47]Write to MH i2c: E2 08 00 9C 29 80 13 00 00 00 00 00 00 41 [19:01:47]Write i2c OK [19:01:47]MH_I2C_Read... [19:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:47]Read from MH i2c: E2 [19:01:47]MH_I2C_Read... [19:01:47]Read from MH i2c: E2 62 00 [19:01:47]MH_I2C_Read... [19:01:47]Read from MH i2c: E2 62 00 9C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B3 01 00 0E 04 04 00 84 01 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 9E [19:01: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:47]wFMCommunicate OK [19:01:47]SAM_PROTO_GetFieldsCounters done [19:01:47]requested_item shift.num is exist - process it [19:01:47]requested_item shift.opened is exist - process it [19:01:47]req_shift_opened [19:01:47]FM_GetShiftState [19:01:47]SAM_PROTO_GetShiftState [19:01:47]wFMCommunicate request_size=4 [19:01:47]MH_SAM_APDU [19:01:47]CAPDU: 80 13 01 00 [19:01:47]Write to MH i2c: E2 08 00 9D 29 80 13 01 00 00 00 00 00 43 [19:01:47]Write i2c OK [19:01:47]MH_I2C_Read... [19:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:47]Read from MH i2c: E2 [19:01:47]MH_I2C_Read... [19:01:47]Read from MH i2c: E2 0E 00 [19:01:47]MH_I2C_Read... [19:01:47]Read from MH i2c: E2 0E 00 9D 29 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8D [19:01:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:01:47]wFMCommunicate OK [19:01:47]SAM_PROTO_GetShiftState done [19:01:47]FM_GetShiftState done [19:01:47]req_shift_opened done [19:01:47]requested_item shift.open_date is exist - process it [19:01:47]req_shift_open_date [19:01:47]req_shift_open_date done [19:01:47]produce_requested_data done [19:01:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111471,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:01:47]process_action_free close_receipt [19:01:47]json_value_free [19:01:47]json_value_free done [19:01:47]process_json_proto returns [19:01:47]Send response to host [19:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111471,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:01:47]free response buf [19:01:47]execute_script done [19:01:47]execute_script returns [19:01:47]free content buf [19:01:47]Sock 7.Close socket [19:01:47]Sock 7.Thread stoped [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:11]OFD Sender: No OFD packet to send [19:10:16]OFD Sender: No OFD packet to send [19:10:21]OFD Sender: No OFD packet to send [19:10:26]OFD Sender: No OFD packet to send [19:10:31]OFD Sender: No OFD packet to send [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:56]OFD Sender: No OFD packet to send [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:14]accept exits with 9 [19:12:14]New connection [19:12:14]New thread 3067321700 created [19:12:14]Thread 3067465060 joined [19:12:14]Waiting for new connection... [19:12:14] Sock 9.Parse request [19:12:14]Sock 9.Check first char [19:12:14]Sock 9.First char is OK [19:12:14]request: POST /json_proto HTTP/1.0 [19:12:14]Method: POST [19:12:14]URL: /json_proto [19:12:14]Method is POST - this is cgi request [19:12:14]url: /json_proto [19:12:14]query_string will be loaded in cgi processing [19:12:14]execute_cgi json_proto POST (null) [19:12:14]execute_cgi path=json_proto method=POST [19:12:14]POST find Content-Length [19:12:14]Host: 172.17.59.68:8080 [19:12:14]Content-Length: 1198 [19:12:14]Content-Type: application/json [19:12:14] [19:12:14]POST finish read [19:12:14]Found Content-Length = 1198 [19:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320057\u000A19.06.2024 17:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:14]execute_script... [19:12:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320057\u000A19.06.2024 17:40\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:14]POST & json_proto [19:12:14]process_json_proto [19:12:14]json parsed OK: [19:12:14]protocol is kg_v1.0 [19:12:14]action value=print_text [19:12:14]process_action print_text [19:12:14]cmd_print_text [19:12:14]ExternCall_PrintAddStr [19:12:14]wPrintStart [19:12:14]Write to MH i2c: 01 00 00 9E 29 C7 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 07 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 07 00 9E 29 00 00 00 00 00 FF 0F DC [19:12:14]RasterBufferAndPrint [19:12:14]line *****ТОВАРНЫЙ ЧЕК***** [19:12:14]line АЗС 65 [19:12:14]line Партнер нефть [19:12:14]line 02508201610067 [19:12:14]line Кассир : Амантуров Р. [19:12:14]line Счет N : (1)320057 [19:12:14]line 19.06.2024 17:40 [19:12:14]line ПРОДАЖА [19:12:14]line ТРК (МРК, ГНК): 22 [19:12:14]line Вид ГСМ : 2710194210 [19:12:14]line ДТ-К-5 [19:12:14]line 50.000 x 72.90 [19:12:14]line ИТОГ: 3645.00 [19:12:14]line Тип оплаты: Талоны: Топливная Карта [19:12:14]line 01591 [19:12:14]line ______________________ [19:12:14]line (подпись) [19:12:14]written 0, free lines is 4095 [19:12:14]Write to MH i2c: 01 00 00 B2 29 DB [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 07 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: 01 07 00 B2 29 00 00 00 00 00 0E 0E FE [19:12:14]RasterBufferAndPrint [19:12:14]line [19:12:14]line [19:12:14]line [19:12:14]line [19:12:14]line [19:12:14]written 0, free lines is 3599 [19:12:14]MH_Cut [19:12:14]Write to MH i2c: D1 01 00 B9 29 01 B4 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: D1 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: D1 01 00 [19:12:14]MH_I2C_Read... [19:12:14]Read from MH i2c: D1 01 00 B9 29 00 B3 [19:12:14]Write to MH i2c: 01 00 00 BA 29 E3 [19:12:14]Write i2c OK [19:12:14]MH_I2C_Read... [19:12:14]*** Cut start [19:12:14]*** Partial cut [19:12:14]*** CUTSNS_PIN = 1 [19:12:14]*** CUTSNS_PIN = 0 [19:12:15]*** Brake cut motor [19:12:15]Read from MH i2c: 01 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: 01 07 00 [19:12:15]MH_I2C_Read... [19:12:15]*** Stop cut motor [19:12:15]*** Cut end [19:12:15]Read from MH i2c: 01 07 00 BA 29 00 00 00 00 00 FF 0F F8 [19:12:15]process_action print_text done [19:12:15]requested_data is exist [19:12:15]produce_requested_data [19:12:15]requested_item fm.sn is exist - process it [19:12:15]wFMCommunicate request_size=4 [19:12:15]MH_SAM_APDU [19:12:15]CAPDU: 80 11 00 00 [19:12:15]Write to MH i2c: E2 08 00 BB 29 80 11 00 00 00 00 00 00 5E [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:15]Read from MH i2c: E2 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: E2 17 00 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: E2 17 00 BB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [19:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:12:15]wFMCommunicate OK [19:12:15]requested_item fd.num is exist - process it [19:12:15]SAM_PROTO_GetFieldsCounters [19:12:15]wFMCommunicate request_size=4 [19:12:15]MH_SAM_APDU [19:12:15]CAPDU: 80 13 00 00 [19:12:15]Write to MH i2c: E2 08 00 BC 29 80 13 00 00 00 00 00 00 61 [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: E2 [19:12:15]MH_I2C_Read... [19:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:15]Read from MH i2c: E2 62 00 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: E2 62 00 BC 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B3 01 00 0E 04 04 00 84 01 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 BE [19:12: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 6F B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:15]wFMCommunicate OK [19:12:15]SAM_PROTO_GetFieldsCounters done [19:12:15]requested_item shift.num is exist - process it [19:12:15]requested_item shift.opened is exist - process it [19:12:15]req_shift_opened [19:12:15]FM_GetShiftState [19:12:15]SAM_PROTO_GetShiftState [19:12:15]wFMCommunicate request_size=4 [19:12:15]MH_SAM_APDU [19:12:15]CAPDU: 80 13 01 00 [19:12:15]Write to MH i2c: E2 08 00 BD 29 80 13 01 00 00 00 00 00 63 [19:12:15]Write i2c OK [19:12:15]MH_I2C_Read... [19:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:15]Read from MH i2c: E2 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: E2 0E 00 [19:12:15]MH_I2C_Read... [19:12:15]Read from MH i2c: E2 0E 00 BD 29 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AD [19:12:15]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:12:15]wFMCommunicate OK [19:12:15]SAM_PROTO_GetShiftState done [19:12:15]FM_GetShiftState done [19:12:15]req_shift_opened done [19:12:15]requested_item shift.open_date is exist - process it [19:12:15]req_shift_open_date [19:12:15]req_shift_open_date done [19:12:15]produce_requested_data done [19:12:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111471,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:12:15]process_action_free print_text [19:12:15]json_value_free [19:12:15]json_value_free done [19:12:15]process_json_proto returns [19:12:15]Send response to host [19:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111471,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:12:15]free response buf [19:12:15]execute_script done [19:12:15]execute_script returns [19:12:15]free content buf [19:12:15]Sock 9.Close socket [19:12:15]Sock 9.Thread stoped [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]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:46]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [19:16:56]OFD Sender: No OFD packet to send [19:17:01]OFD Sender: No OFD packet to send [19:17:06]OFD Sender: No OFD packet to send [19:17:11]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [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:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23: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:37]OFD Sender: No OFD packet to send [19:26:40]accept exits with 7 [19:26:40]New connection [19:26:40]New thread 3067465060 created [19:26:40]Thread 3067321700 joined [19:26:40]Waiting for new connection... [19:26:40] Sock 7.Parse request [19:26:40]Sock 7.Check first char [19:26:40]Sock 7.First char is OK [19:26:40]request: POST /json_proto HTTP/1.0 [19:26:40]Method: POST [19:26:40]URL: /json_proto [19:26:40]Method is POST - this is cgi request [19:26:40]url: /json_proto [19:26:40]query_string will be loaded in cgi processing [19:26:40]execute_cgi json_proto POST (null) [19:26:40]execute_cgi path=json_proto method=POST [19:26:40]POST find Content-Length [19:26:40]Host: 172.17.59.68:8080 [19:26:40]Content-Length: 805 [19:26:40]Content-Type: application/json [19:26:40] [19:26:40]POST finish read [19:26:40]Found Content-Length = 805 [19:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:40]execute_script... [19:26: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)320058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:40]POST & json_proto [19:26:40]process_json_proto [19:26:40]json parsed OK: [19:26:40]protocol is kg_v1.0 [19:26:40]action value=close_receipt [19:26:40]process_action close_receipt [19:26:40]cmd_close_receipt [19:26:40]MH_GetDate [19:26:40]Write to MH i2c: F0 00 00 BE 29 D6 [19:26:40]Write i2c OK [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: F0 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: F0 09 00 [19:26:40]MH_I2C_Read... [19:26:40]Read from MH i2c: F0 09 00 BE 29 00 FA 30 73 66 BC EC 60 65 4F [19:26:40]GetLastDocTimeStamp 1718823713 [19:26:40]current date 1718825210 [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 BF 29 80 13 01 00 00 00 00 00 65 [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 BF 29 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AF [19:26:40]RAPDU: 09 00 01 31 35 72 66 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]opened in 1718760753 [19:26:40]opened+sec_in_day 1718847153 [19:26:40]quantity*price = 100018 [19:26:40]sum+1 = 100020 [19:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 221 19.06.2024 19:26 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111472 ФПД: 69262697421051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T192650&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111472&fm=69262697421051&tin=02508201610067®Number=0000000000092771&sum=100019 [19:26:41]StoreToDocumentArchive [19:26:41]shift 388 fd 111472 [19:26:41]save to /storage/0388/doc_00111472 [19:26:41]save last doc name /storage/0388/doc_00111472 to /storage/kkm_last_doc_name [19:26:41]save OK [19:26:41]Clear old archive folders... [19:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:26:41]tlvbuf is 00EBEDF0 [19:26:41]SAM_PROTO_ClearQueue [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 09 00 00 [19:26:41]Write to MH i2c: E2 08 00 CC 29 80 09 00 00 00 00 00 00 67 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 CC 29 00 90 00 69 [19:26:41]RAPDU: 90 00 [19:26:41]wFMCommunicate OK [19:26:41]SAM_PROTO_ClearQueue done [19:26:41]KKMCreateOFDPacket [19:26:41]OFDProtocolAddRootSTLVToBuf [19:26:41]FM_MakeSignedData [19:26:41]FM_MakeSignedData [19:26:41]SAM_PROTO_SignData [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 0D 01 02 [19:26:41]Write to MH i2c: E2 08 00 CD 29 80 0D 01 02 00 00 00 00 6F [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 CD 29 00 90 00 6A [19:26:41]RAPDU: 90 00 [19:26:41]wFMCommunicate OK [19:26:41]wFMCommunicate request_size=255 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FA 30 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B3 01 00 35 04 06 00 3E FE 7A 79 [19:26:41]Write to MH i2c: E2 02 01 CE 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FA 30 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B3 01 00 35 04 06 00 3E FE 7A 79 00 00 B3 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 CE 29 00 90 00 6B [19:26:41]RAPDU: 90 00 [19:26:41]wFMCommunicate OK [19:26:41]wFMCommunicate request_size=7 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 0D 02 02 02 D8 FB [19:26:41]Write to MH i2c: E2 0A 00 CF 29 80 0D 02 02 02 00 D8 FB 00 00 49 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [19:26:41]RAPDU: 90 00 [19:26:41]wFMCommunicate OK [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 0D 03 02 [19:26:41]Write to MH i2c: E2 08 00 D0 29 80 0D 03 02 00 00 00 00 74 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 0B 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 0B 00 D0 29 00 0C 18 CB 25 7E 34 2C 71 90 00 D8 [19:26:41]RAPDU: 0C 18 CB 25 7E 34 2C 71 90 00 [19:26:41]wFMCommunicate OK [19:26:41]SAM_PROTO_SignData done [19:26:41]FM_MakeSignedData done [19:26:41]CreateOFDProtocolMessage [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 11 00 00 [19:26:41]Write to MH i2c: E2 08 00 D1 29 80 11 00 00 00 00 00 00 74 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 17 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 17 00 D1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [19:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:26:41]wFMCommunicate OK [19:26:41]CreateOFDProtocolMessage done [19:26:41]OFDSenderStorePacket 111472 [19:26:41]StoreOFDPacket docnum=111472 [19:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D8 08 04 01 1A 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FA 30 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B3 01 00 35 04 06 00 3E FE 7A 79 D8 FB 0C 18 CB 25 7E 34 2C 71 [19:26:41]CheckFolder [19:26:41]dirname=/storage/ofd_packets [19:26:41]CheckFolder done [19:26:41]ProducePacketName [19:26:41]name=ofd_packets/00111472 [19:26:41]NVStorageSaveData ofd_packets/00111472 [19:26:41]File name is /storage/ofd_packets/00111472 [19:26:41]Write 298 bytes [19:26:41]NVStorageSaveData done [19:26:41]OFDSenderStorePacket done [19:26:41]KKMCreateOFDPacket done [19:26:41]NVStorageSaveData kkm_last_timestamp [19:26:41]File name is /storage/kkm_last_timestamp [19:26:41]Write 4 bytes [19:26:41]NVStorageSaveData done [19:26:41]ExternCall_PrintAddStr [19:26:41]wPrintStart [19:26:41]Write to MH i2c: 01 00 00 D2 29 FB [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: 01 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: 01 07 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: 01 07 00 D2 29 00 00 00 00 00 FF 0F 10 [19:26:41]RasterBufferAndPrint [19:26:41]line Счет N : (1)320058 [19:26:41]line ИНН: 02508201610067 [19:26:41]line Контрольно-Кассовый Чек [19:26:41]line ПРОДАЖА [19:26:41]line ТРК (МРК, ГНК) : 22 [19:26:41]line Товар: 2710194210 [19:26:41]line ДТ-К-5 [19:26:41]line 13.720 * 72.90 [19:26:41]line = 1000.19 [19:26:41]line НДС 12% НСП 1% [19:26:41]line > о реализуемом товаре [19:26:41]line ИТОГО: 1000.19 [19:26:41]line НСП 1% : 8.85 [19:26:41]line НДС 12% : 106.21 [19:26:41]line Наличными: 0.00 [19:26:41]line Безнал.: 1000.19 [19:26:41]line Место: АЗС № 65 "Партнер Нефть" [19:26:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:26:41]line СНО: Общий режим [19:26:41]line Чек 221 19.06.2024 19:26 [19:26:41]line Смена: 388 ФФД: 1.0 [19:26:41]line ЗНМ: 0300000198 [19:26:41]line РНМ: 0000000000092771 [19:26:41]line Версия ККМ: 001 [19:26:41]line Платежная система: О! деньги [19:26:41]line ФМ: 0000000000875083 [19:26:41]line ФД: 111472 [19:26:41]line ФПД: 69262697421051 [19:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T192650&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111472&fm=69262697421051&tin=02508201610067®Number=0000000000092771&sum=100019 [19:26:42]OFD Sender: Processing packet 111472 [packets to send 38, broken 37] [19:26:42]ProducePacketName [19:26:42]name=ofd_packets/00111472 [19:26:42]OFD Sender: To server: pG, [19:26:42]CommunicateWithHost lk.salyk.kg:30040 [19:26:42]ConnectInit lk.salyk.kg [19:26:42]written 0, free lines is 4095 [19:26:42]Connected sock=10 [19:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 D8 08 04 01 1A 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 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 FA 30 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B3 01 00 35 04 06 00 3E FE 7A 79 D8 FB 0C 18 CB 25 7E 34 2C 71 [19:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 97 CA 47 00 72 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 70 B3 01 00 F4 03 04 00 5B C8 72 66 B6 04 01 00 00 C7 7F 35 04 33 48 0C 41 [19:26:42]CommunicateWithHost err = 0 [19:26:42]CheckOFDResponse [19:26:42]1017 (14) - 77093643461234 [19:26:42]1041 (16) - 0000000000875083 [19:26:42]1040 (4) - 111472 [19:26:42]1012 (4) - 19.06.2024 12:00 [19:26:42]1206 (1) - 0 [19:26:42]OFD Sender: Remove packet 111472 [19:26:42]ProducePacketName [19:26:42]name=ofd_packets/00111472 [19:26:42]NVStorageDeleteData [19:26:42]Write to MH i2c: 01 00 00 FC 29 25 [19:26:42]Write i2c OK [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: 01 [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: 01 07 00 [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: 01 07 00 FC 29 00 00 00 00 00 E0 0C 18 [19:26:42]RasterBufferAndPrint [19:26:42]line [19:26:42]line [19:26:42]line [19:26:42]line [19:26:42]line [19:26:42]written 0, free lines is 3306 [19:26:42]MH_Cut [19:26:42]Write to MH i2c: D1 01 00 03 2A 01 FF [19:26:42]Write i2c OK [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: D1 [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: D1 01 00 [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: D1 01 00 03 2A 00 FE [19:26:42]Write to MH i2c: 01 00 00 04 2A 2E [19:26:42]Write i2c OK [19:26:42]MH_I2C_Read... [19:26:43]OFD Sender: No OFD packet to send [19:26:43]*** Cut start [19:26:43]*** Partial cut [19:26:43]*** CUTSNS_PIN = 1 [19:26:43]*** CUTSNS_PIN = 0 [19:26:43]*** Brake cut motor [19:26:44]Read from MH i2c: 01 [19:26:44]MH_I2C_Read... [19:26:44]*** Stop cut motor [19:26:44]*** Cut end [19:26:44]Read from MH i2c: 01 07 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: 01 07 00 04 2A 00 00 00 00 00 FF 0F 43 [19:26:44]process_action close_receipt done [19:26:44]requested_data is exist [19:26:44]produce_requested_data [19:26:44]requested_item fm.sn is exist - process it [19:26:44]wFMCommunicate request_size=4 [19:26:44]MH_SAM_APDU [19:26:44]CAPDU: 80 11 00 00 [19:26:44]Write to MH i2c: E2 08 00 05 2A 80 11 00 00 00 00 00 00 A9 [19:26:44]Write i2c OK [19:26:44]MH_I2C_Read... [19:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:44]Read from MH i2c: E2 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 17 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 17 00 05 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [19:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:26:44]wFMCommunicate OK [19:26:44]requested_item fd.num is exist - process it [19:26:44]SAM_PROTO_GetFieldsCounters [19:26:44]wFMCommunicate request_size=4 [19:26:44]MH_SAM_APDU [19:26:44]CAPDU: 80 13 00 00 [19:26:44]Write to MH i2c: E2 08 00 06 2A 80 13 00 00 00 00 00 00 AC [19:26:44]Write i2c OK [19:26:44]MH_I2C_Read... [19:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:44]Read from MH i2c: E2 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 62 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 62 00 06 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B3 01 00 0E 04 04 00 84 01 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 0D [19:26: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 70 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:44]wFMCommunicate OK [19:26:44]SAM_PROTO_GetFieldsCounters done [19:26:44]requested_item shift.num is exist - process it [19:26:44]requested_item shift.opened is exist - process it [19:26:44]req_shift_opened [19:26:44]FM_GetShiftState [19:26:44]SAM_PROTO_GetShiftState [19:26:44]wFMCommunicate request_size=4 [19:26:44]MH_SAM_APDU [19:26:44]CAPDU: 80 13 01 00 [19:26:44]Write to MH i2c: E2 08 00 07 2A 80 13 01 00 00 00 00 00 AE [19:26:44]Write i2c OK [19:26:44]MH_I2C_Read... [19:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:44]Read from MH i2c: E2 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 0E 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 0E 00 07 2A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F8 [19:26:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:26:44]wFMCommunicate OK [19:26:44]SAM_PROTO_GetShiftState done [19:26:44]FM_GetShiftState done [19:26:44]req_shift_opened done [19:26:44]requested_item shift.open_date is exist - process it [19:26:44]req_shift_open_date [19:26:44]req_shift_open_date done [19:26:44]produce_requested_data done [19:26:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111472,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:26:44]process_action_free close_receipt [19:26:44]json_value_free [19:26:44]json_value_free done [19:26:44]process_json_proto returns [19:26:44]Send response to host [19:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111472,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:26:44]free response buf [19:26:44]execute_script done [19:26:44]execute_script returns [19:26:44]free content buf [19:26:44]Sock 7.Close socket [19:26:44]Sock 7.Thread stoped [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:44]accept exits with 9 [19:31:44]New connection [19:31:44]New thread 3067321700 created [19:31:44]Thread 3067465060 joined [19:31:44]Waiting for new connection... [19:31:44] Sock 9.Parse request [19:31:44]Sock 9.Check first char [19:31:44]Sock 9.First char is OK [19:31:44]request: POST /json_proto HTTP/1.0 [19:31:44]Method: POST [19:31:44]URL: /json_proto [19:31:44]Method is POST - this is cgi request [19:31:44]url: /json_proto [19:31:44]query_string will be loaded in cgi processing [19:31:44]execute_cgi json_proto POST (null) [19:31:44]execute_cgi path=json_proto method=POST [19:31:44]POST find Content-Length [19:31:44]Host: 172.17.59.68:8080 [19:31:44]Content-Length: 677 [19:31:44]Content-Type: application/json [19:31:44] [19:31:44]POST finish read [19:31:44]Found Content-Length = 677 [19:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:44]execute_script... [19:31: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)320059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:44]POST & json_proto [19:31:44]process_json_proto [19:31:44]json parsed OK: [19:31:44]protocol is kg_v1.0 [19:31:44]action value=close_receipt [19:31:44]process_action close_receipt [19:31:44]cmd_close_receipt [19:31:44]MH_GetDate [19:31:44]Write to MH i2c: F0 00 00 08 2A 21 [19:31:44]Write i2c OK [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: F0 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: F0 09 00 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: F0 09 00 08 2A 00 2B 32 73 66 BC EC 60 65 CD [19:31:44]GetLastDocTimeStamp 1718825210 [19:31:44]current date 1718825515 [19:31:44]FM_GetShiftState [19:31:44]SAM_PROTO_GetShiftState [19:31:44]wFMCommunicate request_size=4 [19:31:44]MH_SAM_APDU [19:31:44]CAPDU: 80 13 01 00 [19:31:44]Write to MH i2c: E2 08 00 09 2A 80 13 01 00 00 00 00 00 B0 [19:31:44]Write i2c OK [19:31:44]MH_I2C_Read... [19:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:44]Read from MH i2c: E2 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: E2 0E 00 [19:31:44]MH_I2C_Read... [19:31:44]Read from MH i2c: E2 0E 00 09 2A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FA [19:31:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:31:44]wFMCommunicate OK [19:31:44]SAM_PROTO_GetShiftState done [19:31:44]FM_GetShiftState done [19:31:44]opened in 1718760753 [19:31:44]opened+sec_in_day 1718847153 [19:31:44]quantity*price = 60025 [19:31:44]sum+1 = 60027 [19:31:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 222 19.06.2024 19:31 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111473 ФПД: 242871303716702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193155&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111473&fm=242871303716702&tin=02508201610067®Number=0000000000092771&sum=60000 [19:31:45]StoreToDocumentArchive [19:31:45]shift 388 fd 111473 [19:31:45]save to /storage/0388/doc_00111473 [19:31:45]save last doc name /storage/0388/doc_00111473 to /storage/kkm_last_doc_name [19:31:45]save OK [19:31:45]Clear old archive folders... [19:31:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:45]tlvbuf is 00EBFB90 [19:31:45]SAM_PROTO_ClearQueue [19:31:45]wFMCommunicate request_size=4 [19:31:45]MH_SAM_APDU [19:31:45]CAPDU: 80 09 00 00 [19:31:45]Write to MH i2c: E2 08 00 16 2A 80 09 00 00 00 00 00 00 B2 [19:31:45]Write i2c OK [19:31:45]MH_I2C_Read... [19:31:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:45]Read from MH i2c: E2 [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: E2 03 00 [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: E2 03 00 16 2A 00 90 00 B4 [19:31:45]RAPDU: 90 00 [19:31:45]wFMCommunicate OK [19:31:45]SAM_PROTO_ClearQueue done [19:31:45]KKMCreateOFDPacket [19:31:45]OFDProtocolAddRootSTLVToBuf [19:31:45]FM_MakeSignedData [19:31:45]FM_MakeSignedData [19:31:45]SAM_PROTO_SignData [19:31:45]wFMCommunicate request_size=4 [19:31:45]MH_SAM_APDU [19:31:45]CAPDU: 80 0D 01 02 [19:31:45]Write to MH i2c: E2 08 00 17 2A 80 0D 01 02 00 00 00 00 BA [19:31:45]Write i2c OK [19:31:45]MH_I2C_Read... [19:31:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:45]Read from MH i2c: E2 [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: E2 03 00 [19:31:45]MH_I2C_Read... [19:31:45]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [19:31:45]RAPDU: 90 00 [19:31:45]wFMCommunicate OK [19:31:45]wFMCommunicate request_size=255 [19:31:45]MH_SAM_APDU [19:31: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2B 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B3 01 00 35 04 06 00 DC [19:31:45]Write to MH i2c: E2 02 01 18 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2B 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B3 01 00 35 04 06 00 DC 00 00 E5 [19:31:45]Write i2c OK [19:31:45]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [19:31:46]RAPDU: 90 00 [19:31:46]wFMCommunicate OK [19:31:46]wFMCommunicate request_size=10 [19:31:46]MH_SAM_APDU [19:31:46]CAPDU: 80 0D 02 02 05 E3 E1 C8 BF 5E [19:31:46]Write to MH i2c: E2 0D 00 19 2A 80 0D 02 02 05 00 E3 E1 C8 BF 5E 00 00 70 [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [19:31:46]RAPDU: 90 00 [19:31:46]wFMCommunicate OK [19:31:46]wFMCommunicate request_size=4 [19:31:46]MH_SAM_APDU [19:31:46]CAPDU: 80 0D 03 02 [19:31:46]Write to MH i2c: E2 08 00 1A 2A 80 0D 03 02 00 00 00 00 BF [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 0B 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 0B 00 1A 2A 00 52 57 FB CA BE 4C 76 70 90 00 1E [19:31:46]RAPDU: 52 57 FB CA BE 4C 76 70 90 00 [19:31:46]wFMCommunicate OK [19:31:46]SAM_PROTO_SignData done [19:31:46]FM_MakeSignedData done [19:31:46]CreateOFDProtocolMessage [19:31:46]wFMCommunicate request_size=4 [19:31:46]MH_SAM_APDU [19:31:46]CAPDU: 80 11 00 00 [19:31:46]Write to MH i2c: E2 08 00 1B 2A 80 11 00 00 00 00 00 00 BF [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:46]Read from MH i2c: E2 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: E2 17 00 [19:31:46]MH_I2C_Read... [19:31:46]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 35 30 38 33 90 00 11 [19:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:31:46]wFMCommunicate OK [19:31:46]CreateOFDProtocolMessage done [19:31:46]OFDSenderStorePacket 111473 [19:31:46]StoreOFDPacket docnum=111473 [19:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 8B 07 01 59 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2B 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B3 01 00 35 04 06 00 DC E3 E1 C8 BF 5E 52 57 FB CA BE 4C 76 70 [19:31:46]CheckFolder [19:31:46]dirname=/storage/ofd_packets [19:31:46]CheckFolder done [19:31:46]ProducePacketName [19:31:46]name=ofd_packets/00111473 [19:31:46]NVStorageSaveData ofd_packets/00111473 [19:31:46]File name is /storage/ofd_packets/00111473 [19:31:46]Write 301 bytes [19:31:46]NVStorageSaveData done [19:31:46]OFDSenderStorePacket done [19:31:46]KKMCreateOFDPacket done [19:31:46]NVStorageSaveData kkm_last_timestamp [19:31:46]File name is /storage/kkm_last_timestamp [19:31:46]Write 4 bytes [19:31:46]NVStorageSaveData done [19:31:46]ExternCall_PrintAddStr [19:31:46]wPrintStart [19:31:46]Write to MH i2c: 01 00 00 1C 2A 46 [19:31:46]Write i2c OK [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: 01 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: 01 07 00 [19:31:46]MH_I2C_Read... [19:31:46]Read from MH i2c: 01 07 00 1C 2A 00 00 00 00 00 FF 0F 5B [19:31:46]RasterBufferAndPrint [19:31:46]line Счет N : (1)320059 [19:31:46]line ИНН: 02508201610067 [19:31:46]line Контрольно-Кассовый Чек [19:31:46]line ПРОДАЖА [19:31:46]line ТРК (МРК, ГНК) : 11 [19:31:46]line Товар: 2710124130 [19:31:46]line Аи-92-К-5 [19:31:46]line 9.040 * 66.40 [19:31:46]line = 600.26 [19:31:46]line НДС 12% НСП 1% [19:31:46]line > о реализуемом товаре [19:31:46]line ОКРУГЛЕНИЕ: -0.26 [19:31:46]line ИТОГО: 600.00 [19:31:46]line Внесено: 600.00 [19:31:46]line СДАЧА: 0.00 [19:31:46]line НСП 1% : 5.31 [19:31:46]line НДС 12% : 63.74 [19:31:46]line Наличными: 600.00 [19:31:46]line Безнал.: 0.00 [19:31:46]line Место: АЗС № 65 "Партнер Нефть" [19:31:46]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:31:46]line СНО: Общий режим [19:31:46]line Чек 222 19.06.2024 19:31 [19:31:46]line Смена: 388 ФФД: 1.0 [19:31:46]line ЗНМ: 0300000198 [19:31:46]line РНМ: 0000000000092771 [19:31:46]line Версия ККМ: 001 [19:31:46]line ФМ: 0000000000875083 [19:31:46]line ФД: 111473 [19:31:46]line ФПД: 242871303716702 [19:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193155&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111473&fm=242871303716702&tin=02508201610067®Number=0000000000092771&sum=60000 [19:31:46]OFD Sender: Processing packet 111473 [packets to send 38, broken 37] [19:31:46]ProducePacketName [19:31:46]name=ofd_packets/00111473 [19:31:46]OFD Sender: To server: pG, [19:31:46]CommunicateWithHost lk.salyk.kg:30040 [19:31:46]ConnectInit lk.salyk.kg [19:31:46]written 0, free lines is 4095 [19:31:46]Connected sock=11 [19:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 20 8B 07 01 59 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2B 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 71 B3 01 00 35 04 06 00 DC E3 E1 C8 BF 5E 52 57 FB CA BE 4C 76 70 [19:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8C 44 47 00 A3 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 35 30 38 33 10 04 04 00 71 B3 01 00 F4 03 04 00 8B C9 72 66 B6 04 01 00 00 63 A3 AC E6 AB 5A D5 23 [19:31:47]CommunicateWithHost err = 0 [19:31:47]CheckOFDResponse [19:31:47]1017 (14) - 77093643461234 [19:31:47]1041 (16) - 0000000000875083 [19:31:47]1040 (4) - 111473 [19:31:47]1012 (4) - 19.06.2024 12:05 [19:31:47]1206 (1) - 0 [19:31:47]OFD Sender: Remove packet 111473 [19:31:47]ProducePacketName [19:31:47]name=ofd_packets/00111473 [19:31:47]NVStorageDeleteData [19:31:47]Write to MH i2c: 01 00 00 47 2A 71 [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: 01 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: 01 07 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: 01 07 00 47 2A 00 00 00 00 00 CD 0C 51 [19:31:47]RasterBufferAndPrint [19:31:47]line [19:31:47]line [19:31:47]line [19:31:47]line [19:31:47]line [19:31:47]written 0, free lines is 3283 [19:31:47]MH_Cut [19:31:47]Write to MH i2c: D1 01 00 4E 2A 01 4A [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: D1 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: D1 01 00 [19:31:47]MH_I2C_Read... [19:31:47]Read from MH i2c: D1 01 00 4E 2A 00 49 [19:31:47]Write to MH i2c: 01 00 00 4F 2A 79 [19:31:47]Write i2c OK [19:31:47]MH_I2C_Read... [19:31:47]OFD Sender: No OFD packet to send [19:31:47]*** Cut start [19:31:47]*** Partial cut [19:31:47]*** CUTSNS_PIN = 1 [19:31:48]*** CUTSNS_PIN = 0 [19:31:48]*** Brake cut motor [19:31:48]Read from MH i2c: 01 [19:31:48]MH_I2C_Read... [19:31:48]*** Stop cut motor [19:31:48]*** Cut end [19:31:48]Read from MH i2c: 01 07 00 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: 01 07 00 4F 2A 00 00 00 00 00 FF 0F 8E [19:31:48]process_action close_receipt done [19:31:48]requested_data is exist [19:31:48]produce_requested_data [19:31:48]requested_item fm.sn is exist - process it [19:31:48]wFMCommunicate request_size=4 [19:31:48]MH_SAM_APDU [19:31:48]CAPDU: 80 11 00 00 [19:31:48]Write to MH i2c: E2 08 00 50 2A 80 11 00 00 00 00 00 00 F4 [19:31:48]Write i2c OK [19:31:48]MH_I2C_Read... [19:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:48]Read from MH i2c: E2 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 17 00 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 17 00 50 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [19:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:31:48]wFMCommunicate OK [19:31:48]requested_item fd.num is exist - process it [19:31:48]SAM_PROTO_GetFieldsCounters [19:31:48]wFMCommunicate request_size=4 [19:31:48]MH_SAM_APDU [19:31:48]CAPDU: 80 13 00 00 [19:31:48]Write to MH i2c: E2 08 00 51 2A 80 13 00 00 00 00 00 00 F7 [19:31:48]Write i2c OK [19:31:48]MH_I2C_Read... [19:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:48]Read from MH i2c: E2 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 62 00 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 62 00 51 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B3 01 00 0E 04 04 00 84 01 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 5C [19:31:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 71 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:48]wFMCommunicate OK [19:31:48]SAM_PROTO_GetFieldsCounters done [19:31:48]requested_item shift.num is exist - process it [19:31:48]requested_item shift.opened is exist - process it [19:31:48]req_shift_opened [19:31:48]FM_GetShiftState [19:31:48]SAM_PROTO_GetShiftState [19:31:48]wFMCommunicate request_size=4 [19:31:48]MH_SAM_APDU [19:31:48]CAPDU: 80 13 01 00 [19:31:48]Write to MH i2c: E2 08 00 52 2A 80 13 01 00 00 00 00 00 F9 [19:31:48]Write i2c OK [19:31:48]MH_I2C_Read... [19:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:48]Read from MH i2c: E2 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 0E 00 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 0E 00 52 2A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 43 [19:31:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:31:48]wFMCommunicate OK [19:31:48]SAM_PROTO_GetShiftState done [19:31:48]FM_GetShiftState done [19:31:48]req_shift_opened done [19:31:48]requested_item shift.open_date is exist - process it [19:31:48]req_shift_open_date [19:31:48]req_shift_open_date done [19:31:48]produce_requested_data done [19:31:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111473,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:31:48]process_action_free close_receipt [19:31:48]json_value_free [19:31:48]json_value_free done [19:31:48]process_json_proto returns [19:31:48]Send response to host [19:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111473,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:31:48]free response buf [19:31:48]execute_script done [19:31:48]execute_script returns [19:31:48]free content buf [19:31:48]Sock 9.Close socket [19:31:48]Sock 9.Thread stoped [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:16]accept exits with 7 [19:33:16]New connection [19:33:16]New thread 3067465060 created [19:33:16]Thread 3067321700 joined [19:33:16]Waiting for new connection... [19:33:16] Sock 7.Parse request [19:33:16]Sock 7.Check first char [19:33:16]Sock 7.First char is OK [19:33:16]request: POST /json_proto HTTP/1.0 [19:33:16]Method: POST [19:33:16]URL: /json_proto [19:33:16]Method is POST - this is cgi request [19:33:16]url: /json_proto [19:33:16]query_string will be loaded in cgi processing [19:33:16]execute_cgi json_proto POST (null) [19:33:16]execute_cgi path=json_proto method=POST [19:33:16]POST find Content-Length [19:33:16]Host: 172.17.59.68:8080 [19:33:16]Content-Length: 677 [19:33:16]Content-Type: application/json [19:33:16] [19:33:16]POST finish read [19:33:16]Found Content-Length = 677 [19:33:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.810, "sum" : 120.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:16]execute_script... [19:33: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)320060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 1.810, "sum" : 120.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:16]POST & json_proto [19:33:16]process_json_proto [19:33:16]json parsed OK: [19:33:16]protocol is kg_v1.0 [19:33:16]action value=close_receipt [19:33:16]process_action close_receipt [19:33:16]cmd_close_receipt [19:33:16]MH_GetDate [19:33:16]Write to MH i2c: F0 00 00 53 2A 6C [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: F0 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: F0 09 00 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: F0 09 00 53 2A 00 86 32 73 66 BC EC 60 65 73 [19:33:16]GetLastDocTimeStamp 1718825515 [19:33:16]current date 1718825606 [19:33:16]FM_GetShiftState [19:33:16]SAM_PROTO_GetShiftState [19:33:16]wFMCommunicate request_size=4 [19:33:16]MH_SAM_APDU [19:33:16]CAPDU: 80 13 01 00 [19:33:16]Write to MH i2c: E2 08 00 54 2A 80 13 01 00 00 00 00 00 FB [19:33:16]Write i2c OK [19:33:16]MH_I2C_Read... [19:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:16]Read from MH i2c: E2 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 0E 00 [19:33:16]MH_I2C_Read... [19:33:16]Read from MH i2c: E2 0E 00 54 2A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 45 [19:33:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:33:16]wFMCommunicate OK [19:33:16]SAM_PROTO_GetShiftState done [19:33:16]FM_GetShiftState done [19:33:16]opened in 1718760753 [19:33:16]opened+sec_in_day 1718847153 [19:33:16]quantity*price = 12018 [19:33:16]sum+1 = 12019 [19:33:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.76 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 223 19.06.2024 19:33 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111474 ФПД: 91741436030053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193326&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111474&fm=91741436030053&tin=02508201610067®Number=0000000000092771&sum=12000 [19:33:17]StoreToDocumentArchive [19:33:17]shift 388 fd 111474 [19:33:17]save to /storage/0388/doc_00111474 [19:33:17]save last doc name /storage/0388/doc_00111474 to /storage/kkm_last_doc_name [19:33:17]save OK [19:33:17]Clear old archive folders... [19:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:17]tlvbuf is 00F17B80 [19:33:17]SAM_PROTO_ClearQueue [19:33:17]wFMCommunicate request_size=4 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 09 00 00 [19:33:17]Write to MH i2c: E2 08 00 61 2A 80 09 00 00 00 00 00 00 FD [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 61 2A 00 90 00 FF [19:33:17]RAPDU: 90 00 [19:33:17]wFMCommunicate OK [19:33:17]SAM_PROTO_ClearQueue done [19:33:17]KKMCreateOFDPacket [19:33:17]OFDProtocolAddRootSTLVToBuf [19:33:17]FM_MakeSignedData [19:33:17]FM_MakeSignedData [19:33:17]SAM_PROTO_SignData [19:33:17]wFMCommunicate request_size=4 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 0D 01 02 [19:33:17]Write to MH i2c: E2 08 00 62 2A 80 0D 01 02 00 00 00 00 05 [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:17]Read from MH i2c: E2 03 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 62 2A 00 90 00 00 [19:33:17]RAPDU: 90 00 [19:33:17]wFMCommunicate OK [19:33:17]wFMCommunicate request_size=255 [19:33:17]MH_SAM_APDU [19:33: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 12 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 86 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B3 01 00 35 04 06 00 53 [19:33:17]Write to MH i2c: E2 02 01 63 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 12 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 86 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B3 01 00 35 04 06 00 53 00 00 45 [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]OFD Sender: No OFD packet to send [19:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 63 2A 00 90 00 01 [19:33:17]RAPDU: 90 00 [19:33:17]wFMCommunicate OK [19:33:17]wFMCommunicate request_size=10 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 0D 02 02 05 70 37 B4 AC 65 [19:33:17]Write to MH i2c: E2 0D 00 64 2A 80 0D 02 02 05 00 70 37 B4 AC 65 00 00 7E [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [19:33:17]RAPDU: 90 00 [19:33:17]wFMCommunicate OK [19:33:17]wFMCommunicate request_size=4 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 0D 03 02 [19:33:17]Write to MH i2c: E2 08 00 65 2A 80 0D 03 02 00 00 00 00 0A [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 0B 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 0B 00 65 2A 00 CB F8 A5 93 7F 44 23 F6 90 00 E2 [19:33:17]RAPDU: CB F8 A5 93 7F 44 23 F6 90 00 [19:33:17]wFMCommunicate OK [19:33:17]SAM_PROTO_SignData done [19:33:17]FM_MakeSignedData done [19:33:17]CreateOFDProtocolMessage [19:33:17]wFMCommunicate request_size=4 [19:33:17]MH_SAM_APDU [19:33:17]CAPDU: 80 11 00 00 [19:33:17]Write to MH i2c: E2 08 00 66 2A 80 11 00 00 00 00 00 00 0A [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:17]Read from MH i2c: E2 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: E2 17 00 [19:33:17]MH_I2C_Read... [19:33:17]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 35 30 38 33 90 00 5C [19:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:33:17]wFMCommunicate OK [19:33:17]CreateOFDProtocolMessage done [19:33:17]OFDSenderStorePacket 111474 [19:33:17]StoreOFDPacket docnum=111474 [19:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C1 35 07 01 AB CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 86 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B3 01 00 35 04 06 00 53 70 37 B4 AC 65 CB F8 A5 93 7F 44 23 F6 [19:33:17]CheckFolder [19:33:17]dirname=/storage/ofd_packets [19:33:17]CheckFolder done [19:33:17]ProducePacketName [19:33:17]name=ofd_packets/00111474 [19:33:17]NVStorageSaveData ofd_packets/00111474 [19:33:17]File name is /storage/ofd_packets/00111474 [19:33:17]Write 301 bytes [19:33:17]NVStorageSaveData done [19:33:17]OFDSenderStorePacket done [19:33:17]KKMCreateOFDPacket done [19:33:17]NVStorageSaveData kkm_last_timestamp [19:33:17]File name is /storage/kkm_last_timestamp [19:33:17]Write 4 bytes [19:33:17]NVStorageSaveData done [19:33:17]ExternCall_PrintAddStr [19:33:17]wPrintStart [19:33:17]Write to MH i2c: 01 00 00 67 2A 91 [19:33:17]Write i2c OK [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 07 00 [19:33:17]MH_I2C_Read... [19:33:17]Read from MH i2c: 01 07 00 67 2A 00 00 00 00 00 FF 0F A6 [19:33:17]RasterBufferAndPrint [19:33:17]line Счет N : (1)320060 [19:33:17]line ИНН: 02508201610067 [19:33:17]line Контрольно-Кассовый Чек [19:33:17]line ПРОДАЖА [19:33:17]line ТРК (МРК, ГНК) : 11 [19:33:17]line Товар: 2710124130 [19:33:17]line Аи-92-К-5 [19:33:17]line 1.810 * 66.40 [19:33:17]line = 120.18 [19:33:17]line НДС 12% НСП 1% [19:33:17]line > о реализуемом товаре [19:33:17]line ОКРУГЛЕНИЕ: -0.18 [19:33:17]line ИТОГО: 120.00 [19:33:17]line Внесено: 120.00 [19:33:17]line СДАЧА: 0.00 [19:33:17]line НСП 1% : 1.06 [19:33:17]line НДС 12% : 12.76 [19:33:17]line Наличными: 120.00 [19:33:17]line Безнал.: 0.00 [19:33:17]line Место: АЗС № 65 "Партнер Нефть" [19:33:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:33:17]line СНО: Общий режим [19:33:17]line Чек 223 19.06.2024 19:33 [19:33:17]line Смена: 388 ФФД: 1.0 [19:33:17]line ЗНМ: 0300000198 [19:33:17]line РНМ: 0000000000092771 [19:33:17]line Версия ККМ: 001 [19:33:17]line ФМ: 0000000000875083 [19:33:17]line ФД: 111474 [19:33:17]line ФПД: 91741436030053 [19:33:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193326&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111474&fm=91741436030053&tin=02508201610067®Number=0000000000092771&sum=12000 [19:33:18]OFD Sender: Processing packet 111474 [packets to send 38, broken 37] [19:33:18]ProducePacketName [19:33:18]name=ofd_packets/00111474 [19:33:18]OFD Sender: To server: pG, [19:33:18]CommunicateWithHost lk.salyk.kg:30040 [19:33:18]ConnectInit lk.salyk.kg [19:33:18]written 0, free lines is 4095 [19:33:18]Connected sock=10 [19:33:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C1 35 07 01 AB CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F2 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 86 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 72 B3 01 00 35 04 06 00 53 70 37 B4 AC 65 CB F8 A5 93 7F 44 23 F6 [19:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 82 E6 47 00 5F 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 35 30 38 33 10 04 04 00 72 B3 01 00 F4 03 04 00 E7 C9 72 66 B6 04 01 00 00 50 96 CC 0B C0 27 DE B7 [19:33:18]CommunicateWithHost err = 0 [19:33:18]CheckOFDResponse [19:33:18]1017 (14) - 77093643461234 [19:33:18]1041 (16) - 0000000000875083 [19:33:18]1040 (4) - 111474 [19:33:18]1012 (4) - 19.06.2024 12:07 [19:33:18]1206 (1) - 0 [19:33:18]OFD Sender: Remove packet 111474 [19:33:18]ProducePacketName [19:33:18]name=ofd_packets/00111474 [19:33:18]NVStorageDeleteData [19:33:18]Write to MH i2c: 01 00 00 92 2A BC [19:33:18]Write i2c OK [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: 01 [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: 01 07 00 [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: 01 07 00 92 2A 00 00 00 00 00 D6 0C A5 [19:33:18]RasterBufferAndPrint [19:33:18]line [19:33:18]line [19:33:18]line [19:33:18]line [19:33:18]line [19:33:18]written 0, free lines is 3289 [19:33:18]MH_Cut [19:33:18]Write to MH i2c: D1 01 00 99 2A 01 95 [19:33:18]Write i2c OK [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: D1 [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: D1 01 00 [19:33:18]MH_I2C_Read... [19:33:18]Read from MH i2c: D1 01 00 99 2A 00 94 [19:33:18]Write to MH i2c: 01 00 00 9A 2A C4 [19:33:18]Write i2c OK [19:33:18]MH_I2C_Read... [19:33:19]OFD Sender: No OFD packet to send [19:33:19]*** Cut start [19:33:19]*** Partial cut [19:33:19]*** CUTSNS_PIN = 1 [19:33:19]*** CUTSNS_PIN = 0 [19:33:19]*** Brake cut motor [19:33:20]Read from MH i2c: 01 [19:33:20]MH_I2C_Read... [19:33:20]*** Stop cut motor [19:33:20]*** Cut end [19:33:20]Read from MH i2c: 01 07 00 [19:33:20]MH_I2C_Read... [19:33:20]Read from MH i2c: 01 07 00 9A 2A 00 00 00 00 00 FF 0F D9 [19:33:20]process_action close_receipt done [19:33:20]requested_data is exist [19:33:20]produce_requested_data [19:33:20]requested_item fm.sn is exist - process it [19:33:20]wFMCommunicate request_size=4 [19:33:20]MH_SAM_APDU [19:33:20]CAPDU: 80 11 00 00 [19:33:20]Write to MH i2c: E2 08 00 9B 2A 80 11 00 00 00 00 00 00 3F [19:33:20]Write i2c OK [19:33:20]MH_I2C_Read... [19:33:20]Read from MH i2c: E2 [19:33:20]MH_I2C_Read... [19:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:20]Read from MH i2c: E2 17 00 [19:33:20]MH_I2C_Read... [19:33:20]Read from MH i2c: E2 17 00 9B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 91 [19:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:33:20]wFMCommunicate OK [19:33:20]requested_item fd.num is exist - process it [19:33:20]SAM_PROTO_GetFieldsCounters [19:33:20]wFMCommunicate request_size=4 [19:33:20]MH_SAM_APDU [19:33:20]CAPDU: 80 13 00 00 [19:33:20]Write to MH i2c: E2 08 00 9C 2A 80 13 00 00 00 00 00 00 42 [19:33:20]Write i2c OK [19:33:20]MH_I2C_Read... [19:33:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:20]Read from MH i2c: E2 [19:33:20]MH_I2C_Read... [19:33:20]Read from MH i2c: E2 62 00 [19:33:20]MH_I2C_Read... [19:33:20]Read from MH i2c: E2 62 00 9C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B3 01 00 0E 04 04 00 84 01 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 AB [19:33: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 72 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:20]wFMCommunicate OK [19:33:20]SAM_PROTO_GetFieldsCounters done [19:33:20]requested_item shift.num is exist - process it [19:33:20]requested_item shift.opened is exist - process it [19:33:20]req_shift_opened [19:33:20]FM_GetShiftState [19:33:20]SAM_PROTO_GetShiftState [19:33:20]wFMCommunicate request_size=4 [19:33:20]MH_SAM_APDU [19:33:20]CAPDU: 80 13 01 00 [19:33:20]Write to MH i2c: E2 08 00 9D 2A 80 13 01 00 00 00 00 00 44 [19:33:20]Write i2c OK [19:33:20]MH_I2C_Read... [19:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:20]Read from MH i2c: E2 [19:33:20]MH_I2C_Read... [19:33:20]Read from MH i2c: E2 0E 00 [19:33:20]MH_I2C_Read... [19:33:20]Read from MH i2c: E2 0E 00 9D 2A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8E [19:33:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:33:20]wFMCommunicate OK [19:33:20]SAM_PROTO_GetShiftState done [19:33:20]FM_GetShiftState done [19:33:20]req_shift_opened done [19:33:20]requested_item shift.open_date is exist - process it [19:33:20]req_shift_open_date [19:33:20]req_shift_open_date done [19:33:20]produce_requested_data done [19:33:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111474,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:33:20]process_action_free close_receipt [19:33:20]json_value_free [19:33:20]json_value_free done [19:33:20]process_json_proto returns [19:33:20]Send response to host [19:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111474,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:33:20]free response buf [19:33:20]execute_script done [19:33:20]execute_script returns [19:33:20]free content buf [19:33:20]Sock 7.Close socket [19:33:20]Sock 7.Thread stoped [19:33:24]OFD Sender: No OFD packet to send [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:36]accept exits with 9 [19:34:36]New connection [19:34:36]New thread 3067321700 created [19:34:36]Thread 3067465060 joined [19:34:36]Waiting for new connection... [19:34:36] Sock 9.Parse request [19:34:36]Sock 9.Check first char [19:34:36]Sock 9.First char is OK [19:34:36]request: POST /json_proto HTTP/1.0 [19:34:36]Method: POST [19:34:36]URL: /json_proto [19:34:36]Method is POST - this is cgi request [19:34:36]url: /json_proto [19:34:36]query_string will be loaded in cgi processing [19:34:36]execute_cgi json_proto POST (null) [19:34:36]execute_cgi path=json_proto method=POST [19:34:36]POST find Content-Length [19:34:36]Host: 172.17.59.68:8080 [19:34:36]Content-Length: 677 [19:34:36]Content-Type: application/json [19:34:36] [19:34:36]POST finish read [19:34:36]Found Content-Length = 677 [19:34:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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:34:36]execute_script... [19:34: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)320061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "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:34:36]POST & json_proto [19:34:36]process_json_proto [19:34:36]json parsed OK: [19:34:36]protocol is kg_v1.0 [19:34:36]action value=close_receipt [19:34:36]process_action close_receipt [19:34:36]cmd_close_receipt [19:34:36]MH_GetDate [19:34:36]Write to MH i2c: F0 00 00 9E 2A B7 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: F0 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: F0 09 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: F0 09 00 9E 2A 00 D7 32 73 66 BC EC 60 65 0F [19:34:36]GetLastDocTimeStamp 1718825606 [19:34:36]current date 1718825687 [19:34:36]FM_GetShiftState [19:34:36]SAM_PROTO_GetShiftState [19:34:36]wFMCommunicate request_size=4 [19:34:36]MH_SAM_APDU [19:34:36]CAPDU: 80 13 01 00 [19:34:36]Write to MH i2c: E2 08 00 9F 2A 80 13 01 00 00 00 00 00 46 [19:34:36]Write i2c OK [19:34:36]MH_I2C_Read... [19:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:36]Read from MH i2c: E2 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 0E 00 [19:34:36]MH_I2C_Read... [19:34:36]Read from MH i2c: E2 0E 00 9F 2A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 90 [19:34:36]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:34:36]wFMCommunicate OK [19:34:36]SAM_PROTO_GetShiftState done [19:34:36]FM_GetShiftState done [19:34:36]opened in 1718760753 [19:34:36]opened+sec_in_day 1718847153 [19:34:36]quantity*price = 25032 [19:34:36]sum+1 = 25034 [19:34:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 224 19.06.2024 19:34 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111475 ФПД: 8287585169170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193447&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111475&fm=8287585169170&tin=02508201610067®Number=0000000000092771&sum=25000 [19:34:38]StoreToDocumentArchive [19:34:38]shift 388 fd 111475 [19:34:38]save to /storage/0388/doc_00111475 [19:34:38]save last doc name /storage/0388/doc_00111475 to /storage/kkm_last_doc_name [19:34:38]save OK [19:34:38]Clear old archive folders... [19:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:38]tlvbuf is 00F0CFC0 [19:34:38]SAM_PROTO_ClearQueue [19:34:38]wFMCommunicate request_size=4 [19:34:38]MH_SAM_APDU [19:34:38]CAPDU: 80 09 00 00 [19:34:38]Write to MH i2c: E2 08 00 AC 2A 80 09 00 00 00 00 00 00 48 [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 03 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 03 00 AC 2A 00 90 00 4A [19:34:38]RAPDU: 90 00 [19:34:38]wFMCommunicate OK [19:34:38]SAM_PROTO_ClearQueue done [19:34:38]KKMCreateOFDPacket [19:34:38]OFDProtocolAddRootSTLVToBuf [19:34:38]FM_MakeSignedData [19:34:38]FM_MakeSignedData [19:34:38]SAM_PROTO_SignData [19:34:38]wFMCommunicate request_size=4 [19:34:38]MH_SAM_APDU [19:34:38]CAPDU: 80 0D 01 02 [19:34:38]Write to MH i2c: E2 08 00 AD 2A 80 0D 01 02 00 00 00 00 50 [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 03 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 03 00 AD 2A 00 90 00 4B [19:34:38]RAPDU: 90 00 [19:34:38]wFMCommunicate OK [19:34:38]wFMCommunicate request_size=255 [19:34:38]MH_SAM_APDU [19:34: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 E0 00 00 00 F4 03 04 00 D7 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B3 01 00 35 04 06 00 07 [19:34:38]Write to MH i2c: E2 02 01 AE 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 E0 00 00 00 F4 03 04 00 D7 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B3 01 00 35 04 06 00 07 00 00 25 [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 03 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [19:34:38]RAPDU: 90 00 [19:34:38]wFMCommunicate OK [19:34:38]wFMCommunicate request_size=10 [19:34:38]MH_SAM_APDU [19:34:38]CAPDU: 80 0D 02 02 05 89 9A 91 EF 12 [19:34:38]Write to MH i2c: E2 0D 00 AF 2A 80 0D 02 02 05 00 89 9A 91 EF 12 00 00 12 [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 03 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [19:34:38]RAPDU: 90 00 [19:34:38]wFMCommunicate OK [19:34:38]wFMCommunicate request_size=4 [19:34:38]MH_SAM_APDU [19:34:38]CAPDU: 80 0D 03 02 [19:34:38]Write to MH i2c: E2 08 00 B0 2A 80 0D 03 02 00 00 00 00 55 [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 0B 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 0B 00 B0 2A 00 74 CE 9C 5C 46 18 C7 EF 90 00 A4 [19:34:38]RAPDU: 74 CE 9C 5C 46 18 C7 EF 90 00 [19:34:38]wFMCommunicate OK [19:34:38]SAM_PROTO_SignData done [19:34:38]FM_MakeSignedData done [19:34:38]CreateOFDProtocolMessage [19:34:38]wFMCommunicate request_size=4 [19:34:38]MH_SAM_APDU [19:34:38]CAPDU: 80 11 00 00 [19:34:38]Write to MH i2c: E2 08 00 B1 2A 80 11 00 00 00 00 00 00 55 [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:38]Read from MH i2c: E2 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 17 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: E2 17 00 B1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A7 [19:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:34:38]wFMCommunicate OK [19:34:38]CreateOFDProtocolMessage done [19:34:38]OFDSenderStorePacket 111475 [19:34:38]StoreOFDPacket docnum=111475 [19:34:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 39 07 01 85 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 E0 00 00 00 F4 03 04 00 D7 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B3 01 00 35 04 06 00 07 89 9A 91 EF 12 74 CE 9C 5C 46 18 C7 EF [19:34:38]CheckFolder [19:34:38]dirname=/storage/ofd_packets [19:34:38]CheckFolder done [19:34:38]ProducePacketName [19:34:38]name=ofd_packets/00111475 [19:34:38]NVStorageSaveData ofd_packets/00111475 [19:34:38]File name is /storage/ofd_packets/00111475 [19:34:38]Write 301 bytes [19:34:38]NVStorageSaveData done [19:34:38]OFDSenderStorePacket done [19:34:38]KKMCreateOFDPacket done [19:34:38]NVStorageSaveData kkm_last_timestamp [19:34:38]File name is /storage/kkm_last_timestamp [19:34:38]Write 4 bytes [19:34:38]NVStorageSaveData done [19:34:38]ExternCall_PrintAddStr [19:34:38]wPrintStart [19:34:38]Write to MH i2c: 01 00 00 B2 2A DC [19:34:38]Write i2c OK [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: 01 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: 01 07 00 [19:34:38]MH_I2C_Read... [19:34:38]Read from MH i2c: 01 07 00 B2 2A 00 00 00 00 00 FF 0F F1 [19:34:38]RasterBufferAndPrint [19:34:38]line Счет N : (1)320061 [19:34:38]line ИНН: 02508201610067 [19:34:38]line Контрольно-Кассовый Чек [19:34:38]line ПРОДАЖА [19:34:38]line ТРК (МРК, ГНК) : 11 [19:34:38]line Товар: 2710124130 [19:34:38]line Аи-92-К-5 [19:34:38]line 3.770 * 66.40 [19:34:38]line = 250.33 [19:34:38]line НДС 12% НСП 1% [19:34:38]line > о реализуемом товаре [19:34:38]line ОКРУГЛЕНИЕ: -0.33 [19:34:38]line ИТОГО: 250.00 [19:34:38]line Внесено: 250.00 [19:34:38]line СДАЧА: 0.00 [19:34:38]line НСП 1% : 2.21 [19:34:38]line НДС 12% : 26.58 [19:34:38]line Наличными: 250.00 [19:34:38]line Безнал.: 0.00 [19:34:38]line Место: АЗС № 65 "Партнер Нефть" [19:34:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:34:38]line СНО: Общий режим [19:34:38]line Чек 224 19.06.2024 19:34 [19:34:38]line Смена: 388 ФФД: 1.0 [19:34:38]line ЗНМ: 0300000198 [19:34:38]line РНМ: 0000000000092771 [19:34:38]line Версия ККМ: 001 [19:34:38]line ФМ: 0000000000875083 [19:34:38]line ФД: 111475 [19:34:38]line ФПД: 8287585169170 [19:34:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193447&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111475&fm=8287585169170&tin=02508201610067®Number=0000000000092771&sum=25000 [19:34:38]OFD Sender: Processing packet 111475 [packets to send 38, broken 37] [19:34:38]ProducePacketName [19:34:38]name=ofd_packets/00111475 [19:34:38]OFD Sender: To server: pG, [19:34:38]CommunicateWithHost lk.salyk.kg:30040 [19:34:38]ConnectInit lk.salyk.kg [19:34:38]written 0, free lines is 4095 [19:34:39]Connected sock=7 [19:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C8 39 07 01 85 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 62 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 E0 00 00 00 F4 03 04 00 D7 32 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 73 B3 01 00 35 04 06 00 07 89 9A 91 EF 12 74 CE 9C 5C 46 18 C7 EF [19:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CE A6 47 00 0C 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 35 30 38 33 10 04 04 00 73 B3 01 00 F4 03 04 00 37 CA 72 66 B6 04 01 00 00 9D F8 59 61 72 77 82 86 [19:34:39]CommunicateWithHost err = 0 [19:34:39]CheckOFDResponse [19:34:39]1017 (14) - 77093643461234 [19:34:39]1041 (16) - 0000000000875083 [19:34:39]1040 (4) - 111475 [19:34:39]1012 (4) - 19.06.2024 12:08 [19:34:39]1206 (1) - 0 [19:34:39]OFD Sender: Remove packet 111475 [19:34:39]ProducePacketName [19:34:39]name=ofd_packets/00111475 [19:34:39]NVStorageDeleteData [19:34:39]Write to MH i2c: 01 00 00 DD 2A 07 [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: 01 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: 01 07 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: 01 07 00 DD 2A 00 00 00 00 00 D7 0C F1 [19:34:39]RasterBufferAndPrint [19:34:39]line [19:34:39]line [19:34:39]line [19:34:39]line [19:34:39]line [19:34:39]written 0, free lines is 3297 [19:34:39]MH_Cut [19:34:39]Write to MH i2c: D1 01 00 E4 2A 01 E0 [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: D1 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: D1 01 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: D1 01 00 E4 2A 00 DF [19:34:39]Write to MH i2c: 01 00 00 E5 2A 0F [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]OFD Sender: No OFD packet to send [19:34:40]*** Cut start [19:34:40]*** Partial cut [19:34:40]*** CUTSNS_PIN = 1 [19:34:40]*** CUTSNS_PIN = 0 [19:34:40]*** Brake cut motor [19:34:40]Read from MH i2c: 01 [19:34:40]MH_I2C_Read... [19:34:40]*** Stop cut motor [19:34:40]*** Cut end [19:34:40]Read from MH i2c: 01 07 00 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: 01 07 00 E5 2A 00 00 00 00 00 FF 0F 24 [19:34:40]process_action close_receipt done [19:34:40]requested_data is exist [19:34:40]produce_requested_data [19:34:40]requested_item fm.sn is exist - process it [19:34:40]wFMCommunicate request_size=4 [19:34:40]MH_SAM_APDU [19:34:40]CAPDU: 80 11 00 00 [19:34:40]Write to MH i2c: E2 08 00 E6 2A 80 11 00 00 00 00 00 00 8A [19:34:40]Write i2c OK [19:34:40]MH_I2C_Read... [19:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:40]Read from MH i2c: E2 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: E2 17 00 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: E2 17 00 E6 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DC [19:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:34:40]wFMCommunicate OK [19:34:40]requested_item fd.num is exist - process it [19:34:40]SAM_PROTO_GetFieldsCounters [19:34:40]wFMCommunicate request_size=4 [19:34:40]MH_SAM_APDU [19:34:40]CAPDU: 80 13 00 00 [19:34:40]Write to MH i2c: E2 08 00 E7 2A 80 13 00 00 00 00 00 00 8D [19:34:40]Write i2c OK [19:34:40]MH_I2C_Read... [19:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:40]Read from MH i2c: E2 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: E2 62 00 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: E2 62 00 E7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B3 01 00 0E 04 04 00 84 01 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 FA [19:34:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 73 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:40]wFMCommunicate OK [19:34:40]SAM_PROTO_GetFieldsCounters done [19:34:40]requested_item shift.num is exist - process it [19:34:40]requested_item shift.opened is exist - process it [19:34:40]req_shift_opened [19:34:40]FM_GetShiftState [19:34:40]SAM_PROTO_GetShiftState [19:34:40]wFMCommunicate request_size=4 [19:34:40]MH_SAM_APDU [19:34:40]CAPDU: 80 13 01 00 [19:34:40]Write to MH i2c: E2 08 00 E8 2A 80 13 01 00 00 00 00 00 8F [19:34:40]Write i2c OK [19:34:40]MH_I2C_Read... [19:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:41]Read from MH i2c: E2 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: E2 0E 00 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: E2 0E 00 E8 2A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D9 [19:34:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:34:41]wFMCommunicate OK [19:34:41]SAM_PROTO_GetShiftState done [19:34:41]FM_GetShiftState done [19:34:41]req_shift_opened done [19:34:41]requested_item shift.open_date is exist - process it [19:34:41]req_shift_open_date [19:34:41]req_shift_open_date done [19:34:41]produce_requested_data done [19:34:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111475,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:34:41]process_action_free close_receipt [19:34:41]json_value_free [19:34:41]json_value_free done [19:34:41]process_json_proto returns [19:34:41]Send response to host [19:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111475,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:34:41]free response buf [19:34:41]execute_script done [19:34:41]execute_script returns [19:34:41]free content buf [19:34:41]Sock 9.Close socket [19:34:41]Sock 9.Thread stoped [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 17 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 17 00 FC 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [19:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:39:35]wFMCommunicate OK [19:39:35]CreateOFDProtocolMessage done [19:39:35]OFDSenderStorePacket 111476 [19:39:35]StoreOFDPacket docnum=111476 [19:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 02 88 04 01 2D 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 00 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B3 01 00 35 04 06 00 63 82 E2 44 7A 02 96 78 2F BE 0F D8 59 D2 [19:39:35]CheckFolder [19:39:35]dirname=/storage/ofd_packets [19:39:35]CheckFolder done [19:39:35]ProducePacketName [19:39:35]name=ofd_packets/00111476 [19:39:35]NVStorageSaveData ofd_packets/00111476 [19:39:35]File name is /storage/ofd_packets/00111476 [19:39:35]Write 298 bytes [19:39:35]NVStorageSaveData done [19:39:35]OFDSenderStorePacket done [19:39:35]KKMCreateOFDPacket done [19:39:35]NVStorageSaveData kkm_last_timestamp [19:39:35]File name is /storage/kkm_last_timestamp [19:39:35]Write 4 bytes [19:39:35]NVStorageSaveData done [19:39:35]ExternCall_PrintAddStr [19:39:35]wPrintStart [19:39:35]Write to MH i2c: 01 00 00 FD 2A 27 [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: 01 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: 01 07 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: 01 07 00 FD 2A 00 00 00 00 00 FF 0F 3C [19:39:35]RasterBufferAndPrint [19:39:35]line Счет N : (1)320063 [19:39:35]line ИНН: 02508201610067 [19:39:35]line Контрольно-Кассовый Чек [19:39:35]line ПРОДАЖА [19:39:35]line ТРК (МРК, ГНК) : 22 [19:39:35]line Товар: 2710194210 [19:39:35]line ДТ-К-5 [19:39:35]line 6.860 * 72.90 [19:39:35]line = 500.09 [19:39:35]line НДС 12% НСП 1% [19:39:35]line > о реализуемом товаре [19:39:35]line ОКРУГЛЕНИЕ: -0.09 [19:39:35]line ИТОГО: 500.00 [19:39:35]line Внесено: 500.00 [19:39:35]line СДАЧА: 0.00 [19:39:35]line НСП 1% : 4.43 [19:39:35]line НДС 12% : 53.11 [19:39:35]line Наличными: 500.00 [19:39:35]line Безнал.: 0.00 [19:39:35]line Место: АЗС № 65 "Партнер Нефть" [19:39:35]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:39:35]line СНО: Общий режим [19:39:35]line Чек 225 19.06.2024 19:39 [19:39:35]line Смена: 388 ФФД: 1.0 [19:39:35]line ЗНМ: 0300000198 [19:39:35]line РНМ: 0000000000092771 [19:39:35]line Версия ККМ: 001 [19:39:35]line ФМ: 0000000000875083 [19:39:35]line ФД: 111476 [19:39:35]line ФПД: 109413793036802 [19:39:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193944&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111476&fm=109413793036802&tin=02508201610067®Number=0000000000092771&sum=50000 [19:39:35]OFD Sender: Processing packet 111476 [packets to send 38, broken 37] [19:39:35]ProducePacketName [19:39:35]name=ofd_packets/00111476 [19:39:35]OFD Sender: To server: pG, [19:39:35]CommunicateWithHost lk.salyk.kg:30040 [19:39:35]ConnectInit lk.salyk.kg [19:39:35]written 0, free lines is 4095 [19:39:36]Write to MH i2c: 01 00 00 28 2B 53 [19:39:36]Write i2c OK [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: 01 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: 01 07 00 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: 01 07 00 28 2B 00 00 00 00 00 CD 0C 33 [19:39:36]RasterBufferAndPrint [19:39:36]line [19:39:36]line [19:39:36]line [19:39:36]line [19:39:36]line [19:39:36]written 0, free lines is 3283 [19:39:36]MH_Cut [19:39:36]Write to MH i2c: D1 01 00 2F 2B 01 2C [19:39:36]Write i2c OK [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: D1 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: D1 01 00 [19:39:36]MH_I2C_Read... [19:39:36]Read from MH i2c: D1 01 00 2F 2B 00 2B [19:39:36]Write to MH i2c: 01 00 00 30 2B 5B [19:39:36]Write i2c OK [19:39:36]MH_I2C_Read... [19:39:36]*** Cut start [19:39:36]*** Partial cut [19:39:36]*** CUTSNS_PIN = 1 [19:39:36]*** CUTSNS_PIN = 0 [19:39:37]*** Brake cut motor [19:39:37]Read from MH i2c: 01 [19:39:37]MH_I2C_Read... [19:39:37]*** Stop cut motor [19:39:37]*** Cut end [19:39:37]Read from MH i2c: 01 07 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: 01 07 00 30 2B 00 00 00 00 00 FF 0F 70 [19:39:37]process_action close_receipt done [19:39:37]requested_data is exist [19:39:37]produce_requested_data [19:39:37]requested_item fm.sn is exist - process it [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 11 00 00 [19:39:37]Write to MH i2c: E2 08 00 31 2B 80 11 00 00 00 00 00 00 D6 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 17 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 17 00 31 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 28 [19:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:39:37]wFMCommunicate OK [19:39:37]requested_item fd.num is exist - process it [19:39:37]SAM_PROTO_GetFieldsCounters [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 13 00 00 [19:39:37]Write to MH i2c: E2 08 00 32 2B 80 13 00 00 00 00 00 00 D9 [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 62 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 62 00 32 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B3 01 00 0E 04 04 00 84 01 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 4A [19:39: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 74 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:37]wFMCommunicate OK [19:39:37]SAM_PROTO_GetFieldsCounters done [19:39:37]requested_item shift.num is exist - process it [19:39:37]requested_item shift.opened is exist - process it [19:39:37]req_shift_opened [19:39:37]FM_GetShiftState [19:39:37]SAM_PROTO_GetShiftState [19:39:37]wFMCommunicate request_size=4 [19:39:37]MH_SAM_APDU [19:39:37]CAPDU: 80 13 01 00 [19:39:37]Write to MH i2c: E2 08 00 33 2B 80 13 01 00 00 00 00 00 DB [19:39:37]Write i2c OK [19:39:37]MH_I2C_Read... [19:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:37]Read from MH i2c: E2 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 0E 00 [19:39:37]MH_I2C_Read... [19:39:37]Read from MH i2c: E2 0E 00 33 2B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 25 [19:39:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:39:37]wFMCommunicate OK [19:39:37]SAM_PROTO_GetShiftState done [19:39:37]FM_GetShiftState done [19:39:37]req_shift_opened done [19:39:37]requested_item shift.open_date is exist - process it [19:39:37]req_shift_open_date [19:39:37]req_shift_open_date done [19:39:37]produce_requested_data done [19:39:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111476,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:39:37]process_action_free close_receipt [19:39:37]json_value_free [19:39:37]json_value_free done [19:39:37]process_json_proto returns [19:39:37]Send response to host [19:39:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111476,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:39:37]free response buf [19:39:37]execute_script done [19:39:37]execute_script returns [19:39:37]free content buf [19:39:37]Sock 10.Close socket [19:39:37]Sock 10.Thread stoped [19:39:40]accept exits with 9 [19:39:40]New connection [19:39:40]New thread 3067321700 created [19:39:40]Thread 3067465060 joined [19:39:40]Waiting for new connection... [19:39:40] Sock 9.Parse request [19:39:40]Sock 9.Check first char [19:39:40]Sock 9.First char is OK [19:39:40]request: POST /json_proto HTTP/1.0 [19:39:40]Method: POST [19:39:40]URL: /json_proto [19:39:40]Method is POST - this is cgi request [19:39:40]url: /json_proto [19:39:40]query_string will be loaded in cgi processing [19:39:40]execute_cgi json_proto POST (null) [19:39:40]execute_cgi path=json_proto method=POST [19:39:40]POST find Content-Length [19:39:40]Host: 172.17.59.68:8080 [19:39:40]Content-Length: 805 [19:39:40]Content-Type: application/json [19:39:40] [19:39:40]POST finish read [19:39:40]Found Content-Length = 805 [19:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:40]execute_script... [19:39: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)320062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:40]POST & json_proto [19:39:40]process_json_proto [19:39:40]json parsed OK: [19:39:40]protocol is kg_v1.0 [19:39:40]action value=close_receipt [19:39:40]process_action close_receipt [19:39:40]cmd_close_receipt [19:39:40]MH_GetDate [19:39:40]Write to MH i2c: F0 00 00 34 2B 4E [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 09 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 09 00 34 2B 00 07 34 73 66 BC EC 60 65 D8 [19:39:40]GetLastDocTimeStamp 1718825984 [19:39:40]current date 1718825991 [19:39:40]FM_GetShiftState [19:39:40]SAM_PROTO_GetShiftState [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 13 01 00 [19:39:40]Write to MH i2c: E2 08 00 35 2B 80 13 01 00 00 00 00 00 DD [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 35 2B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 27 [19:39:40]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetShiftState done [19:39:40]FM_GetShiftState done [19:39:40]opened in 1718760753 [19:39:40]opened+sec_in_day 1718847153 [19:39:40]quantity*price = 50065 [19:39:40]sum+1 = 50067 [19:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 226 19.06.2024 19:39 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111477 ФПД: 29846672146966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193951&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111477&fm=29846672146966&tin=02508201610067®Number=0000000000092771&sum=50066 [19:39:41]StoreToDocumentArchive [19:39:41]shift 388 fd 111477 [19:39:41]save to /storage/0388/doc_00111477 [19:39:41]save last doc name /storage/0388/doc_00111477 to /storage/kkm_last_doc_name [19:39:41]save OK [19:39:41]Clear old archive folders... [19:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:41]tlvbuf is 00FC5B90 [19:39:41]SAM_PROTO_ClearQueue [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 09 00 00 [19:39:41]Write to MH i2c: E2 08 00 42 2B 80 09 00 00 00 00 00 00 DF [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 42 2B 00 90 00 E1 [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]SAM_PROTO_ClearQueue done [19:39:41]KKMCreateOFDPacket [19:39:41]OFDProtocolAddRootSTLVToBuf [19:39:41]FM_MakeSignedData [19:39:41]FM_MakeSignedData [19:39:41]SAM_PROTO_SignData [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 01 02 [19:39:41]Write to MH i2c: E2 08 00 43 2B 80 0D 01 02 00 00 00 00 E7 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 43 2B 00 90 00 E2 [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]wFMCommunicate request_size=255 [19:39:41]MH_SAM_APDU [19:39: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 07 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B3 01 00 35 04 06 00 1B [19:39:41]Write to MH i2c: E2 02 01 44 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 07 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B3 01 00 35 04 06 00 1B 00 00 DE [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 44 2B 00 90 00 E3 [19:39:42]RAPDU: 90 00 [19:39:42]wFMCommunicate OK [19:39:42]wFMCommunicate request_size=10 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 0D 02 02 05 25 38 4A 82 16 [19:39:42]Write to MH i2c: E2 0D 00 45 2B 80 0D 02 02 05 00 25 38 4A 82 16 00 00 33 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 45 2B 00 90 00 E4 [19:39:42]RAPDU: 90 00 [19:39:42]wFMCommunicate OK [19:39:42]wFMCommunicate request_size=4 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 0D 03 02 [19:39:42]Write to MH i2c: E2 08 00 46 2B 80 0D 03 02 00 00 00 00 EC [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 0B 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 0B 00 46 2B 00 BA 8B 58 4C B0 16 63 16 90 00 15 [19:39:42]RAPDU: BA 8B 58 4C B0 16 63 16 90 00 [19:39:42]wFMCommunicate OK [19:39:42]SAM_PROTO_SignData done [19:39:42]FM_MakeSignedData done [19:39:42]CreateOFDProtocolMessage [19:39:42]wFMCommunicate request_size=4 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 11 00 00 [19:39:42]Write to MH i2c: E2 08 00 47 2B 80 11 00 00 00 00 00 00 EC [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 17 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 17 00 47 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [19:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:39:42]wFMCommunicate OK [19:39:42]CreateOFDProtocolMessage done [19:39:42]OFDSenderStorePacket 111477 [19:39:42]StoreOFDPacket docnum=111477 [19:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 01 07 01 B7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 07 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B3 01 00 35 04 06 00 1B 25 38 4A 82 16 BA 8B 58 4C B0 16 63 16 [19:39:42]CheckFolder [19:39:42]dirname=/storage/ofd_packets [19:39:42]CheckFolder done [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00111477 [19:39:42]NVStorageSaveData ofd_packets/00111477 [19:39:42]File name is /storage/ofd_packets/00111477 [19:39:42]Write 301 bytes [19:39:42]NVStorageSaveData done [19:39:42]OFDSenderStorePacket done [19:39:42]KKMCreateOFDPacket done [19:39:42]NVStorageSaveData kkm_last_timestamp [19:39:42]File name is /storage/kkm_last_timestamp [19:39:42]Write 4 bytes [19:39:42]NVStorageSaveData done [19:39:42]ExternCall_PrintAddStr [19:39:42]wPrintStart [19:39:42]Write to MH i2c: 01 00 00 48 2B 73 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 48 2B 00 00 00 00 00 FF 0F 88 [19:39:42]RasterBufferAndPrint [19:39:42]line Счет N : (1)320062 [19:39:42]line ИНН: 02508201610067 [19:39:42]line Контрольно-Кассовый Чек [19:39:42]line ПРОДАЖА [19:39:42]line ТРК (МРК, ГНК) : 11 [19:39:42]line Товар: 2710124130 [19:39:42]line Аи-92-К-5 [19:39:42]line 7.540 * 66.40 [19:39:42]line = 500.66 [19:39:42]line НДС 12% НСП 1% [19:39:42]line > о реализуемом товаре [19:39:42]line ИТОГО: 500.66 [19:39:42]line НСП 1% : 4.43 [19:39:42]line НДС 12% : 53.17 [19:39:42]line Наличными: 0.00 [19:39:42]line Безнал.: 500.66 [19:39:42]line Место: АЗС № 65 "Партнер Нефть" [19:39:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:39:42]line СНО: Общий режим [19:39:42]line Чек 226 19.06.2024 19:39 [19:39:42]line Смена: 388 ФФД: 1.0 [19:39:42]line ЗНМ: 0300000198 [19:39:42]line РНМ: 0000000000092771 [19:39:42]line Версия ККМ: 001 [19:39:42]line Платежная система: О! деньги [19:39:42]line ФМ: 0000000000875083 [19:39:42]line ФД: 111477 [19:39:42]line ФПД: 29846672146966 [19:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T193951&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111477&fm=29846672146966&tin=02508201610067®Number=0000000000092771&sum=50066 [19:39:42]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00111476 [19:39:42]OFD Sender: To server: pG, [19:39:42]CommunicateWithHost lk.salyk.kg:30040 [19:39:42]ConnectInit lk.salyk.kg [19:39:42]written 0, free lines is 4095 [19:39:42]Write to MH i2c: 01 00 00 72 2B 9D [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 72 2B 00 00 00 00 00 E3 0C 93 [19:39:42]RasterBufferAndPrint [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]written 0, free lines is 3312 [19:39:42]MH_Cut [19:39:42]Write to MH i2c: D1 01 00 79 2B 01 76 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 01 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 01 00 79 2B 00 75 [19:39:42]Write to MH i2c: 01 00 00 7A 2B A5 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:43]*** Cut start [19:39:43]*** Partial cut [19:39:43]*** CUTSNS_PIN = 1 [19:39:43]*** CUTSNS_PIN = 0 [19:39:43]*** Brake cut motor [19:39:44]Read from MH i2c: 01 [19:39:44]MH_I2C_Read... [19:39:44]*** Stop cut motor [19:39:44]*** Cut end [19:39:44]Read from MH i2c: 01 07 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 7A 2B 00 00 00 00 00 FF 0F BA [19:39:44]process_action close_receipt done [19:39:44]requested_data is exist [19:39:44]produce_requested_data [19:39:44]requested_item fm.sn is exist - process it [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 11 00 00 [19:39:44]Write to MH i2c: E2 08 00 7B 2B 80 11 00 00 00 00 00 00 20 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 17 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 17 00 7B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 72 [19:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:39:44]wFMCommunicate OK [19:39:44]requested_item fd.num is exist - process it [19:39:44]SAM_PROTO_GetFieldsCounters [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 13 00 00 [19:39:44]Write to MH i2c: E2 08 00 7C 2B 80 13 00 00 00 00 00 00 23 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 62 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 62 00 7C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B3 01 00 0E 04 04 00 84 01 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 98 [19:39: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 75 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_GetFieldsCounters done [19:39:44]requested_item shift.num is exist - process it [19:39:44]requested_item shift.opened is exist - process it [19:39:44]req_shift_opened [19:39:44]FM_GetShiftState [19:39:44]SAM_PROTO_GetShiftState [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 13 01 00 [19:39:44]Write to MH i2c: E2 08 00 7D 2B 80 13 01 00 00 00 00 00 25 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0E 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0E 00 7D 2B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6F [19:39:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_GetShiftState done [19:39:44]FM_GetShiftState done [19:39:44]req_shift_opened done [19:39:44]requested_item shift.open_date is exist - process it [19:39:44]req_shift_open_date [19:39:44]req_shift_open_date done [19:39:44]produce_requested_data done [19:39:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111477,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:39:44]process_action_free close_receipt [19:39:44]json_value_free [19:39:44]json_value_free done [19:39:44]process_json_proto returns [19:39:44]Send response to host [19:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111477,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:39:44]free response buf [19:39:44]execute_script done [19:39:44]execute_script returns [19:39:44]free content buf [19:39:44]Sock 9.Close socket [19:39:44]Sock 9.Thread stoped [19:39:47]ConnectInit Can't take IP for lk.salyk.kg [19:39:47]CommunicateWithHost connect error [19:39:47]CommunicateWithHost err = -1 [19:39:47]OFD Sender: Server communicate error [19:39:52]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:39:52]ProducePacketName [19:39:52]name=ofd_packets/00111476 [19:39:52]OFD Sender: To server: pG, [19:39:52]CommunicateWithHost lk.salyk.kg:30040 [19:39:52]ConnectInit lk.salyk.kg [19:39:57]ConnectInit Can't take IP for lk.salyk.kg [19:39:57]CommunicateWithHost connect error [19:39:57]CommunicateWithHost err = -1 [19:39:57]OFD Sender: Server communicate error [19:40:02]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:40:02]ProducePacketName [19:40:02]name=ofd_packets/00111476 [19:40:02]OFD Sender: To server: pG, [19:40:02]CommunicateWithHost lk.salyk.kg:30040 [19:40:02]ConnectInit lk.salyk.kg [19:40:07]ConnectInit Can't take IP for lk.salyk.kg [19:40:07]CommunicateWithHost connect error [19:40:07]CommunicateWithHost err = -1 [19:40:07]OFD Sender: Server communicate error [19:40:12]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:40:12]ProducePacketName [19:40:12]name=ofd_packets/00111476 [19:40:12]OFD Sender: To server: pG, [19:40:12]CommunicateWithHost lk.salyk.kg:30040 [19:40:12]ConnectInit lk.salyk.kg [19:40:17]ConnectInit Can't take IP for lk.salyk.kg [19:40:17]CommunicateWithHost connect error [19:40:17]CommunicateWithHost err = -1 [19:40:17]OFD Sender: Server communicate error [19:40:22]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:40:22]ProducePacketName [19:40:22]name=ofd_packets/00111476 [19:40:22]OFD Sender: To server: pG, [19:40:22]CommunicateWithHost lk.salyk.kg:30040 [19:40:22]ConnectInit lk.salyk.kg [19:40:27]ConnectInit Can't take IP for lk.salyk.kg [19:40:27]CommunicateWithHost connect error [19:40:27]CommunicateWithHost err = -1 [19:40:27]OFD Sender: Server communicate error [19:40:32]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:40:32]ProducePacketName [19:40:32]name=ofd_packets/00111476 [19:40:32]OFD Sender: To server: pG, [19:40:32]CommunicateWithHost lk.salyk.kg:30040 [19:40:32]ConnectInit lk.salyk.kg [19:40:36]ConnectInit Can't connect to host [19:40:37]ConnectInit Can't take IP for lk.salyk.kg [19:40:37]CommunicateWithHost connect error [19:40:37]CommunicateWithHost err = -1 [19:40:37]OFD Sender: Server communicate error [19:40:42]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:40:42]ProducePacketName [19:40:42]name=ofd_packets/00111476 [19:40:42]OFD Sender: To server: pG, [19:40:42]CommunicateWithHost lk.salyk.kg:30040 [19:40:42]ConnectInit lk.salyk.kg [19:40:47]ConnectInit Can't take IP for lk.salyk.kg [19:40:47]CommunicateWithHost connect error [19:40:47]CommunicateWithHost err = -1 [19:40:47]OFD Sender: Server communicate error [19:40:52]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:40:52]ProducePacketName [19:40:52]name=ofd_packets/00111476 [19:40:52]OFD Sender: To server: pG, [19:40:52]CommunicateWithHost lk.salyk.kg:30040 [19:40:52]ConnectInit lk.salyk.kg [19:40:57]ConnectInit Can't take IP for lk.salyk.kg [19:40:57]CommunicateWithHost connect error [19:40:57]CommunicateWithHost err = -1 [19:40:57]OFD Sender: Server communicate error [19:41:02]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:41:02]ProducePacketName [19:41:02]name=ofd_packets/00111476 [19:41:02]OFD Sender: To server: pG, [19:41:02]CommunicateWithHost lk.salyk.kg:30040 [19:41:02]ConnectInit lk.salyk.kg [19:41:07]ConnectInit Can't take IP for lk.salyk.kg [19:41:07]CommunicateWithHost connect error [19:41:07]CommunicateWithHost err = -1 [19:41:07]OFD Sender: Server communicate error [19:41:12]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:41:12]ProducePacketName [19:41:12]name=ofd_packets/00111476 [19:41:12]OFD Sender: To server: pG, [19:41:12]CommunicateWithHost lk.salyk.kg:30040 [19:41:12]ConnectInit lk.salyk.kg [19:41:17]ConnectInit Can't take IP for lk.salyk.kg [19:41:17]CommunicateWithHost connect error [19:41:17]CommunicateWithHost err = -1 [19:41:17]OFD Sender: Server communicate error [19:41:22]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:41:22]ProducePacketName [19:41:22]name=ofd_packets/00111476 [19:41:22]OFD Sender: To server: pG, [19:41:22]CommunicateWithHost lk.salyk.kg:30040 [19:41:22]ConnectInit lk.salyk.kg [19:41:27]ConnectInit Can't take IP for lk.salyk.kg [19:41:27]CommunicateWithHost connect error [19:41:27]CommunicateWithHost err = -1 [19:41:27]OFD Sender: Server communicate error [19:41:32]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:41:32]ProducePacketName [19:41:32]name=ofd_packets/00111476 [19:41:32]OFD Sender: To server: pG, [19:41:32]CommunicateWithHost lk.salyk.kg:30040 [19:41:32]ConnectInit lk.salyk.kg [19:41:37]ConnectInit Can't take IP for lk.salyk.kg [19:41:37]CommunicateWithHost connect error [19:41:37]CommunicateWithHost err = -1 [19:41:37]OFD Sender: Server communicate error [19:41:42]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:41:42]ProducePacketName [19:41:42]name=ofd_packets/00111476 [19:41:42]OFD Sender: To server: pG, [19:41:42]CommunicateWithHost lk.salyk.kg:30040 [19:41:42]ConnectInit lk.salyk.kg [19:41:47]ConnectInit Can't take IP for lk.salyk.kg [19:41:47]CommunicateWithHost connect error [19:41:47]CommunicateWithHost err = -1 [19:41:47]OFD Sender: Server communicate error [19:41:52]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:41:52]ProducePacketName [19:41:52]name=ofd_packets/00111476 [19:41:52]OFD Sender: To server: pG, [19:41:52]CommunicateWithHost lk.salyk.kg:30040 [19:41:52]ConnectInit lk.salyk.kg [19:41:57]ConnectInit Can't take IP for lk.salyk.kg [19:41:57]CommunicateWithHost connect error [19:41:57]CommunicateWithHost err = -1 [19:41:57]OFD Sender: Server communicate error [19:42:02]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:42:02]ProducePacketName [19:42:02]name=ofd_packets/00111476 [19:42:02]OFD Sender: To server: pG, [19:42:02]CommunicateWithHost lk.salyk.kg:30040 [19:42:02]ConnectInit lk.salyk.kg [19:42:07]ConnectInit Can't take IP for lk.salyk.kg [19:42:07]CommunicateWithHost connect error [19:42:07]CommunicateWithHost err = -1 [19:42:07]OFD Sender: Server communicate error [19:42:12]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:42:12]ProducePacketName [19:42:12]name=ofd_packets/00111476 [19:42:12]OFD Sender: To server: pG, [19:42:12]CommunicateWithHost lk.salyk.kg:30040 [19:42:12]ConnectInit lk.salyk.kg [19:42:17]ConnectInit Can't take IP for lk.salyk.kg [19:42:17]CommunicateWithHost connect error [19:42:17]CommunicateWithHost err = -1 [19:42:17]OFD Sender: Server communicate error [19:42:22]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:42:22]ProducePacketName [19:42:22]name=ofd_packets/00111476 [19:42:22]OFD Sender: To server: pG, [19:42:22]CommunicateWithHost lk.salyk.kg:30040 [19:42:22]ConnectInit lk.salyk.kg [19:42:27]ConnectInit Can't take IP for lk.salyk.kg [19:42:27]CommunicateWithHost connect error [19:42:27]CommunicateWithHost err = -1 [19:42:27]OFD Sender: Server communicate error [19:42:32]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:42:32]ProducePacketName [19:42:32]name=ofd_packets/00111476 [19:42:32]OFD Sender: To server: pG, [19:42:32]CommunicateWithHost lk.salyk.kg:30040 [19:42:32]ConnectInit lk.salyk.kg [19:42:37]ConnectInit Can't take IP for lk.salyk.kg [19:42:37]CommunicateWithHost connect error [19:42:37]CommunicateWithHost err = -1 [19:42:37]OFD Sender: Server communicate error [19:42:42]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:42:42]ProducePacketName [19:42:42]name=ofd_packets/00111476 [19:42:42]OFD Sender: To server: pG, [19:42:42]CommunicateWithHost lk.salyk.kg:30040 [19:42:42]ConnectInit lk.salyk.kg [19:42:47]ConnectInit Can't take IP for lk.salyk.kg [19:42:47]CommunicateWithHost connect error [19:42:47]CommunicateWithHost err = -1 [19:42:47]OFD Sender: Server communicate error [19:42:52]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:42:52]ProducePacketName [19:42:52]name=ofd_packets/00111476 [19:42:52]OFD Sender: To server: pG, [19:42:52]CommunicateWithHost lk.salyk.kg:30040 [19:42:52]ConnectInit lk.salyk.kg [19:42:54]ConnectInit Can't connect to host [19:42:57]ConnectInit Can't take IP for lk.salyk.kg [19:42:57]CommunicateWithHost connect error [19:42:57]CommunicateWithHost err = -1 [19:42:57]OFD Sender: Server communicate error [19:43:02]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:43:02]ProducePacketName [19:43:02]name=ofd_packets/00111476 [19:43:02]OFD Sender: To server: pG, [19:43:02]CommunicateWithHost lk.salyk.kg:30040 [19:43:02]ConnectInit lk.salyk.kg [19:43:07]ConnectInit Can't take IP for lk.salyk.kg [19:43:07]CommunicateWithHost connect error [19:43:07]CommunicateWithHost err = -1 [19:43:07]OFD Sender: Server communicate error [19:43:12]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:43:12]ProducePacketName [19:43:12]name=ofd_packets/00111476 [19:43:12]OFD Sender: To server: pG, [19:43:12]CommunicateWithHost lk.salyk.kg:30040 [19:43:12]ConnectInit lk.salyk.kg [19:43:17]ConnectInit Can't take IP for lk.salyk.kg [19:43:17]CommunicateWithHost connect error [19:43:17]CommunicateWithHost err = -1 [19:43:17]OFD Sender: Server communicate error [19:43:22]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:43:22]ProducePacketName [19:43:22]name=ofd_packets/00111476 [19:43:22]OFD Sender: To server: pG, [19:43:22]CommunicateWithHost lk.salyk.kg:30040 [19:43:22]ConnectInit lk.salyk.kg [19:43:27]ConnectInit Can't take IP for lk.salyk.kg [19:43:27]CommunicateWithHost connect error [19:43:27]CommunicateWithHost err = -1 [19:43:27]OFD Sender: Server communicate error [19:43:32]OFD Sender: Processing packet 111476 [packets to send 39, broken 37] [19:43:32]ProducePacketName [19:43:32]name=ofd_packets/00111476 [19:43:32]OFD Sender: To server: pG, [19:43:32]CommunicateWithHost lk.salyk.kg:30040 [19:43:32]ConnectInit lk.salyk.kg [19:43:35]accept exits with 10 [19:43:35]New connection [19:43:35]New thread 3067465060 created [19:43:35]Thread 3067321700 joined [19:43:35]Waiting for new connection... [19:43:35] Sock 10.Parse request [19:43:35]Sock 10.Check first char [19:43:35]Sock 10.First char is OK [19:43:35]request: POST /json_proto HTTP/1.0 [19:43:35]Method: POST [19:43:35]URL: /json_proto [19:43:35]Method is POST - this is cgi request [19:43:35]url: /json_proto [19:43:35]query_string will be loaded in cgi processing [19:43:35]execute_cgi json_proto POST (null) [19:43:35]execute_cgi path=json_proto method=POST [19:43:35]POST find Content-Length [19:43:35]Host: 172.17.59.68:8080 [19:43:35]Content-Length: 808 [19:43:35]Content-Type: application/json [19:43:35] [19:43:35]POST finish read [19:43:35]Found Content-Length = 808 [19:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:35]execute_script... [19:43:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:35]POST & json_proto [19:43:35]process_json_proto [19:43:35]json parsed OK: [19:43:35]protocol is kg_v1.0 [19:43:35]action value=close_receipt [19:43:35]process_action close_receipt [19:43:35]cmd_close_receipt [19:43:35]MH_GetDate [19:43:35]Write to MH i2c: F0 00 00 7E 2B 98 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: F0 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: F0 09 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: F0 09 00 7E 2B 00 F2 34 73 66 BC EC 60 65 0D [19:43:35]GetLastDocTimeStamp 1718825991 [19:43:35]current date 1718826226 [19:43:35]FM_GetShiftState [19:43:35]SAM_PROTO_GetShiftState [19:43:35]wFMCommunicate request_size=4 [19:43:35]MH_SAM_APDU [19:43:35]CAPDU: 80 13 01 00 [19:43:35]Write to MH i2c: E2 08 00 7F 2B 80 13 01 00 00 00 00 00 27 [19:43:35]Write i2c OK [19:43:35]MH_I2C_Read... [19:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:35]Read from MH i2c: E2 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 0E 00 [19:43:35]MH_I2C_Read... [19:43:35]Read from MH i2c: E2 0E 00 7F 2B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 71 [19:43:35]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:43:35]wFMCommunicate OK [19:43:35]SAM_PROTO_GetShiftState done [19:43:35]FM_GetShiftState done [19:43:35]opened in 1718760753 [19:43:35]opened+sec_in_day 1718847153 [19:43:35]quantity*price = 100064 [19:43:35]sum+1 = 100066 [19:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 227 19.06.2024 19:43 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111478 ФПД: 33657244928547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T194346&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111478&fm=33657244928547&tin=02508201610067®Number=0000000000092771&sum=100065 [19:43:37]StoreToDocumentArchive [19:43:37]shift 388 fd 111478 [19:43:37]save to /storage/0388/doc_00111478 [19:43:37]save last doc name /storage/0388/doc_00111478 to /storage/kkm_last_doc_name [19:43:37]save OK [19:43:37]Clear old archive folders... [19:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:43:37]tlvbuf is 00EFB4E0 [19:43:37]SAM_PROTO_ClearQueue [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 09 00 00 [19:43:37]Write to MH i2c: E2 08 00 8C 2B 80 09 00 00 00 00 00 00 29 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 03 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 03 00 8C 2B 00 90 00 2B [19:43:37]RAPDU: 90 00 [19:43:37]wFMCommunicate OK [19:43:37]SAM_PROTO_ClearQueue done [19:43:37]KKMCreateOFDPacket [19:43:37]OFDProtocolAddRootSTLVToBuf [19:43:37]FM_MakeSignedData [19:43:37]FM_MakeSignedData [19:43:37]SAM_PROTO_SignData [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 0D 01 02 [19:43:37]Write to MH i2c: E2 08 00 8D 2B 80 0D 01 02 00 00 00 00 31 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 03 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 03 00 8D 2B 00 90 00 2C [19:43:37]RAPDU: 90 00 [19:43:37]wFMCommunicate OK [19:43:37]wFMCommunicate request_size=255 [19:43:37]MH_SAM_APDU [19:43: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 F2 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B3 01 00 35 04 06 00 1E [19:43:37]Write to MH i2c: E2 02 01 8E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 F2 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B3 01 00 35 04 06 00 1E 00 00 66 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 03 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [19:43:37]RAPDU: 90 00 [19:43:37]wFMCommunicate OK [19:43:37]wFMCommunicate request_size=10 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 0D 02 02 05 9C 70 20 CA 23 [19:43:37]Write to MH i2c: E2 0D 00 8F 2B 80 0D 02 02 05 00 9C 70 20 CA 23 00 00 57 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 03 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 03 00 8F 2B 00 90 00 2E [19:43:37]RAPDU: 90 00 [19:43:37]wFMCommunicate OK [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 0D 03 02 [19:43:37]Write to MH i2c: E2 08 00 90 2B 80 0D 03 02 00 00 00 00 36 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0B 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 0B 00 90 2B 00 A7 2F 3C 9C 3A B0 5E 82 90 00 AF [19:43:37]RAPDU: A7 2F 3C 9C 3A B0 5E 82 90 00 [19:43:37]wFMCommunicate OK [19:43:37]SAM_PROTO_SignData done [19:43:37]FM_MakeSignedData done [19:43:37]CreateOFDProtocolMessage [19:43:37]wFMCommunicate request_size=4 [19:43:37]MH_SAM_APDU [19:43:37]CAPDU: 80 11 00 00 [19:43:37]Write to MH i2c: E2 08 00 91 2B 80 11 00 00 00 00 00 00 36 [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:37]Read from MH i2c: E2 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: E2 17 00 [19:43:37]MH_I2C_Read... [19:43:37]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 35 30 38 33 90 00 88 [19:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:43:37]wFMCommunicate OK [19:43:37]CreateOFDProtocolMessage done [19:43:37]OFDSenderStorePacket 111478 [19:43:37]StoreOFDPacket docnum=111478 [19:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 54 1B 07 01 F3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 F2 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B3 01 00 35 04 06 00 1E 9C 70 20 CA 23 A7 2F 3C 9C 3A B0 5E 82 [19:43:37]CheckFolder [19:43:37]dirname=/storage/ofd_packets [19:43:37]CheckFolder done [19:43:37]ProducePacketName [19:43:37]name=ofd_packets/00111478 [19:43:37]NVStorageSaveData ofd_packets/00111478 [19:43:37]File name is /storage/ofd_packets/00111478 [19:43:37]Write 301 bytes [19:43:37]NVStorageSaveData done [19:43:37]OFDSenderStorePacket done [19:43:37]KKMCreateOFDPacket done [19:43:37]NVStorageSaveData kkm_last_timestamp [19:43:37]File name is /storage/kkm_last_timestamp [19:43:37]Write 4 bytes [19:43:37]NVStorageSaveData done [19:43:37]ExternCall_PrintAddStr [19:43:37]wPrintStart [19:43:37]Write to MH i2c: 01 00 00 92 2B BD [19:43:37]ConnectInit Can't take IP for lk.salyk.kg [19:43:37]CommunicateWithHost connect error [19:43:37]CommunicateWithHost err = -1 [19:43:37]OFD Sender: Server communicate error [19:43:37]Write i2c OK [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 07 00 [19:43:37]MH_I2C_Read... [19:43:37]Read from MH i2c: 01 07 00 92 2B 00 00 00 00 00 FF 0F D2 [19:43:37]RasterBufferAndPrint [19:43:37]line Счет N : (1)320064 [19:43:37]line ИНН: 02508201610067 [19:43:37]line Контрольно-Кассовый Чек [19:43:37]line ПРОДАЖА [19:43:37]line ТРК (МРК, ГНК) : 11 [19:43:37]line Товар: 2710124130 [19:43:37]line Аи-92-К-5 [19:43:37]line 15.070 * 66.40 [19:43:37]line = 1000.65 [19:43:37]line НДС 12% НСП 1% [19:43:37]line > о реализуемом товаре [19:43:37]line ИТОГО: 1000.65 [19:43:37]line НСП 1% : 8.85 [19:43:37]line НДС 12% : 106.26 [19:43:37]line Наличными: 0.00 [19:43:37]line Безнал.: 1000.65 [19:43:37]line Место: АЗС № 65 "Партнер Нефть" [19:43:37]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:43:37]line СНО: Общий режим [19:43:37]line Чек 227 19.06.2024 19:43 [19:43:37]line Смена: 388 ФФД: 1.0 [19:43:37]line ЗНМ: 0300000198 [19:43:37]line РНМ: 0000000000092771 [19:43:37]line Версия ККМ: 001 [19:43:37]line Платежная система: О! деньги [19:43:37]line ФМ: 0000000000875083 [19:43:37]line ФД: 111478 [19:43:37]line ФПД: 33657244928547 [19:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T194346&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111478&fm=33657244928547&tin=02508201610067®Number=0000000000092771&sum=100065 [19:43:37]written 0, free lines is 4095 [19:43:37]OFD Sender: Processing packet 111476 [packets to send 40, broken 37] [19:43:37]ProducePacketName [19:43:37]name=ofd_packets/00111476 [19:43:37]OFD Sender: To server: pG, [19:43:37]CommunicateWithHost lk.salyk.kg:30040 [19:43:37]ConnectInit lk.salyk.kg [19:43:38]Write to MH i2c: 01 00 00 BC 2B E7 [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: 01 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: 01 07 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 EE 0C E8 [19:43:38]RasterBufferAndPrint [19:43:38]line [19:43:38]line [19:43:38]line [19:43:38]line [19:43:38]line [19:43:38]written 0, free lines is 3327 [19:43:38]MH_Cut [19:43:38]Write to MH i2c: D1 01 00 C3 2B 01 C0 [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: D1 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: D1 01 00 [19:43:38]MH_I2C_Read... [19:43:38]Read from MH i2c: D1 01 00 C3 2B 00 BF [19:43:38]Write to MH i2c: 01 00 00 C4 2B EF [19:43:38]Write i2c OK [19:43:38]MH_I2C_Read... [19:43:38]*** Cut start [19:43:38]*** Partial cut [19:43:38]*** CUTSNS_PIN = 1 [19:43:38]*** CUTSNS_PIN = 0 [19:43:39]*** Brake cut motor [19:43:39]Read from MH i2c: 01 [19:43:39]MH_I2C_Read... [19:43:39]*** Stop cut motor [19:43:39]*** Cut end [19:43:39]Read from MH i2c: 01 07 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 FF 0F 04 [19:43:39]process_action close_receipt done [19:43:39]requested_data is exist [19:43:39]produce_requested_data [19:43:39]requested_item fm.sn is exist - process it [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 11 00 00 [19:43:39]Write to MH i2c: E2 08 00 C5 2B 80 11 00 00 00 00 00 00 6A [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 17 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 17 00 C5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BC [19:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:43:39]wFMCommunicate OK [19:43:39]requested_item fd.num is exist - process it [19:43:39]SAM_PROTO_GetFieldsCounters [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 13 00 00 [19:43:39]Write to MH i2c: E2 08 00 C6 2B 80 13 00 00 00 00 00 00 6D [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 62 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 62 00 C6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B3 01 00 0E 04 04 00 84 01 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 E6 [19:43: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 76 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:39]wFMCommunicate OK [19:43:39]SAM_PROTO_GetFieldsCounters done [19:43:39]requested_item shift.num is exist - process it [19:43:39]requested_item shift.opened is exist - process it [19:43:39]req_shift_opened [19:43:39]FM_GetShiftState [19:43:39]SAM_PROTO_GetShiftState [19:43:39]wFMCommunicate request_size=4 [19:43:39]MH_SAM_APDU [19:43:39]CAPDU: 80 13 01 00 [19:43:39]Write to MH i2c: E2 08 00 C7 2B 80 13 01 00 00 00 00 00 6F [19:43:39]Write i2c OK [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 [19:43:39]MH_I2C_Read... [19:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:39]Read from MH i2c: E2 0E 00 [19:43:39]MH_I2C_Read... [19:43:39]Read from MH i2c: E2 0E 00 C7 2B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B9 [19:43:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:43:39]wFMCommunicate OK [19:43:39]SAM_PROTO_GetShiftState done [19:43:39]FM_GetShiftState done [19:43:39]req_shift_opened done [19:43:39]requested_item shift.open_date is exist - process it [19:43:39]req_shift_open_date [19:43:39]req_shift_open_date done [19:43:39]produce_requested_data done [19:43:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111478,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:43:39]process_action_free close_receipt [19:43:39]json_value_free [19:43:39]json_value_free done [19:43:39]process_json_proto returns [19:43:39]Send response to host [19:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111478,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:43:39]free response buf [19:43:39]execute_script done [19:43:39]execute_script returns [19:43:39]free content buf [19:43:39]Sock 10.Close socket [19:43:39]Sock 10.Thread stoped [19:43:42]ConnectInit Can't take IP for lk.salyk.kg [19:43:42]CommunicateWithHost connect error [19:43:42]CommunicateWithHost err = -1 [19:43:42]OFD Sender: Server communicate error [19:43:47]OFD Sender: Processing packet 111476 [packets to send 40, broken 37] [19:43:47]ProducePacketName [19:43:47]name=ofd_packets/00111476 [19:43:47]OFD Sender: To server: pG, [19:43:47]CommunicateWithHost lk.salyk.kg:30040 [19:43:47]ConnectInit lk.salyk.kg [19:43:52]ConnectInit Can't take IP for lk.salyk.kg [19:43:52]CommunicateWithHost connect error [19:43:52]CommunicateWithHost err = -1 [19:43:52]OFD Sender: Server communicate error [19:43:57]OFD Sender: Processing packet 111476 [packets to send 40, broken 37] [19:43:57]ProducePacketName [19:43:57]name=ofd_packets/00111476 [19:43:57]OFD Sender: To server: pG, [19:43:57]CommunicateWithHost lk.salyk.kg:30040 [19:43:57]ConnectInit lk.salyk.kg [19:44:02]ConnectInit Can't take IP for lk.salyk.kg [19:44:02]CommunicateWithHost connect error [19:44:02]CommunicateWithHost err = -1 [19:44:02]OFD Sender: Server communicate error [19:44:07]OFD Sender: Processing packet 111476 [packets to send 40, broken 37] [19:44:07]ProducePacketName [19:44:07]name=ofd_packets/00111476 [19:44:07]OFD Sender: To server: pG, [19:44:07]CommunicateWithHost lk.salyk.kg:30040 [19:44:07]ConnectInit lk.salyk.kg [19:44:07]Connected sock=9 [19:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 02 88 04 01 2D 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 00 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 74 B3 01 00 35 04 06 00 63 82 E2 44 7A 02 96 78 2F BE 0F D8 59 D2 [19:44:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 48 2F 47 00 0C 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 35 30 38 33 10 04 04 00 74 B3 01 00 F4 03 04 00 70 CC 72 66 B6 04 01 00 00 AC D6 DD 5F 93 C6 06 2B [19:44:08]CommunicateWithHost err = 0 [19:44:08]CheckOFDResponse [19:44:08]1017 (14) - 77093643461234 [19:44:08]1041 (16) - 0000000000875083 [19:44:08]1040 (4) - 111476 [19:44:08]1012 (4) - 19.06.2024 12:17 [19:44:08]1206 (1) - 0 [19:44:08]OFD Sender: Remove packet 111476 [19:44:08]ProducePacketName [19:44:08]name=ofd_packets/00111476 [19:44:08]NVStorageDeleteData [19:44:08]OFD Sender: Processing packet 111477 [packets to send 39, broken 37] [19:44:08]ProducePacketName [19:44:08]name=ofd_packets/00111477 [19:44:08]OFD Sender: To server: pG, [19:44:08]CommunicateWithHost lk.salyk.kg:30040 [19:44:08]ConnectInit lk.salyk.kg [19:44:08]Connected sock=9 [19:44:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 DD 01 07 01 B7 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 07 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 75 B3 01 00 35 04 06 00 1B 25 38 4A 82 16 BA 8B 58 4C B0 16 63 16 [19:44:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3F 9E 47 00 51 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 35 30 38 33 10 04 04 00 75 B3 01 00 F4 03 04 00 71 CC 72 66 B6 04 01 00 00 B2 41 5C CF 1F F1 B8 9F [19:44:09]CommunicateWithHost err = 0 [19:44:09]CheckOFDResponse [19:44:09]1017 (14) - 77093643461234 [19:44:09]1041 (16) - 0000000000875083 [19:44:09]1040 (4) - 111477 [19:44:09]1012 (4) - 19.06.2024 12:17 [19:44:09]1206 (1) - 0 [19:44:09]OFD Sender: Remove packet 111477 [19:44:09]ProducePacketName [19:44:09]name=ofd_packets/00111477 [19:44:09]NVStorageDeleteData [19:44:09]OFD Sender: Processing packet 111478 [packets to send 38, broken 37] [19:44:09]ProducePacketName [19:44:09]name=ofd_packets/00111478 [19:44:09]OFD Sender: To server: pG, [19:44:09]CommunicateWithHost lk.salyk.kg:30040 [19:44:09]ConnectInit lk.salyk.kg [19:44:09]Connected sock=9 [19: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 35 30 38 33 0F 01 00 00 54 1B 07 01 F3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 F2 34 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B3 01 00 35 04 06 00 1E 9C 70 20 CA 23 A7 2F 3C 9C 3A B0 5E 82 [19:44:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 9D AA 47 00 35 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 76 B3 01 00 F4 03 04 00 72 CC 72 66 B6 04 01 00 00 E8 C6 14 D9 33 50 77 1B [19:44:09]CommunicateWithHost err = 0 [19:44:09]CheckOFDResponse [19:44:09]1017 (14) - 77093643461234 [19:44:09]1041 (16) - 0000000000875083 [19:44:09]1040 (4) - 111478 [19:44:09]1012 (4) - 19.06.2024 12:17 [19:44:09]1206 (1) - 0 [19:44:09]OFD Sender: Remove packet 111478 [19:44:09]ProducePacketName [19:44:09]name=ofd_packets/00111478 [19:44:09]NVStorageDeleteData [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:12]ConnectInit Can't connect to host [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:10]OFD Sender: No OFD packet to send [19:47:13]accept exits with 12 [19:47:13]New connection [19:47:13]New thread 3067321700 created [19:47:13]Thread 3067465060 joined [19:47:13]Waiting for new connection... [19:47:13] Sock 12.Parse request [19:47:13]Sock 12.Check first char [19:47:13]Sock 12.First char is OK [19:47:13]request: POST /json_proto HTTP/1.0 [19:47:13]Method: POST [19:47:13]URL: /json_proto [19:47:13]Method is POST - this is cgi request [19:47:13]url: /json_proto [19:47:13]query_string will be loaded in cgi processing [19:47:13]execute_cgi json_proto POST (null) [19:47:13]execute_cgi path=json_proto method=POST [19:47:13]POST find Content-Length [19:47:13]Host: 172.17.59.68:8080 [19:47:13]Content-Length: 808 [19:47:13]Content-Type: application/json [19:47:13] [19:47:13]POST finish read [19:47:13]Found Content-Length = 808 [19:47:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:13]execute_script... [19:47:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:13]POST & json_proto [19:47:13]process_json_proto [19:47:13]json parsed OK: [19:47:13]protocol is kg_v1.0 [19:47:13]action value=close_receipt [19:47:13]process_action close_receipt [19:47:13]cmd_close_receipt [19:47:13]MH_GetDate [19:47:13]Write to MH i2c: F0 00 00 C8 2B E2 [19:47:13]Write i2c OK [19:47:13]MH_I2C_Read... [19:47:13]Read from MH i2c: F0 [19:47:13]MH_I2C_Read... [19:47:13]Read from MH i2c: F0 09 00 [19:47:13]MH_I2C_Read... [19:47:13]Read from MH i2c: F0 09 00 C8 2B 00 CC 35 73 66 BC EC 60 65 32 [19:47:13]GetLastDocTimeStamp 1718826226 [19:47:13]current date 1718826444 [19:47:13]FM_GetShiftState [19:47:13]SAM_PROTO_GetShiftState [19:47:13]wFMCommunicate request_size=4 [19:47:13]MH_SAM_APDU [19:47:13]CAPDU: 80 13 01 00 [19:47:13]Write to MH i2c: E2 08 00 C9 2B 80 13 01 00 00 00 00 00 71 [19:47:13]Write i2c OK [19:47:13]MH_I2C_Read... [19:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:13]Read from MH i2c: E2 [19:47:13]MH_I2C_Read... [19:47:13]Read from MH i2c: E2 0E 00 [19:47:13]MH_I2C_Read... [19:47:13]Read from MH i2c: E2 0E 00 C9 2B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BB [19:47:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:47:13]wFMCommunicate OK [19:47:13]SAM_PROTO_GetShiftState done [19:47:13]FM_GetShiftState done [19:47:13]opened in 1718760753 [19:47:13]opened+sec_in_day 1718847153 [19:47:13]quantity*price = 170050 [19:47:13]sum+1 = 170051 [19:47:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.50 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 0.00 Безнал.: 1700.50 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 228 19.06.2024 19:47 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111479 ФПД: 65010468205143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T194724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111479&fm=65010468205143&tin=02508201610067®Number=0000000000092771&sum=170050 [19:47:14]StoreToDocumentArchive [19:47:14]shift 388 fd 111479 [19:47:14]save to /storage/0388/doc_00111479 [19:47:14]save last doc name /storage/0388/doc_00111479 to /storage/kkm_last_doc_name [19:47:14]save OK [19:47:14]Clear old archive folders... [19:47:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:14]tlvbuf is 00F084C0 [19:47:14]SAM_PROTO_ClearQueue [19:47:14]wFMCommunicate request_size=4 [19:47:14]MH_SAM_APDU [19:47:14]CAPDU: 80 09 00 00 [19:47:14]Write to MH i2c: E2 08 00 D6 2B 80 09 00 00 00 00 00 00 73 [19:47:14]Write i2c OK [19:47:14]MH_I2C_Read... [19:47:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:14]Read from MH i2c: E2 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: E2 03 00 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: E2 03 00 D6 2B 00 90 00 75 [19:47:14]RAPDU: 90 00 [19:47:14]wFMCommunicate OK [19:47:14]SAM_PROTO_ClearQueue done [19:47:14]KKMCreateOFDPacket [19:47:14]OFDProtocolAddRootSTLVToBuf [19:47:14]FM_MakeSignedData [19:47:14]FM_MakeSignedData [19:47:14]SAM_PROTO_SignData [19:47:14]wFMCommunicate request_size=4 [19:47:14]MH_SAM_APDU [19:47:14]CAPDU: 80 0D 01 02 [19:47:14]Write to MH i2c: E2 08 00 D7 2B 80 0D 01 02 00 00 00 00 7B [19:47:14]Write i2c OK [19:47:14]MH_I2C_Read... [19:47:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:14]Read from MH i2c: E2 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: E2 03 00 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: E2 03 00 D7 2B 00 90 00 76 [19:47:14]RAPDU: 90 00 [19:47:14]wFMCommunicate OK [19:47:14]wFMCommunicate request_size=255 [19:47:14]MH_SAM_APDU [19:47: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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 CC 35 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B3 01 00 35 04 06 00 3B [19:47:14]Write to MH i2c: E2 02 01 D8 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 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 CC 35 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B3 01 00 35 04 06 00 3B 00 00 EF [19:47:14]Write i2c OK [19:47:14]MH_I2C_Read... [19:47:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:14]Read from MH i2c: E2 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: E2 03 00 [19:47:14]MH_I2C_Read... [19:47:14]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [19:47:14]RAPDU: 90 00 [19:47:14]wFMCommunicate OK [19:47:14]wFMCommunicate request_size=10 [19:47:14]MH_SAM_APDU [19:47:14]CAPDU: 80 0D 02 02 05 20 6D DD 32 57 [19:47:14]Write to MH i2c: E2 0D 00 D9 2B 80 0D 02 02 05 00 20 6D DD 32 57 00 00 7B [19:47:14]Write i2c OK [19:47:14]MH_I2C_Read... [19:47:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:15]Read from MH i2c: E2 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: E2 03 00 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [19:47:15]RAPDU: 90 00 [19:47:15]wFMCommunicate OK [19:47:15]wFMCommunicate request_size=4 [19:47:15]MH_SAM_APDU [19:47:15]CAPDU: 80 0D 03 02 [19:47:15]Write to MH i2c: E2 08 00 DA 2B 80 0D 03 02 00 00 00 00 80 [19:47:15]Write i2c OK [19:47:15]MH_I2C_Read... [19:47:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:15]Read from MH i2c: E2 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: E2 0B 00 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: E2 0B 00 DA 2B 00 A0 BB E9 02 64 EC 3E F4 90 00 49 [19:47:15]RAPDU: A0 BB E9 02 64 EC 3E F4 90 00 [19:47:15]wFMCommunicate OK [19:47:15]SAM_PROTO_SignData done [19:47:15]FM_MakeSignedData done [19:47:15]CreateOFDProtocolMessage [19:47:15]wFMCommunicate request_size=4 [19:47:15]MH_SAM_APDU [19:47:15]CAPDU: 80 11 00 00 [19:47:15]Write to MH i2c: E2 08 00 DB 2B 80 11 00 00 00 00 00 00 80 [19:47:15]Write i2c OK [19:47:15]MH_I2C_Read... [19:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:15]Read from MH i2c: E2 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: E2 17 00 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: E2 17 00 DB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [19:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:47:15]wFMCommunicate OK [19:47:15]CreateOFDProtocolMessage done [19:47:15]OFDSenderStorePacket 111479 [19:47:15]StoreOFDPacket docnum=111479 [19:47:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BB DF 07 01 C7 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 CC 35 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B3 01 00 35 04 06 00 3B 20 6D DD 32 57 A0 BB E9 02 64 EC 3E F4 [19:47:15]CheckFolder [19:47:15]dirname=/storage/ofd_packets [19:47:15]CheckFolder done [19:47:15]ProducePacketName [19:47:15]name=ofd_packets/00111479 [19:47:15]NVStorageSaveData ofd_packets/00111479 [19:47:15]File name is /storage/ofd_packets/00111479 [19:47:15]Write 301 bytes [19:47:15]NVStorageSaveData done [19:47:15]OFDSenderStorePacket done [19:47:15]KKMCreateOFDPacket done [19:47:15]NVStorageSaveData kkm_last_timestamp [19:47:15]File name is /storage/kkm_last_timestamp [19:47:15]Write 4 bytes [19:47:15]NVStorageSaveData done [19:47:15]ExternCall_PrintAddStr [19:47:15]wPrintStart [19:47:15]Write to MH i2c: 01 00 00 DC 2B 07 [19:47:15]Write i2c OK [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: 01 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: 01 07 00 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: 01 07 00 DC 2B 00 00 00 00 00 FF 0F 1C [19:47:15]RasterBufferAndPrint [19:47:15]line Счет N : (1)320065 [19:47:15]line ИНН: 02508201610067 [19:47:15]line Контрольно-Кассовый Чек [19:47:15]line ПРОДАЖА [19:47:15]line ТРК (МРК, ГНК) : 11 [19:47:15]line Товар: 2710124130 [19:47:15]line Аи-92-К-5 [19:47:15]line 25.610 * 66.40 [19:47:15]line = 1700.50 [19:47:15]line НДС 12% НСП 1% [19:47:15]line > о реализуемом товаре [19:47:15]line ИТОГО: 1700.50 [19:47:15]line НСП 1% : 15.05 [19:47:15]line НДС 12% : 180.58 [19:47:15]line Наличными: 0.00 [19:47:15]line Безнал.: 1700.50 [19:47:15]line Место: АЗС № 65 "Партнер Нефть" [19:47:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:47:15]line СНО: Общий режим [19:47:15]line Чек 228 19.06.2024 19:47 [19:47:15]line Смена: 388 ФФД: 1.0 [19:47:15]line ЗНМ: 0300000198 [19:47:15]line РНМ: 0000000000092771 [19:47:15]line Версия ККМ: 001 [19:47:15]line Платежная система: О! деньги [19:47:15]line ФМ: 0000000000875083 [19:47:15]line ФД: 111479 [19:47:15]line ФПД: 65010468205143 [19:47:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T194724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111479&fm=65010468205143&tin=02508201610067®Number=0000000000092771&sum=170050 [19:47:15]written 0, free lines is 4095 [19:47:15]OFD Sender: Processing packet 111479 [packets to send 38, broken 37] [19:47:15]ProducePacketName [19:47:15]name=ofd_packets/00111479 [19:47:15]OFD Sender: To server: pG, [19:47:15]CommunicateWithHost lk.salyk.kg:30040 [19:47:15]ConnectInit lk.salyk.kg [19:47:15]Connected sock=9 [19:47:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BB DF 07 01 C7 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 CC 35 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 77 B3 01 00 35 04 06 00 3B 20 6D DD 32 57 A0 BB E9 02 64 EC 3E F4 [19:47:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 15 77 47 00 98 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 35 30 38 33 10 04 04 00 77 B3 01 00 F4 03 04 00 2C CD 72 66 B6 04 01 00 00 DC CB CC 7A 73 FE 72 10 [19:47:15]CommunicateWithHost err = 0 [19:47:15]CheckOFDResponse [19:47:15]1017 (14) - 77093643461234 [19:47:15]1041 (16) - 0000000000875083 [19:47:15]1040 (4) - 111479 [19:47:15]1012 (4) - 19.06.2024 12:21 [19:47:15]1206 (1) - 0 [19:47:15]OFD Sender: Remove packet 111479 [19:47:15]ProducePacketName [19:47:15]name=ofd_packets/00111479 [19:47:15]NVStorageDeleteData [19:47:15]Write to MH i2c: 01 00 00 06 2C 32 [19:47:15]Write i2c OK [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: 01 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: 01 07 00 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: 01 07 00 06 2C 00 00 00 00 00 E5 0C 2A [19:47:15]RasterBufferAndPrint [19:47:15]line [19:47:15]line [19:47:15]line [19:47:15]line [19:47:15]line [19:47:15]written 0, free lines is 3307 [19:47:15]MH_Cut [19:47:15]Write to MH i2c: D1 01 00 0D 2C 01 0B [19:47:15]Write i2c OK [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: D1 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: D1 01 00 [19:47:15]MH_I2C_Read... [19:47:15]Read from MH i2c: D1 01 00 0D 2C 00 0A [19:47:15]Write to MH i2c: 01 00 00 0E 2C 3A [19:47:15]Write i2c OK [19:47:15]MH_I2C_Read... [19:47:16]OFD Sender: No OFD packet to send [19:47:16]*** Cut start [19:47:16]*** Partial cut [19:47:16]*** CUTSNS_PIN = 1 [19:47:16]*** CUTSNS_PIN = 0 [19:47:16]*** Brake cut motor [19:47:17]Read from MH i2c: 01 [19:47:17]MH_I2C_Read... [19:47:17]*** Stop cut motor [19:47:17]*** Cut end [19:47:17]Read from MH i2c: 01 07 00 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: 01 07 00 0E 2C 00 00 00 00 00 FF 0F 4F [19:47:17]process_action close_receipt done [19:47:17]requested_data is exist [19:47:17]produce_requested_data [19:47:17]requested_item fm.sn is exist - process it [19:47:17]wFMCommunicate request_size=4 [19:47:17]MH_SAM_APDU [19:47:17]CAPDU: 80 11 00 00 [19:47:17]Write to MH i2c: E2 08 00 0F 2C 80 11 00 00 00 00 00 00 B5 [19:47:17]Write i2c OK [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 [19:47:17]MH_I2C_Read... [19:47:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:17]Read from MH i2c: E2 17 00 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 17 00 0F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 07 [19:47:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:47:17]wFMCommunicate OK [19:47:17]requested_item fd.num is exist - process it [19:47:17]SAM_PROTO_GetFieldsCounters [19:47:17]wFMCommunicate request_size=4 [19:47:17]MH_SAM_APDU [19:47:17]CAPDU: 80 13 00 00 [19:47:17]Write to MH i2c: E2 08 00 10 2C 80 13 00 00 00 00 00 00 B8 [19:47:17]Write i2c OK [19:47:17]MH_I2C_Read... [19:47:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:17]Read from MH i2c: E2 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 62 00 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 62 00 10 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B3 01 00 0E 04 04 00 84 01 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 35 [19:47: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 77 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:17]wFMCommunicate OK [19:47:17]SAM_PROTO_GetFieldsCounters done [19:47:17]requested_item shift.num is exist - process it [19:47:17]requested_item shift.opened is exist - process it [19:47:17]req_shift_opened [19:47:17]FM_GetShiftState [19:47:17]SAM_PROTO_GetShiftState [19:47:17]wFMCommunicate request_size=4 [19:47:17]MH_SAM_APDU [19:47:17]CAPDU: 80 13 01 00 [19:47:17]Write to MH i2c: E2 08 00 11 2C 80 13 01 00 00 00 00 00 BA [19:47:17]Write i2c OK [19:47:17]MH_I2C_Read... [19:47:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:17]Read from MH i2c: E2 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 0E 00 [19:47:17]MH_I2C_Read... [19:47:17]Read from MH i2c: E2 0E 00 11 2C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 04 [19:47:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:47:17]wFMCommunicate OK [19:47:17]SAM_PROTO_GetShiftState done [19:47:17]FM_GetShiftState done [19:47:17]req_shift_opened done [19:47:17]requested_item shift.open_date is exist - process it [19:47:17]req_shift_open_date [19:47:17]req_shift_open_date done [19:47:17]produce_requested_data done [19:47:17]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111479,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:47:17]process_action_free close_receipt [19:47:17]json_value_free [19:47:17]json_value_free done [19:47:17]process_json_proto returns [19:47:17]Send response to host [19:47:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111479,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:47:17]free response buf [19:47:17]execute_script done [19:47:17]execute_script returns [19:47:17]free content buf [19:47:17]Sock 12.Close socket [19:47:17]Sock 12.Thread stoped [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:36]accept exits with 7 [19:48:36]New connection [19:48:36]New thread 3067465060 created [19:48:36]Thread 3067321700 joined [19:48:36]Waiting for new connection... [19:48:36] Sock 7.Parse request [19:48:36]Sock 7.Check first char [19:48:36]Sock 7.First char is OK [19:48:36]request: POST /json_proto HTTP/1.0 [19:48:36]Method: POST [19:48:36]URL: /json_proto [19:48:36]Method is POST - this is cgi request [19:48:36]url: /json_proto [19:48:36]query_string will be loaded in cgi processing [19:48:36]execute_cgi json_proto POST (null) [19:48:36]execute_cgi path=json_proto method=POST [19:48:36]POST find Content-Length [19:48:36]Host: 172.17.59.68:8080 [19:48:36]Content-Length: 674 [19:48:36]Content-Type: application/json [19:48:36] [19:48:36]POST finish read [19:48:36]Found Content-Length = 674 [19:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:48:36]execute_script... [19:48: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)320066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:48:36]POST & json_proto [19:48:36]process_json_proto [19:48:36]json parsed OK: [19:48:36]protocol is kg_v1.0 [19:48:36]action value=close_receipt [19:48:36]process_action close_receipt [19:48:36]cmd_close_receipt [19:48:36]MH_GetDate [19:48:36]Write to MH i2c: F0 00 00 12 2C 2D [19:48:36]Write i2c OK [19:48:36]MH_I2C_Read... [19:48:36]Read from MH i2c: F0 [19:48:36]MH_I2C_Read... [19:48:36]Read from MH i2c: F0 09 00 [19:48:36]MH_I2C_Read... [19:48:36]Read from MH i2c: F0 09 00 12 2C 00 1F 36 73 66 BC EC 60 65 D1 [19:48:36]GetLastDocTimeStamp 1718826444 [19:48:36]current date 1718826527 [19:48:36]FM_GetShiftState [19:48:36]SAM_PROTO_GetShiftState [19:48:36]wFMCommunicate request_size=4 [19:48:36]MH_SAM_APDU [19:48:36]CAPDU: 80 13 01 00 [19:48:36]Write to MH i2c: E2 08 00 13 2C 80 13 01 00 00 00 00 00 BC [19:48:36]Write i2c OK [19:48:36]MH_I2C_Read... [19:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:36]Read from MH i2c: E2 [19:48:36]MH_I2C_Read... [19:48:36]Read from MH i2c: E2 0E 00 [19:48:36]MH_I2C_Read... [19:48:36]Read from MH i2c: E2 0E 00 13 2C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 06 [19:48:36]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:48:36]wFMCommunicate OK [19:48:36]SAM_PROTO_GetShiftState done [19:48:36]FM_GetShiftState done [19:48:36]opened in 1718760753 [19:48:36]opened+sec_in_day 1718847153 [19:48:36]quantity*price = 20047 [19:48:36]sum+1 = 20049 [19:48:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 229 19.06.2024 19:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111480 ФПД: 17165817699121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T194847&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111480&fm=17165817699121&tin=02508201610067®Number=0000000000092771&sum=20000 [19:48:37]StoreToDocumentArchive [19:48:37]shift 388 fd 111480 [19:48:37]save to /storage/0388/doc_00111480 [19:48:37]save last doc name /storage/0388/doc_00111480 to /storage/kkm_last_doc_name [19:48:37]save OK [19:48:37]Clear old archive folders... [19:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:48:37]tlvbuf is 00F383C0 [19:48:37]SAM_PROTO_ClearQueue [19:48:37]wFMCommunicate request_size=4 [19:48:37]MH_SAM_APDU [19:48:37]CAPDU: 80 09 00 00 [19:48:37]Write to MH i2c: E2 08 00 20 2C 80 09 00 00 00 00 00 00 BE [19:48:37]Write i2c OK [19:48:37]MH_I2C_Read... [19:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:37]Read from MH i2c: E2 [19:48:37]MH_I2C_Read... [19:48:37]Read from MH i2c: E2 03 00 [19:48:37]MH_I2C_Read... [19:48:37]Read from MH i2c: E2 03 00 20 2C 00 90 00 C0 [19:48:37]RAPDU: 90 00 [19:48:37]wFMCommunicate OK [19:48:37]SAM_PROTO_ClearQueue done [19:48:37]KKMCreateOFDPacket [19:48:37]OFDProtocolAddRootSTLVToBuf [19:48:37]FM_MakeSignedData [19:48:37]FM_MakeSignedData [19:48:37]SAM_PROTO_SignData [19:48:37]wFMCommunicate request_size=4 [19:48:37]MH_SAM_APDU [19:48:37]CAPDU: 80 0D 01 02 [19:48:37]Write to MH i2c: E2 08 00 21 2C 80 0D 01 02 00 00 00 00 C6 [19:48:37]Write i2c OK [19:48:37]MH_I2C_Read... [19:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:37]Read from MH i2c: E2 [19:48:37]MH_I2C_Read... [19:48:37]Read from MH i2c: E2 03 00 [19:48:37]MH_I2C_Read... [19:48:37]Read from MH i2c: E2 03 00 21 2C 00 90 00 C1 [19:48:37]RAPDU: 90 00 [19:48:37]wFMCommunicate OK [19:48:37]wFMCommunicate request_size=255 [19:48:37]MH_SAM_APDU [19:48:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 1F 36 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B3 01 00 35 04 06 00 0F 9C BA 77 [19:48:37]Write to MH i2c: E2 02 01 22 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 1F 36 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B3 01 00 35 04 06 00 0F 9C BA 77 00 00 A5 [19:48:37]Write i2c OK [19:48:37]MH_I2C_Read... [19:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:38]Read from MH i2c: E2 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: E2 03 00 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: E2 03 00 22 2C 00 90 00 C2 [19:48:38]RAPDU: 90 00 [19:48:38]wFMCommunicate OK [19:48:38]wFMCommunicate request_size=7 [19:48:38]MH_SAM_APDU [19:48:38]CAPDU: 80 0D 02 02 02 5B 31 [19:48:38]Write to MH i2c: E2 0A 00 23 2C 80 0D 02 02 02 00 5B 31 00 00 59 [19:48:38]Write i2c OK [19:48:38]MH_I2C_Read... [19:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:38]Read from MH i2c: E2 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: E2 03 00 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: E2 03 00 23 2C 00 90 00 C3 [19:48:38]RAPDU: 90 00 [19:48:38]wFMCommunicate OK [19:48:38]wFMCommunicate request_size=4 [19:48:38]MH_SAM_APDU [19:48:38]CAPDU: 80 0D 03 02 [19:48:38]Write to MH i2c: E2 08 00 24 2C 80 0D 03 02 00 00 00 00 CB [19:48:38]Write i2c OK [19:48:38]MH_I2C_Read... [19:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:38]Read from MH i2c: E2 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: E2 0B 00 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: E2 0B 00 24 2C 00 FE 2F 0B E9 5C 95 D6 BD 90 00 71 [19:48:38]RAPDU: FE 2F 0B E9 5C 95 D6 BD 90 00 [19:48:38]wFMCommunicate OK [19:48:38]SAM_PROTO_SignData done [19:48:38]FM_MakeSignedData done [19:48:38]CreateOFDProtocolMessage [19:48:38]wFMCommunicate request_size=4 [19:48:38]MH_SAM_APDU [19:48:38]CAPDU: 80 11 00 00 [19:48:38]Write to MH i2c: E2 08 00 25 2C 80 11 00 00 00 00 00 00 CB [19:48:38]Write i2c OK [19:48:38]MH_I2C_Read... [19:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:38]Read from MH i2c: E2 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: E2 17 00 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: E2 17 00 25 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1D [19:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:48:38]wFMCommunicate OK [19:48:38]CreateOFDProtocolMessage done [19:48:38]OFDSenderStorePacket 111480 [19:48:38]StoreOFDPacket docnum=111480 [19:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 DC 12 04 01 9D 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 1F 36 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B3 01 00 35 04 06 00 0F 9C BA 77 5B 31 FE 2F 0B E9 5C 95 D6 BD [19:48:38]CheckFolder [19:48:38]dirname=/storage/ofd_packets [19:48:38]CheckFolder done [19:48:38]ProducePacketName [19:48:38]name=ofd_packets/00111480 [19:48:38]NVStorageSaveData ofd_packets/00111480 [19:48:38]File name is /storage/ofd_packets/00111480 [19:48:38]Write 298 bytes [19:48:38]NVStorageSaveData done [19:48:38]OFDSenderStorePacket done [19:48:38]KKMCreateOFDPacket done [19:48:38]NVStorageSaveData kkm_last_timestamp [19:48:38]File name is /storage/kkm_last_timestamp [19:48:38]Write 4 bytes [19:48:38]NVStorageSaveData done [19:48:38]ExternCall_PrintAddStr [19:48:38]wPrintStart [19:48:38]Write to MH i2c: 01 00 00 26 2C 52 [19:48:38]Write i2c OK [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: 01 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: 01 07 00 [19:48:38]MH_I2C_Read... [19:48:38]Read from MH i2c: 01 07 00 26 2C 00 00 00 00 00 FF 0F 67 [19:48:38]RasterBufferAndPrint [19:48:38]line Счет N : (1)320066 [19:48:38]line ИНН: 02508201610067 [19:48:38]line Контрольно-Кассовый Чек [19:48:38]line ПРОДАЖА [19:48:38]line ТРК (МРК, ГНК) : 22 [19:48:38]line Товар: 2710194210 [19:48:38]line ДТ-К-5 [19:48:38]line 2.750 * 72.90 [19:48:38]line = 200.48 [19:48:38]line НДС 12% НСП 1% [19:48:38]line > о реализуемом товаре [19:48:38]line ОКРУГЛЕНИЕ: -0.48 [19:48:38]line ИТОГО: 200.00 [19:48:38]line Внесено: 200.00 [19:48:38]line СДАЧА: 0.00 [19:48:38]line НСП 1% : 1.77 [19:48:38]line НДС 12% : 21.29 [19:48:38]line Наличными: 200.00 [19:48:38]line Безнал.: 0.00 [19:48:38]line Место: АЗС № 65 "Партнер Нефть" [19:48:38]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:48:38]line СНО: Общий режим [19:48:38]line Чек 229 19.06.2024 19:48 [19:48:38]line Смена: 388 ФФД: 1.0 [19:48:38]line ЗНМ: 0300000198 [19:48:38]line РНМ: 0000000000092771 [19:48:38]line Версия ККМ: 001 [19:48:38]line ФМ: 0000000000875083 [19:48:38]line ФД: 111480 [19:48:38]line ФПД: 17165817699121 [19:48:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T194847&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111480&fm=17165817699121&tin=02508201610067®Number=0000000000092771&sum=20000 [19:48:38]OFD Sender: Processing packet 111480 [packets to send 38, broken 37] [19:48:38]ProducePacketName [19:48:38]name=ofd_packets/00111480 [19:48:38]OFD Sender: To server: pG, [19:48:38]CommunicateWithHost lk.salyk.kg:30040 [19:48:38]ConnectInit lk.salyk.kg [19:48:38]written 0, free lines is 4095 [19:48:38]Connected sock=10 [19:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 DC 12 04 01 9D 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 1F 36 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 78 B3 01 00 35 04 06 00 0F 9C BA 77 5B 31 FE 2F 0B E9 5C 95 D6 BD [19:48:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4C BD 47 00 66 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 35 30 38 33 10 04 04 00 78 B3 01 00 F4 03 04 00 7F CD 72 66 B6 04 01 00 00 6D 5B 4C 89 83 DE 23 4A [19:48:38]CommunicateWithHost err = 0 [19:48:38]CheckOFDResponse [19:48:38]1017 (14) - 77093643461234 [19:48:38]1041 (16) - 0000000000875083 [19:48:38]1040 (4) - 111480 [19:48:38]1012 (4) - 19.06.2024 12:22 [19:48:38]1206 (1) - 0 [19:48:38]OFD Sender: Remove packet 111480 [19:48:38]ProducePacketName [19:48:38]name=ofd_packets/00111480 [19:48:38]NVStorageDeleteData [19:48:39]Write to MH i2c: 01 00 00 51 2C 7D [19:48:39]Write i2c OK [19:48:39]MH_I2C_Read... [19:48:39]Read from MH i2c: 01 [19:48:39]MH_I2C_Read... [19:48:39]Read from MH i2c: 01 07 00 [19:48:39]MH_I2C_Read... [19:48:39]Read from MH i2c: 01 07 00 51 2C 00 00 00 00 00 D5 0C 65 [19:48:39]RasterBufferAndPrint [19:48:39]line [19:48:39]line [19:48:39]line [19:48:39]line [19:48:39]line [19:48:39]written 0, free lines is 3292 [19:48:39]MH_Cut [19:48:39]Write to MH i2c: D1 01 00 58 2C 01 56 [19:48:39]Write i2c OK [19:48:39]MH_I2C_Read... [19:48:39]Read from MH i2c: D1 [19:48:39]MH_I2C_Read... [19:48:39]Read from MH i2c: D1 01 00 [19:48:39]MH_I2C_Read... [19:48:39]Read from MH i2c: D1 01 00 58 2C 00 55 [19:48:39]Write to MH i2c: 01 00 00 59 2C 85 [19:48:39]Write i2c OK [19:48:39]MH_I2C_Read... [19:48:39]OFD Sender: No OFD packet to send [19:48:39]*** Cut start [19:48:39]*** Partial cut [19:48:39]*** CUTSNS_PIN = 1 [19:48:39]*** CUTSNS_PIN = 0 [19:48:40]*** Brake cut motor [19:48:40]Read from MH i2c: 01 [19:48:40]MH_I2C_Read... [19:48:40]*** Stop cut motor [19:48:40]*** Cut end [19:48:40]Read from MH i2c: 01 07 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: 01 07 00 59 2C 00 00 00 00 00 FF 0F 9A [19:48:40]process_action close_receipt done [19:48:40]requested_data is exist [19:48:40]produce_requested_data [19:48:40]requested_item fm.sn is exist - process it [19:48:40]wFMCommunicate request_size=4 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 11 00 00 [19:48:40]Write to MH i2c: E2 08 00 5A 2C 80 11 00 00 00 00 00 00 00 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 17 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 17 00 5A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 52 [19:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:48:40]wFMCommunicate OK [19:48:40]requested_item fd.num is exist - process it [19:48:40]SAM_PROTO_GetFieldsCounters [19:48:40]wFMCommunicate request_size=4 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 13 00 00 [19:48:40]Write to MH i2c: E2 08 00 5B 2C 80 13 00 00 00 00 00 00 03 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 62 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 62 00 5B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B3 01 00 0E 04 04 00 84 01 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 84 [19:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:40]wFMCommunicate OK [19:48:40]SAM_PROTO_GetFieldsCounters done [19:48:40]requested_item shift.num is exist - process it [19:48:40]requested_item shift.opened is exist - process it [19:48:40]req_shift_opened [19:48:40]FM_GetShiftState [19:48:40]SAM_PROTO_GetShiftState [19:48:40]wFMCommunicate request_size=4 [19:48:40]MH_SAM_APDU [19:48:40]CAPDU: 80 13 01 00 [19:48:40]Write to MH i2c: E2 08 00 5C 2C 80 13 01 00 00 00 00 00 05 [19:48:40]Write i2c OK [19:48:40]MH_I2C_Read... [19:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:40]Read from MH i2c: E2 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 0E 00 [19:48:40]MH_I2C_Read... [19:48:40]Read from MH i2c: E2 0E 00 5C 2C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4F [19:48:40]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:48:40]wFMCommunicate OK [19:48:40]SAM_PROTO_GetShiftState done [19:48:40]FM_GetShiftState done [19:48:40]req_shift_opened done [19:48:40]requested_item shift.open_date is exist - process it [19:48:40]req_shift_open_date [19:48:40]req_shift_open_date done [19:48:40]produce_requested_data done [19:48:40]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111480,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:48:40]process_action_free close_receipt [19:48:40]json_value_free [19:48:40]json_value_free done [19:48:40]process_json_proto returns [19:48:40]Send response to host [19:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111480,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:48:40]free response buf [19:48:40]execute_script done [19:48:40]execute_script returns [19:48:40]free content buf [19:48:40]Sock 7.Close socket [19:48:40]Sock 7.Thread stoped [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [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:33]accept exits with 9 [19:51:33]New connection [19:51:33]New thread 3067321700 created [19:51:33]Thread 3067465060 joined [19:51:33]Waiting for new connection... [19:51:33] Sock 9.Parse request [19:51:33]Sock 9.Check first char [19:51:33]Sock 9.First char is OK [19:51:33]request: POST /json_proto HTTP/1.0 [19:51:33]Method: POST [19:51:33]URL: /json_proto [19:51:33]Method is POST - this is cgi request [19:51:33]url: /json_proto [19:51:33]query_string will be loaded in cgi processing [19:51:33]execute_cgi json_proto POST (null) [19:51:33]execute_cgi path=json_proto method=POST [19:51:33]POST find Content-Length [19:51:33]Host: 172.17.59.68:8080 [19:51:33]Content-Length: 1200 [19:51:33]Content-Type: application/json [19:51:33] [19:51:33]POST finish read [19:51:33]Found Content-Length = 1200 [19:51:33]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320067\u000A19.06.2024 18:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:33]execute_script... [19:51:33]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320067\u000A19.06.2024 18:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 996.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A54662\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:51:33]POST & json_proto [19:51:33]process_json_proto [19:51:33]json parsed OK: [19:51:33]protocol is kg_v1.0 [19:51:33]action value=print_text [19:51:33]process_action print_text [19:51:33]cmd_print_text [19:51:33]ExternCall_PrintAddStr [19:51:33]wPrintStart [19:51:33]Write to MH i2c: 01 00 00 5D 2C 89 [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 5D 2C 00 00 00 00 00 FF 0F 9E [19:51:33]RasterBufferAndPrint [19:51:33]line *****ТОВАРНЫЙ ЧЕК***** [19:51:33]line АЗС 65 [19:51:33]line Партнер нефть [19:51:33]line 02508201610067 [19:51:33]line Кассир : Амантуров Р. [19:51:33]line Счет N : (1)320067 [19:51:33]line 19.06.2024 18:20 [19:51:33]line ПРОДАЖА [19:51:33]line ТРК (МРК, ГНК): 11 [19:51:33]line Вид ГСМ : 2710124130 [19:51:33]line Аи-92-К-5 [19:51:33]line 15.000 x 66.40 [19:51:33]line ИТОГ: 996.00 [19:51:33]line Тип оплаты: Талоны: Топливная Карта [19:51:33]line 54662 [19:51:33]line ______________________ [19:51:33]line (подпись) [19:51:33]written 0, free lines is 4095 [19:51:33]Write to MH i2c: 01 00 00 71 2C 9D [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: 01 07 00 71 2C 00 00 00 00 00 0F 0E C1 [19:51:33]RasterBufferAndPrint [19:51:33]line [19:51:33]line [19:51:33]line [19:51:33]line [19:51:33]line [19:51:33]written 0, free lines is 3601 [19:51:33]MH_Cut [19:51:33]Write to MH i2c: D1 01 00 78 2C 01 76 [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: D1 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: D1 01 00 [19:51:33]MH_I2C_Read... [19:51:33]Read from MH i2c: D1 01 00 78 2C 00 75 [19:51:33]Write to MH i2c: 01 00 00 79 2C A5 [19:51:33]Write i2c OK [19:51:33]MH_I2C_Read... [19:51:34]*** Cut start [19:51:34]*** Partial cut [19:51:34]*** CUTSNS_PIN = 1 [19:51:34]*** CUTSNS_PIN = 0 [19:51:34]*** Brake cut motor [19:51:34]OFD Sender: No OFD packet to send [19:51:34]Read from MH i2c: 01 [19:51:34]MH_I2C_Read... [19:51:34]*** Stop cut motor [19:51:34]*** Cut end [19:51:34]Read from MH i2c: 01 07 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: 01 07 00 79 2C 00 00 00 00 00 FF 0F BA [19:51:34]process_action print_text done [19:51:34]requested_data is exist [19:51:34]produce_requested_data [19:51:34]requested_item fm.sn is exist - process it [19:51:34]wFMCommunicate request_size=4 [19:51:34]MH_SAM_APDU [19:51:34]CAPDU: 80 11 00 00 [19:51:34]Write to MH i2c: E2 08 00 7A 2C 80 11 00 00 00 00 00 00 20 [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:51:34]Read from MH i2c: E2 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 17 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 17 00 7A 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 72 [19:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:51:34]wFMCommunicate OK [19:51:34]requested_item fd.num is exist - process it [19:51:34]SAM_PROTO_GetFieldsCounters [19:51:34]wFMCommunicate request_size=4 [19:51:34]MH_SAM_APDU [19:51:34]CAPDU: 80 13 00 00 [19:51:34]Write to MH i2c: E2 08 00 7B 2C 80 13 00 00 00 00 00 00 23 [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:51:34]Read from MH i2c: E2 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 62 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 62 00 7B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B3 01 00 0E 04 04 00 84 01 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 A4 [19:51: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 78 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:51:34]wFMCommunicate OK [19:51:34]SAM_PROTO_GetFieldsCounters done [19:51:34]requested_item shift.num is exist - process it [19:51:34]requested_item shift.opened is exist - process it [19:51:34]req_shift_opened [19:51:34]FM_GetShiftState [19:51:34]SAM_PROTO_GetShiftState [19:51:34]wFMCommunicate request_size=4 [19:51:34]MH_SAM_APDU [19:51:34]CAPDU: 80 13 01 00 [19:51:34]Write to MH i2c: E2 08 00 7C 2C 80 13 01 00 00 00 00 00 25 [19:51:34]Write i2c OK [19:51:34]MH_I2C_Read... [19:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:51:34]Read from MH i2c: E2 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 0E 00 [19:51:34]MH_I2C_Read... [19:51:34]Read from MH i2c: E2 0E 00 7C 2C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6F [19:51:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:51:34]wFMCommunicate OK [19:51:34]SAM_PROTO_GetShiftState done [19:51:34]FM_GetShiftState done [19:51:34]req_shift_opened done [19:51:34]requested_item shift.open_date is exist - process it [19:51:34]req_shift_open_date [19:51:34]req_shift_open_date done [19:51:34]produce_requested_data done [19:51:34]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111480,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:51:34]process_action_free print_text [19:51:34]json_value_free [19:51:34]json_value_free done [19:51:34]process_json_proto returns [19:51:34]Send response to host [19:51:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111480,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:51:34]free response buf [19:51:34]execute_script done [19:51:34]execute_script returns [19:51:34]free content buf [19:51:34]Sock 9.Close socket [19:51:34]Sock 9.Thread stoped [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:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [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]accept exits with 7 [19:57:09]New connection [19:57:09]New thread 3067465060 created [19:57:09]Thread 3067321700 joined [19:57:09]Waiting for new connection... [19:57:09] Sock 7.Parse request [19:57:09]Sock 7.Check first char [19:57:09]Sock 7.First char is OK [19:57:09]request: POST /json_proto HTTP/1.0 [19:57:09]Method: POST [19:57:09]URL: /json_proto [19:57:09]Method is POST - this is cgi request [19:57:09]url: /json_proto [19:57:09]query_string will be loaded in cgi processing [19:57:09]execute_cgi json_proto POST (null) [19:57:09]execute_cgi path=json_proto method=POST [19:57:09]POST find Content-Length [19:57:09]Host: 172.17.59.68:8080 [19:57:09]Content-Length: 682 [19:57:09]Content-Type: application/json [19:57:09] [19:57:09]POST finish read [19:57:09]Found Content-Length = 682 [19:57:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [19:57:09]execute_script... [19:57: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)320068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 30.130, "sum" : 2000.63, "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" ] } } [19:57:09]POST & json_proto [19:57:09]process_json_proto [19:57:09]json parsed OK: [19:57:09]protocol is kg_v1.0 [19:57:09]action value=close_receipt [19:57:09]process_action close_receipt [19:57:09]cmd_close_receipt [19:57:09]MH_GetDate [19:57:09]Write to MH i2c: F0 00 00 7D 2C 98 [19:57:09]Write i2c OK [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: F0 [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: F0 09 00 [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: F0 09 00 7D 2C 00 20 38 73 66 BC EC 60 65 3F [19:57:09]GetLastDocTimeStamp 1718826527 [19:57:09]current date 1718827040 [19:57:09]FM_GetShiftState [19:57:09]SAM_PROTO_GetShiftState [19:57:09]wFMCommunicate request_size=4 [19:57:09]MH_SAM_APDU [19:57:09]CAPDU: 80 13 01 00 [19:57:09]Write to MH i2c: E2 08 00 7E 2C 80 13 01 00 00 00 00 00 27 [19:57:09]Write i2c OK [19:57:09]MH_I2C_Read... [19:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:09]Read from MH i2c: E2 [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: E2 0E 00 [19:57:09]MH_I2C_Read... [19:57:09]Read from MH i2c: E2 0E 00 7E 2C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 71 [19:57:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:57:09]wFMCommunicate OK [19:57:09]SAM_PROTO_GetShiftState done [19:57:09]FM_GetShiftState done [19:57:09]opened in 1718760753 [19:57:09]opened+sec_in_day 1718847153 [19:57:09]quantity*price = 200063 [19:57:09]sum+1 = 200064 [19:57:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.46 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 230 19.06.2024 19:57 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111481 ФПД: 257103909655139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T195720&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111481&fm=257103909655139&tin=02508201610067®Number=0000000000092771&sum=200000 [19:57:10]StoreToDocumentArchive [19:57:10]shift 388 fd 111481 [19:57:10]save to /storage/0388/doc_00111481 [19:57:10]save last doc name /storage/0388/doc_00111481 to /storage/kkm_last_doc_name [19:57:10]save OK [19:57:10]Clear old archive folders... [19:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:10]tlvbuf is 00F50220 [19:57:10]SAM_PROTO_ClearQueue [19:57:10]wFMCommunicate request_size=4 [19:57:10]MH_SAM_APDU [19:57:10]CAPDU: 80 09 00 00 [19:57:10]Write to MH i2c: E2 08 00 8B 2C 80 09 00 00 00 00 00 00 29 [19:57:10]Write i2c OK [19:57:10]MH_I2C_Read... [19:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:10]Read from MH i2c: E2 [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: E2 03 00 [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: E2 03 00 8B 2C 00 90 00 2B [19:57:10]RAPDU: 90 00 [19:57:10]wFMCommunicate OK [19:57:10]SAM_PROTO_ClearQueue done [19:57:10]KKMCreateOFDPacket [19:57:10]OFDProtocolAddRootSTLVToBuf [19:57:10]FM_MakeSignedData [19:57:10]FM_MakeSignedData [19:57:10]SAM_PROTO_SignData [19:57:10]wFMCommunicate request_size=4 [19:57:10]MH_SAM_APDU [19:57:10]CAPDU: 80 0D 01 02 [19:57:10]Write to MH i2c: E2 08 00 8C 2C 80 0D 01 02 00 00 00 00 31 [19:57:10]Write i2c OK [19:57:10]MH_I2C_Read... [19:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:10]Read from MH i2c: E2 [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: E2 03 00 [19:57:10]MH_I2C_Read... [19:57:10]Read from MH i2c: E2 03 00 8C 2C 00 90 00 2C [19:57:10]RAPDU: 90 00 [19:57:10]wFMCommunicate OK [19:57:10]wFMCommunicate request_size=255 [19:57:10]MH_SAM_APDU [19: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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 20 38 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B3 01 00 35 04 06 00 E9 [19:57:10]Write to MH i2c: E2 02 01 8D 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 20 38 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B3 01 00 35 04 06 00 E9 00 00 8C [19:57:10]Write i2c OK [19:57:10]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 8D 2C 00 90 00 2D [19:57:11]RAPDU: 90 00 [19:57:11]wFMCommunicate OK [19:57:11]wFMCommunicate request_size=10 [19:57:11]MH_SAM_APDU [19:57:11]CAPDU: 80 0D 02 02 05 D5 AB 34 92 63 [19:57:11]Write to MH i2c: E2 0D 00 8E 2C 80 0D 02 02 05 00 D5 AB 34 92 63 00 00 E7 [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 03 00 8E 2C 00 90 00 2E [19:57:11]RAPDU: 90 00 [19:57:11]wFMCommunicate OK [19:57:11]wFMCommunicate request_size=4 [19:57:11]MH_SAM_APDU [19:57:11]CAPDU: 80 0D 03 02 [19:57:11]Write to MH i2c: E2 08 00 8F 2C 80 0D 03 02 00 00 00 00 36 [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 0B 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 0B 00 8F 2C 00 3A 12 29 F0 EF 5E B7 97 90 00 37 [19:57:11]RAPDU: 3A 12 29 F0 EF 5E B7 97 90 00 [19:57:11]wFMCommunicate OK [19:57:11]SAM_PROTO_SignData done [19:57:11]FM_MakeSignedData done [19:57:11]CreateOFDProtocolMessage [19:57:11]wFMCommunicate request_size=4 [19:57:11]MH_SAM_APDU [19:57:11]CAPDU: 80 11 00 00 [19:57:11]Write to MH i2c: E2 08 00 90 2C 80 11 00 00 00 00 00 00 36 [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:11]Read from MH i2c: E2 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 17 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: E2 17 00 90 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 88 [19:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:57:11]wFMCommunicate OK [19:57:11]CreateOFDProtocolMessage done [19:57:11]OFDSenderStorePacket 111481 [19:57:11]StoreOFDPacket docnum=111481 [19:57:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B5 BD 07 01 2E 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 20 38 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B3 01 00 35 04 06 00 E9 D5 AB 34 92 63 3A 12 29 F0 EF 5E B7 97 [19:57:11]CheckFolder [19:57:11]dirname=/storage/ofd_packets [19:57:11]CheckFolder done [19:57:11]ProducePacketName [19:57:11]name=ofd_packets/00111481 [19:57:11]NVStorageSaveData ofd_packets/00111481 [19:57:11]File name is /storage/ofd_packets/00111481 [19:57:11]Write 301 bytes [19:57:11]NVStorageSaveData done [19:57:11]OFDSenderStorePacket done [19:57:11]KKMCreateOFDPacket done [19:57:11]NVStorageSaveData kkm_last_timestamp [19:57:11]File name is /storage/kkm_last_timestamp [19:57:11]Write 4 bytes [19:57:11]NVStorageSaveData done [19:57:11]ExternCall_PrintAddStr [19:57:11]wPrintStart [19:57:11]Write to MH i2c: 01 00 00 91 2C BD [19:57:11]Write i2c OK [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 07 00 [19:57:11]MH_I2C_Read... [19:57:11]Read from MH i2c: 01 07 00 91 2C 00 00 00 00 00 FF 0F D2 [19:57:11]RasterBufferAndPrint [19:57:11]line Счет N : (1)320068 [19:57:11]line ИНН: 02508201610067 [19:57:11]line Контрольно-Кассовый Чек [19:57:11]line ПРОДАЖА [19:57:11]line ТРК (МРК, ГНК) : 11 [19:57:11]line Товар: 2710124130 [19:57:11]line Аи-92-К-5 [19:57:11]line 30.130 * 66.40 [19:57:11]line = 2000.63 [19:57:11]line НДС 12% НСП 1% [19:57:11]line > о реализуемом товаре [19:57:11]line ОКРУГЛЕНИЕ: -0.63 [19:57:11]line ИТОГО: 2000.00 [19:57:11]line Внесено: 2000.00 [19:57:11]line СДАЧА: 0.00 [19:57:11]line НСП 1% : 17.70 [19:57:11]line НДС 12% : 212.46 [19:57:11]line Наличными: 2000.00 [19:57:11]line Безнал.: 0.00 [19:57:11]line Место: АЗС № 65 "Партнер Нефть" [19:57:11]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [19:57:11]line СНО: Общий режим [19:57:11]line Чек 230 19.06.2024 19:57 [19:57:11]line Смена: 388 ФФД: 1.0 [19:57:11]line ЗНМ: 0300000198 [19:57:11]line РНМ: 0000000000092771 [19:57:11]line Версия ККМ: 001 [19:57:11]line ФМ: 0000000000875083 [19:57:11]line ФД: 111481 [19:57:11]line ФПД: 257103909655139 [19:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T195720&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111481&fm=257103909655139&tin=02508201610067®Number=0000000000092771&sum=200000 [19:57:11]OFD Sender: Processing packet 111481 [packets to send 38, broken 37] [19:57:11]ProducePacketName [19:57:11]name=ofd_packets/00111481 [19:57:11]OFD Sender: To server: pG, [19:57:11]CommunicateWithHost lk.salyk.kg:30040 [19:57:11]ConnectInit lk.salyk.kg [19:57:11]written 0, free lines is 4095 [19:57:11]Connected sock=10 [19:57:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B5 BD 07 01 2E 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 B2 75 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7F 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 FE 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 20 38 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 79 B3 01 00 35 04 06 00 E9 D5 AB 34 92 63 3A 12 29 F0 EF 5E B7 97 [19:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AC 91 47 00 C4 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 35 30 38 33 10 04 04 00 79 B3 01 00 F4 03 04 00 80 CF 72 66 B6 04 01 00 00 A1 E6 40 9C A4 06 10 60 [19:57:11]CommunicateWithHost err = 0 [19:57:11]CheckOFDResponse [19:57:11]1017 (14) - 77093643461234 [19:57:11]1041 (16) - 0000000000875083 [19:57:11]1040 (4) - 111481 [19:57:11]1012 (4) - 19.06.2024 12:30 [19:57:11]1206 (1) - 0 [19:57:11]OFD Sender: Remove packet 111481 [19:57:11]ProducePacketName [19:57:11]name=ofd_packets/00111481 [19:57:11]NVStorageDeleteData [19:57:12]Write to MH i2c: 01 00 00 BC 2C E8 [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: 01 07 00 BC 2C 00 00 00 00 00 EA 0C E5 [19:57:12]RasterBufferAndPrint [19:57:12]line [19:57:12]line [19:57:12]line [19:57:12]line [19:57:12]line [19:57:12]written 0, free lines is 3312 [19:57:12]MH_Cut [19:57:12]Write to MH i2c: D1 01 00 C3 2C 01 C1 [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: D1 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: D1 01 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: D1 01 00 C3 2C 00 C0 [19:57:12]Write to MH i2c: 01 00 00 C4 2C F0 [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]OFD Sender: No OFD packet to send [19:57:12]*** Cut start [19:57:12]*** Partial cut [19:57:12]*** CUTSNS_PIN = 1 [19:57:12]*** CUTSNS_PIN = 0 [19:57:13]*** Brake cut motor [19:57:13]Read from MH i2c: 01 [19:57:13]MH_I2C_Read... [19:57:13]*** Stop cut motor [19:57:13]*** Cut end [19:57:13]Read from MH i2c: 01 07 00 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: 01 07 00 C4 2C 00 00 00 00 00 FF 0F 05 [19:57:13]process_action close_receipt done [19:57:13]requested_data is exist [19:57:13]produce_requested_data [19:57:13]requested_item fm.sn is exist - process it [19:57:13]wFMCommunicate request_size=4 [19:57:13]MH_SAM_APDU [19:57:13]CAPDU: 80 11 00 00 [19:57:13]Write to MH i2c: E2 08 00 C5 2C 80 11 00 00 00 00 00 00 6B [19:57:13]Write i2c OK [19:57:13]MH_I2C_Read... [19:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:13]Read from MH i2c: E2 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 17 00 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 17 00 C5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BD [19:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [19:57:13]wFMCommunicate OK [19:57:13]requested_item fd.num is exist - process it [19:57:13]SAM_PROTO_GetFieldsCounters [19:57:13]wFMCommunicate request_size=4 [19:57:13]MH_SAM_APDU [19:57:13]CAPDU: 80 13 00 00 [19:57:13]Write to MH i2c: E2 08 00 C6 2C 80 13 00 00 00 00 00 00 6E [19:57:13]Write i2c OK [19:57:13]MH_I2C_Read... [19:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:13]Read from MH i2c: E2 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 62 00 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 62 00 C6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B3 01 00 0E 04 04 00 84 01 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 F3 [19:57: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 79 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:13]wFMCommunicate OK [19:57:13]SAM_PROTO_GetFieldsCounters done [19:57:13]requested_item shift.num is exist - process it [19:57:13]requested_item shift.opened is exist - process it [19:57:13]req_shift_opened [19:57:13]FM_GetShiftState [19:57:13]SAM_PROTO_GetShiftState [19:57:13]wFMCommunicate request_size=4 [19:57:13]MH_SAM_APDU [19:57:13]CAPDU: 80 13 01 00 [19:57:13]Write to MH i2c: E2 08 00 C7 2C 80 13 01 00 00 00 00 00 70 [19:57:13]Write i2c OK [19:57:13]MH_I2C_Read... [19:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:13]Read from MH i2c: E2 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 0E 00 [19:57:13]MH_I2C_Read... [19:57:13]Read from MH i2c: E2 0E 00 C7 2C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BA [19:57:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [19:57:13]wFMCommunicate OK [19:57:13]SAM_PROTO_GetShiftState done [19:57:13]FM_GetShiftState done [19:57:13]req_shift_opened done [19:57:13]requested_item shift.open_date is exist - process it [19:57:13]req_shift_open_date [19:57:13]req_shift_open_date done [19:57:13]produce_requested_data done [19:57:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111481,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [19:57:13]process_action_free close_receipt [19:57:13]json_value_free [19:57:13]json_value_free done [19:57:13]process_json_proto returns [19:57:13]Send response to host [19:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111481,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [19:57:13]free response buf [19:57:13]execute_script done [19:57:13]execute_script returns [19:57:13]free content buf [19:57:13]Sock 7.Close socket [19:57:13]Sock 7.Thread stoped [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:08]accept exits with 9 [20:06:08]New connection [20:06:08]New thread 3067321700 created [20:06:08]Thread 3067465060 joined [20:06:08]Waiting for new connection... [20:06:08] Sock 9.Parse request [20:06:08]Sock 9.Check first char [20:06:08]Sock 9.First char is OK [20:06:08]request: POST /json_proto HTTP/1.0 [20:06:08]Method: POST [20:06:08]URL: /json_proto [20:06:08]Method is POST - this is cgi request [20:06:08]url: /json_proto [20:06:08]query_string will be loaded in cgi processing [20:06:08]execute_cgi json_proto POST (null) [20:06:08]execute_cgi path=json_proto method=POST [20:06:08]POST find Content-Length [20:06:08]Host: 172.17.59.68:8080 [20:06:08]Content-Length: 677 [20:06:08]Content-Type: application/json [20:06:08] [20:06:08]POST finish read [20:06:08]Found Content-Length = 677 [20:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:08]execute_script... [20:06: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)320069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:08]POST & json_proto [20:06:08]process_json_proto [20:06:08]json parsed OK: [20:06:08]protocol is kg_v1.0 [20:06:08]action value=close_receipt [20:06:08]process_action close_receipt [20:06:08]cmd_close_receipt [20:06:08]MH_GetDate [20:06:08]Write to MH i2c: F0 00 00 C8 2C E3 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: F0 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: F0 09 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: F0 09 00 C8 2C 00 3B 3A 73 66 BC EC 60 65 A7 [20:06:08]GetLastDocTimeStamp 1718827040 [20:06:08]current date 1718827579 [20:06:08]FM_GetShiftState [20:06:08]SAM_PROTO_GetShiftState [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 13 01 00 [20:06:08]Write to MH i2c: E2 08 00 C9 2C 80 13 01 00 00 00 00 00 72 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 0E 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 0E 00 C9 2C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BC [20:06:08]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:06:08]wFMCommunicate OK [20:06:08]SAM_PROTO_GetShiftState done [20:06:08]FM_GetShiftState done [20:06:08]opened in 1718760753 [20:06:08]opened+sec_in_day 1718847153 [20:06:08]quantity*price = 50065 [20:06:08]sum+1 = 50067 [20:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 231 19.06.2024 20:06 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111482 ФПД: 56494721582044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T200619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111482&fm=56494721582044&tin=02508201610067®Number=0000000000092771&sum=50000 [20:06:09]StoreToDocumentArchive [20:06:09]shift 388 fd 111482 [20:06:09]save to /storage/0388/doc_00111482 [20:06:09]save last doc name /storage/0388/doc_00111482 to /storage/kkm_last_doc_name [20:06:09]save OK [20:06:09]Clear old archive folders... [20:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:09]tlvbuf is B6E25330 [20:06:09]SAM_PROTO_ClearQueue [20:06:09]wFMCommunicate request_size=4 [20:06:09]MH_SAM_APDU [20:06:09]CAPDU: 80 09 00 00 [20:06:09]Write to MH i2c: E2 08 00 D6 2C 80 09 00 00 00 00 00 00 74 [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 03 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 03 00 D6 2C 00 90 00 76 [20:06:09]RAPDU: 90 00 [20:06:09]wFMCommunicate OK [20:06:09]SAM_PROTO_ClearQueue done [20:06:09]KKMCreateOFDPacket [20:06:09]OFDProtocolAddRootSTLVToBuf [20:06:09]FM_MakeSignedData [20:06:09]FM_MakeSignedData [20:06:09]SAM_PROTO_SignData [20:06:09]wFMCommunicate request_size=4 [20:06:09]MH_SAM_APDU [20:06:09]CAPDU: 80 0D 01 02 [20:06:09]Write to MH i2c: E2 08 00 D7 2C 80 0D 01 02 00 00 00 00 7C [20:06:09]Write i2c OK [20:06:09]MH_I2C_Read... [20:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:09]Read from MH i2c: E2 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 03 00 [20:06:09]MH_I2C_Read... [20:06:09]Read from MH i2c: E2 03 00 D7 2C 00 90 00 77 [20:06:09]RAPDU: 90 00 [20:06:09]wFMCommunicate OK [20:06:09]wFMCommunicate request_size=255 [20:06:09]MH_SAM_APDU [20:06: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 3B 3A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B3 01 00 35 04 06 00 33 [20:06:09]Write to MH i2c: E2 02 01 D8 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 3B 3A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B3 01 00 35 04 06 00 33 00 00 4B [20:06:10]Write i2c OK [20:06:10]MH_I2C_Read... [20:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:10]Read from MH i2c: E2 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: E2 03 00 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: E2 03 00 D8 2C 00 90 00 78 [20:06:10]RAPDU: 90 00 [20:06:10]wFMCommunicate OK [20:06:10]wFMCommunicate request_size=10 [20:06:10]MH_SAM_APDU [20:06:10]CAPDU: 80 0D 02 02 05 61 B3 CF C3 DC [20:06:10]Write to MH i2c: E2 0D 00 D9 2C 80 0D 02 02 05 00 61 B3 CF C3 DC 00 00 0B [20:06:10]Write i2c OK [20:06:10]MH_I2C_Read... [20:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:10]Read from MH i2c: E2 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: E2 03 00 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: E2 03 00 D9 2C 00 90 00 79 [20:06:10]RAPDU: 90 00 [20:06:10]wFMCommunicate OK [20:06:10]wFMCommunicate request_size=4 [20:06:10]MH_SAM_APDU [20:06:10]CAPDU: 80 0D 03 02 [20:06:10]Write to MH i2c: E2 08 00 DA 2C 80 0D 03 02 00 00 00 00 81 [20:06:10]Write i2c OK [20:06:10]MH_I2C_Read... [20:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:10]Read from MH i2c: E2 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: E2 0B 00 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: E2 0B 00 DA 2C 00 3A BE 00 BD A3 2C 58 D5 90 00 33 [20:06:10]RAPDU: 3A BE 00 BD A3 2C 58 D5 90 00 [20:06:10]wFMCommunicate OK [20:06:10]SAM_PROTO_SignData done [20:06:10]FM_MakeSignedData done [20:06:10]CreateOFDProtocolMessage [20:06:10]wFMCommunicate request_size=4 [20:06:10]MH_SAM_APDU [20:06:10]CAPDU: 80 11 00 00 [20:06:10]Write to MH i2c: E2 08 00 DB 2C 80 11 00 00 00 00 00 00 81 [20:06:10]Write i2c OK [20:06:10]MH_I2C_Read... [20:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:10]Read from MH i2c: E2 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: E2 17 00 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: E2 17 00 DB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D3 [20:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:06:10]wFMCommunicate OK [20:06:10]CreateOFDProtocolMessage done [20:06:10]OFDSenderStorePacket 111482 [20:06:10]StoreOFDPacket docnum=111482 [20:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 68 69 07 01 C3 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 3B 3A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B3 01 00 35 04 06 00 33 61 B3 CF C3 DC 3A BE 00 BD A3 2C 58 D5 [20:06:10]CheckFolder [20:06:10]dirname=/storage/ofd_packets [20:06:10]CheckFolder done [20:06:10]ProducePacketName [20:06:10]name=ofd_packets/00111482 [20:06:10]NVStorageSaveData ofd_packets/00111482 [20:06:10]File name is /storage/ofd_packets/00111482 [20:06:10]Write 301 bytes [20:06:10]NVStorageSaveData done [20:06:10]OFDSenderStorePacket done [20:06:10]KKMCreateOFDPacket done [20:06:10]NVStorageSaveData kkm_last_timestamp [20:06:10]File name is /storage/kkm_last_timestamp [20:06:10]Write 4 bytes [20:06:10]NVStorageSaveData done [20:06:10]ExternCall_PrintAddStr [20:06:10]wPrintStart [20:06:10]Write to MH i2c: 01 00 00 DC 2C 08 [20:06:10]Write i2c OK [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: 01 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: 01 07 00 [20:06:10]MH_I2C_Read... [20:06:10]Read from MH i2c: 01 07 00 DC 2C 00 00 00 00 00 FF 0F 1D [20:06:10]RasterBufferAndPrint [20:06:10]line Счет N : (1)320069 [20:06:10]line ИНН: 02508201610067 [20:06:10]line Контрольно-Кассовый Чек [20:06:10]line ПРОДАЖА [20:06:10]line ТРК (МРК, ГНК) : 11 [20:06:10]line Товар: 2710124130 [20:06:10]line Аи-92-К-5 [20:06:10]line 7.540 * 66.40 [20:06:10]line = 500.66 [20:06:10]line НДС 12% НСП 1% [20:06:10]line > о реализуемом товаре [20:06:10]line ОКРУГЛЕНИЕ: -0.66 [20:06:10]line ИТОГО: 500.00 [20:06:10]line Внесено: 500.00 [20:06:10]line СДАЧА: 0.00 [20:06:10]line НСП 1% : 4.43 [20:06:10]line НДС 12% : 53.17 [20:06:10]line Наличными: 500.00 [20:06:10]line Безнал.: 0.00 [20:06:10]line Место: АЗС № 65 "Партнер Нефть" [20:06:10]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:06:10]line СНО: Общий режим [20:06:10]line Чек 231 19.06.2024 20:06 [20:06:10]line Смена: 388 ФФД: 1.0 [20:06:10]line ЗНМ: 0300000198 [20:06:10]line РНМ: 0000000000092771 [20:06:10]line Версия ККМ: 001 [20:06:10]line ФМ: 0000000000875083 [20:06:10]line ФД: 111482 [20:06:10]line ФПД: 56494721582044 [20:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T200619&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111482&fm=56494721582044&tin=02508201610067®Number=0000000000092771&sum=50000 [20:06:10]OFD Sender: Processing packet 111482 [packets to send 38, broken 37] [20:06:10]ProducePacketName [20:06:10]name=ofd_packets/00111482 [20:06:10]OFD Sender: To server: pG, [20:06:10]CommunicateWithHost lk.salyk.kg:30040 [20:06:10]ConnectInit lk.salyk.kg [20:06:10]written 0, free lines is 4095 [20:06:10]Connected sock=10 [20:06:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 68 69 07 01 C3 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 3B 3A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7A B3 01 00 35 04 06 00 33 61 B3 CF C3 DC 3A BE 00 BD A3 2C 58 D5 [20:06:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8B 4C 47 00 9A 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 35 30 38 33 10 04 04 00 7A B3 01 00 F4 03 04 00 9B D1 72 66 B6 04 01 00 00 B5 5E 4D E8 4F 10 CE B1 [20:06:11]CommunicateWithHost err = 0 [20:06:11]CheckOFDResponse [20:06:11]1017 (14) - 77093643461234 [20:06:11]1041 (16) - 0000000000875083 [20:06:11]1040 (4) - 111482 [20:06:11]1012 (4) - 19.06.2024 12:39 [20:06:11]1206 (1) - 0 [20:06:11]OFD Sender: Remove packet 111482 [20:06:11]ProducePacketName [20:06:11]name=ofd_packets/00111482 [20:06:11]NVStorageDeleteData [20:06:11]Write to MH i2c: 01 00 00 07 2D 34 [20:06:11]Write i2c OK [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: 01 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: 01 07 00 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: 01 07 00 07 2D 00 00 00 00 00 DC 0C 23 [20:06:11]RasterBufferAndPrint [20:06:11]line [20:06:11]line [20:06:11]line [20:06:11]line [20:06:11]line [20:06:11]written 0, free lines is 3298 [20:06:11]MH_Cut [20:06:11]Write to MH i2c: D1 01 00 0E 2D 01 0D [20:06:11]Write i2c OK [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: D1 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: D1 01 00 [20:06:11]MH_I2C_Read... [20:06:11]Read from MH i2c: D1 01 00 0E 2D 00 0C [20:06:11]Write to MH i2c: 01 00 00 0F 2D 3C [20:06:11]Write i2c OK [20:06:11]MH_I2C_Read... [20:06:11]OFD Sender: No OFD packet to send [20:06:11]*** Cut start [20:06:11]*** Partial cut [20:06:11]*** CUTSNS_PIN = 1 [20:06:12]*** CUTSNS_PIN = 0 [20:06:12]*** Brake cut motor [20:06:12]Read from MH i2c: 01 [20:06:12]MH_I2C_Read... [20:06:12]*** Stop cut motor [20:06:12]*** Cut end [20:06:12]Read from MH i2c: 01 07 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: 01 07 00 0F 2D 00 00 00 00 00 FF 0F 51 [20:06:12]process_action close_receipt done [20:06:12]requested_data is exist [20:06:12]produce_requested_data [20:06:12]requested_item fm.sn is exist - process it [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 11 00 00 [20:06:12]Write to MH i2c: E2 08 00 10 2D 80 11 00 00 00 00 00 00 B7 [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 17 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 17 00 10 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 09 [20:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:06:12]wFMCommunicate OK [20:06:12]requested_item fd.num is exist - process it [20:06:12]SAM_PROTO_GetFieldsCounters [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 13 00 00 [20:06:12]Write to MH i2c: E2 08 00 11 2D 80 13 00 00 00 00 00 00 BA [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 62 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 62 00 11 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7A B3 01 00 0E 04 04 00 84 01 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 43 [20:06: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7A B3 01 00 0E 04 04 00 84 01 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 [20:06:12]wFMCommunicate OK [20:06:12]SAM_PROTO_GetFieldsCounters done [20:06:12]requested_item shift.num is exist - process it [20:06:12]requested_item shift.opened is exist - process it [20:06:12]req_shift_opened [20:06:12]FM_GetShiftState [20:06:12]SAM_PROTO_GetShiftState [20:06:12]wFMCommunicate request_size=4 [20:06:12]MH_SAM_APDU [20:06:12]CAPDU: 80 13 01 00 [20:06:12]Write to MH i2c: E2 08 00 12 2D 80 13 01 00 00 00 00 00 BC [20:06:12]Write i2c OK [20:06:12]MH_I2C_Read... [20:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:12]Read from MH i2c: E2 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 0E 00 [20:06:12]MH_I2C_Read... [20:06:12]Read from MH i2c: E2 0E 00 12 2D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 06 [20:06:12]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:06:12]wFMCommunicate OK [20:06:12]SAM_PROTO_GetShiftState done [20:06:12]FM_GetShiftState done [20:06:12]req_shift_opened done [20:06:12]requested_item shift.open_date is exist - process it [20:06:12]req_shift_open_date [20:06:12]req_shift_open_date done [20:06:12]produce_requested_data done [20:06:12]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111482,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:06:12]process_action_free close_receipt [20:06:12]json_value_free [20:06:12]json_value_free done [20:06:12]process_json_proto returns [20:06:12]Send response to host [20:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111482,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:06:12]free response buf [20:06:12]execute_script done [20:06:12]execute_script returns [20:06:12]free content buf [20:06:12]Sock 9.Close socket [20:06:12]Sock 9.Thread stoped [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:10:58]accept exits with 7 [20:10:58]New connection [20:10:58]New thread 3067465060 created [20:10:58]Thread 3067321700 joined [20:10:58]Waiting for new connection... [20:10:58] Sock 7.Parse request [20:10:58]Sock 7.Check first char [20:10:58]Sock 7.First char is OK [20:10:58]request: POST /json_proto HTTP/1.0 [20:10:58]Method: POST [20:10:58]URL: /json_proto [20:10:58]Method is POST - this is cgi request [20:10:58]url: /json_proto [20:10:58]query_string will be loaded in cgi processing [20:10:58]execute_cgi json_proto POST (null) [20:10:58]execute_cgi path=json_proto method=POST [20:10:58]POST find Content-Length [20:10:58]Host: 172.17.59.68:8080 [20:10:58]Content-Length: 682 [20:10:58]Content-Type: application/json [20:10:58] [20:10:58]POST finish read [20:10:58]Found Content-Length = 682 [20:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:58]execute_script... [20:10: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)320070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:10:58]POST & json_proto [20:10:58]process_json_proto [20:10:58]json parsed OK: [20:10:58]protocol is kg_v1.0 [20:10:58]action value=close_receipt [20:10:58]process_action close_receipt [20:10:58]cmd_close_receipt [20:10:58]MH_GetDate [20:10:58]Write to MH i2c: F0 00 00 13 2D 2F [20:10:58]Write i2c OK [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: F0 [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: F0 09 00 [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: F0 09 00 13 2D 00 5D 3B 73 66 BC EC 60 65 16 [20:10:58]GetLastDocTimeStamp 1718827579 [20:10:58]current date 1718827869 [20:10:58]FM_GetShiftState [20:10:58]SAM_PROTO_GetShiftState [20:10:58]wFMCommunicate request_size=4 [20:10:58]MH_SAM_APDU [20:10:58]CAPDU: 80 13 01 00 [20:10:58]Write to MH i2c: E2 08 00 14 2D 80 13 01 00 00 00 00 00 BE [20:10:58]Write i2c OK [20:10:58]MH_I2C_Read... [20:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:58]Read from MH i2c: E2 [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: E2 0E 00 [20:10:58]MH_I2C_Read... [20:10:58]Read from MH i2c: E2 0E 00 14 2D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 08 [20:10:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:10:58]wFMCommunicate OK [20:10:58]SAM_PROTO_GetShiftState done [20:10:58]FM_GetShiftState done [20:10:58]opened in 1718760753 [20:10:58]opened+sec_in_day 1718847153 [20:10:58]quantity*price = 100060 [20:10:58]sum+1 = 100062 [20:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 232 19.06.2024 20:11 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111483 ФПД: 202898063209182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201109&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111483&fm=202898063209182&tin=02508201610067®Number=0000000000092771&sum=100000 [20:10:59]StoreToDocumentArchive [20:10:59]shift 388 fd 111483 [20:10:59]save to /storage/0388/doc_00111483 [20:10:59]save last doc name /storage/0388/doc_00111483 to /storage/kkm_last_doc_name [20:10:59]save OK [20:10:59]Clear old archive folders... [20:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:59]tlvbuf is 00F0C960 [20:10:59]SAM_PROTO_ClearQueue [20:10:59]wFMCommunicate request_size=4 [20:10:59]MH_SAM_APDU [20:10:59]CAPDU: 80 09 00 00 [20:10:59]Write to MH i2c: E2 08 00 21 2D 80 09 00 00 00 00 00 00 C0 [20:10:59]Write i2c OK [20:10:59]MH_I2C_Read... [20:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:59]Read from MH i2c: E2 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 03 00 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 03 00 21 2D 00 90 00 C2 [20:10:59]RAPDU: 90 00 [20:10:59]wFMCommunicate OK [20:10:59]SAM_PROTO_ClearQueue done [20:10:59]KKMCreateOFDPacket [20:10:59]OFDProtocolAddRootSTLVToBuf [20:10:59]FM_MakeSignedData [20:10:59]FM_MakeSignedData [20:10:59]SAM_PROTO_SignData [20:10:59]wFMCommunicate request_size=4 [20:10:59]MH_SAM_APDU [20:10:59]CAPDU: 80 0D 01 02 [20:10:59]Write to MH i2c: E2 08 00 22 2D 80 0D 01 02 00 00 00 00 C8 [20:10:59]Write i2c OK [20:10:59]MH_I2C_Read... [20:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:59]Read from MH i2c: E2 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 03 00 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 03 00 22 2D 00 90 00 C3 [20:10:59]RAPDU: 90 00 [20:10:59]wFMCommunicate OK [20:10:59]wFMCommunicate request_size=255 [20:10:59]MH_SAM_APDU [20:10:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 5D 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B3 01 00 35 04 06 00 B8 [20:10:59]Write to MH i2c: E2 02 01 23 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 5D 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B3 01 00 35 04 06 00 B8 00 00 82 [20:10:59]Write i2c OK [20:10:59]MH_I2C_Read... [20:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:59]Read from MH i2c: E2 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 03 00 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 03 00 23 2D 00 90 00 C4 [20:10:59]RAPDU: 90 00 [20:10:59]wFMCommunicate OK [20:10:59]wFMCommunicate request_size=10 [20:10:59]MH_SAM_APDU [20:10:59]CAPDU: 80 0D 02 02 05 88 E2 FB B2 DE [20:10:59]Write to MH i2c: E2 0D 00 24 2D 80 0D 02 02 05 00 88 E2 FB B2 DE 00 00 CA [20:10:59]Write i2c OK [20:10:59]MH_I2C_Read... [20:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:59]Read from MH i2c: E2 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 03 00 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 03 00 24 2D 00 90 00 C5 [20:10:59]RAPDU: 90 00 [20:10:59]wFMCommunicate OK [20:10:59]wFMCommunicate request_size=4 [20:10:59]MH_SAM_APDU [20:10:59]CAPDU: 80 0D 03 02 [20:10:59]Write to MH i2c: E2 08 00 25 2D 80 0D 03 02 00 00 00 00 CD [20:10:59]Write i2c OK [20:10:59]MH_I2C_Read... [20:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:59]Read from MH i2c: E2 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 0B 00 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 0B 00 25 2D 00 70 75 15 5B 86 E2 7D 3C 90 00 44 [20:10:59]RAPDU: 70 75 15 5B 86 E2 7D 3C 90 00 [20:10:59]wFMCommunicate OK [20:10:59]SAM_PROTO_SignData done [20:10:59]FM_MakeSignedData done [20:10:59]CreateOFDProtocolMessage [20:10:59]wFMCommunicate request_size=4 [20:10:59]MH_SAM_APDU [20:10:59]CAPDU: 80 11 00 00 [20:10:59]Write to MH i2c: E2 08 00 26 2D 80 11 00 00 00 00 00 00 CD [20:10:59]Write i2c OK [20:10:59]MH_I2C_Read... [20:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:59]Read from MH i2c: E2 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 17 00 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: E2 17 00 26 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1F [20:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:10:59]wFMCommunicate OK [20:10:59]CreateOFDProtocolMessage done [20:10:59]OFDSenderStorePacket 111483 [20:10:59]StoreOFDPacket docnum=111483 [20:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B5 22 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 5D 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B3 01 00 35 04 06 00 B8 88 E2 FB B2 DE 70 75 15 5B 86 E2 7D 3C [20:10:59]CheckFolder [20:10:59]dirname=/storage/ofd_packets [20:10:59]CheckFolder done [20:10:59]ProducePacketName [20:10:59]name=ofd_packets/00111483 [20:10:59]NVStorageSaveData ofd_packets/00111483 [20:10:59]File name is /storage/ofd_packets/00111483 [20:10:59]Write 301 bytes [20:10:59]NVStorageSaveData done [20:10:59]OFDSenderStorePacket done [20:10:59]KKMCreateOFDPacket done [20:10:59]NVStorageSaveData kkm_last_timestamp [20:10:59]File name is /storage/kkm_last_timestamp [20:10:59]Write 4 bytes [20:10:59]NVStorageSaveData done [20:10:59]ExternCall_PrintAddStr [20:10:59]wPrintStart [20:10:59]Write to MH i2c: 01 00 00 27 2D 54 [20:10:59]Write i2c OK [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: 01 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: 01 07 00 [20:10:59]MH_I2C_Read... [20:10:59]Read from MH i2c: 01 07 00 27 2D 00 00 00 00 00 FF 0F 69 [20:10:59]RasterBufferAndPrint [20:10:59]line Счет N : (1)320070 [20:10:59]line ИНН: 02508201610067 [20:10:59]line Контрольно-Кассовый Чек [20:10:59]line ПРОДАЖА [20:10:59]line ТРК (МРК, ГНК) : 12 [20:10:59]line Товар: 2710124500 [20:10:59]line Аи-95-К-5 [20:10:59]line 13.540 * 73.90 [20:10:59]line = 1000.61 [20:10:59]line НДС 12% НСП 1% [20:10:59]line > о реализуемом товаре [20:10:59]line ОКРУГЛЕНИЕ: -0.61 [20:10:59]line ИТОГО: 1000.00 [20:10:59]line Внесено: 1000.00 [20:10:59]line СДАЧА: 0.00 [20:10:59]line НСП 1% : 8.85 [20:10:59]line НДС 12% : 106.26 [20:10:59]line Наличными: 1000.00 [20:10:59]line Безнал.: 0.00 [20:10:59]line Место: АЗС № 65 "Партнер Нефть" [20:10:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:10:59]line СНО: Общий режим [20:10:59]line Чек 232 19.06.2024 20:11 [20:11:00]line Смена: 388 ФФД: 1.0 [20:11:00]line ЗНМ: 0300000198 [20:11:00]line РНМ: 0000000000092771 [20:11:00]line Версия ККМ: 001 [20:11:00]line ФМ: 0000000000875083 [20:11:00]line ФД: 111483 [20:11:00]line ФПД: 202898063209182 [20:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201109&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111483&fm=202898063209182&tin=02508201610067®Number=0000000000092771&sum=100000 [20:11:00]OFD Sender: Processing packet 111483 [packets to send 38, broken 37] [20:11:00]ProducePacketName [20:11:00]name=ofd_packets/00111483 [20:11:00]OFD Sender: To server: pG, [20:11:00]CommunicateWithHost lk.salyk.kg:30040 [20:11:00]ConnectInit lk.salyk.kg [20:11:00]written 0, free lines is 4095 [20:11:00]Connected sock=10 [20:11:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B5 22 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 5D 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7B B3 01 00 35 04 06 00 B8 88 E2 FB B2 DE 70 75 15 5B 86 E2 7D 3C [20:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CA 9E 47 00 98 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 35 30 38 33 10 04 04 00 7B B3 01 00 F4 03 04 00 BD D2 72 66 B6 04 01 00 00 78 60 6C D9 B0 B0 52 FE [20:11:00]CommunicateWithHost err = 0 [20:11:00]CheckOFDResponse [20:11:00]1017 (14) - 77093643461234 [20:11:00]1041 (16) - 0000000000875083 [20:11:00]1040 (4) - 111483 [20:11:00]1012 (4) - 19.06.2024 12:44 [20:11:00]1206 (1) - 0 [20:11:00]OFD Sender: Remove packet 111483 [20:11:00]ProducePacketName [20:11:00]name=ofd_packets/00111483 [20:11:00]NVStorageDeleteData [20:11:00]Write to MH i2c: 01 00 00 52 2D 7F [20:11:00]Write i2c OK [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 07 00 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: 01 07 00 52 2D 00 00 00 00 00 E4 0C 76 [20:11:00]RasterBufferAndPrint [20:11:00]line [20:11:00]line [20:11:00]line [20:11:00]line [20:11:00]line [20:11:00]written 0, free lines is 3306 [20:11:00]MH_Cut [20:11:00]Write to MH i2c: D1 01 00 59 2D 01 58 [20:11:00]Write i2c OK [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: D1 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: D1 01 00 [20:11:00]MH_I2C_Read... [20:11:00]Read from MH i2c: D1 01 00 59 2D 00 57 [20:11:00]Write to MH i2c: 01 00 00 5A 2D 87 [20:11:00]Write i2c OK [20:11:00]MH_I2C_Read... [20:11:00]OFD Sender: No OFD packet to send [20:11:01]*** Cut start [20:11:01]*** Partial cut [20:11:01]*** CUTSNS_PIN = 1 [20:11:01]*** CUTSNS_PIN = 0 [20:11:01]*** Brake cut motor [20:11:01]Read from MH i2c: 01 [20:11:01]MH_I2C_Read... [20:11:01]*** Stop cut motor [20:11:01]*** Cut end [20:11:01]Read from MH i2c: 01 07 00 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: 01 07 00 5A 2D 00 00 00 00 00 FF 0F 9C [20:11:01]process_action close_receipt done [20:11:01]requested_data is exist [20:11:01]produce_requested_data [20:11:01]requested_item fm.sn is exist - process it [20:11:01]wFMCommunicate request_size=4 [20:11:01]MH_SAM_APDU [20:11:01]CAPDU: 80 11 00 00 [20:11:01]Write to MH i2c: E2 08 00 5B 2D 80 11 00 00 00 00 00 00 02 [20:11:01]Write i2c OK [20:11:01]MH_I2C_Read... [20:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:01]Read from MH i2c: E2 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 17 00 [20:11:01]MH_I2C_Read... [20:11:01]Read from MH i2c: E2 17 00 5B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [20:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:11:01]wFMCommunicate OK [20:11:01]requested_item fd.num is exist - process it [20:11:01]SAM_PROTO_GetFieldsCounters [20:11:01]wFMCommunicate request_size=4 [20:11:01]MH_SAM_APDU [20:11:01]CAPDU: 80 13 00 00 [20:11:01]Write to MH i2c: E2 08 00 5C 2D 80 13 00 00 00 00 00 00 05 [20:11:01]Write i2c OK [20:11:01]MH_I2C_Read... [20:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:02]Read from MH i2c: E2 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: E2 62 00 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: E2 62 00 5C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7B B3 01 00 0E 04 04 00 84 01 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 92 [20:11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7B B3 01 00 0E 04 04 00 84 01 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 [20:11:02]wFMCommunicate OK [20:11:02]SAM_PROTO_GetFieldsCounters done [20:11:02]requested_item shift.num is exist - process it [20:11:02]requested_item shift.opened is exist - process it [20:11:02]req_shift_opened [20:11:02]FM_GetShiftState [20:11:02]SAM_PROTO_GetShiftState [20:11:02]wFMCommunicate request_size=4 [20:11:02]MH_SAM_APDU [20:11:02]CAPDU: 80 13 01 00 [20:11:02]Write to MH i2c: E2 08 00 5D 2D 80 13 01 00 00 00 00 00 07 [20:11:02]Write i2c OK [20:11:02]MH_I2C_Read... [20:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:02]Read from MH i2c: E2 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: E2 0E 00 [20:11:02]MH_I2C_Read... [20:11:02]Read from MH i2c: E2 0E 00 5D 2D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 51 [20:11:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:11:02]wFMCommunicate OK [20:11:02]SAM_PROTO_GetShiftState done [20:11:02]FM_GetShiftState done [20:11:02]req_shift_opened done [20:11:02]requested_item shift.open_date is exist - process it [20:11:02]req_shift_open_date [20:11:02]req_shift_open_date done [20:11:02]produce_requested_data done [20:11:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111483,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:11:02]process_action_free close_receipt [20:11:02]json_value_free [20:11:02]json_value_free done [20:11:02]process_json_proto returns [20:11:02]Send response to host [20:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111483,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:11:02]free response buf [20:11:02]execute_script done [20:11:02]execute_script returns [20:11:02]free content buf [20:11:02]Sock 7.Close socket [20:11:02]Sock 7.Thread stoped [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]accept exits with 9 [20:11:25]New connection [20:11:25]New thread 3067321700 created [20:11:25]Thread 3067465060 joined [20:11:25]Waiting for new connection... [20:11:25] Sock 9.Parse request [20:11:25]Sock 9.Check first char [20:11:25]Sock 9.First char is OK [20:11:25]request: POST /json_proto HTTP/1.0 [20:11:25]Method: POST [20:11:25]URL: /json_proto [20:11:25]Method is POST - this is cgi request [20:11:25]url: /json_proto [20:11:25]query_string will be loaded in cgi processing [20:11:25]execute_cgi json_proto POST (null) [20:11:25]execute_cgi path=json_proto method=POST [20:11:25]POST find Content-Length [20:11:25]Host: 172.17.59.68:8080 [20:11:25]Content-Length: 677 [20:11:25]Content-Type: application/json [20:11:25] [20:11:25]POST finish read [20:11:25]Found Content-Length = 677 [20:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:11:25]execute_script... [20:11: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)320071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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:11:25]POST & json_proto [20:11:25]process_json_proto [20:11:25]json parsed OK: [20:11:25]protocol is kg_v1.0 [20:11:25]action value=close_receipt [20:11:25]process_action close_receipt [20:11:25]cmd_close_receipt [20:11:25]MH_GetDate [20:11:25]Write to MH i2c: F0 00 00 5E 2D 7A [20:11:25]Write i2c OK [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: F0 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: F0 09 00 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: F0 09 00 5E 2D 00 78 3B 73 66 BC EC 60 65 7C [20:11:25]GetLastDocTimeStamp 1718827869 [20:11:25]current date 1718827896 [20:11:25]FM_GetShiftState [20:11:25]SAM_PROTO_GetShiftState [20:11:25]wFMCommunicate request_size=4 [20:11:25]MH_SAM_APDU [20:11:25]CAPDU: 80 13 01 00 [20:11:25]Write to MH i2c: E2 08 00 5F 2D 80 13 01 00 00 00 00 00 09 [20:11:25]Write i2c OK [20:11:25]MH_I2C_Read... [20:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:25]Read from MH i2c: E2 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: E2 0E 00 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: E2 0E 00 5F 2D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 53 [20:11:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:11:25]wFMCommunicate OK [20:11:25]SAM_PROTO_GetShiftState done [20:11:25]FM_GetShiftState done [20:11:25]opened in 1718760753 [20:11:25]opened+sec_in_day 1718847153 [20:11:25]quantity*price = 60025 [20:11:25]sum+1 = 60027 [20:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 233 19.06.2024 20:11 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111484 ФПД: 77951954389053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201136&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111484&fm=77951954389053&tin=02508201610067®Number=0000000000092771&sum=60000 [20:11:26]StoreToDocumentArchive [20:11:26]shift 388 fd 111484 [20:11:26]save to /storage/0388/doc_00111484 [20:11:26]save last doc name /storage/0388/doc_00111484 to /storage/kkm_last_doc_name [20:11:26]save OK [20:11:26]Clear old archive folders... [20:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:26]tlvbuf is 00F0C680 [20:11:26]SAM_PROTO_ClearQueue [20:11:26]wFMCommunicate request_size=4 [20:11:26]MH_SAM_APDU [20:11:26]CAPDU: 80 09 00 00 [20:11:26]Write to MH i2c: E2 08 00 6C 2D 80 09 00 00 00 00 00 00 0B [20:11:26]Write i2c OK [20:11:26]MH_I2C_Read... [20:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:26]Read from MH i2c: E2 [20:11:26]MH_I2C_Read... [20:11:26]Read from MH i2c: E2 03 00 [20:11:26]MH_I2C_Read... [20:11:26]Read from MH i2c: E2 03 00 6C 2D 00 90 00 0D [20:11:26]RAPDU: 90 00 [20:11:26]wFMCommunicate OK [20:11:26]SAM_PROTO_ClearQueue done [20:11:26]KKMCreateOFDPacket [20:11:26]OFDProtocolAddRootSTLVToBuf [20:11:26]FM_MakeSignedData [20:11:26]FM_MakeSignedData [20:11:26]SAM_PROTO_SignData [20:11:26]wFMCommunicate request_size=4 [20:11:26]MH_SAM_APDU [20:11:26]CAPDU: 80 0D 01 02 [20:11:26]Write to MH i2c: E2 08 00 6D 2D 80 0D 01 02 00 00 00 00 13 [20:11:26]Write i2c OK [20:11:26]MH_I2C_Read... [20:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:26]Read from MH i2c: E2 [20:11:26]MH_I2C_Read... [20:11:26]Read from MH i2c: E2 03 00 [20:11:26]MH_I2C_Read... [20:11:26]Read from MH i2c: E2 03 00 6D 2D 00 90 00 0E [20:11:26]RAPDU: 90 00 [20:11:26]wFMCommunicate OK [20:11:26]wFMCommunicate request_size=255 [20:11:26]MH_SAM_APDU [20:11: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 78 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B3 01 00 35 04 06 00 46 [20:11:26]Write to MH i2c: E2 02 01 6E 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 78 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B3 01 00 35 04 06 00 46 00 00 14 [20:11:26]Write i2c OK [20:11:26]MH_I2C_Read... [20:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:27]Read from MH i2c: E2 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: E2 03 00 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: E2 03 00 6E 2D 00 90 00 0F [20:11:27]RAPDU: 90 00 [20:11:27]wFMCommunicate OK [20:11:27]wFMCommunicate request_size=10 [20:11:27]MH_SAM_APDU [20:11:27]CAPDU: 80 0D 02 02 05 E5 9A 8D 08 3D [20:11:27]Write to MH i2c: E2 0D 00 6F 2D 80 0D 02 02 05 00 E5 9A 8D 08 3D 00 00 71 [20:11:27]Write i2c OK [20:11:27]MH_I2C_Read... [20:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:27]Read from MH i2c: E2 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: E2 03 00 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: E2 03 00 6F 2D 00 90 00 10 [20:11:27]RAPDU: 90 00 [20:11:27]wFMCommunicate OK [20:11:27]wFMCommunicate request_size=4 [20:11:27]MH_SAM_APDU [20:11:27]CAPDU: 80 0D 03 02 [20:11:27]Write to MH i2c: E2 08 00 70 2D 80 0D 03 02 00 00 00 00 18 [20:11:27]Write i2c OK [20:11:27]MH_I2C_Read... [20:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:27]Read from MH i2c: E2 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: E2 0B 00 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: E2 0B 00 70 2D 00 C3 47 B1 9E 21 40 81 65 90 00 B9 [20:11:27]RAPDU: C3 47 B1 9E 21 40 81 65 90 00 [20:11:27]wFMCommunicate OK [20:11:27]SAM_PROTO_SignData done [20:11:27]FM_MakeSignedData done [20:11:27]CreateOFDProtocolMessage [20:11:27]wFMCommunicate request_size=4 [20:11:27]MH_SAM_APDU [20:11:27]CAPDU: 80 11 00 00 [20:11:27]Write to MH i2c: E2 08 00 71 2D 80 11 00 00 00 00 00 00 18 [20:11:27]Write i2c OK [20:11:27]MH_I2C_Read... [20:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:27]Read from MH i2c: E2 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: E2 17 00 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: E2 17 00 71 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6A [20:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:11:27]wFMCommunicate OK [20:11:27]CreateOFDProtocolMessage done [20:11:27]OFDSenderStorePacket 111484 [20:11:27]StoreOFDPacket docnum=111484 [20:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 10 07 01 97 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 78 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B3 01 00 35 04 06 00 46 E5 9A 8D 08 3D C3 47 B1 9E 21 40 81 65 [20:11:27]CheckFolder [20:11:27]dirname=/storage/ofd_packets [20:11:27]CheckFolder done [20:11:27]ProducePacketName [20:11:27]name=ofd_packets/00111484 [20:11:27]NVStorageSaveData ofd_packets/00111484 [20:11:27]File name is /storage/ofd_packets/00111484 [20:11:27]Write 301 bytes [20:11:27]NVStorageSaveData done [20:11:27]OFDSenderStorePacket done [20:11:27]KKMCreateOFDPacket done [20:11:27]NVStorageSaveData kkm_last_timestamp [20:11:27]File name is /storage/kkm_last_timestamp [20:11:27]Write 4 bytes [20:11:27]NVStorageSaveData done [20:11:27]ExternCall_PrintAddStr [20:11:27]wPrintStart [20:11:27]Write to MH i2c: 01 00 00 72 2D 9F [20:11:27]Write i2c OK [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: 01 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: 01 07 00 [20:11:27]MH_I2C_Read... [20:11:27]Read from MH i2c: 01 07 00 72 2D 00 00 00 00 00 FF 0F B4 [20:11:27]RasterBufferAndPrint [20:11:27]line Счет N : (1)320071 [20:11:27]line ИНН: 02508201610067 [20:11:27]line Контрольно-Кассовый Чек [20:11:27]line ПРОДАЖА [20:11:27]line ТРК (МРК, ГНК) : 11 [20:11:27]line Товар: 2710124130 [20:11:27]line Аи-92-К-5 [20:11:27]line 9.040 * 66.40 [20:11:27]line = 600.26 [20:11:27]line НДС 12% НСП 1% [20:11:27]line > о реализуемом товаре [20:11:27]line ОКРУГЛЕНИЕ: -0.26 [20:11:27]line ИТОГО: 600.00 [20:11:27]line Внесено: 600.00 [20:11:27]line СДАЧА: 0.00 [20:11:27]line НСП 1% : 5.31 [20:11:27]line НДС 12% : 63.74 [20:11:27]line Наличными: 600.00 [20:11:27]line Безнал.: 0.00 [20:11:27]line Место: АЗС № 65 "Партнер Нефть" [20:11:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:11:27]line СНО: Общий режим [20:11:27]line Чек 233 19.06.2024 20:11 [20:11:27]line Смена: 388 ФФД: 1.0 [20:11:27]line ЗНМ: 0300000198 [20:11:27]line РНМ: 0000000000092771 [20:11:27]line Версия ККМ: 001 [20:11:27]line ФМ: 0000000000875083 [20:11:27]line ФД: 111484 [20:11:27]line ФПД: 77951954389053 [20:11:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201136&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111484&fm=77951954389053&tin=02508201610067®Number=0000000000092771&sum=60000 [20:11:27]OFD Sender: Processing packet 111484 [packets to send 38, broken 37] [20:11:27]ProducePacketName [20:11:27]name=ofd_packets/00111484 [20:11:27]OFD Sender: To server: pG, [20:11:27]CommunicateWithHost lk.salyk.kg:30040 [20:11:27]ConnectInit lk.salyk.kg [20:11:27]written 0, free lines is 4095 [20:11:27]Connected sock=10 [20:11:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D1 10 07 01 97 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 78 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7C B3 01 00 35 04 06 00 46 E5 9A 8D 08 3D C3 47 B1 9E 21 40 81 65 [20:11:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 76 39 47 00 EB 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 35 30 38 33 10 04 04 00 7C B3 01 00 F4 03 04 00 D8 D2 72 66 B6 04 01 00 00 C1 61 98 3C 4C 05 A4 61 [20:11:27]CommunicateWithHost err = 0 [20:11:27]CheckOFDResponse [20:11:27]1017 (14) - 77093643461234 [20:11:27]1041 (16) - 0000000000875083 [20:11:27]1040 (4) - 111484 [20:11:27]1012 (4) - 19.06.2024 12:45 [20:11:27]1206 (1) - 0 [20:11:27]OFD Sender: Remove packet 111484 [20:11:27]ProducePacketName [20:11:27]name=ofd_packets/00111484 [20:11:27]NVStorageDeleteData [20:11:28]Write to MH i2c: 01 00 00 9D 2D CA [20:11:28]Write i2c OK [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: 01 [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: 01 07 00 [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: 01 07 00 9D 2D 00 00 00 00 00 CD 0C AA [20:11:28]RasterBufferAndPrint [20:11:28]line [20:11:28]line [20:11:28]line [20:11:28]line [20:11:28]line [20:11:28]written 0, free lines is 3283 [20:11:28]MH_Cut [20:11:28]Write to MH i2c: D1 01 00 A4 2D 01 A3 [20:11:28]Write i2c OK [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: D1 [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: D1 01 00 [20:11:28]MH_I2C_Read... [20:11:28]Read from MH i2c: D1 01 00 A4 2D 00 A2 [20:11:28]Write to MH i2c: 01 00 00 A5 2D D2 [20:11:28]Write i2c OK [20:11:28]MH_I2C_Read... [20:11:28]OFD Sender: No OFD packet to send [20:11:28]*** Cut start [20:11:28]*** Partial cut [20:11:28]*** CUTSNS_PIN = 1 [20:11:28]*** CUTSNS_PIN = 0 [20:11:29]*** Brake cut motor [20:11:29]Read from MH i2c: 01 [20:11:29]MH_I2C_Read... [20:11:29]Read from MH i2c: 01 07 00 [20:11:29]MH_I2C_Read... [20:11:29]*** Stop cut motor [20:11:29]*** Cut end [20:11:29]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 FF 0F E7 [20:11:29]process_action close_receipt done [20:11:29]requested_data is exist [20:11:29]produce_requested_data [20:11:29]requested_item fm.sn is exist - process it [20:11:29]wFMCommunicate request_size=4 [20:11:29]MH_SAM_APDU [20:11:29]CAPDU: 80 11 00 00 [20:11:29]Write to MH i2c: E2 08 00 A6 2D 80 11 00 00 00 00 00 00 4D [20:11:29]Write i2c OK [20:11:29]MH_I2C_Read... [20:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:29]Read from MH i2c: E2 [20:11:29]MH_I2C_Read... [20:11:29]Read from MH i2c: E2 17 00 [20:11:29]MH_I2C_Read... [20:11:29]Read from MH i2c: E2 17 00 A6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9F [20:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:11:29]wFMCommunicate OK [20:11:29]requested_item fd.num is exist - process it [20:11:29]SAM_PROTO_GetFieldsCounters [20:11:29]wFMCommunicate request_size=4 [20:11:29]MH_SAM_APDU [20:11:29]CAPDU: 80 13 00 00 [20:11:29]Write to MH i2c: E2 08 00 A7 2D 80 13 00 00 00 00 00 00 50 [20:11:29]Write i2c OK [20:11:29]MH_I2C_Read... [20:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:29]Read from MH i2c: E2 [20:11:29]MH_I2C_Read... [20:11:29]Read from MH i2c: E2 62 00 [20:11:29]MH_I2C_Read... [20:11:29]Read from MH i2c: E2 62 00 A7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7C B3 01 00 0E 04 04 00 84 01 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 E1 [20:11: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7C B3 01 00 0E 04 04 00 84 01 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 [20:11:29]wFMCommunicate OK [20:11:29]SAM_PROTO_GetFieldsCounters done [20:11:29]requested_item shift.num is exist - process it [20:11:29]requested_item shift.opened is exist - process it [20:11:29]req_shift_opened [20:11:29]FM_GetShiftState [20:11:29]SAM_PROTO_GetShiftState [20:11:29]wFMCommunicate request_size=4 [20:11:29]MH_SAM_APDU [20:11:29]CAPDU: 80 13 01 00 [20:11:29]Write to MH i2c: E2 08 00 A8 2D 80 13 01 00 00 00 00 00 52 [20:11:29]Write i2c OK [20:11:29]MH_I2C_Read... [20:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:29]Read from MH i2c: E2 [20:11:29]MH_I2C_Read... [20:11:29]Read from MH i2c: E2 0E 00 [20:11:29]MH_I2C_Read... [20:11:29]Read from MH i2c: E2 0E 00 A8 2D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9C [20:11:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:11:29]wFMCommunicate OK [20:11:29]SAM_PROTO_GetShiftState done [20:11:29]FM_GetShiftState done [20:11:29]req_shift_opened done [20:11:29]requested_item shift.open_date is exist - process it [20:11:29]req_shift_open_date [20:11:29]req_shift_open_date done [20:11:29]produce_requested_data done [20:11:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111484,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:11:29]process_action_free close_receipt [20:11:29]json_value_free [20:11:29]json_value_free done [20:11:29]process_json_proto returns [20:11:29]Send response to host [20:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111484,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:11:29]free response buf [20:11:29]execute_script done [20:11:29]execute_script returns [20:11:29]free content buf [20:11:29]Sock 9.Close socket [20:11:29]Sock 9.Thread stoped [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:38]accept exits with 7 [20:12:38]New connection [20:12:38]New thread 3067465060 created [20:12:38]Thread 3067321700 joined [20:12:38]Waiting for new connection... [20:12:38] Sock 7.Parse request [20:12:38]Sock 7.Check first char [20:12:38]Sock 7.First char is OK [20:12:38]request: POST /json_proto HTTP/1.0 [20:12:38]Method: POST [20:12:38]URL: /json_proto [20:12:38]Method is POST - this is cgi request [20:12:38]url: /json_proto [20:12:38]query_string will be loaded in cgi processing [20:12:38]execute_cgi json_proto POST (null) [20:12:38]execute_cgi path=json_proto method=POST [20:12:38]POST find Content-Length [20:12:38]Host: 172.17.59.68:8080 [20:12:38]Content-Length: 682 [20:12:38]Content-Type: application/json [20:12:38] [20:12:38]POST finish read [20:12:38]Found Content-Length = 682 [20:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:38]execute_script... [20: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)320072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:38]POST & json_proto [20:12:38]process_json_proto [20:12:38]json parsed OK: [20:12:38]protocol is kg_v1.0 [20:12:38]action value=close_receipt [20:12:38]process_action close_receipt [20:12:38]cmd_close_receipt [20:12:38]MH_GetDate [20:12:38]Write to MH i2c: F0 00 00 A9 2D C5 [20:12:38]Write i2c OK [20:12:38]MH_I2C_Read... [20:12:38]Read from MH i2c: F0 [20:12:38]MH_I2C_Read... [20:12:38]Read from MH i2c: F0 09 00 [20:12:38]MH_I2C_Read... [20:12:38]Read from MH i2c: F0 09 00 A9 2D 00 C2 3B 73 66 BC EC 60 65 11 [20:12:38]GetLastDocTimeStamp 1718827896 [20:12:38]current date 1718827970 [20:12:38]FM_GetShiftState [20:12:38]SAM_PROTO_GetShiftState [20:12:38]wFMCommunicate request_size=4 [20:12:38]MH_SAM_APDU [20:12:38]CAPDU: 80 13 01 00 [20:12:38]Write to MH i2c: E2 08 00 AA 2D 80 13 01 00 00 00 00 00 54 [20:12:38]Write i2c OK [20:12:38]MH_I2C_Read... [20:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:38]Read from MH i2c: E2 [20:12:38]MH_I2C_Read... [20:12:38]Read from MH i2c: E2 0E 00 [20:12:38]MH_I2C_Read... [20:12:38]Read from MH i2c: E2 0E 00 AA 2D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9E [20:12:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:12:38]wFMCommunicate OK [20:12:38]SAM_PROTO_GetShiftState done [20:12:38]FM_GetShiftState done [20:12:38]opened in 1718760753 [20:12:38]opened+sec_in_day 1718847153 [20:12:38]quantity*price = 150064 [20:12:38]sum+1 = 150065 [20:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 234 19.06.2024 20:12 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111485 ФПД: 202225746639363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201250&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111485&fm=202225746639363&tin=02508201610067®Number=0000000000092771&sum=150000 [20:12:40]StoreToDocumentArchive [20:12:40]shift 388 fd 111485 [20:12:40]save to /storage/0388/doc_00111485 [20:12:40]save last doc name /storage/0388/doc_00111485 to /storage/kkm_last_doc_name [20:12:40]save OK [20:12:40]Clear old archive folders... [20:12:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:40]tlvbuf is 00F1E590 [20:12:40]SAM_PROTO_ClearQueue [20:12:40]wFMCommunicate request_size=4 [20:12:40]MH_SAM_APDU [20:12:40]CAPDU: 80 09 00 00 [20:12:40]Write to MH i2c: E2 08 00 B7 2D 80 09 00 00 00 00 00 00 56 [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:40]Read from MH i2c: E2 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 03 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 03 00 B7 2D 00 90 00 58 [20:12:40]RAPDU: 90 00 [20:12:40]wFMCommunicate OK [20:12:40]SAM_PROTO_ClearQueue done [20:12:40]KKMCreateOFDPacket [20:12:40]OFDProtocolAddRootSTLVToBuf [20:12:40]FM_MakeSignedData [20:12:40]FM_MakeSignedData [20:12:40]SAM_PROTO_SignData [20:12:40]wFMCommunicate request_size=4 [20:12:40]MH_SAM_APDU [20:12:40]CAPDU: 80 0D 01 02 [20:12:40]Write to MH i2c: E2 08 00 B8 2D 80 0D 01 02 00 00 00 00 5E [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:40]Read from MH i2c: E2 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 03 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 03 00 B8 2D 00 90 00 59 [20:12:40]RAPDU: 90 00 [20:12:40]wFMCommunicate OK [20:12:40]wFMCommunicate request_size=255 [20:12:40]MH_SAM_APDU [20:12: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 EA 00 00 00 F4 03 04 00 C2 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B3 01 00 35 04 06 00 B7 [20:12:40]Write to MH i2c: E2 02 01 B9 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 EA 00 00 00 F4 03 04 00 C2 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B3 01 00 35 04 06 00 B7 00 00 E3 [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:40]Read from MH i2c: E2 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 03 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 03 00 B9 2D 00 90 00 5A [20:12:40]RAPDU: 90 00 [20:12:40]wFMCommunicate OK [20:12:40]wFMCommunicate request_size=10 [20:12:40]MH_SAM_APDU [20:12:40]CAPDU: 80 0D 02 02 05 EC 59 CA FA 03 [20:12:40]Write to MH i2c: E2 0D 00 BA 2D 80 0D 02 02 05 00 EC 59 CA FA 03 00 00 77 [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:40]Read from MH i2c: E2 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 03 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 03 00 BA 2D 00 90 00 5B [20:12:40]RAPDU: 90 00 [20:12:40]wFMCommunicate OK [20:12:40]wFMCommunicate request_size=4 [20:12:40]MH_SAM_APDU [20:12:40]CAPDU: 80 0D 03 02 [20:12:40]Write to MH i2c: E2 08 00 BB 2D 80 0D 03 02 00 00 00 00 63 [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:40]Read from MH i2c: E2 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 0B 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 0B 00 BB 2D 00 33 5E 30 CC FE 37 3F 26 90 00 8B [20:12:40]RAPDU: 33 5E 30 CC FE 37 3F 26 90 00 [20:12:40]wFMCommunicate OK [20:12:40]SAM_PROTO_SignData done [20:12:40]FM_MakeSignedData done [20:12:40]CreateOFDProtocolMessage [20:12:40]wFMCommunicate request_size=4 [20:12:40]MH_SAM_APDU [20:12:40]CAPDU: 80 11 00 00 [20:12:40]Write to MH i2c: E2 08 00 BC 2D 80 11 00 00 00 00 00 00 63 [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:40]Read from MH i2c: E2 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 17 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: E2 17 00 BC 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B5 [20:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:12:40]wFMCommunicate OK [20:12:40]CreateOFDProtocolMessage done [20:12:40]OFDSenderStorePacket 111485 [20:12:40]StoreOFDPacket docnum=111485 [20:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 7E 58 07 01 7C E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 EA 00 00 00 F4 03 04 00 C2 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B3 01 00 35 04 06 00 B7 EC 59 CA FA 03 33 5E 30 CC FE 37 3F 26 [20:12:40]CheckFolder [20:12:40]dirname=/storage/ofd_packets [20:12:40]CheckFolder done [20:12:40]ProducePacketName [20:12:40]name=ofd_packets/00111485 [20:12:40]NVStorageSaveData ofd_packets/00111485 [20:12:40]File name is /storage/ofd_packets/00111485 [20:12:40]Write 301 bytes [20:12:40]NVStorageSaveData done [20:12:40]OFDSenderStorePacket done [20:12:40]KKMCreateOFDPacket done [20:12:40]NVStorageSaveData kkm_last_timestamp [20:12:40]File name is /storage/kkm_last_timestamp [20:12:40]Write 4 bytes [20:12:40]NVStorageSaveData done [20:12:40]ExternCall_PrintAddStr [20:12:40]wPrintStart [20:12:40]Write to MH i2c: 01 00 00 BD 2D EA [20:12:40]Write i2c OK [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 07 00 [20:12:40]MH_I2C_Read... [20:12:40]Read from MH i2c: 01 07 00 BD 2D 00 00 00 00 00 FF 0F FF [20:12:40]RasterBufferAndPrint [20:12:40]line Счет N : (1)320072 [20:12:40]line ИНН: 02508201610067 [20:12:40]line Контрольно-Кассовый Чек [20:12:40]line ПРОДАЖА [20:12:40]line ТРК (МРК, ГНК) : 11 [20:12:40]line Товар: 2710124130 [20:12:40]line Аи-92-К-5 [20:12:40]line 22.600 * 66.40 [20:12:40]line = 1500.64 [20:12:40]line НДС 12% НСП 1% [20:12:40]line > о реализуемом товаре [20:12:40]line ОКРУГЛЕНИЕ: -0.64 [20:12:40]line ИТОГО: 1500.00 [20:12:40]line Внесено: 1500.00 [20:12:40]line СДАЧА: 0.00 [20:12:40]line НСП 1% : 13.28 [20:12:40]line НДС 12% : 159.36 [20:12:40]line Наличными: 1500.00 [20:12:40]line Безнал.: 0.00 [20:12:40]line Место: АЗС № 65 "Партнер Нефть" [20:12:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:12:40]line СНО: Общий режим [20:12:40]line Чек 234 19.06.2024 20:12 [20:12:40]line Смена: 388 ФФД: 1.0 [20:12:40]line ЗНМ: 0300000198 [20:12:40]line РНМ: 0000000000092771 [20:12:40]line Версия ККМ: 001 [20:12:40]line ФМ: 0000000000875083 [20:12:40]line ФД: 111485 [20:12:40]line ФПД: 202225746639363 [20:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201250&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111485&fm=202225746639363&tin=02508201610067®Number=0000000000092771&sum=150000 [20:12:40]OFD Sender: Processing packet 111485 [packets to send 38, broken 37] [20:12:40]ProducePacketName [20:12:40]name=ofd_packets/00111485 [20:12:40]OFD Sender: To server: pG, [20:12:40]CommunicateWithHost lk.salyk.kg:30040 [20:12:40]ConnectInit lk.salyk.kg [20:12:40]written 0, free lines is 4095 [20:12:40]Connected sock=9 [20: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 35 30 38 33 0F 01 00 00 7E 58 07 01 7C E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 EA 00 00 00 F4 03 04 00 C2 3B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B3 01 00 35 04 06 00 B7 EC 59 CA FA 03 33 5E 30 CC FE 37 3F 26 [20:12:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 30 3E 47 00 4A 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7D B3 01 00 F4 03 04 00 21 D3 72 66 B6 04 01 00 00 33 3E 3A 8B 31 C2 68 10 [20:12:41]CommunicateWithHost err = 0 [20:12:41]CheckOFDResponse [20:12:41]1017 (14) - 77093643461234 [20:12:41]1041 (16) - 0000000000875083 [20:12:41]1040 (4) - 111485 [20:12:41]1012 (4) - 19.06.2024 12:46 [20:12:41]1206 (1) - 0 [20:12:41]OFD Sender: Remove packet 111485 [20:12:41]ProducePacketName [20:12:41]name=ofd_packets/00111485 [20:12:41]NVStorageDeleteData [20:12:41]Write to MH i2c: 01 00 00 E8 2D 15 [20:12:41]Write i2c OK [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: 01 [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: 01 07 00 [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: 01 07 00 E8 2D 00 00 00 00 00 E4 0C 0C [20:12:41]RasterBufferAndPrint [20:12:41]line [20:12:41]line [20:12:41]line [20:12:41]line [20:12:41]line [20:12:41]written 0, free lines is 3306 [20:12:41]MH_Cut [20:12:41]Write to MH i2c: D1 01 00 EF 2D 01 EE [20:12:41]Write i2c OK [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: D1 [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: D1 01 00 [20:12:41]MH_I2C_Read... [20:12:41]Read from MH i2c: D1 01 00 EF 2D 00 ED [20:12:41]Write to MH i2c: 01 00 00 F0 2D 1D [20:12:41]Write i2c OK [20:12:41]MH_I2C_Read... [20:12:41]OFD Sender: No OFD packet to send [20:12:42]*** Cut start [20:12:42]*** Partial cut [20:12:42]*** CUTSNS_PIN = 1 [20:12:42]*** CUTSNS_PIN = 0 [20:12:42]*** Brake cut motor [20:12:42]Read from MH i2c: 01 [20:12:42]MH_I2C_Read... [20:12:42]*** Stop cut motor [20:12:42]*** Cut end [20:12:42]Read from MH i2c: 01 07 00 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: 01 07 00 F0 2D 00 00 00 00 00 FF 0F 32 [20:12:42]process_action close_receipt done [20:12:42]requested_data is exist [20:12:42]produce_requested_data [20:12:42]requested_item fm.sn is exist - process it [20:12:42]wFMCommunicate request_size=4 [20:12:42]MH_SAM_APDU [20:12:42]CAPDU: 80 11 00 00 [20:12:42]Write to MH i2c: E2 08 00 F1 2D 80 11 00 00 00 00 00 00 98 [20:12:42]Write i2c OK [20:12:42]MH_I2C_Read... [20:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:42]Read from MH i2c: E2 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 17 00 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 17 00 F1 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EA [20:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:12:42]wFMCommunicate OK [20:12:42]requested_item fd.num is exist - process it [20:12:42]SAM_PROTO_GetFieldsCounters [20:12:42]wFMCommunicate request_size=4 [20:12:42]MH_SAM_APDU [20:12:42]CAPDU: 80 13 00 00 [20:12:42]Write to MH i2c: E2 08 00 F2 2D 80 13 00 00 00 00 00 00 9B [20:12:42]Write i2c OK [20:12:42]MH_I2C_Read... [20:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:42]Read from MH i2c: E2 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 62 00 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 62 00 F2 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7D B3 01 00 0E 04 04 00 84 01 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 30 [20: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7D B3 01 00 0E 04 04 00 84 01 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 [20:12:42]wFMCommunicate OK [20:12:42]SAM_PROTO_GetFieldsCounters done [20:12:42]requested_item shift.num is exist - process it [20:12:42]requested_item shift.opened is exist - process it [20:12:42]req_shift_opened [20:12:42]FM_GetShiftState [20:12:42]SAM_PROTO_GetShiftState [20:12:42]wFMCommunicate request_size=4 [20:12:42]MH_SAM_APDU [20:12:42]CAPDU: 80 13 01 00 [20:12:42]Write to MH i2c: E2 08 00 F3 2D 80 13 01 00 00 00 00 00 9D [20:12:42]Write i2c OK [20:12:42]MH_I2C_Read... [20:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:42]Read from MH i2c: E2 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 0E 00 [20:12:42]MH_I2C_Read... [20:12:42]Read from MH i2c: E2 0E 00 F3 2D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E7 [20:12:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:12:42]wFMCommunicate OK [20:12:42]SAM_PROTO_GetShiftState done [20:12:42]FM_GetShiftState done [20:12:42]req_shift_opened done [20:12:42]requested_item shift.open_date is exist - process it [20:12:42]req_shift_open_date [20:12:42]req_shift_open_date done [20:12:42]produce_requested_data done [20:12:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111485,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:12:42]process_action_free close_receipt [20:12:42]json_value_free [20:12:42]json_value_free done [20:12:42]process_json_proto returns [20:12:42]Send response to host [20:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111485,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:12:42]free response buf [20:12:42]execute_script done [20:12:42]execute_script returns [20:12:42]free content buf [20:12:42]Sock 7.Close socket [20:12:42]Sock 7.Thread stoped [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:49]accept exits with 10 [20:13:49]New connection [20:13:49]New thread 3067321700 created [20:13:49]Thread 3067465060 joined [20:13:49]Waiting for new connection... [20:13:49] Sock 10.Parse request [20:13:49]Sock 10.Check first char [20:13:49]Sock 10.First char is OK [20:13:49]request: POST /json_proto HTTP/1.0 [20:13:49]Method: POST [20:13:49]URL: /json_proto [20:13:49]Method is POST - this is cgi request [20:13:49]url: /json_proto [20:13:49]query_string will be loaded in cgi processing [20:13:49]execute_cgi json_proto POST (null) [20:13:49]execute_cgi path=json_proto method=POST [20:13:49]POST find Content-Length [20:13:49]Host: 172.17.59.68:8080 [20:13:49]Content-Length: 677 [20:13:49]Content-Type: application/json [20:13:49] [20:13:49]POST finish read [20:13:49]Found Content-Length = 677 [20:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:49]execute_script... [20:13:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:13:49]POST & json_proto [20:13:49]process_json_proto [20:13:49]json parsed OK: [20:13:49]protocol is kg_v1.0 [20:13:49]action value=close_receipt [20:13:49]process_action close_receipt [20:13:49]cmd_close_receipt [20:13:49]MH_GetDate [20:13:49]Write to MH i2c: F0 00 00 F4 2D 10 [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: F0 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: F0 09 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: F0 09 00 F4 2D 00 08 3C 73 66 BC EC 60 65 A3 [20:13:49]GetLastDocTimeStamp 1718827970 [20:13:49]current date 1718828040 [20:13:49]FM_GetShiftState [20:13:49]SAM_PROTO_GetShiftState [20:13:49]wFMCommunicate request_size=4 [20:13:49]MH_SAM_APDU [20:13:49]CAPDU: 80 13 01 00 [20:13:49]Write to MH i2c: E2 08 00 F5 2D 80 13 01 00 00 00 00 00 9F [20:13:49]Write i2c OK [20:13:49]MH_I2C_Read... [20:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:49]Read from MH i2c: E2 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 0E 00 [20:13:49]MH_I2C_Read... [20:13:49]Read from MH i2c: E2 0E 00 F5 2D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E9 [20:13:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:13:49]wFMCommunicate OK [20:13:49]SAM_PROTO_GetShiftState done [20:13:49]FM_GetShiftState done [20:13:49]opened in 1718760753 [20:13:49]opened+sec_in_day 1718847153 [20:13:49]quantity*price = 30012 [20:13:49]sum+1 = 30014 [20:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 235 19.06.2024 20:14 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111486 ФПД: 177376860643694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201400&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111486&fm=177376860643694&tin=02508201610067®Number=0000000000092771&sum=30000 [20:13:50]StoreToDocumentArchive [20:13:50]shift 388 fd 111486 [20:13:50]save to /storage/0388/doc_00111486 [20:13:50]save last doc name /storage/0388/doc_00111486 to /storage/kkm_last_doc_name [20:13:50]save OK [20:13:50]Clear old archive folders... [20:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:50]tlvbuf is 00F0C600 [20:13:50]SAM_PROTO_ClearQueue [20:13:50]wFMCommunicate request_size=4 [20:13:50]MH_SAM_APDU [20:13:50]CAPDU: 80 09 00 00 [20:13:50]Write to MH i2c: E2 08 00 02 2E 80 09 00 00 00 00 00 00 A2 [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:50]Read from MH i2c: E2 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 03 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 03 00 02 2E 00 90 00 A4 [20:13:50]RAPDU: 90 00 [20:13:50]wFMCommunicate OK [20:13:50]SAM_PROTO_ClearQueue done [20:13:50]KKMCreateOFDPacket [20:13:50]OFDProtocolAddRootSTLVToBuf [20:13:50]FM_MakeSignedData [20:13:50]FM_MakeSignedData [20:13:50]SAM_PROTO_SignData [20:13:50]wFMCommunicate request_size=4 [20:13:50]MH_SAM_APDU [20:13:50]CAPDU: 80 0D 01 02 [20:13:50]Write to MH i2c: E2 08 00 03 2E 80 0D 01 02 00 00 00 00 AA [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:50]Read from MH i2c: E2 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 03 00 [20:13:50]MH_I2C_Read... [20:13:50]Read from MH i2c: E2 03 00 03 2E 00 90 00 A5 [20:13:50]RAPDU: 90 00 [20:13:50]wFMCommunicate OK [20:13:50]wFMCommunicate request_size=255 [20:13:50]MH_SAM_APDU [20:13: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 EB 00 00 00 F4 03 04 00 08 3C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B3 01 00 35 04 06 00 A1 [20:13:50]Write to MH i2c: E2 02 01 04 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 EB 00 00 00 F4 03 04 00 08 3C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B3 01 00 35 04 06 00 A1 00 00 5C [20:13:50]Write i2c OK [20:13:50]MH_I2C_Read... [20:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:51]Read from MH i2c: E2 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 03 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 03 00 04 2E 00 90 00 A6 [20:13:51]RAPDU: 90 00 [20:13:51]wFMCommunicate OK [20:13:51]wFMCommunicate request_size=10 [20:13:51]MH_SAM_APDU [20:13:51]CAPDU: 80 0D 02 02 05 52 C4 C5 21 6E [20:13:51]Write to MH i2c: E2 0D 00 05 2E 80 0D 02 02 05 00 52 C4 C5 21 6E 00 00 21 [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:51]Read from MH i2c: E2 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 03 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 03 00 05 2E 00 90 00 A7 [20:13:51]RAPDU: 90 00 [20:13:51]wFMCommunicate OK [20:13:51]wFMCommunicate request_size=4 [20:13:51]MH_SAM_APDU [20:13:51]CAPDU: 80 0D 03 02 [20:13:51]Write to MH i2c: E2 08 00 06 2E 80 0D 03 02 00 00 00 00 AF [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:51]Read from MH i2c: E2 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 0B 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 0B 00 06 2E 00 E5 57 FA D7 44 98 95 A3 90 00 D1 [20:13:51]RAPDU: E5 57 FA D7 44 98 95 A3 90 00 [20:13:51]wFMCommunicate OK [20:13:51]SAM_PROTO_SignData done [20:13:51]FM_MakeSignedData done [20:13:51]CreateOFDProtocolMessage [20:13:51]wFMCommunicate request_size=4 [20:13:51]MH_SAM_APDU [20:13:51]CAPDU: 80 11 00 00 [20:13:51]Write to MH i2c: E2 08 00 07 2E 80 11 00 00 00 00 00 00 AF [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:51]Read from MH i2c: E2 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 17 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: E2 17 00 07 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 01 [20:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:13:51]wFMCommunicate OK [20:13:51]CreateOFDProtocolMessage done [20:13:51]OFDSenderStorePacket 111486 [20:13:51]StoreOFDPacket docnum=111486 [20:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 01 8E 07 01 35 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 EB 00 00 00 F4 03 04 00 08 3C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B3 01 00 35 04 06 00 A1 52 C4 C5 21 6E E5 57 FA D7 44 98 95 A3 [20:13:51]CheckFolder [20:13:51]dirname=/storage/ofd_packets [20:13:51]CheckFolder done [20:13:51]ProducePacketName [20:13:51]name=ofd_packets/00111486 [20:13:51]NVStorageSaveData ofd_packets/00111486 [20:13:51]File name is /storage/ofd_packets/00111486 [20:13:51]Write 301 bytes [20:13:51]NVStorageSaveData done [20:13:51]OFDSenderStorePacket done [20:13:51]KKMCreateOFDPacket done [20:13:51]NVStorageSaveData kkm_last_timestamp [20:13:51]File name is /storage/kkm_last_timestamp [20:13:51]Write 4 bytes [20:13:51]NVStorageSaveData done [20:13:51]ExternCall_PrintAddStr [20:13:51]wPrintStart [20:13:51]Write to MH i2c: 01 00 00 08 2E 36 [20:13:51]Write i2c OK [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: 01 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: 01 07 00 [20:13:51]MH_I2C_Read... [20:13:51]Read from MH i2c: 01 07 00 08 2E 00 00 00 00 00 FF 0F 4B [20:13:51]RasterBufferAndPrint [20:13:51]line Счет N : (1)320074 [20:13:51]line ИНН: 02508201610067 [20:13:51]line Контрольно-Кассовый Чек [20:13:51]line ПРОДАЖА [20:13:51]line ТРК (МРК, ГНК) : 11 [20:13:51]line Товар: 2710124130 [20:13:51]line Аи-92-К-5 [20:13:51]line 4.520 * 66.40 [20:13:51]line = 300.13 [20:13:51]line НДС 12% НСП 1% [20:13:51]line > о реализуемом товаре [20:13:51]line ОКРУГЛЕНИЕ: -0.13 [20:13:51]line ИТОГО: 300.00 [20:13:51]line Внесено: 300.00 [20:13:51]line СДАЧА: 0.00 [20:13:51]line НСП 1% : 2.66 [20:13:51]line НДС 12% : 31.87 [20:13:51]line Наличными: 300.00 [20:13:51]line Безнал.: 0.00 [20:13:51]line Место: АЗС № 65 "Партнер Нефть" [20:13:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:13:51]line СНО: Общий режим [20:13:51]line Чек 235 19.06.2024 20:14 [20:13:51]line Смена: 388 ФФД: 1.0 [20:13:51]line ЗНМ: 0300000198 [20:13:51]line РНМ: 0000000000092771 [20:13:51]line Версия ККМ: 001 [20:13:51]line ФМ: 0000000000875083 [20:13:51]line ФД: 111486 [20:13:51]line ФПД: 177376860643694 [20:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201400&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111486&fm=177376860643694&tin=02508201610067®Number=0000000000092771&sum=30000 [20:13:51]OFD Sender: Processing packet 111486 [packets to send 38, broken 37] [20:13:51]ProducePacketName [20:13:51]name=ofd_packets/00111486 [20:13:51]OFD Sender: To server: pG, [20:13:51]CommunicateWithHost lk.salyk.kg:30040 [20:13:51]ConnectInit lk.salyk.kg [20:13:51]written 0, free lines is 4095 [20:13:51]Connected sock=9 [20:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 01 8E 07 01 35 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 EB 00 00 00 F4 03 04 00 08 3C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7E B3 01 00 35 04 06 00 A1 52 C4 C5 21 6E E5 57 FA D7 44 98 95 A3 [20:13:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2A 99 47 00 94 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 35 30 38 33 10 04 04 00 7E B3 01 00 F4 03 04 00 68 D3 72 66 B6 04 01 00 00 DA 77 E2 65 46 5E CA F4 [20:13:51]CommunicateWithHost err = 0 [20:13:51]CheckOFDResponse [20:13:51]1017 (14) - 77093643461234 [20:13:51]1041 (16) - 0000000000875083 [20:13:51]1040 (4) - 111486 [20:13:51]1012 (4) - 19.06.2024 12:47 [20:13:51]1206 (1) - 0 [20:13:51]OFD Sender: Remove packet 111486 [20:13:51]ProducePacketName [20:13:51]name=ofd_packets/00111486 [20:13:51]NVStorageDeleteData [20:13:52]Write to MH i2c: 01 00 00 33 2E 61 [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: 01 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: 01 07 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: 01 07 00 33 2E 00 00 00 00 00 D8 0C 4C [20:13:52]RasterBufferAndPrint [20:13:52]line [20:13:52]line [20:13:52]line [20:13:52]line [20:13:52]line [20:13:52]written 0, free lines is 3296 [20:13:52]MH_Cut [20:13:52]Write to MH i2c: D1 01 00 3A 2E 01 3A [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: D1 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: D1 01 00 [20:13:52]MH_I2C_Read... [20:13:52]Read from MH i2c: D1 01 00 3A 2E 00 39 [20:13:52]Write to MH i2c: 01 00 00 3B 2E 69 [20:13:52]Write i2c OK [20:13:52]MH_I2C_Read... [20:13:52]OFD Sender: No OFD packet to send [20:13:52]*** Cut start [20:13:52]*** Partial cut [20:13:52]*** CUTSNS_PIN = 1 [20:13:52]*** CUTSNS_PIN = 0 [20:13:53]*** Brake cut motor [20:13:53]Read from MH i2c: 01 [20:13:53]MH_I2C_Read... [20:13:53]*** Stop cut motor [20:13:53]*** Cut end [20:13:53]Read from MH i2c: 01 07 00 [20:13:53]MH_I2C_Read... [20:13:53]Read from MH i2c: 01 07 00 3B 2E 00 00 00 00 00 FF 0F 7E [20:13:53]process_action close_receipt done [20:13:53]requested_data is exist [20:13:53]produce_requested_data [20:13:53]requested_item fm.sn is exist - process it [20:13:53]wFMCommunicate request_size=4 [20:13:53]MH_SAM_APDU [20:13:53]CAPDU: 80 11 00 00 [20:13:53]Write to MH i2c: E2 08 00 3C 2E 80 11 00 00 00 00 00 00 E4 [20:13:53]Write i2c OK [20:13:53]MH_I2C_Read... [20:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:53]Read from MH i2c: E2 [20:13:53]MH_I2C_Read... [20:13:53]Read from MH i2c: E2 17 00 [20:13:53]MH_I2C_Read... [20:13:53]Read from MH i2c: E2 17 00 3C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 36 [20:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:13:53]wFMCommunicate OK [20:13:53]requested_item fd.num is exist - process it [20:13:53]SAM_PROTO_GetFieldsCounters [20:13:53]wFMCommunicate request_size=4 [20:13:53]MH_SAM_APDU [20:13:53]CAPDU: 80 13 00 00 [20:13:53]Write to MH i2c: E2 08 00 3D 2E 80 13 00 00 00 00 00 00 E7 [20:13:53]Write i2c OK [20:13:53]MH_I2C_Read... [20:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:53]Read from MH i2c: E2 [20:13:53]MH_I2C_Read... [20:13:53]Read from MH i2c: E2 62 00 [20:13:53]MH_I2C_Read... [20:13:53]Read from MH i2c: E2 62 00 3D 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B3 01 00 0E 04 04 00 84 01 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 80 [20:13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B3 01 00 0E 04 04 00 84 01 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 [20:13:53]wFMCommunicate OK [20:13:53]SAM_PROTO_GetFieldsCounters done [20:13:53]requested_item shift.num is exist - process it [20:13:53]requested_item shift.opened is exist - process it [20:13:53]req_shift_opened [20:13:53]FM_GetShiftState [20:13:53]SAM_PROTO_GetShiftState [20:13:53]wFMCommunicate request_size=4 [20:13:53]MH_SAM_APDU [20:13:53]CAPDU: 80 13 01 00 [20:13:53]Write to MH i2c: E2 08 00 3E 2E 80 13 01 00 00 00 00 00 E9 [20:13:53]Write i2c OK [20:13:53]MH_I2C_Read... [20:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:53]Read from MH i2c: E2 [20:13:53]MH_I2C_Read... [20:13:53]Read from MH i2c: E2 0E 00 [20:13:53]MH_I2C_Read... [20:13:53]Read from MH i2c: E2 0E 00 3E 2E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 33 [20:13:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:13:53]wFMCommunicate OK [20:13:53]SAM_PROTO_GetShiftState done [20:13:53]FM_GetShiftState done [20:13:53]req_shift_opened done [20:13:53]requested_item shift.open_date is exist - process it [20:13:53]req_shift_open_date [20:13:53]req_shift_open_date done [20:13:53]produce_requested_data done [20:13:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111486,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:13:53]process_action_free close_receipt [20:13:53]json_value_free [20:13:53]json_value_free done [20:13:53]process_json_proto returns [20:13:53]Send response to host [20:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111486,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:13:53]free response buf [20:13:53]execute_script done [20:13:53]execute_script returns [20:13:53]free content buf [20:13:53]Sock 10.Close socket [20:13:53]Sock 10.Thread stoped [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]accept exits with 7 [20:14:47]New connection [20:14:47]New thread 3067465060 created [20:14:47]Thread 3067321700 joined [20:14:47]Waiting for new connection... [20:14:47] Sock 7.Parse request [20:14:47]Sock 7.Check first char [20:14:47]Sock 7.First char is OK [20:14:47]request: POST /json_proto HTTP/1.0 [20:14:47]Method: POST [20:14:47]URL: /json_proto [20:14:47]Method is POST - this is cgi request [20:14:47]url: /json_proto [20:14:47]query_string will be loaded in cgi processing [20:14:47]execute_cgi json_proto POST (null) [20:14:47]execute_cgi path=json_proto method=POST [20:14:47]POST find Content-Length [20:14:47]Host: 172.17.59.68:8080 [20:14:47]Content-Length: 1198 [20:14:47]Content-Type: application/json [20:14:47] [20:14:47]POST finish read [20:14:47]Found Content-Length = 1198 [20:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320073\u000A19.06.2024 18:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:47]execute_script... [20:14:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320073\u000A19.06.2024 18:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 40.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2916.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:47]POST & json_proto [20:14:47]process_json_proto [20:14:47]json parsed OK: [20:14:47]protocol is kg_v1.0 [20:14:47]action value=print_text [20:14:47]process_action print_text [20:14:47]cmd_print_text [20:14:47]ExternCall_PrintAddStr [20:14:47]wPrintStart [20:14:47]Write to MH i2c: 01 00 00 3F 2E 6D [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: 01 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: 01 07 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: 01 07 00 3F 2E 00 00 00 00 00 FF 0F 82 [20:14:47]RasterBufferAndPrint [20:14:47]line *****ТОВАРНЫЙ ЧЕК***** [20:14:47]line АЗС 65 [20:14:47]line Партнер нефть [20:14:47]line 02508201610067 [20:14:47]line Кассир : Амантуров Р. [20:14:47]line Счет N : (1)320073 [20:14:47]line 19.06.2024 18:43 [20:14:47]line ПРОДАЖА [20:14:47]line ТРК (МРК, ГНК): 22 [20:14:47]line Вид ГСМ : 2710194210 [20:14:47]line ДТ-К-5 [20:14:47]line 40.000 x 72.90 [20:14:47]line ИТОГ: 2916.00 [20:14:47]line Тип оплаты: Талоны: Топливная Карта [20:14:47]line 01591 [20:14:47]line ______________________ [20:14:47]line (подпись) [20:14:47]written 0, free lines is 4095 [20:14:47]OFD Sender: No OFD packet to send [20:14:47]Write to MH i2c: 01 00 00 53 2E 81 [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: 01 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: 01 07 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: 01 07 00 53 2E 00 00 00 00 00 0F 0E A5 [20:14:47]RasterBufferAndPrint [20:14:47]line [20:14:47]line [20:14:47]line [20:14:47]line [20:14:47]line [20:14:47]written 0, free lines is 3600 [20:14:47]MH_Cut [20:14:47]Write to MH i2c: D1 01 00 5A 2E 01 5A [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: D1 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: D1 01 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: D1 01 00 5A 2E 00 59 [20:14:47]Write to MH i2c: 01 00 00 5B 2E 89 [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:48]*** Cut start [20:14:48]*** Partial cut [20:14:48]*** CUTSNS_PIN = 1 [20:14:48]*** CUTSNS_PIN = 0 [20:14:48]*** Brake cut motor [20:14:48]Read from MH i2c: 01 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: 01 07 00 [20:14:48]MH_I2C_Read... [20:14:48]*** Stop cut motor [20:14:48]*** Cut end [20:14:48]Read from MH i2c: 01 07 00 5B 2E 00 00 00 00 00 FF 0F 9E [20:14:48]process_action print_text done [20:14:48]requested_data is exist [20:14:48]produce_requested_data [20:14:48]requested_item fm.sn is exist - process it [20:14:48]wFMCommunicate request_size=4 [20:14:48]MH_SAM_APDU [20:14:48]CAPDU: 80 11 00 00 [20:14:48]Write to MH i2c: E2 08 00 5C 2E 80 11 00 00 00 00 00 00 04 [20:14:48]Write i2c OK [20:14:48]MH_I2C_Read... [20:14:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:48]Read from MH i2c: E2 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 17 00 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 17 00 5C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [20:14:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:14:48]wFMCommunicate OK [20:14:48]requested_item fd.num is exist - process it [20:14:48]SAM_PROTO_GetFieldsCounters [20:14:48]wFMCommunicate request_size=4 [20:14:48]MH_SAM_APDU [20:14:48]CAPDU: 80 13 00 00 [20:14:48]Write to MH i2c: E2 08 00 5D 2E 80 13 00 00 00 00 00 00 07 [20:14:48]Write i2c OK [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 [20:14:48]MH_I2C_Read... [20:14:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:48]Read from MH i2c: E2 62 00 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 62 00 5D 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B3 01 00 0E 04 04 00 84 01 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 A0 [20:14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7E B3 01 00 0E 04 04 00 84 01 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 [20:14:48]wFMCommunicate OK [20:14:48]SAM_PROTO_GetFieldsCounters done [20:14:48]requested_item shift.num is exist - process it [20:14:48]requested_item shift.opened is exist - process it [20:14:48]req_shift_opened [20:14:48]FM_GetShiftState [20:14:48]SAM_PROTO_GetShiftState [20:14:48]wFMCommunicate request_size=4 [20:14:48]MH_SAM_APDU [20:14:48]CAPDU: 80 13 01 00 [20:14:48]Write to MH i2c: E2 08 00 5E 2E 80 13 01 00 00 00 00 00 09 [20:14:48]Write i2c OK [20:14:48]MH_I2C_Read... [20:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:48]Read from MH i2c: E2 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 0E 00 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 0E 00 5E 2E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 53 [20:14:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:14:48]wFMCommunicate OK [20:14:48]SAM_PROTO_GetShiftState done [20:14:48]FM_GetShiftState done [20:14:48]req_shift_opened done [20:14:48]requested_item shift.open_date is exist - process it [20:14:48]req_shift_open_date [20:14:48]req_shift_open_date done [20:14:48]produce_requested_data done [20:14:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111486,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:14:48]process_action_free print_text [20:14:48]json_value_free [20:14:48]json_value_free done [20:14:48]process_json_proto returns [20:14:48]Send response to host [20:14:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111486,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:14:48]free response buf [20:14:48]execute_script done [20:14:48]execute_script returns [20:14:48]free content buf [20:14:48]Sock 7.Close socket [20:14:48]Sock 7.Thread stoped [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:19]accept exits with 9 [20:17:19]New connection [20:17:19]New thread 3067321700 created [20:17:19]Thread 3067465060 joined [20:17:19]Waiting for new connection... [20:17:19] Sock 9.Parse request [20:17:19]Sock 9.Check first char [20:17:19]Sock 9.First char is OK [20:17:19]request: POST /json_proto HTTP/1.0 [20:17:19]Method: POST [20:17:19]URL: /json_proto [20:17:19]Method is POST - this is cgi request [20:17:19]url: /json_proto [20:17:19]query_string will be loaded in cgi processing [20:17:19]execute_cgi json_proto POST (null) [20:17:19]execute_cgi path=json_proto method=POST [20:17:19]POST find Content-Length [20:17:19]Host: 172.17.59.68:8080 [20:17:19]Content-Length: 682 [20:17:19]Content-Type: application/json [20:17:19] [20:17:19]POST finish read [20:17:19]Found Content-Length = 682 [20:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:19]execute_script... [20: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)320075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:19]POST & json_proto [20:17:19]process_json_proto [20:17:19]json parsed OK: [20:17:19]protocol is kg_v1.0 [20:17:19]action value=close_receipt [20:17:19]process_action close_receipt [20:17:19]cmd_close_receipt [20:17:19]MH_GetDate [20:17:19]Write to MH i2c: F0 00 00 5F 2E 7C [20:17:19]Write i2c OK [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: F0 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: F0 09 00 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: F0 09 00 5F 2E 00 DB 3C 73 66 BC EC 60 65 E2 [20:17:19]GetLastDocTimeStamp 1718828040 [20:17:19]current date 1718828251 [20:17:19]FM_GetShiftState [20:17:19]SAM_PROTO_GetShiftState [20:17:19]wFMCommunicate request_size=4 [20:17:19]MH_SAM_APDU [20:17:19]CAPDU: 80 13 01 00 [20:17:19]Write to MH i2c: E2 08 00 60 2E 80 13 01 00 00 00 00 00 0B [20:17:19]Write i2c OK [20:17:19]MH_I2C_Read... [20:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:19]Read from MH i2c: E2 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 0E 00 [20:17:19]MH_I2C_Read... [20:17:19]Read from MH i2c: E2 0E 00 60 2E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 55 [20:17:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:17:19]wFMCommunicate OK [20:17:19]SAM_PROTO_GetShiftState done [20:17:19]FM_GetShiftState done [20:17:19]opened in 1718760753 [20:17:19]opened+sec_in_day 1718847153 [20:17:19]quantity*price = 100064 [20:17:19]sum+1 = 100066 [20:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 236 19.06.2024 20:17 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111487 ФПД: 154253674081123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201731&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111487&fm=154253674081123&tin=02508201610067®Number=0000000000092771&sum=100000 [20:17:20]StoreToDocumentArchive [20:17:20]shift 388 fd 111487 [20:17:20]save to /storage/0388/doc_00111487 [20:17:20]save last doc name /storage/0388/doc_00111487 to /storage/kkm_last_doc_name [20:17:20]save OK [20:17:20]Clear old archive folders... [20:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:20]tlvbuf is B6F57D80 [20:17:20]SAM_PROTO_ClearQueue [20:17:20]wFMCommunicate request_size=4 [20:17:20]MH_SAM_APDU [20:17:20]CAPDU: 80 09 00 00 [20:17:20]Write to MH i2c: E2 08 00 6D 2E 80 09 00 00 00 00 00 00 0D [20:17:20]Write i2c OK [20:17:20]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 6D 2E 00 90 00 0F [20:17:21]RAPDU: 90 00 [20:17:21]wFMCommunicate OK [20:17:21]SAM_PROTO_ClearQueue done [20:17:21]KKMCreateOFDPacket [20:17:21]OFDProtocolAddRootSTLVToBuf [20:17:21]FM_MakeSignedData [20:17:21]FM_MakeSignedData [20:17:21]SAM_PROTO_SignData [20:17:21]wFMCommunicate request_size=4 [20:17:21]MH_SAM_APDU [20:17:21]CAPDU: 80 0D 01 02 [20:17:21]Write to MH i2c: E2 08 00 6E 2E 80 0D 01 02 00 00 00 00 15 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 6E 2E 00 90 00 10 [20:17:21]RAPDU: 90 00 [20:17:21]wFMCommunicate OK [20:17:21]wFMCommunicate request_size=255 [20:17:21]MH_SAM_APDU [20: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 DB 3C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B3 01 00 35 04 06 00 8C [20:17:21]Write to MH i2c: E2 02 01 6F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 DB 3C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B3 01 00 35 04 06 00 8C 00 00 39 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 6F 2E 00 90 00 11 [20:17:21]RAPDU: 90 00 [20:17:21]wFMCommunicate OK [20:17:21]wFMCommunicate request_size=10 [20:17:21]MH_SAM_APDU [20:17:21]CAPDU: 80 0D 02 02 05 4A FB 72 EB 63 [20:17:21]Write to MH i2c: E2 0D 00 70 2E 80 0D 02 02 05 00 4A FB 72 EB 63 00 00 27 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 03 00 70 2E 00 90 00 12 [20:17:21]RAPDU: 90 00 [20:17:21]wFMCommunicate OK [20:17:21]wFMCommunicate request_size=4 [20:17:21]MH_SAM_APDU [20:17:21]CAPDU: 80 0D 03 02 [20:17:21]Write to MH i2c: E2 08 00 71 2E 80 0D 03 02 00 00 00 00 1A [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 0B 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 0B 00 71 2E 00 99 4F 68 12 84 DE 17 01 90 00 F7 [20:17:21]RAPDU: 99 4F 68 12 84 DE 17 01 90 00 [20:17:21]wFMCommunicate OK [20:17:21]SAM_PROTO_SignData done [20:17:21]FM_MakeSignedData done [20:17:21]CreateOFDProtocolMessage [20:17:21]wFMCommunicate request_size=4 [20:17:21]MH_SAM_APDU [20:17:21]CAPDU: 80 11 00 00 [20:17:21]Write to MH i2c: E2 08 00 72 2E 80 11 00 00 00 00 00 00 1A [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:21]Read from MH i2c: E2 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 17 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: E2 17 00 72 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6C [20:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:17:21]wFMCommunicate OK [20:17:21]CreateOFDProtocolMessage done [20:17:21]OFDSenderStorePacket 111487 [20:17:21]StoreOFDPacket docnum=111487 [20:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 9C 07 01 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 DB 3C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B3 01 00 35 04 06 00 8C 4A FB 72 EB 63 99 4F 68 12 84 DE 17 01 [20:17:21]CheckFolder [20:17:21]dirname=/storage/ofd_packets [20:17:21]CheckFolder done [20:17:21]ProducePacketName [20:17:21]name=ofd_packets/00111487 [20:17:21]NVStorageSaveData ofd_packets/00111487 [20:17:21]File name is /storage/ofd_packets/00111487 [20:17:21]Write 301 bytes [20:17:21]NVStorageSaveData done [20:17:21]OFDSenderStorePacket done [20:17:21]KKMCreateOFDPacket done [20:17:21]NVStorageSaveData kkm_last_timestamp [20:17:21]File name is /storage/kkm_last_timestamp [20:17:21]Write 4 bytes [20:17:21]NVStorageSaveData done [20:17:21]ExternCall_PrintAddStr [20:17:21]wPrintStart [20:17:21]Write to MH i2c: 01 00 00 73 2E A1 [20:17:21]Write i2c OK [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 07 00 [20:17:21]MH_I2C_Read... [20:17:21]Read from MH i2c: 01 07 00 73 2E 00 00 00 00 00 FF 0F B6 [20:17:21]RasterBufferAndPrint [20:17:21]line Счет N : (1)320075 [20:17:21]line ИНН: 02508201610067 [20:17:21]line Контрольно-Кассовый Чек [20:17:21]line ПРОДАЖА [20:17:21]line ТРК (МРК, ГНК) : 11 [20:17:21]line Товар: 2710124130 [20:17:21]line Аи-92-К-5 [20:17:21]line 15.070 * 66.40 [20:17:21]line = 1000.65 [20:17:21]line НДС 12% НСП 1% [20:17:21]line > о реализуемом товаре [20:17:21]line ОКРУГЛЕНИЕ: -0.65 [20:17:21]line ИТОГО: 1000.00 [20:17:21]line Внесено: 1000.00 [20:17:21]line СДАЧА: 0.00 [20:17:21]line НСП 1% : 8.85 [20:17:21]line НДС 12% : 106.26 [20:17:21]line Наличными: 1000.00 [20:17:21]line Безнал.: 0.00 [20:17:21]line Место: АЗС № 65 "Партнер Нефть" [20:17:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:17:21]line СНО: Общий режим [20:17:21]line Чек 236 19.06.2024 20:17 [20:17:21]line Смена: 388 ФФД: 1.0 [20:17:21]line ЗНМ: 0300000198 [20:17:21]line РНМ: 0000000000092771 [20:17:21]line Версия ККМ: 001 [20:17:21]line ФМ: 0000000000875083 [20:17:21]line ФД: 111487 [20:17:21]line ФПД: 154253674081123 [20:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201731&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111487&fm=154253674081123&tin=02508201610067®Number=0000000000092771&sum=100000 [20:17:21]OFD Sender: Processing packet 111487 [packets to send 38, broken 37] [20:17:21]ProducePacketName [20:17:21]name=ofd_packets/00111487 [20:17:21]OFD Sender: To server: pG, [20:17:21]CommunicateWithHost lk.salyk.kg:30040 [20:17:21]ConnectInit lk.salyk.kg [20:17:21]written 0, free lines is 4095 [20:17:21]Connected sock=10 [20:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BA 9C 07 01 00 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 DB 3C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 7F B3 01 00 35 04 06 00 8C 4A FB 72 EB 63 99 4F 68 12 84 DE 17 01 [20:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 1C 47 00 1A 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 35 30 38 33 10 04 04 00 7F B3 01 00 F4 03 04 00 3A D4 72 66 B6 04 01 00 00 84 6B DA 95 F8 15 E6 97 [20:17:22]CommunicateWithHost err = 0 [20:17:22]CheckOFDResponse [20:17:22]1017 (14) - 77093643461234 [20:17:22]1041 (16) - 0000000000875083 [20:17:22]1040 (4) - 111487 [20:17:22]1012 (4) - 19.06.2024 12:51 [20:17:22]1206 (1) - 0 [20:17:22]OFD Sender: Remove packet 111487 [20:17:22]ProducePacketName [20:17:22]name=ofd_packets/00111487 [20:17:22]NVStorageDeleteData [20:17:22]Write to MH i2c: 01 00 00 9E 2E CC [20:17:22]Write i2c OK [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: 01 [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: 01 07 00 [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: 01 07 00 9E 2E 00 00 00 00 00 D4 0C B3 [20:17:22]RasterBufferAndPrint [20:17:22]line [20:17:22]line [20:17:22]line [20:17:22]line [20:17:22]line [20:17:22]written 0, free lines is 3290 [20:17:22]MH_Cut [20:17:22]Write to MH i2c: D1 01 00 A5 2E 01 A5 [20:17:22]Write i2c OK [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: D1 [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: D1 01 00 [20:17:22]MH_I2C_Read... [20:17:22]Read from MH i2c: D1 01 00 A5 2E 00 A4 [20:17:22]Write to MH i2c: 01 00 00 A6 2E D4 [20:17:22]Write i2c OK [20:17:22]MH_I2C_Read... [20:17:22]OFD Sender: No OFD packet to send [20:17:23]*** Cut start [20:17:23]*** Partial cut [20:17:23]*** CUTSNS_PIN = 1 [20:17:23]*** CUTSNS_PIN = 0 [20:17:23]*** Brake cut motor [20:17:23]Read from MH i2c: 01 [20:17:23]MH_I2C_Read... [20:17:23]*** Stop cut motor [20:17:23]*** Cut end [20:17:23]Read from MH i2c: 01 07 00 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: 01 07 00 A6 2E 00 00 00 00 00 FF 0F E9 [20:17:23]process_action close_receipt done [20:17:23]requested_data is exist [20:17:23]produce_requested_data [20:17:23]requested_item fm.sn is exist - process it [20:17:23]wFMCommunicate request_size=4 [20:17:23]MH_SAM_APDU [20:17:23]CAPDU: 80 11 00 00 [20:17:23]Write to MH i2c: E2 08 00 A7 2E 80 11 00 00 00 00 00 00 4F [20:17:23]Write i2c OK [20:17:23]MH_I2C_Read... [20:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:23]Read from MH i2c: E2 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 17 00 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 17 00 A7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [20:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:17:23]wFMCommunicate OK [20:17:23]requested_item fd.num is exist - process it [20:17:23]SAM_PROTO_GetFieldsCounters [20:17:23]wFMCommunicate request_size=4 [20:17:23]MH_SAM_APDU [20:17:23]CAPDU: 80 13 00 00 [20:17:23]Write to MH i2c: E2 08 00 A8 2E 80 13 00 00 00 00 00 00 52 [20:17:23]Write i2c OK [20:17:23]MH_I2C_Read... [20:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:23]Read from MH i2c: E2 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 62 00 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 62 00 A8 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B3 01 00 0E 04 04 00 84 01 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 EF [20:17: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 7F B3 01 00 0E 04 04 00 84 01 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 [20:17:23]wFMCommunicate OK [20:17:23]SAM_PROTO_GetFieldsCounters done [20:17:23]requested_item shift.num is exist - process it [20:17:23]requested_item shift.opened is exist - process it [20:17:23]req_shift_opened [20:17:23]FM_GetShiftState [20:17:23]SAM_PROTO_GetShiftState [20:17:23]wFMCommunicate request_size=4 [20:17:23]MH_SAM_APDU [20:17:23]CAPDU: 80 13 01 00 [20:17:23]Write to MH i2c: E2 08 00 A9 2E 80 13 01 00 00 00 00 00 54 [20:17:23]Write i2c OK [20:17:23]MH_I2C_Read... [20:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:23]Read from MH i2c: E2 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 0E 00 [20:17:23]MH_I2C_Read... [20:17:23]Read from MH i2c: E2 0E 00 A9 2E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9E [20:17:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:17:23]wFMCommunicate OK [20:17:23]SAM_PROTO_GetShiftState done [20:17:23]FM_GetShiftState done [20:17:23]req_shift_opened done [20:17:23]requested_item shift.open_date is exist - process it [20:17:23]req_shift_open_date [20:17:23]req_shift_open_date done [20:17:23]produce_requested_data done [20:17:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111487,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:17:23]process_action_free close_receipt [20:17:23]json_value_free [20:17:23]json_value_free done [20:17:23]process_json_proto returns [20:17:23]Send response to host [20:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111487,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:17:23]free response buf [20:17:23]execute_script done [20:17:23]execute_script returns [20:17:23]free content buf [20:17:23]Sock 9.Close socket [20:17:23]Sock 9.Thread stoped [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:11]accept exits with 7 [20:18:11]New connection [20:18:11]New thread 3067465060 created [20:18:11]Thread 3067321700 joined [20:18:11]Waiting for new connection... [20:18:11] Sock 7.Parse request [20:18:11]Sock 7.Check first char [20:18:11]Sock 7.First char is OK [20:18:11]request: POST /json_proto HTTP/1.0 [20:18:11]Method: POST [20:18:11]URL: /json_proto [20:18:11]Method is POST - this is cgi request [20:18:11]url: /json_proto [20:18:11]query_string will be loaded in cgi processing [20:18:11]execute_cgi json_proto POST (null) [20:18:11]execute_cgi path=json_proto method=POST [20:18:11]POST find Content-Length [20:18:11]Host: 172.17.59.68:8080 [20:18:11]Content-Length: 682 [20:18:11]Content-Type: application/json [20:18:11] [20:18:11]POST finish read [20:18:11]Found Content-Length = 682 [20:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:11]execute_script... [20:18:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:11]POST & json_proto [20:18:11]process_json_proto [20:18:11]json parsed OK: [20:18:11]protocol is kg_v1.0 [20:18:11]action value=close_receipt [20:18:11]process_action close_receipt [20:18:11]cmd_close_receipt [20:18:11]MH_GetDate [20:18:11]Write to MH i2c: F0 00 00 AA 2E C7 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: F0 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: F0 09 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: F0 09 00 AA 2E 00 0F 3D 73 66 BC EC 60 65 62 [20:18:11]GetLastDocTimeStamp 1718828251 [20:18:11]current date 1718828303 [20:18:11]FM_GetShiftState [20:18:11]SAM_PROTO_GetShiftState [20:18:11]wFMCommunicate request_size=4 [20:18:11]MH_SAM_APDU [20:18:11]CAPDU: 80 13 01 00 [20:18:11]Write to MH i2c: E2 08 00 AB 2E 80 13 01 00 00 00 00 00 56 [20:18:11]Write i2c OK [20:18:11]MH_I2C_Read... [20:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:11]Read from MH i2c: E2 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 0E 00 [20:18:11]MH_I2C_Read... [20:18:11]Read from MH i2c: E2 0E 00 AB 2E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A0 [20:18:11]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:18:11]wFMCommunicate OK [20:18:11]SAM_PROTO_GetShiftState done [20:18:11]FM_GetShiftState done [20:18:11]opened in 1718760753 [20:18:11]opened+sec_in_day 1718847153 [20:18:11]quantity*price = 100064 [20:18:11]sum+1 = 100066 [20:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 237 19.06.2024 20:18 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111488 ФПД: 88405041675843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201823&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111488&fm=88405041675843&tin=02508201610067®Number=0000000000092771&sum=100000 [20:18:13]StoreToDocumentArchive [20:18:13]shift 388 fd 111488 [20:18:13]save to /storage/0388/doc_00111488 [20:18:13]save last doc name /storage/0388/doc_00111488 to /storage/kkm_last_doc_name [20:18:13]save OK [20:18:13]Clear old archive folders... [20:18:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:13]tlvbuf is 00F0C660 [20:18:13]SAM_PROTO_ClearQueue [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 09 00 00 [20:18:13]Write to MH i2c: E2 08 00 B8 2E 80 09 00 00 00 00 00 00 58 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 B8 2E 00 90 00 5A [20:18:13]RAPDU: 90 00 [20:18:13]wFMCommunicate OK [20:18:13]SAM_PROTO_ClearQueue done [20:18:13]KKMCreateOFDPacket [20:18:13]OFDProtocolAddRootSTLVToBuf [20:18:13]FM_MakeSignedData [20:18:13]FM_MakeSignedData [20:18:13]SAM_PROTO_SignData [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 0D 01 02 [20:18:13]Write to MH i2c: E2 08 00 B9 2E 80 0D 01 02 00 00 00 00 60 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 B9 2E 00 90 00 5B [20:18:13]RAPDU: 90 00 [20:18:13]wFMCommunicate OK [20:18:13]wFMCommunicate request_size=255 [20:18:13]MH_SAM_APDU [20:18: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 0F 3D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B3 01 00 35 04 06 00 50 [20:18:13]Write to MH i2c: E2 02 01 BA 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 0F 3D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B3 01 00 35 04 06 00 50 00 00 7F [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 BA 2E 00 90 00 5C [20:18:13]RAPDU: 90 00 [20:18:13]wFMCommunicate OK [20:18:13]wFMCommunicate request_size=10 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 0D 02 02 05 67 67 1A FE 43 [20:18:13]Write to MH i2c: E2 0D 00 BB 2E 80 0D 02 02 05 00 67 67 1A FE 43 00 00 96 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 BB 2E 00 90 00 5D [20:18:13]RAPDU: 90 00 [20:18:13]wFMCommunicate OK [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 0D 03 02 [20:18:13]Write to MH i2c: E2 08 00 BC 2E 80 0D 03 02 00 00 00 00 65 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 0B 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 0B 00 BC 2E 00 3B 6A 31 C7 70 17 0D 57 90 00 EE [20:18:13]RAPDU: 3B 6A 31 C7 70 17 0D 57 90 00 [20:18:13]wFMCommunicate OK [20:18:13]SAM_PROTO_SignData done [20:18:13]FM_MakeSignedData done [20:18:13]CreateOFDProtocolMessage [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 11 00 00 [20:18:13]Write to MH i2c: E2 08 00 BD 2E 80 11 00 00 00 00 00 00 65 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 17 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 17 00 BD 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B7 [20:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:18:13]wFMCommunicate OK [20:18:13]CreateOFDProtocolMessage done [20:18:13]OFDSenderStorePacket 111488 [20:18:13]StoreOFDPacket docnum=111488 [20:18:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA 5E 07 01 1E 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 0F 3D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B3 01 00 35 04 06 00 50 67 67 1A FE 43 3B 6A 31 C7 70 17 0D 57 [20:18:13]CheckFolder [20:18:13]dirname=/storage/ofd_packets [20:18:13]CheckFolder done [20:18:13]ProducePacketName [20:18:13]name=ofd_packets/00111488 [20:18:13]NVStorageSaveData ofd_packets/00111488 [20:18:13]File name is /storage/ofd_packets/00111488 [20:18:13]Write 301 bytes [20:18:13]NVStorageSaveData done [20:18:13]OFDSenderStorePacket done [20:18:13]KKMCreateOFDPacket done [20:18:13]NVStorageSaveData kkm_last_timestamp [20:18:13]File name is /storage/kkm_last_timestamp [20:18:13]Write 4 bytes [20:18:13]NVStorageSaveData done [20:18:13]ExternCall_PrintAddStr [20:18:13]wPrintStart [20:18:13]Write to MH i2c: 01 00 00 BE 2E EC [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 07 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: 01 07 00 BE 2E 00 00 00 00 00 FF 0F 01 [20:18:13]RasterBufferAndPrint [20:18:13]line Счет N : (1)320076 [20:18:13]line ИНН: 02508201610067 [20:18:13]line Контрольно-Кассовый Чек [20:18:13]line ПРОДАЖА [20:18:13]line ТРК (МРК, ГНК) : 11 [20:18:13]line Товар: 2710124130 [20:18:13]line Аи-92-К-5 [20:18:13]line 15.070 * 66.40 [20:18:13]line = 1000.65 [20:18:13]line НДС 12% НСП 1% [20:18:13]line > о реализуемом товаре [20:18:13]line ОКРУГЛЕНИЕ: -0.65 [20:18:13]line ИТОГО: 1000.00 [20:18:13]line Внесено: 1000.00 [20:18:13]line СДАЧА: 0.00 [20:18:13]line НСП 1% : 8.85 [20:18:13]line НДС 12% : 106.26 [20:18:13]line Наличными: 1000.00 [20:18:13]line Безнал.: 0.00 [20:18:13]line Место: АЗС № 65 "Партнер Нефть" [20:18:13]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:18:13]line СНО: Общий режим [20:18:13]line Чек 237 19.06.2024 20:18 [20:18:13]line Смена: 388 ФФД: 1.0 [20:18:13]line ЗНМ: 0300000198 [20:18:13]line РНМ: 0000000000092771 [20:18:13]line Версия ККМ: 001 [20:18:13]line ФМ: 0000000000875083 [20:18:13]line ФД: 111488 [20:18:13]line ФПД: 88405041675843 [20:18:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201823&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111488&fm=88405041675843&tin=02508201610067®Number=0000000000092771&sum=100000 [20:18:13]OFD Sender: Processing packet 111488 [packets to send 38, broken 37] [20:18:13]ProducePacketName [20:18:13]name=ofd_packets/00111488 [20:18:13]OFD Sender: To server: pG, [20:18:13]CommunicateWithHost lk.salyk.kg:30040 [20:18:13]ConnectInit lk.salyk.kg [20:18:13]written 0, free lines is 4095 [20:18:14]Connected sock=10 [20:18:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AA 5E 07 01 1E 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 0F 3D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B3 01 00 35 04 06 00 50 67 67 1A FE 43 3B 6A 31 C7 70 17 0D 57 [20:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B9 A9 47 00 82 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 80 B3 01 00 F4 03 04 00 6F D4 72 66 B6 04 01 00 00 F0 65 C7 64 F1 E3 5C 77 [20:18:14]CommunicateWithHost err = 0 [20:18:14]CheckOFDResponse [20:18:14]1017 (14) - 77093643461234 [20:18:14]1041 (16) - 0000000000875083 [20:18:14]1040 (4) - 111488 [20:18:14]1012 (4) - 19.06.2024 12:51 [20:18:14]1206 (1) - 0 [20:18:14]OFD Sender: Remove packet 111488 [20:18:14]ProducePacketName [20:18:14]name=ofd_packets/00111488 [20:18:14]NVStorageDeleteData [20:18:14]Write to MH i2c: 01 00 00 E9 2E 17 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: 01 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: 01 07 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: 01 07 00 E9 2E 00 00 00 00 00 D0 0C FA [20:18:14]RasterBufferAndPrint [20:18:14]line [20:18:14]line [20:18:14]line [20:18:14]line [20:18:14]line [20:18:14]written 0, free lines is 3286 [20:18:14]MH_Cut [20:18:14]Write to MH i2c: D1 01 00 F0 2E 01 F0 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: D1 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: D1 01 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: D1 01 00 F0 2E 00 EF [20:18:14]Write to MH i2c: 01 00 00 F1 2E 1F [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]OFD Sender: No OFD packet to send [20:18:15]*** Cut start [20:18:15]*** Partial cut [20:18:15]*** CUTSNS_PIN = 1 [20:18:15]*** CUTSNS_PIN = 0 [20:18:15]*** Brake cut motor [20:18:15]Read from MH i2c: 01 [20:18:15]MH_I2C_Read... [20:18:15]*** Stop cut motor [20:18:15]*** Cut end [20:18:15]Read from MH i2c: 01 07 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: 01 07 00 F1 2E 00 00 00 00 00 FF 0F 34 [20:18:15]process_action close_receipt done [20:18:15]requested_data is exist [20:18:15]produce_requested_data [20:18:15]requested_item fm.sn is exist - process it [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 11 00 00 [20:18:15]Write to MH i2c: E2 08 00 F2 2E 80 11 00 00 00 00 00 00 9A [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 17 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 17 00 F2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [20:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:18:15]wFMCommunicate OK [20:18:15]requested_item fd.num is exist - process it [20:18:15]SAM_PROTO_GetFieldsCounters [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 13 00 00 [20:18:15]Write to MH i2c: E2 08 00 F3 2E 80 13 00 00 00 00 00 00 9D [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 62 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 62 00 F3 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B3 01 00 0E 04 04 00 84 01 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 3E [20:18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 80 B3 01 00 0E 04 04 00 84 01 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 [20:18:15]wFMCommunicate OK [20:18:15]SAM_PROTO_GetFieldsCounters done [20:18:15]requested_item shift.num is exist - process it [20:18:15]requested_item shift.opened is exist - process it [20:18:15]req_shift_opened [20:18:15]FM_GetShiftState [20:18:15]SAM_PROTO_GetShiftState [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 13 01 00 [20:18:15]Write to MH i2c: E2 08 00 F4 2E 80 13 01 00 00 00 00 00 9F [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 0E 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 0E 00 F4 2E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E9 [20:18:15]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:18:15]wFMCommunicate OK [20:18:15]SAM_PROTO_GetShiftState done [20:18:15]FM_GetShiftState done [20:18:15]req_shift_opened done [20:18:15]requested_item shift.open_date is exist - process it [20:18:15]req_shift_open_date [20:18:15]req_shift_open_date done [20:18:15]produce_requested_data done [20:18:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111488,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:18:15]process_action_free close_receipt [20:18:15]json_value_free [20:18:15]json_value_free done [20:18:15]process_json_proto returns [20:18:15]Send response to host [20:18:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111488,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:18:15]free response buf [20:18:15]execute_script done [20:18:15]execute_script returns [20:18:15]free content buf [20:18:15]Sock 7.Close socket [20:18:15]Sock 7.Thread stoped [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:45]accept exits with 9 [20:19:45]New connection [20:19:45]New thread 3067321700 created [20:19:45]Thread 3067465060 joined [20:19:45]Waiting for new connection... [20:19:45] Sock 9.Parse request [20:19:45]Sock 9.Check first char [20:19:45]Sock 9.First char is OK [20:19:45]request: POST /json_proto HTTP/1.0 [20:19:45]Method: POST [20:19:45]URL: /json_proto [20:19:45]Method is POST - this is cgi request [20:19:45]url: /json_proto [20:19:45]query_string will be loaded in cgi processing [20:19:45]execute_cgi json_proto POST (null) [20:19:45]execute_cgi path=json_proto method=POST [20:19:45]POST find Content-Length [20:19:45]Host: 172.17.59.68:8080 [20:19:45]Content-Length: 677 [20:19:45]Content-Type: application/json [20:19:45] [20:19:45]POST finish read [20:19:45]Found Content-Length = 677 [20:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "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" ] } } [20:19:45]execute_script... [20:19:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.130, "sum" : 340.63, "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" ] } } [20:19:45]POST & json_proto [20:19:45]process_json_proto [20:19:45]json parsed OK: [20:19:45]protocol is kg_v1.0 [20:19:45]action value=close_receipt [20:19:45]process_action close_receipt [20:19:45]cmd_close_receipt [20:19:45]MH_GetDate [20:19:45]Write to MH i2c: F0 00 00 F5 2E 12 [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: F0 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: F0 09 00 [20:19:45]MH_I2C_Read... [20:19:45]Read from MH i2c: F0 09 00 F5 2E 00 6D 3D 73 66 BC EC 60 65 0B [20:19:45]GetLastDocTimeStamp 1718828303 [20:19:45]current date 1718828397 [20:19:45]FM_GetShiftState [20:19:45]SAM_PROTO_GetShiftState [20:19:45]wFMCommunicate request_size=4 [20:19:45]MH_SAM_APDU [20:19:45]CAPDU: 80 13 01 00 [20:19:45]Write to MH i2c: E2 08 00 F6 2E 80 13 01 00 00 00 00 00 A1 [20:19:45]Write i2c OK [20:19:45]MH_I2C_Read... [20:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:46]Read from MH i2c: E2 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0E 00 [20:19:46]MH_I2C_Read... [20:19:46]Read from MH i2c: E2 0E 00 F6 2E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EB [20:19:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:19:46]wFMCommunicate OK [20:19:46]SAM_PROTO_GetShiftState done [20:19:46]FM_GetShiftState done [20:19:46]opened in 1718760753 [20:19:46]opened+sec_in_day 1718847153 [20:19:46]quantity*price = 34063 [20:19:46]sum+1 = 34064 [20:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.17 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 238 19.06.2024 20:19 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111489 ФПД: 71360250121545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201957&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111489&fm=71360250121545&tin=02508201610067®Number=0000000000092771&sum=34000 [20:19:47]StoreToDocumentArchive [20:19:47]shift 388 fd 111489 [20:19:47]save to /storage/0388/doc_00111489 [20:19:47]save last doc name /storage/0388/doc_00111489 to /storage/kkm_last_doc_name [20:19:47]save OK [20:19:47]Clear old archive folders... [20:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:19:47]tlvbuf is B6FD2AB0 [20:19:47]SAM_PROTO_ClearQueue [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 09 00 00 [20:19:47]Write to MH i2c: E2 08 00 03 2F 80 09 00 00 00 00 00 00 A4 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 03 2F 00 90 00 A6 [20:19:47]RAPDU: 90 00 [20:19:47]wFMCommunicate OK [20:19:47]SAM_PROTO_ClearQueue done [20:19:47]KKMCreateOFDPacket [20:19:47]OFDProtocolAddRootSTLVToBuf [20:19:47]FM_MakeSignedData [20:19:47]FM_MakeSignedData [20:19:47]SAM_PROTO_SignData [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 0D 01 02 [20:19:47]Write to MH i2c: E2 08 00 04 2F 80 0D 01 02 00 00 00 00 AC [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 04 2F 00 90 00 A7 [20:19:47]RAPDU: 90 00 [20:19:47]wFMCommunicate OK [20:19:47]wFMCommunicate request_size=255 [20:19:47]MH_SAM_APDU [20:19: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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 EE 00 00 00 F4 03 04 00 6D 3D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B3 01 00 35 04 06 00 40 [20:19:47]Write to MH i2c: E2 02 01 05 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 0A 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 EE 00 00 00 F4 03 04 00 6D 3D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B3 01 00 35 04 06 00 40 00 00 E1 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 05 2F 00 90 00 A8 [20:19:47]RAPDU: 90 00 [20:19:47]wFMCommunicate OK [20:19:47]wFMCommunicate request_size=10 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 0D 02 02 05 E6 DA 5C 0D 49 [20:19:47]Write to MH i2c: E2 0D 00 06 2F 80 0D 02 02 05 00 E6 DA 5C 0D 49 00 00 2B [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 03 00 06 2F 00 90 00 A9 [20:19:47]RAPDU: 90 00 [20:19:47]wFMCommunicate OK [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 0D 03 02 [20:19:47]Write to MH i2c: E2 08 00 07 2F 80 0D 03 02 00 00 00 00 B1 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 0B 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 0B 00 07 2F 00 4E 28 27 6A DE 2D 20 BD 90 00 A1 [20:19:47]RAPDU: 4E 28 27 6A DE 2D 20 BD 90 00 [20:19:47]wFMCommunicate OK [20:19:47]SAM_PROTO_SignData done [20:19:47]FM_MakeSignedData done [20:19:47]CreateOFDProtocolMessage [20:19:47]wFMCommunicate request_size=4 [20:19:47]MH_SAM_APDU [20:19:47]CAPDU: 80 11 00 00 [20:19:47]Write to MH i2c: E2 08 00 08 2F 80 11 00 00 00 00 00 00 B1 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:47]Read from MH i2c: E2 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 17 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: E2 17 00 08 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 03 [20:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:19:47]wFMCommunicate OK [20:19:47]CreateOFDProtocolMessage done [20:19:47]OFDSenderStorePacket 111489 [20:19:47]StoreOFDPacket docnum=111489 [20:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 7A 07 01 AD 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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 EE 00 00 00 F4 03 04 00 6D 3D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B3 01 00 35 04 06 00 40 E6 DA 5C 0D 49 4E 28 27 6A DE 2D 20 BD [20:19:47]CheckFolder [20:19:47]dirname=/storage/ofd_packets [20:19:47]CheckFolder done [20:19:47]ProducePacketName [20:19:47]name=ofd_packets/00111489 [20:19:47]NVStorageSaveData ofd_packets/00111489 [20:19:47]File name is /storage/ofd_packets/00111489 [20:19:47]Write 301 bytes [20:19:47]NVStorageSaveData done [20:19:47]OFDSenderStorePacket done [20:19:47]KKMCreateOFDPacket done [20:19:47]NVStorageSaveData kkm_last_timestamp [20:19:47]File name is /storage/kkm_last_timestamp [20:19:47]Write 4 bytes [20:19:47]NVStorageSaveData done [20:19:47]ExternCall_PrintAddStr [20:19:47]wPrintStart [20:19:47]Write to MH i2c: 01 00 00 09 2F 38 [20:19:47]Write i2c OK [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 07 00 [20:19:47]MH_I2C_Read... [20:19:47]Read from MH i2c: 01 07 00 09 2F 00 00 00 00 00 FF 0F 4D [20:19:47]RasterBufferAndPrint [20:19:47]line Счет N : (1)320077 [20:19:47]line ИНН: 02508201610067 [20:19:47]line Контрольно-Кассовый Чек [20:19:47]line ПРОДАЖА [20:19:47]line ТРК (МРК, ГНК) : 11 [20:19:47]line Товар: 2710124130 [20:19:47]line Аи-92-К-5 [20:19:47]line 5.130 * 66.40 [20:19:47]line = 340.63 [20:19:47]line НДС 12% НСП 1% [20:19:47]line > о реализуемом товаре [20:19:47]line ОКРУГЛЕНИЕ: -0.63 [20:19:47]line ИТОГО: 340.00 [20:19:47]line Внесено: 340.00 [20:19:47]line СДАЧА: 0.00 [20:19:47]line НСП 1% : 3.01 [20:19:47]line НДС 12% : 36.17 [20:19:47]line Наличными: 340.00 [20:19:47]line Безнал.: 0.00 [20:19:47]line Место: АЗС № 65 "Партнер Нефть" [20:19:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:19:47]line СНО: Общий режим [20:19:47]line Чек 238 19.06.2024 20:19 [20:19:47]line Смена: 388 ФФД: 1.0 [20:19:47]line ЗНМ: 0300000198 [20:19:47]line РНМ: 0000000000092771 [20:19:47]line Версия ККМ: 001 [20:19:47]line ФМ: 0000000000875083 [20:19:47]line ФД: 111489 [20:19:47]line ФПД: 71360250121545 [20:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T201957&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111489&fm=71360250121545&tin=02508201610067®Number=0000000000092771&sum=34000 [20:19:48]OFD Sender: Processing packet 111489 [packets to send 38, broken 37] [20:19:48]ProducePacketName [20:19:48]name=ofd_packets/00111489 [20:19:48]OFD Sender: To server: pG, [20:19:48]CommunicateWithHost lk.salyk.kg:30040 [20:19:48]ConnectInit lk.salyk.kg [20:19:48]written 0, free lines is 4095 [20:19:48]Connected sock=10 [20:19:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 99 7A 07 01 AD 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 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0F 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 21 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 EE 00 00 00 F4 03 04 00 6D 3D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B3 01 00 35 04 06 00 40 E6 DA 5C 0D 49 4E 28 27 6A DE 2D 20 BD [20:19:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 E8 5E 47 00 23 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 81 B3 01 00 F4 03 04 00 CD D4 72 66 B6 04 01 00 00 9A A4 A4 32 73 07 7C 74 [20:19:48]CommunicateWithHost err = 0 [20:19:48]CheckOFDResponse [20:19:48]1017 (14) - 77093643461234 [20:19:48]1041 (16) - 0000000000875083 [20:19:48]1040 (4) - 111489 [20:19:48]1012 (4) - 19.06.2024 12:53 [20:19:48]1206 (1) - 0 [20:19:48]OFD Sender: Remove packet 111489 [20:19:48]ProducePacketName [20:19:48]name=ofd_packets/00111489 [20:19:48]NVStorageDeleteData [20:19:48]Write to MH i2c: 01 00 00 34 2F 63 [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 07 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: 01 07 00 34 2F 00 00 00 00 00 CE 0C 44 [20:19:48]RasterBufferAndPrint [20:19:48]line [20:19:48]line [20:19:48]line [20:19:48]line [20:19:48]line [20:19:48]written 0, free lines is 3284 [20:19:48]MH_Cut [20:19:48]Write to MH i2c: D1 01 00 3B 2F 01 3C [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: D1 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: D1 01 00 [20:19:48]MH_I2C_Read... [20:19:48]Read from MH i2c: D1 01 00 3B 2F 00 3B [20:19:48]Write to MH i2c: 01 00 00 3C 2F 6B [20:19:48]Write i2c OK [20:19:48]MH_I2C_Read... [20:19:48]OFD Sender: No OFD packet to send [20:19:49]*** Cut start [20:19:49]*** Partial cut [20:19:49]*** CUTSNS_PIN = 1 [20:19:49]*** CUTSNS_PIN = 0 [20:19:49]*** Brake cut motor [20:19:49]Read from MH i2c: 01 [20:19:49]MH_I2C_Read... [20:19:49]*** Stop cut motor [20:19:49]*** Cut end [20:19:49]Read from MH i2c: 01 07 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: 01 07 00 3C 2F 00 00 00 00 00 FF 0F 80 [20:19:49]process_action close_receipt done [20:19:49]requested_data is exist [20:19:49]produce_requested_data [20:19:49]requested_item fm.sn is exist - process it [20:19:49]wFMCommunicate request_size=4 [20:19:49]MH_SAM_APDU [20:19:49]CAPDU: 80 11 00 00 [20:19:49]Write to MH i2c: E2 08 00 3D 2F 80 11 00 00 00 00 00 00 E6 [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:49]Read from MH i2c: E2 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: E2 17 00 [20:19:49]MH_I2C_Read... [20:19:49]Read from MH i2c: E2 17 00 3D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [20:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:19:49]wFMCommunicate OK [20:19:49]requested_item fd.num is exist - process it [20:19:49]SAM_PROTO_GetFieldsCounters [20:19:49]wFMCommunicate request_size=4 [20:19:49]MH_SAM_APDU [20:19:49]CAPDU: 80 13 00 00 [20:19:49]Write to MH i2c: E2 08 00 3E 2F 80 13 00 00 00 00 00 00 E9 [20:19:49]Write i2c OK [20:19:49]MH_I2C_Read... [20:19:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:50]Read from MH i2c: E2 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 62 00 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 62 00 3E 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 81 B3 01 00 0E 04 04 00 84 01 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 8E [20:19: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 81 B3 01 00 0E 04 04 00 84 01 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 [20:19:50]wFMCommunicate OK [20:19:50]SAM_PROTO_GetFieldsCounters done [20:19:50]requested_item shift.num is exist - process it [20:19:50]requested_item shift.opened is exist - process it [20:19:50]req_shift_opened [20:19:50]FM_GetShiftState [20:19:50]SAM_PROTO_GetShiftState [20:19:50]wFMCommunicate request_size=4 [20:19:50]MH_SAM_APDU [20:19:50]CAPDU: 80 13 01 00 [20:19:50]Write to MH i2c: E2 08 00 3F 2F 80 13 01 00 00 00 00 00 EB [20:19:50]Write i2c OK [20:19:50]MH_I2C_Read... [20:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:50]Read from MH i2c: E2 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 0E 00 [20:19:50]MH_I2C_Read... [20:19:50]Read from MH i2c: E2 0E 00 3F 2F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 35 [20:19:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:19:50]wFMCommunicate OK [20:19:50]SAM_PROTO_GetShiftState done [20:19:50]FM_GetShiftState done [20:19:50]req_shift_opened done [20:19:50]requested_item shift.open_date is exist - process it [20:19:50]req_shift_open_date [20:19:50]req_shift_open_date done [20:19:50]produce_requested_data done [20:19:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111489,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:19:50]process_action_free close_receipt [20:19:50]json_value_free [20:19:50]json_value_free done [20:19:50]process_json_proto returns [20:19:50]Send response to host [20:19:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111489,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:19:50]free response buf [20:19:50]execute_script done [20:19:50]execute_script returns [20:19:50]free content buf [20:19:50]Sock 9.Close socket [20:19:50]Sock 9.Thread stoped [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:54]accept exits with 7 [20:23:54]New connection [20:23:54]New thread 3067465060 created [20:23:54]Thread 3067321700 joined [20:23:54]Waiting for new connection... [20:23:54] Sock 7.Parse request [20:23:54]Sock 7.Check first char [20:23:54]Sock 7.First char is OK [20:23:54]request: POST /json_proto HTTP/1.0 [20:23:54]Method: POST [20:23:54]URL: /json_proto [20:23:54]Method is POST - this is cgi request [20:23:54]url: /json_proto [20:23:54]query_string will be loaded in cgi processing [20:23:54]execute_cgi json_proto POST (null) [20:23:54]execute_cgi path=json_proto method=POST [20:23:54]POST find Content-Length [20:23:54]Host: 172.17.59.68:8080 [20:23:54]Content-Length: 677 [20:23:54]Content-Type: application/json [20:23:54] [20:23:54]POST finish read [20:23:54]Found Content-Length = 677 [20:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:54]execute_script... [20:23: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)320078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:54]POST & json_proto [20:23:54]process_json_proto [20:23:54]json parsed OK: [20:23:54]protocol is kg_v1.0 [20:23:54]action value=close_receipt [20:23:54]process_action close_receipt [20:23:54]cmd_close_receipt [20:23:54]MH_GetDate [20:23:54]Write to MH i2c: F0 00 00 40 2F 5E [20:23:54]Write i2c OK [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: F0 [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: F0 09 00 [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: F0 09 00 40 2F 00 66 3E 73 66 BC EC 60 65 51 [20:23:54]GetLastDocTimeStamp 1718828397 [20:23:54]current date 1718828646 [20:23:54]FM_GetShiftState [20:23:54]SAM_PROTO_GetShiftState [20:23:54]wFMCommunicate request_size=4 [20:23:54]MH_SAM_APDU [20:23:54]CAPDU: 80 13 01 00 [20:23:54]Write to MH i2c: E2 08 00 41 2F 80 13 01 00 00 00 00 00 ED [20:23:54]Write i2c OK [20:23:54]MH_I2C_Read... [20:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:54]Read from MH i2c: E2 [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: E2 0E 00 [20:23:54]MH_I2C_Read... [20:23:54]Read from MH i2c: E2 0E 00 41 2F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 37 [20:23:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:23:54]wFMCommunicate OK [20:23:54]SAM_PROTO_GetShiftState done [20:23:54]FM_GetShiftState done [20:23:54]opened in 1718760753 [20:23:54]opened+sec_in_day 1718847153 [20:23:54]quantity*price = 40039 [20:23:54]sum+1 = 40040 [20:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 239 19.06.2024 20:24 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111490 ФПД: 249518210243150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111490&fm=249518210243150&tin=02508201610067®Number=0000000000092771&sum=40000 [20:23:55]StoreToDocumentArchive [20:23:55]shift 388 fd 111490 [20:23:55]save to /storage/0388/doc_00111490 [20:23:55]save last doc name /storage/0388/doc_00111490 to /storage/kkm_last_doc_name [20:23:55]save OK [20:23:55]Clear old archive folders... [20:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:55]tlvbuf is B6FD2190 [20:23:55]SAM_PROTO_ClearQueue [20:23:55]wFMCommunicate request_size=4 [20:23:55]MH_SAM_APDU [20:23:55]CAPDU: 80 09 00 00 [20:23:55]Write to MH i2c: E2 08 00 4E 2F 80 09 00 00 00 00 00 00 EF [20:23:55]Write i2c OK [20:23:55]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 4E 2F 00 90 00 F1 [20:23:56]RAPDU: 90 00 [20:23:56]wFMCommunicate OK [20:23:56]SAM_PROTO_ClearQueue done [20:23:56]KKMCreateOFDPacket [20:23:56]OFDProtocolAddRootSTLVToBuf [20:23:56]FM_MakeSignedData [20:23:56]FM_MakeSignedData [20:23:56]SAM_PROTO_SignData [20:23:56]wFMCommunicate request_size=4 [20:23:56]MH_SAM_APDU [20:23:56]CAPDU: 80 0D 01 02 [20:23:56]Write to MH i2c: E2 08 00 4F 2F 80 0D 01 02 00 00 00 00 F7 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 4F 2F 00 90 00 F2 [20:23:56]RAPDU: 90 00 [20:23:56]wFMCommunicate OK [20:23:56]wFMCommunicate request_size=255 [20:23:56]MH_SAM_APDU [20:23: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 66 3E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B3 01 00 35 04 06 00 E2 [20:23:56]Write to MH i2c: E2 02 01 50 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 66 3E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B3 01 00 35 04 06 00 E2 00 00 82 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 50 2F 00 90 00 F3 [20:23:56]RAPDU: 90 00 [20:23:56]wFMCommunicate OK [20:23:56]wFMCommunicate request_size=10 [20:23:56]MH_SAM_APDU [20:23:56]CAPDU: 80 0D 02 02 05 EF 7C 49 5A 4E [20:23:56]Write to MH i2c: E2 0D 00 51 2F 80 0D 02 02 05 00 EF 7C 49 5A 4E 00 00 60 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 03 00 51 2F 00 90 00 F4 [20:23:56]RAPDU: 90 00 [20:23:56]wFMCommunicate OK [20:23:56]wFMCommunicate request_size=4 [20:23:56]MH_SAM_APDU [20:23:56]CAPDU: 80 0D 03 02 [20:23:56]Write to MH i2c: E2 08 00 52 2F 80 0D 03 02 00 00 00 00 FC [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 0B 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 0B 00 52 2F 00 02 DD 70 4B FB 4E 05 C0 90 00 A5 [20:23:56]RAPDU: 02 DD 70 4B FB 4E 05 C0 90 00 [20:23:56]wFMCommunicate OK [20:23:56]SAM_PROTO_SignData done [20:23:56]FM_MakeSignedData done [20:23:56]CreateOFDProtocolMessage [20:23:56]wFMCommunicate request_size=4 [20:23:56]MH_SAM_APDU [20:23:56]CAPDU: 80 11 00 00 [20:23:56]Write to MH i2c: E2 08 00 53 2F 80 11 00 00 00 00 00 00 FC [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:56]Read from MH i2c: E2 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 17 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: E2 17 00 53 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4E [20:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:23:56]wFMCommunicate OK [20:23:56]CreateOFDProtocolMessage done [20:23:56]OFDSenderStorePacket 111490 [20:23:56]StoreOFDPacket docnum=111490 [20:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F 46 07 01 8F 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 66 3E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B3 01 00 35 04 06 00 E2 EF 7C 49 5A 4E 02 DD 70 4B FB 4E 05 C0 [20:23:56]CheckFolder [20:23:56]dirname=/storage/ofd_packets [20:23:56]CheckFolder done [20:23:56]ProducePacketName [20:23:56]name=ofd_packets/00111490 [20:23:56]NVStorageSaveData ofd_packets/00111490 [20:23:56]File name is /storage/ofd_packets/00111490 [20:23:56]Write 301 bytes [20:23:56]NVStorageSaveData done [20:23:56]OFDSenderStorePacket done [20:23:56]KKMCreateOFDPacket done [20:23:56]NVStorageSaveData kkm_last_timestamp [20:23:56]File name is /storage/kkm_last_timestamp [20:23:56]Write 4 bytes [20:23:56]NVStorageSaveData done [20:23:56]ExternCall_PrintAddStr [20:23:56]wPrintStart [20:23:56]Write to MH i2c: 01 00 00 54 2F 83 [20:23:56]Write i2c OK [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 07 00 [20:23:56]MH_I2C_Read... [20:23:56]Read from MH i2c: 01 07 00 54 2F 00 00 00 00 00 FF 0F 98 [20:23:56]RasterBufferAndPrint [20:23:56]line Счет N : (1)320078 [20:23:56]line ИНН: 02508201610067 [20:23:56]line Контрольно-Кассовый Чек [20:23:56]line ПРОДАЖА [20:23:56]line ТРК (МРК, ГНК) : 11 [20:23:56]line Товар: 2710124130 [20:23:56]line Аи-92-К-5 [20:23:56]line 6.030 * 66.40 [20:23:56]line = 400.39 [20:23:56]line НДС 12% НСП 1% [20:23:56]line > о реализуемом товаре [20:23:56]line ОКРУГЛЕНИЕ: -0.39 [20:23:56]line ИТОГО: 400.00 [20:23:56]line Внесено: 400.00 [20:23:56]line СДАЧА: 0.00 [20:23:56]line НСП 1% : 3.54 [20:23:56]line НДС 12% : 42.52 [20:23:56]line Наличными: 400.00 [20:23:56]line Безнал.: 0.00 [20:23:56]line Место: АЗС № 65 "Партнер Нефть" [20:23:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:23:56]line СНО: Общий режим [20:23:56]line Чек 239 19.06.2024 20:24 [20:23:56]line Смена: 388 ФФД: 1.0 [20:23:56]line ЗНМ: 0300000198 [20:23:56]line РНМ: 0000000000092771 [20:23:56]line Версия ККМ: 001 [20:23:56]line ФМ: 0000000000875083 [20:23:56]line ФД: 111490 [20:23:56]line ФПД: 249518210243150 [20:23:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202406&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111490&fm=249518210243150&tin=02508201610067®Number=0000000000092771&sum=40000 [20:23:56]OFD Sender: Processing packet 111490 [packets to send 38, broken 37] [20:23:56]ProducePacketName [20:23:56]name=ofd_packets/00111490 [20:23:56]OFD Sender: To server: pG, [20:23:56]CommunicateWithHost lk.salyk.kg:30040 [20:23:56]ConnectInit lk.salyk.kg [20:23:56]written 0, free lines is 4095 [20:23:56]Connected sock=10 [20:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3F 46 07 01 8F 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 66 3E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 82 B3 01 00 35 04 06 00 E2 EF 7C 49 5A 4E 02 DD 70 4B FB 4E 05 C0 [20:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 69 51 47 00 86 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 35 30 38 33 10 04 04 00 82 B3 01 00 F4 03 04 00 C5 D5 72 66 B6 04 01 00 00 26 DF B8 34 E1 F0 19 B9 [20:23:57]CommunicateWithHost err = 0 [20:23:57]CheckOFDResponse [20:23:57]1017 (14) - 77093643461234 [20:23:57]1041 (16) - 0000000000875083 [20:23:57]1040 (4) - 111490 [20:23:57]1012 (4) - 19.06.2024 12:57 [20:23:57]1206 (1) - 0 [20:23:57]OFD Sender: Remove packet 111490 [20:23:57]ProducePacketName [20:23:57]name=ofd_packets/00111490 [20:23:57]NVStorageDeleteData [20:23:57]Write to MH i2c: 01 00 00 7F 2F AE [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: 01 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: 01 07 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: 01 07 00 7F 2F 00 00 00 00 00 D7 0C 98 [20:23:57]RasterBufferAndPrint [20:23:57]line [20:23:57]line [20:23:57]line [20:23:57]line [20:23:57]line [20:23:57]written 0, free lines is 3294 [20:23:57]MH_Cut [20:23:57]Write to MH i2c: D1 01 00 86 2F 01 87 [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: D1 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: D1 01 00 [20:23:57]MH_I2C_Read... [20:23:57]Read from MH i2c: D1 01 00 86 2F 00 86 [20:23:57]Write to MH i2c: 01 00 00 87 2F B6 [20:23:57]Write i2c OK [20:23:57]MH_I2C_Read... [20:23:57]OFD Sender: No OFD packet to send [20:23:58]*** Cut start [20:23:58]*** Partial cut [20:23:58]*** CUTSNS_PIN = 1 [20:23:58]*** CUTSNS_PIN = 0 [20:23:58]*** Brake cut motor [20:23:58]Read from MH i2c: 01 [20:23:58]MH_I2C_Read... [20:23:58]*** Stop cut motor [20:23:58]*** Cut end [20:23:58]Read from MH i2c: 01 07 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: 01 07 00 87 2F 00 00 00 00 00 FF 0F CB [20:23:58]process_action close_receipt done [20:23:58]requested_data is exist [20:23:58]produce_requested_data [20:23:58]requested_item fm.sn is exist - process it [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 11 00 00 [20:23:58]Write to MH i2c: E2 08 00 88 2F 80 11 00 00 00 00 00 00 31 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 17 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 17 00 88 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [20:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:23:58]wFMCommunicate OK [20:23:58]requested_item fd.num is exist - process it [20:23:58]SAM_PROTO_GetFieldsCounters [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 13 00 00 [20:23:58]Write to MH i2c: E2 08 00 89 2F 80 13 00 00 00 00 00 00 34 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 62 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 62 00 89 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 82 B3 01 00 0E 04 04 00 84 01 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 DD [20:23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 82 B3 01 00 0E 04 04 00 84 01 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 [20:23:58]wFMCommunicate OK [20:23:58]SAM_PROTO_GetFieldsCounters done [20:23:58]requested_item shift.num is exist - process it [20:23:58]requested_item shift.opened is exist - process it [20:23:58]req_shift_opened [20:23:58]FM_GetShiftState [20:23:58]SAM_PROTO_GetShiftState [20:23:58]wFMCommunicate request_size=4 [20:23:58]MH_SAM_APDU [20:23:58]CAPDU: 80 13 01 00 [20:23:58]Write to MH i2c: E2 08 00 8A 2F 80 13 01 00 00 00 00 00 36 [20:23:58]Write i2c OK [20:23:58]MH_I2C_Read... [20:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:58]Read from MH i2c: E2 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 0E 00 [20:23:58]MH_I2C_Read... [20:23:58]Read from MH i2c: E2 0E 00 8A 2F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 80 [20:23:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:23:58]wFMCommunicate OK [20:23:58]SAM_PROTO_GetShiftState done [20:23:58]FM_GetShiftState done [20:23:58]req_shift_opened done [20:23:58]requested_item shift.open_date is exist - process it [20:23:58]req_shift_open_date [20:23:58]req_shift_open_date done [20:23:58]produce_requested_data done [20:23:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111490,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:23:58]process_action_free close_receipt [20:23:58]json_value_free [20:23:58]json_value_free done [20:23:58]process_json_proto returns [20:23:58]Send response to host [20:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111490,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:23:58]free response buf [20:23:58]execute_script done [20:23:58]execute_script returns [20:23:58]free content buf [20:23:58]Sock 7.Close socket [20:23:58]Sock 7.Thread stoped [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:21]accept exits with 9 [20:26:21]New connection [20:26:21]New thread 3067321700 created [20:26:21]Thread 3067465060 joined [20:26:21]Waiting for new connection... [20:26:21] Sock 9.Parse request [20:26:21]Sock 9.Check first char [20:26:21]Sock 9.First char is OK [20:26:21]request: POST /json_proto HTTP/1.0 [20:26:21]Method: POST [20:26:21]URL: /json_proto [20:26:21]Method is POST - this is cgi request [20:26:21]url: /json_proto [20:26:21]query_string will be loaded in cgi processing [20:26:21]execute_cgi json_proto POST (null) [20:26:21]execute_cgi path=json_proto method=POST [20:26:21]POST find Content-Length [20:26:21]Host: 172.17.59.68:8080 [20:26:21]Content-Length: 682 [20:26:21]Content-Type: application/json [20:26:21] [20:26:21]POST finish read [20:26:21]Found Content-Length = 682 [20:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:21]execute_script... [20:26: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)320079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:21]POST & json_proto [20:26:21]process_json_proto [20:26:21]json parsed OK: [20:26:21]protocol is kg_v1.0 [20:26:21]action value=close_receipt [20:26:21]process_action close_receipt [20:26:21]cmd_close_receipt [20:26:21]MH_GetDate [20:26:21]Write to MH i2c: F0 00 00 8B 2F A9 [20:26:21]Write i2c OK [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 09 00 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 09 00 8B 2F 00 F8 3E 73 66 BC EC 60 65 2E [20:26:21]GetLastDocTimeStamp 1718828646 [20:26:21]current date 1718828792 [20:26:21]FM_GetShiftState [20:26:21]SAM_PROTO_GetShiftState [20:26:21]wFMCommunicate request_size=4 [20:26:21]MH_SAM_APDU [20:26:21]CAPDU: 80 13 01 00 [20:26:21]Write to MH i2c: E2 08 00 8C 2F 80 13 01 00 00 00 00 00 38 [20:26:21]Write i2c OK [20:26:21]MH_I2C_Read... [20:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:21]Read from MH i2c: E2 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: E2 0E 00 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: E2 0E 00 8C 2F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 82 [20:26:21]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:26:21]wFMCommunicate OK [20:26:21]SAM_PROTO_GetShiftState done [20:26:21]FM_GetShiftState done [20:26:21]opened in 1718760753 [20:26:21]opened+sec_in_day 1718847153 [20:26:21]quantity*price = 200047 [20:26:21]sum+1 = 200048 [20:26:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 240 19.06.2024 20:26 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111491 ФПД: 92515332998365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202633&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111491&fm=92515332998365&tin=02508201610067®Number=0000000000092771&sum=200000 [20:26:22]StoreToDocumentArchive [20:26:22]shift 388 fd 111491 [20:26:22]save to /storage/0388/doc_00111491 [20:26:22]save last doc name /storage/0388/doc_00111491 to /storage/kkm_last_doc_name [20:26:22]save OK [20:26:22]Clear old archive folders... [20:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:22]tlvbuf is B6FD2A40 [20:26:22]SAM_PROTO_ClearQueue [20:26:22]wFMCommunicate request_size=4 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 09 00 00 [20:26:22]Write to MH i2c: E2 08 00 99 2F 80 09 00 00 00 00 00 00 3A [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:22]Read from MH i2c: E2 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 99 2F 00 90 00 3C [20:26:22]RAPDU: 90 00 [20:26:22]wFMCommunicate OK [20:26:22]SAM_PROTO_ClearQueue done [20:26:22]KKMCreateOFDPacket [20:26:22]OFDProtocolAddRootSTLVToBuf [20:26:22]FM_MakeSignedData [20:26:22]FM_MakeSignedData [20:26:22]SAM_PROTO_SignData [20:26:22]wFMCommunicate request_size=4 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 0D 01 02 [20:26:22]Write to MH i2c: E2 08 00 9A 2F 80 0D 01 02 00 00 00 00 42 [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:22]Read from MH i2c: E2 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 9A 2F 00 90 00 3D [20:26:22]RAPDU: 90 00 [20:26:22]wFMCommunicate OK [20:26:22]wFMCommunicate request_size=255 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 F9 3E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B3 01 00 35 04 06 00 54 [20:26:22]Write to MH i2c: E2 02 01 9B 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 F9 3E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B3 01 00 35 04 06 00 54 00 00 DE [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]OFD Sender: No OFD packet to send [20:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:22]Read from MH i2c: E2 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 9B 2F 00 90 00 3E [20:26:22]RAPDU: 90 00 [20:26:22]wFMCommunicate OK [20:26:22]wFMCommunicate request_size=10 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 0D 02 02 05 24 67 8F 44 DD [20:26:22]Write to MH i2c: E2 0D 00 9C 2F 80 0D 02 02 05 00 24 67 8F 44 DD 00 00 8A [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:22]Read from MH i2c: E2 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 9C 2F 00 90 00 3F [20:26:22]RAPDU: 90 00 [20:26:22]wFMCommunicate OK [20:26:22]wFMCommunicate request_size=4 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 0D 03 02 [20:26:22]Write to MH i2c: E2 08 00 9D 2F 80 0D 03 02 00 00 00 00 47 [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0B 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0B 00 9D 2F 00 B2 00 C2 92 77 A2 AA 7B 90 00 8C [20:26:23]RAPDU: B2 00 C2 92 77 A2 AA 7B 90 00 [20:26:23]wFMCommunicate OK [20:26:23]SAM_PROTO_SignData done [20:26:23]FM_MakeSignedData done [20:26:23]CreateOFDProtocolMessage [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 11 00 00 [20:26:23]Write to MH i2c: E2 08 00 9E 2F 80 11 00 00 00 00 00 00 47 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 17 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 17 00 9E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 99 [20:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:26:23]wFMCommunicate OK [20:26:23]CreateOFDProtocolMessage done [20:26:23]OFDSenderStorePacket 111491 [20:26:23]StoreOFDPacket docnum=111491 [20:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2D 6D 07 01 38 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 F9 3E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B3 01 00 35 04 06 00 54 24 67 8F 44 DD B2 00 C2 92 77 A2 AA 7B [20:26:23]CheckFolder [20:26:23]dirname=/storage/ofd_packets [20:26:23]CheckFolder done [20:26:23]ProducePacketName [20:26:23]name=ofd_packets/00111491 [20:26:23]NVStorageSaveData ofd_packets/00111491 [20:26:23]File name is /storage/ofd_packets/00111491 [20:26:23]Write 301 bytes [20:26:23]NVStorageSaveData done [20:26:23]OFDSenderStorePacket done [20:26:23]KKMCreateOFDPacket done [20:26:23]NVStorageSaveData kkm_last_timestamp [20:26:23]File name is /storage/kkm_last_timestamp [20:26:23]Write 4 bytes [20:26:23]NVStorageSaveData done [20:26:23]ExternCall_PrintAddStr [20:26:23]wPrintStart [20:26:23]Write to MH i2c: 01 00 00 9F 2F CE [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 9F 2F 00 00 00 00 00 FF 0F E3 [20:26:23]RasterBufferAndPrint [20:26:23]line Счет N : (1)320079 [20:26:23]line ИНН: 02508201610067 [20:26:23]line Контрольно-Кассовый Чек [20:26:23]line ПРОДАЖА [20:26:23]line ТРК (МРК, ГНК) : 12 [20:26:23]line Товар: 2710124500 [20:26:23]line Аи-95-К-5 [20:26:23]line 27.070 * 73.90 [20:26:23]line = 2000.47 [20:26:23]line НДС 12% НСП 1% [20:26:23]line > о реализуемом товаре [20:26:23]line ОКРУГЛЕНИЕ: -0.47 [20:26:23]line ИТОГО: 2000.00 [20:26:23]line Внесено: 2000.00 [20:26:23]line СДАЧА: 0.00 [20:26:23]line НСП 1% : 17.70 [20:26:23]line НДС 12% : 212.44 [20:26:23]line Наличными: 2000.00 [20:26:23]line Безнал.: 0.00 [20:26:23]line Место: АЗС № 65 "Партнер Нефть" [20:26:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:26:23]line СНО: Общий режим [20:26:23]line Чек 240 19.06.2024 20:26 [20:26:23]line Смена: 388 ФФД: 1.0 [20:26:23]line ЗНМ: 0300000198 [20:26:23]line РНМ: 0000000000092771 [20:26:23]line Версия ККМ: 001 [20:26:23]line ФМ: 0000000000875083 [20:26:23]line ФД: 111491 [20:26:23]line ФПД: 92515332998365 [20:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202633&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111491&fm=92515332998365&tin=02508201610067®Number=0000000000092771&sum=200000 [20:26:23]OFD Sender: Processing packet 111491 [packets to send 38, broken 37] [20:26:23]ProducePacketName [20:26:23]name=ofd_packets/00111491 [20:26:23]OFD Sender: To server: pG, [20:26:23]CommunicateWithHost lk.salyk.kg:30040 [20:26:23]ConnectInit lk.salyk.kg [20:26:23]written 0, free lines is 4095 [20:26:23]Connected sock=10 [20:26:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2D 6D 07 01 38 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 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 FC 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 F9 3E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 83 B3 01 00 35 04 06 00 54 24 67 8F 44 DD B2 00 C2 92 77 A2 AA 7B [20:26:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CC B3 47 00 B5 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 35 30 38 33 10 04 04 00 83 B3 01 00 F4 03 04 00 58 D6 72 66 B6 04 01 00 00 E6 18 A5 7E BF E7 7A 89 [20:26:23]CommunicateWithHost err = 0 [20:26:23]CheckOFDResponse [20:26:23]1017 (14) - 77093643461234 [20:26:23]1041 (16) - 0000000000875083 [20:26:23]1040 (4) - 111491 [20:26:23]1012 (4) - 19.06.2024 13:00 [20:26:23]1206 (1) - 0 [20:26:23]OFD Sender: Remove packet 111491 [20:26:23]ProducePacketName [20:26:23]name=ofd_packets/00111491 [20:26:23]NVStorageDeleteData [20:26:23]Write to MH i2c: 01 00 00 CA 2F F9 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 CA 2F 00 00 00 00 00 D6 0C E2 [20:26:23]RasterBufferAndPrint [20:26:23]line [20:26:23]line [20:26:23]line [20:26:23]line [20:26:23]line [20:26:23]written 0, free lines is 3294 [20:26:23]MH_Cut [20:26:23]Write to MH i2c: D1 01 00 D1 2F 01 D2 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: D1 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: D1 01 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: D1 01 00 D1 2F 00 D1 [20:26:23]Write to MH i2c: 01 00 00 D2 2F 01 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:24]OFD Sender: No OFD packet to send [20:26:24]*** Cut start [20:26:24]*** Partial cut [20:26:24]*** CUTSNS_PIN = 1 [20:26:24]*** CUTSNS_PIN = 0 [20:26:24]*** Brake cut motor [20:26:25]Read from MH i2c: 01 [20:26:25]MH_I2C_Read... [20:26:25]*** Stop cut motor [20:26:25]*** Cut end [20:26:25]Read from MH i2c: 01 07 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: 01 07 00 D2 2F 00 00 00 00 00 FF 0F 16 [20:26:25]process_action close_receipt done [20:26:25]requested_data is exist [20:26:25]produce_requested_data [20:26:25]requested_item fm.sn is exist - process it [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 11 00 00 [20:26:25]Write to MH i2c: E2 08 00 D3 2F 80 11 00 00 00 00 00 00 7C [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 17 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 17 00 D3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [20:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:26:25]wFMCommunicate OK [20:26:25]requested_item fd.num is exist - process it [20:26:25]SAM_PROTO_GetFieldsCounters [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 13 00 00 [20:26:25]Write to MH i2c: E2 08 00 D4 2F 80 13 00 00 00 00 00 00 7F [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 62 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 62 00 D4 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 83 B3 01 00 0E 04 04 00 84 01 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 2C [20:26: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 83 B3 01 00 0E 04 04 00 84 01 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 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_GetFieldsCounters done [20:26:25]requested_item shift.num is exist - process it [20:26:25]requested_item shift.opened is exist - process it [20:26:25]req_shift_opened [20:26:25]FM_GetShiftState [20:26:25]SAM_PROTO_GetShiftState [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 13 01 00 [20:26:25]Write to MH i2c: E2 08 00 D5 2F 80 13 01 00 00 00 00 00 81 [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 0E 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 0E 00 D5 2F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CB [20:26:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_GetShiftState done [20:26:25]FM_GetShiftState done [20:26:25]req_shift_opened done [20:26:25]requested_item shift.open_date is exist - process it [20:26:25]req_shift_open_date [20:26:25]req_shift_open_date done [20:26:25]produce_requested_data done [20:26:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111491,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:26:25]process_action_free close_receipt [20:26:25]json_value_free [20:26:25]json_value_free done [20:26:25]process_json_proto returns [20:26:25]Send response to host [20:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111491,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:26:25]free response buf [20:26:25]execute_script done [20:26:25]execute_script returns [20:26:25]free content buf [20:26:25]Sock 9.Close socket [20:26:25]Sock 9.Thread stoped [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:43]accept exits with 7 [20:27:43]New connection [20:27:43]New thread 3067465060 created [20:27:43]Thread 3067321700 joined [20:27:43]Waiting for new connection... [20:27:43] Sock 7.Parse request [20:27:43]Sock 7.Check first char [20:27:43]Sock 7.First char is OK [20:27:43]request: POST /json_proto HTTP/1.0 [20:27:43]Method: POST [20:27:43]URL: /json_proto [20:27:43]Method is POST - this is cgi request [20:27:43]url: /json_proto [20:27:43]query_string will be loaded in cgi processing [20:27:43]execute_cgi json_proto POST (null) [20:27:43]execute_cgi path=json_proto method=POST [20:27:43]POST find Content-Length [20:27:43]Host: 172.17.59.68:8080 [20:27:43]Content-Length: 677 [20:27:43]Content-Type: application/json [20:27:43] [20:27:43]POST finish read [20:27:43]Found Content-Length = 677 [20:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.010, "sum" : 133.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:43]execute_script... [20:27: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)320080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.010, "sum" : 133.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:43]POST & json_proto [20:27:43]process_json_proto [20:27:43]json parsed OK: [20:27:43]protocol is kg_v1.0 [20:27:43]action value=close_receipt [20:27:43]process_action close_receipt [20:27:43]cmd_close_receipt [20:27:43]MH_GetDate [20:27:43]Write to MH i2c: F0 00 00 D6 2F F4 [20:27:43]Write i2c OK [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: F0 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: F0 09 00 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: F0 09 00 D6 2F 00 4B 3F 73 66 BC EC 60 65 CD [20:27:43]GetLastDocTimeStamp 1718828793 [20:27:43]current date 1718828875 [20:27:43]FM_GetShiftState [20:27:43]SAM_PROTO_GetShiftState [20:27:43]wFMCommunicate request_size=4 [20:27:43]MH_SAM_APDU [20:27:43]CAPDU: 80 13 01 00 [20:27:43]Write to MH i2c: E2 08 00 D7 2F 80 13 01 00 00 00 00 00 83 [20:27:43]Write i2c OK [20:27:43]MH_I2C_Read... [20:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:43]Read from MH i2c: E2 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: E2 0E 00 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: E2 0E 00 D7 2F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CD [20:27:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:27:43]wFMCommunicate OK [20:27:43]SAM_PROTO_GetShiftState done [20:27:43]FM_GetShiftState done [20:27:43]opened in 1718760753 [20:27:43]opened+sec_in_day 1718847153 [20:27:43]quantity*price = 13346 [20:27:43]sum+1 = 13347 [20:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 133.00 Внесено: 133.00 СДАЧА: 0.00 НСП 1% : 1.18 НДС 12% : 14.17 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 241 19.06.2024 20:27 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111492 ФПД: 144494373485386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202755&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111492&fm=144494373485386&tin=02508201610067®Number=0000000000092771&sum=13300 [20:27:44]StoreToDocumentArchive [20:27:44]shift 388 fd 111492 [20:27:44]save to /storage/0388/doc_00111492 [20:27:44]save last doc name /storage/0388/doc_00111492 to /storage/kkm_last_doc_name [20:27:44]save OK [20:27:44]Clear old archive folders... [20:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:44]tlvbuf is 00EC1680 [20:27:44]SAM_PROTO_ClearQueue [20:27:44]wFMCommunicate request_size=4 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 09 00 00 [20:27:44]Write to MH i2c: E2 08 00 E4 2F 80 09 00 00 00 00 00 00 85 [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]SAM_PROTO_ClearQueue done [20:27:44]KKMCreateOFDPacket [20:27:44]OFDProtocolAddRootSTLVToBuf [20:27:44]FM_MakeSignedData [20:27:44]FM_MakeSignedData [20:27:44]SAM_PROTO_SignData [20:27:44]wFMCommunicate request_size=4 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 0D 01 02 [20:27:44]Write to MH i2c: E2 08 00 E5 2F 80 0D 01 02 00 00 00 00 8D [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 E5 2F 00 90 00 88 [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]wFMCommunicate request_size=255 [20:27:44]MH_SAM_APDU [20: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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 4B 3F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B3 01 00 35 04 06 00 83 [20:27:44]Write to MH i2c: E2 02 01 E6 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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 4B 3F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B3 01 00 35 04 06 00 83 00 00 BD [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:44]Read from MH i2c: E2 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 [20:27:44]MH_I2C_Read... [20:27:44]Read from MH i2c: E2 03 00 E6 2F 00 90 00 89 [20:27:44]RAPDU: 90 00 [20:27:44]wFMCommunicate OK [20:27:44]wFMCommunicate request_size=10 [20:27:44]MH_SAM_APDU [20:27:44]CAPDU: 80 0D 02 02 05 6A B7 CD BB 4A [20:27:44]Write to MH i2c: E2 0D 00 E7 2F 80 0D 02 02 05 00 6A B7 CD BB 4A 00 00 8D [20:27:44]Write i2c OK [20:27:44]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 03 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 03 00 E7 2F 00 90 00 8A [20:27:45]RAPDU: 90 00 [20:27:45]wFMCommunicate OK [20:27:45]wFMCommunicate request_size=4 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 0D 03 02 [20:27:45]Write to MH i2c: E2 08 00 E8 2F 80 0D 03 02 00 00 00 00 92 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 0B 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 0B 00 E8 2F 00 DE F6 42 C1 F3 EF 10 AB 90 00 07 [20:27:45]RAPDU: DE F6 42 C1 F3 EF 10 AB 90 00 [20:27:45]wFMCommunicate OK [20:27:45]SAM_PROTO_SignData done [20:27:45]FM_MakeSignedData done [20:27:45]CreateOFDProtocolMessage [20:27:45]wFMCommunicate request_size=4 [20:27:45]MH_SAM_APDU [20:27:45]CAPDU: 80 11 00 00 [20:27:45]Write to MH i2c: E2 08 00 E9 2F 80 11 00 00 00 00 00 00 92 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:45]Read from MH i2c: E2 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 17 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: E2 17 00 E9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E4 [20:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:27:45]wFMCommunicate OK [20:27:45]CreateOFDProtocolMessage done [20:27:45]OFDSenderStorePacket 111492 [20:27:45]StoreOFDPacket docnum=111492 [20:27:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E1 8F 07 01 94 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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 4B 3F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B3 01 00 35 04 06 00 83 6A B7 CD BB 4A DE F6 42 C1 F3 EF 10 AB [20:27:45]CheckFolder [20:27:45]dirname=/storage/ofd_packets [20:27:45]CheckFolder done [20:27:45]ProducePacketName [20:27:45]name=ofd_packets/00111492 [20:27:45]NVStorageSaveData ofd_packets/00111492 [20:27:45]File name is /storage/ofd_packets/00111492 [20:27:45]Write 301 bytes [20:27:45]NVStorageSaveData done [20:27:45]OFDSenderStorePacket done [20:27:45]KKMCreateOFDPacket done [20:27:45]NVStorageSaveData kkm_last_timestamp [20:27:45]File name is /storage/kkm_last_timestamp [20:27:45]Write 4 bytes [20:27:45]NVStorageSaveData done [20:27:45]ExternCall_PrintAddStr [20:27:45]wPrintStart [20:27:45]Write to MH i2c: 01 00 00 EA 2F 19 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 EA 2F 00 00 00 00 00 FF 0F 2E [20:27:45]RasterBufferAndPrint [20:27:45]line Счет N : (1)320080 [20:27:45]line ИНН: 02508201610067 [20:27:45]line Контрольно-Кассовый Чек [20:27:45]line ПРОДАЖА [20:27:45]line ТРК (МРК, ГНК) : 11 [20:27:45]line Товар: 2710124130 [20:27:45]line Аи-92-К-5 [20:27:45]line 2.010 * 66.40 [20:27:45]line = 133.46 [20:27:45]line НДС 12% НСП 1% [20:27:45]line > о реализуемом товаре [20:27:45]line ОКРУГЛЕНИЕ: -0.46 [20:27:45]line ИТОГО: 133.00 [20:27:45]line Внесено: 133.00 [20:27:45]line СДАЧА: 0.00 [20:27:45]line НСП 1% : 1.18 [20:27:45]line НДС 12% : 14.17 [20:27:45]line Наличными: 133.00 [20:27:45]line Безнал.: 0.00 [20:27:45]line Место: АЗС № 65 "Партнер Нефть" [20:27:45]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:27:45]line СНО: Общий режим [20:27:45]line Чек 241 19.06.2024 20:27 [20:27:45]line Смена: 388 ФФД: 1.0 [20:27:45]line ЗНМ: 0300000198 [20:27:45]line РНМ: 0000000000092771 [20:27:45]line Версия ККМ: 001 [20:27:45]line ФМ: 0000000000875083 [20:27:45]line ФД: 111492 [20:27:45]line ФПД: 144494373485386 [20:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202755&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111492&fm=144494373485386&tin=02508201610067®Number=0000000000092771&sum=13300 [20:27:45]OFD Sender: Processing packet 111492 [packets to send 38, broken 37] [20:27:45]ProducePacketName [20:27:45]name=ofd_packets/00111492 [20:27:45]OFD Sender: To server: pG, [20:27:45]CommunicateWithHost lk.salyk.kg:30040 [20:27:45]ConnectInit lk.salyk.kg [20:27:45]written 0, free lines is 4095 [20:27:45]Connected sock=10 [20: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 35 30 38 33 0F 01 00 00 E1 8F 07 01 94 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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 4B 3F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B3 01 00 35 04 06 00 83 6A B7 CD BB 4A DE F6 42 C1 F3 EF 10 AB [20:27:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 8A 39 47 00 7C FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 84 B3 01 00 F4 03 04 00 AA D6 72 66 B6 04 01 00 00 C0 0C 6F 38 57 3B CA 5B [20:27:45]CommunicateWithHost err = 0 [20:27:45]CheckOFDResponse [20:27:45]1017 (14) - 77093643461234 [20:27:45]1041 (16) - 0000000000875083 [20:27:45]1040 (4) - 111492 [20:27:45]1012 (4) - 19.06.2024 13:01 [20:27:45]1206 (1) - 0 [20:27:45]OFD Sender: Remove packet 111492 [20:27:45]ProducePacketName [20:27:45]name=ofd_packets/00111492 [20:27:45]NVStorageDeleteData [20:27:45]Write to MH i2c: 01 00 00 15 30 45 [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: 01 07 00 15 30 00 00 00 00 00 CE 0C 26 [20:27:45]RasterBufferAndPrint [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]line [20:27:45]written 0, free lines is 3285 [20:27:45]MH_Cut [20:27:45]Write to MH i2c: D1 01 00 1C 30 01 1E [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 01 00 [20:27:45]MH_I2C_Read... [20:27:45]Read from MH i2c: D1 01 00 1C 30 00 1D [20:27:45]Write to MH i2c: 01 00 00 1D 30 4D [20:27:45]Write i2c OK [20:27:45]MH_I2C_Read... [20:27:46]OFD Sender: No OFD packet to send [20:27:46]*** Cut start [20:27:46]*** Partial cut [20:27:46]*** CUTSNS_PIN = 1 [20:27:46]*** CUTSNS_PIN = 0 [20:27:46]*** Brake cut motor [20:27:47]Read from MH i2c: 01 [20:27:47]MH_I2C_Read... [20:27:47]*** Stop cut motor [20:27:47]*** Cut end [20:27:47]Read from MH i2c: 01 07 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: 01 07 00 1D 30 00 00 00 00 00 FF 0F 62 [20:27:47]process_action close_receipt done [20:27:47]requested_data is exist [20:27:47]produce_requested_data [20:27:47]requested_item fm.sn is exist - process it [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 11 00 00 [20:27:47]Write to MH i2c: E2 08 00 1E 30 80 11 00 00 00 00 00 00 C8 [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:47]Read from MH i2c: E2 17 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 17 00 1E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [20:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:27:47]wFMCommunicate OK [20:27:47]requested_item fd.num is exist - process it [20:27:47]SAM_PROTO_GetFieldsCounters [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 00 00 [20:27:47]Write to MH i2c: E2 08 00 1F 30 80 13 00 00 00 00 00 00 CB [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 62 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 62 00 1F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 84 B3 01 00 0E 04 04 00 84 01 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 7C [20: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 84 B3 01 00 0E 04 04 00 84 01 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 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_GetFieldsCounters done [20:27:47]requested_item shift.num is exist - process it [20:27:47]requested_item shift.opened is exist - process it [20:27:47]req_shift_opened [20:27:47]FM_GetShiftState [20:27:47]SAM_PROTO_GetShiftState [20:27:47]wFMCommunicate request_size=4 [20:27:47]MH_SAM_APDU [20:27:47]CAPDU: 80 13 01 00 [20:27:47]Write to MH i2c: E2 08 00 20 30 80 13 01 00 00 00 00 00 CD [20:27:47]Write i2c OK [20:27:47]MH_I2C_Read... [20:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:47]Read from MH i2c: E2 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0E 00 [20:27:47]MH_I2C_Read... [20:27:47]Read from MH i2c: E2 0E 00 20 30 00 09 00 01 31 35 72 66 00 00 00 00 90 00 17 [20:27:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:27:47]wFMCommunicate OK [20:27:47]SAM_PROTO_GetShiftState done [20:27:47]FM_GetShiftState done [20:27:47]req_shift_opened done [20:27:47]requested_item shift.open_date is exist - process it [20:27:47]req_shift_open_date [20:27:47]req_shift_open_date done [20:27:47]produce_requested_data done [20:27:47]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111492,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:27:47]process_action_free close_receipt [20:27:47]json_value_free [20:27:47]json_value_free done [20:27:47]process_json_proto returns [20:27:47]Send response to host [20:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111492,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:27:47]free response buf [20:27:47]execute_script done [20:27:47]execute_script returns [20:27:47]free content buf [20:27:47]Sock 7.Close socket [20:27:47]Sock 7.Thread stoped [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:34]accept exits with 9 [20:29:34]New connection [20:29:34]New thread 3067321700 created [20:29:34]Thread 3067465060 joined [20:29:34]Waiting for new connection... [20:29:34] Sock 9.Parse request [20:29:34]Sock 9.Check first char [20:29:34]Sock 9.First char is OK [20:29:34]request: POST /json_proto HTTP/1.0 [20:29:34]Method: POST [20:29:34]URL: /json_proto [20:29:34]Method is POST - this is cgi request [20:29:34]url: /json_proto [20:29:34]query_string will be loaded in cgi processing [20:29:34]execute_cgi json_proto POST (null) [20:29:34]execute_cgi path=json_proto method=POST [20:29:34]POST find Content-Length [20:29:34]Host: 172.17.59.68:8080 [20:29:34]Content-Length: 677 [20:29:34]Content-Type: application/json [20:29:34] [20:29:34]POST finish read [20:29:34]Found Content-Length = 677 [20:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:34]execute_script... [20:29: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)320081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:34]POST & json_proto [20:29:34]process_json_proto [20:29:34]json parsed OK: [20:29:34]protocol is kg_v1.0 [20:29:34]action value=close_receipt [20:29:34]process_action close_receipt [20:29:34]cmd_close_receipt [20:29:34]MH_GetDate [20:29:34]Write to MH i2c: F0 00 00 21 30 40 [20:29:34]Write i2c OK [20:29:34]MH_I2C_Read... [20:29:34]Read from MH i2c: F0 [20:29:34]MH_I2C_Read... [20:29:34]Read from MH i2c: F0 09 00 [20:29:34]MH_I2C_Read... [20:29:34]Read from MH i2c: F0 09 00 21 30 00 BA 3F 73 66 BC EC 60 65 88 [20:29:34]GetLastDocTimeStamp 1718828875 [20:29:34]current date 1718828986 [20:29:34]FM_GetShiftState [20:29:34]SAM_PROTO_GetShiftState [20:29:34]wFMCommunicate request_size=4 [20:29:34]MH_SAM_APDU [20:29:34]CAPDU: 80 13 01 00 [20:29:34]Write to MH i2c: E2 08 00 22 30 80 13 01 00 00 00 00 00 CF [20:29:34]Write i2c OK [20:29:34]MH_I2C_Read... [20:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:34]Read from MH i2c: E2 [20:29:34]MH_I2C_Read... [20:29:34]Read from MH i2c: E2 0E 00 [20:29:34]MH_I2C_Read... [20:29:34]Read from MH i2c: E2 0E 00 22 30 00 09 00 01 31 35 72 66 00 00 00 00 90 00 19 [20:29:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:29:34]wFMCommunicate OK [20:29:34]SAM_PROTO_GetShiftState done [20:29:34]FM_GetShiftState done [20:29:34]opened in 1718760753 [20:29:34]opened+sec_in_day 1718847153 [20:29:34]quantity*price = 30012 [20:29:34]sum+1 = 30014 [20:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 242 19.06.2024 20:29 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111493 ФПД: 165216672895183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202946&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111493&fm=165216672895183&tin=02508201610067®Number=0000000000092771&sum=30000 [20:29:35]StoreToDocumentArchive [20:29:35]shift 388 fd 111493 [20:29:35]save to /storage/0388/doc_00111493 [20:29:35]save last doc name /storage/0388/doc_00111493 to /storage/kkm_last_doc_name [20:29:35]save OK [20:29:35]Clear old archive folders... [20:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:29:35]tlvbuf is 00F64300 [20:29:35]SAM_PROTO_ClearQueue [20:29:35]wFMCommunicate request_size=4 [20:29:35]MH_SAM_APDU [20:29:35]CAPDU: 80 09 00 00 [20:29:35]Write to MH i2c: E2 08 00 2F 30 80 09 00 00 00 00 00 00 D1 [20:29:35]Write i2c OK [20:29:35]MH_I2C_Read... [20:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:35]Read from MH i2c: E2 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 03 00 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 03 00 2F 30 00 90 00 D3 [20:29:35]RAPDU: 90 00 [20:29:35]wFMCommunicate OK [20:29:35]SAM_PROTO_ClearQueue done [20:29:35]KKMCreateOFDPacket [20:29:35]OFDProtocolAddRootSTLVToBuf [20:29:35]FM_MakeSignedData [20:29:35]FM_MakeSignedData [20:29:35]SAM_PROTO_SignData [20:29:35]wFMCommunicate request_size=4 [20:29:35]MH_SAM_APDU [20:29:35]CAPDU: 80 0D 01 02 [20:29:35]Write to MH i2c: E2 08 00 30 30 80 0D 01 02 00 00 00 00 D9 [20:29:35]Write i2c OK [20:29:35]MH_I2C_Read... [20:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:35]Read from MH i2c: E2 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 03 00 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 03 00 30 30 00 90 00 D4 [20:29:35]RAPDU: 90 00 [20:29:35]wFMCommunicate OK [20:29:35]wFMCommunicate request_size=255 [20:29:35]MH_SAM_APDU [20: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 F2 00 00 00 F4 03 04 00 BA 3F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B3 01 00 35 04 06 00 96 [20:29:35]Write to MH i2c: E2 02 01 31 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 F2 00 00 00 F4 03 04 00 BA 3F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B3 01 00 35 04 06 00 96 00 00 43 [20:29:35]Write i2c OK [20:29:35]MH_I2C_Read... [20:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:35]Read from MH i2c: E2 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 03 00 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 03 00 31 30 00 90 00 D5 [20:29:35]RAPDU: 90 00 [20:29:35]wFMCommunicate OK [20:29:35]wFMCommunicate request_size=10 [20:29:35]MH_SAM_APDU [20:29:35]CAPDU: 80 0D 02 02 05 43 81 19 50 CF [20:29:35]Write to MH i2c: E2 0D 00 32 30 80 0D 02 02 05 00 43 81 19 50 CF 00 00 E2 [20:29:35]Write i2c OK [20:29:35]MH_I2C_Read... [20:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:35]Read from MH i2c: E2 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 03 00 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 03 00 32 30 00 90 00 D6 [20:29:35]RAPDU: 90 00 [20:29:35]wFMCommunicate OK [20:29:35]wFMCommunicate request_size=4 [20:29:35]MH_SAM_APDU [20:29:35]CAPDU: 80 0D 03 02 [20:29:35]Write to MH i2c: E2 08 00 33 30 80 0D 03 02 00 00 00 00 DE [20:29:35]Write i2c OK [20:29:35]MH_I2C_Read... [20:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:35]Read from MH i2c: E2 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 0B 00 [20:29:35]MH_I2C_Read... [20:29:35]Read from MH i2c: E2 0B 00 33 30 00 F3 CF CA 84 18 AF CE 6C 90 00 F0 [20:29:35]RAPDU: F3 CF CA 84 18 AF CE 6C 90 00 [20:29:35]wFMCommunicate OK [20:29:35]SAM_PROTO_SignData done [20:29:35]FM_MakeSignedData done [20:29:35]CreateOFDProtocolMessage [20:29:35]wFMCommunicate request_size=4 [20:29:35]MH_SAM_APDU [20:29:35]CAPDU: 80 11 00 00 [20:29:35]Write to MH i2c: E2 08 00 34 30 80 11 00 00 00 00 00 00 DE [20:29:35]Write i2c OK [20:29:35]MH_I2C_Read... [20:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:36]Read from MH i2c: E2 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: E2 17 00 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: E2 17 00 34 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 30 [20:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:29:36]wFMCommunicate OK [20:29:36]CreateOFDProtocolMessage done [20:29:36]OFDSenderStorePacket 111493 [20:29:36]StoreOFDPacket docnum=111493 [20:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 3F 07 01 E9 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 F2 00 00 00 F4 03 04 00 BA 3F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B3 01 00 35 04 06 00 96 43 81 19 50 CF F3 CF CA 84 18 AF CE 6C [20:29:36]CheckFolder [20:29:36]dirname=/storage/ofd_packets [20:29:36]CheckFolder done [20:29:36]ProducePacketName [20:29:36]name=ofd_packets/00111493 [20:29:36]NVStorageSaveData ofd_packets/00111493 [20:29:36]File name is /storage/ofd_packets/00111493 [20:29:36]Write 301 bytes [20:29:36]NVStorageSaveData done [20:29:36]OFDSenderStorePacket done [20:29:36]KKMCreateOFDPacket done [20:29:36]NVStorageSaveData kkm_last_timestamp [20:29:36]File name is /storage/kkm_last_timestamp [20:29:36]Write 4 bytes [20:29:36]NVStorageSaveData done [20:29:36]ExternCall_PrintAddStr [20:29:36]wPrintStart [20:29:36]Write to MH i2c: 01 00 00 35 30 65 [20:29:36]Write i2c OK [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 07 00 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 07 00 35 30 00 00 00 00 00 FF 0F 7A [20:29:36]RasterBufferAndPrint [20:29:36]line Счет N : (1)320081 [20:29:36]line ИНН: 02508201610067 [20:29:36]line Контрольно-Кассовый Чек [20:29:36]line ПРОДАЖА [20:29:36]line ТРК (МРК, ГНК) : 11 [20:29:36]line Товар: 2710124130 [20:29:36]line Аи-92-К-5 [20:29:36]line 4.520 * 66.40 [20:29:36]line = 300.13 [20:29:36]line НДС 12% НСП 1% [20:29:36]line > о реализуемом товаре [20:29:36]line ОКРУГЛЕНИЕ: -0.13 [20:29:36]line ИТОГО: 300.00 [20:29:36]line Внесено: 300.00 [20:29:36]line СДАЧА: 0.00 [20:29:36]line НСП 1% : 2.66 [20:29:36]line НДС 12% : 31.87 [20:29:36]line Наличными: 300.00 [20:29:36]line Безнал.: 0.00 [20:29:36]line Место: АЗС № 65 "Партнер Нефть" [20:29:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:29:36]line СНО: Общий режим [20:29:36]line Чек 242 19.06.2024 20:29 [20:29:36]line Смена: 388 ФФД: 1.0 [20:29:36]line ЗНМ: 0300000198 [20:29:36]line РНМ: 0000000000092771 [20:29:36]line Версия ККМ: 001 [20:29:36]line ФМ: 0000000000875083 [20:29:36]line ФД: 111493 [20:29:36]line ФПД: 165216672895183 [20:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T202946&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111493&fm=165216672895183&tin=02508201610067®Number=0000000000092771&sum=30000 [20:29:36]OFD Sender: Processing packet 111493 [packets to send 38, broken 37] [20:29:36]ProducePacketName [20:29:36]name=ofd_packets/00111493 [20:29:36]OFD Sender: To server: pG, [20:29:36]CommunicateWithHost lk.salyk.kg:30040 [20:29:36]ConnectInit lk.salyk.kg [20:29:36]written 0, free lines is 4095 [20:29:36]Connected sock=10 [20:29:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 3F 07 01 E9 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 F2 00 00 00 F4 03 04 00 BA 3F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 85 B3 01 00 35 04 06 00 96 43 81 19 50 CF F3 CF CA 84 18 AF CE 6C [20:29:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 48 A1 47 00 D6 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 35 30 38 33 10 04 04 00 85 B3 01 00 F4 03 04 00 19 D7 72 66 B6 04 01 00 00 D1 C8 40 55 9C 74 E4 97 [20:29:36]CommunicateWithHost err = 0 [20:29:36]CheckOFDResponse [20:29:36]1017 (14) - 77093643461234 [20:29:36]1041 (16) - 0000000000875083 [20:29:36]1040 (4) - 111493 [20:29:36]1012 (4) - 19.06.2024 13:03 [20:29:36]1206 (1) - 0 [20:29:36]OFD Sender: Remove packet 111493 [20:29:36]ProducePacketName [20:29:36]name=ofd_packets/00111493 [20:29:36]NVStorageDeleteData [20:29:36]Write to MH i2c: 01 00 00 60 30 90 [20:29:36]Write i2c OK [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 07 00 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: 01 07 00 60 30 00 00 00 00 00 DE 0C 81 [20:29:36]RasterBufferAndPrint [20:29:36]line [20:29:36]line [20:29:36]line [20:29:36]line [20:29:36]line [20:29:36]written 0, free lines is 3300 [20:29:36]MH_Cut [20:29:36]Write to MH i2c: D1 01 00 67 30 01 69 [20:29:36]Write i2c OK [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: D1 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: D1 01 00 [20:29:36]MH_I2C_Read... [20:29:36]Read from MH i2c: D1 01 00 67 30 00 68 [20:29:36]Write to MH i2c: 01 00 00 68 30 98 [20:29:36]Write i2c OK [20:29:36]MH_I2C_Read... [20:29:37]OFD Sender: No OFD packet to send [20:29:37]*** Cut start [20:29:37]*** Partial cut [20:29:37]*** CUTSNS_PIN = 1 [20:29:37]*** CUTSNS_PIN = 0 [20:29:37]*** Brake cut motor [20:29:38]Read from MH i2c: 01 [20:29:38]MH_I2C_Read... [20:29:38]*** Stop cut motor [20:29:38]*** Cut end [20:29:38]Read from MH i2c: 01 07 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: 01 07 00 68 30 00 00 00 00 00 FF 0F AD [20:29:38]process_action close_receipt done [20:29:38]requested_data is exist [20:29:38]produce_requested_data [20:29:38]requested_item fm.sn is exist - process it [20:29:38]wFMCommunicate request_size=4 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 11 00 00 [20:29:38]Write to MH i2c: E2 08 00 69 30 80 11 00 00 00 00 00 00 13 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:38]Read from MH i2c: E2 17 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 17 00 69 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [20:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:29:38]wFMCommunicate OK [20:29:38]requested_item fd.num is exist - process it [20:29:38]SAM_PROTO_GetFieldsCounters [20:29:38]wFMCommunicate request_size=4 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 13 00 00 [20:29:38]Write to MH i2c: E2 08 00 6A 30 80 13 00 00 00 00 00 00 16 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 62 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 62 00 6A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 85 B3 01 00 0E 04 04 00 84 01 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 CB [20:29: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 85 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:29:38]wFMCommunicate OK [20:29:38]SAM_PROTO_GetFieldsCounters done [20:29:38]requested_item shift.num is exist - process it [20:29:38]requested_item shift.opened is exist - process it [20:29:38]req_shift_opened [20:29:38]FM_GetShiftState [20:29:38]SAM_PROTO_GetShiftState [20:29:38]wFMCommunicate request_size=4 [20:29:38]MH_SAM_APDU [20:29:38]CAPDU: 80 13 01 00 [20:29:38]Write to MH i2c: E2 08 00 6B 30 80 13 01 00 00 00 00 00 18 [20:29:38]Write i2c OK [20:29:38]MH_I2C_Read... [20:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:38]Read from MH i2c: E2 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 0E 00 [20:29:38]MH_I2C_Read... [20:29:38]Read from MH i2c: E2 0E 00 6B 30 00 09 00 01 31 35 72 66 00 00 00 00 90 00 62 [20:29:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:29:38]wFMCommunicate OK [20:29:38]SAM_PROTO_GetShiftState done [20:29:38]FM_GetShiftState done [20:29:38]req_shift_opened done [20:29:38]requested_item shift.open_date is exist - process it [20:29:38]req_shift_open_date [20:29:38]req_shift_open_date done [20:29:38]produce_requested_data done [20:29:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111493,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:29:38]process_action_free close_receipt [20:29:38]json_value_free [20:29:38]json_value_free done [20:29:38]process_json_proto returns [20:29:38]Send response to host [20:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111493,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:29:38]free response buf [20:29:38]execute_script done [20:29:38]execute_script returns [20:29:38]free content buf [20:29:38]Sock 9.Close socket [20:29:38]Sock 9.Thread stoped [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:39]accept exits with 7 [20:32:39]New connection [20:32:39]New thread 3067465060 created [20:32:39]Thread 3067321700 joined [20:32:39]Waiting for new connection... [20:32:39] Sock 7.Parse request [20:32:39]Sock 7.Check first char [20:32:39]Sock 7.First char is OK [20:32:39]request: POST /json_proto HTTP/1.0 [20:32:39]Method: POST [20:32:39]URL: /json_proto [20:32:39]Method is POST - this is cgi request [20:32:39]url: /json_proto [20:32:39]query_string will be loaded in cgi processing [20:32:39]execute_cgi json_proto POST (null) [20:32:39]execute_cgi path=json_proto method=POST [20:32:39]POST find Content-Length [20:32:39]Host: 172.17.59.68:8080 [20:32:39]Content-Length: 674 [20:32:39]Content-Type: application/json [20:32:39] [20:32:39]POST finish read [20:32:39]Found Content-Length = 674 [20:32:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:39]execute_script... [20:32:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:39]POST & json_proto [20:32:39]process_json_proto [20:32:39]json parsed OK: [20:32:39]protocol is kg_v1.0 [20:32:39]action value=close_receipt [20:32:39]process_action close_receipt [20:32:39]cmd_close_receipt [20:32:39]MH_GetDate [20:32:39]Write to MH i2c: F0 00 00 6C 30 8B [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: F0 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: F0 09 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: F0 09 00 6C 30 00 73 40 73 66 BC EC 60 65 8D [20:32:39]GetLastDocTimeStamp 1718828986 [20:32:39]current date 1718829171 [20:32:39]FM_GetShiftState [20:32:39]SAM_PROTO_GetShiftState [20:32:39]wFMCommunicate request_size=4 [20:32:39]MH_SAM_APDU [20:32:39]CAPDU: 80 13 01 00 [20:32:39]Write to MH i2c: E2 08 00 6D 30 80 13 01 00 00 00 00 00 1A [20:32:39]Write i2c OK [20:32:39]MH_I2C_Read... [20:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:39]Read from MH i2c: E2 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 0E 00 [20:32:39]MH_I2C_Read... [20:32:39]Read from MH i2c: E2 0E 00 6D 30 00 09 00 01 31 35 72 66 00 00 00 00 90 00 64 [20:32:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:32:39]wFMCommunicate OK [20:32:39]SAM_PROTO_GetShiftState done [20:32:39]FM_GetShiftState done [20:32:39]opened in 1718760753 [20:32:39]opened+sec_in_day 1718847153 [20:32:39]quantity*price = 40022 [20:32:39]sum+1 = 40023 [20:32:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 243 19.06.2024 20:32 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111494 ФПД: 176363901644965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T203251&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111494&fm=176363901644965&tin=02508201610067®Number=0000000000092771&sum=40000 [20:32:41]StoreToDocumentArchive [20:32:41]shift 388 fd 111494 [20:32:41]save to /storage/0388/doc_00111494 [20:32:41]save last doc name /storage/0388/doc_00111494 to /storage/kkm_last_doc_name [20:32:41]save OK [20:32:41]Clear old archive folders... [20:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:32:41]tlvbuf is 00F07E60 [20:32:41]SAM_PROTO_ClearQueue [20:32:41]wFMCommunicate request_size=4 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 09 00 00 [20:32:41]Write to MH i2c: E2 08 00 7A 30 80 09 00 00 00 00 00 00 1C [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 03 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 03 00 7A 30 00 90 00 1E [20:32:41]RAPDU: 90 00 [20:32:41]wFMCommunicate OK [20:32:41]SAM_PROTO_ClearQueue done [20:32:41]KKMCreateOFDPacket [20:32:41]OFDProtocolAddRootSTLVToBuf [20:32:41]FM_MakeSignedData [20:32:41]FM_MakeSignedData [20:32:41]SAM_PROTO_SignData [20:32:41]wFMCommunicate request_size=4 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 0D 01 02 [20:32:41]Write to MH i2c: E2 08 00 7B 30 80 0D 01 02 00 00 00 00 24 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 03 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 03 00 7B 30 00 90 00 1F [20:32:41]RAPDU: 90 00 [20:32:41]wFMCommunicate OK [20:32:41]wFMCommunicate request_size=255 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 73 40 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B3 01 00 35 04 06 00 A0 66 EB B5 [20:32:41]Write to MH i2c: E2 02 01 7C 30 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 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 73 40 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B3 01 00 35 04 06 00 A0 66 EB B5 00 00 39 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 03 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 03 00 7C 30 00 90 00 20 [20:32:41]RAPDU: 90 00 [20:32:41]wFMCommunicate OK [20:32:41]wFMCommunicate request_size=7 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 0D 02 02 02 70 A5 [20:32:41]Write to MH i2c: E2 0A 00 7D 30 80 0D 02 02 02 00 70 A5 00 00 40 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 03 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 03 00 7D 30 00 90 00 21 [20:32:41]RAPDU: 90 00 [20:32:41]wFMCommunicate OK [20:32:41]wFMCommunicate request_size=4 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 0D 03 02 [20:32:41]Write to MH i2c: E2 08 00 7E 30 80 0D 03 02 00 00 00 00 29 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 0B 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 0B 00 7E 30 00 2C 24 34 FA 94 3E 7A 47 90 00 3B [20:32:41]RAPDU: 2C 24 34 FA 94 3E 7A 47 90 00 [20:32:41]wFMCommunicate OK [20:32:41]SAM_PROTO_SignData done [20:32:41]FM_MakeSignedData done [20:32:41]CreateOFDProtocolMessage [20:32:41]wFMCommunicate request_size=4 [20:32:41]MH_SAM_APDU [20:32:41]CAPDU: 80 11 00 00 [20:32:41]Write to MH i2c: E2 08 00 7F 30 80 11 00 00 00 00 00 00 29 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:41]Read from MH i2c: E2 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 17 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: E2 17 00 7F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [20:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:32:41]wFMCommunicate OK [20:32:41]CreateOFDProtocolMessage done [20:32:41]OFDSenderStorePacket 111494 [20:32:41]StoreOFDPacket docnum=111494 [20:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 DC AC 04 01 67 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 73 40 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B3 01 00 35 04 06 00 A0 66 EB B5 70 A5 2C 24 34 FA 94 3E 7A 47 [20:32:41]CheckFolder [20:32:41]dirname=/storage/ofd_packets [20:32:41]CheckFolder done [20:32:41]ProducePacketName [20:32:41]name=ofd_packets/00111494 [20:32:41]NVStorageSaveData ofd_packets/00111494 [20:32:41]File name is /storage/ofd_packets/00111494 [20:32:41]Write 298 bytes [20:32:41]NVStorageSaveData done [20:32:41]OFDSenderStorePacket done [20:32:41]KKMCreateOFDPacket done [20:32:41]NVStorageSaveData kkm_last_timestamp [20:32:41]File name is /storage/kkm_last_timestamp [20:32:41]Write 4 bytes [20:32:41]NVStorageSaveData done [20:32:41]ExternCall_PrintAddStr [20:32:41]wPrintStart [20:32:41]Write to MH i2c: 01 00 00 80 30 B0 [20:32:41]Write i2c OK [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 07 00 [20:32:41]MH_I2C_Read... [20:32:41]Read from MH i2c: 01 07 00 80 30 00 00 00 00 00 FF 0F C5 [20:32:41]RasterBufferAndPrint [20:32:41]line Счет N : (1)320082 [20:32:41]line ИНН: 02508201610067 [20:32:41]line Контрольно-Кассовый Чек [20:32:41]line ПРОДАЖА [20:32:41]line ТРК (МРК, ГНК) : 22 [20:32:41]line Товар: 2710194210 [20:32:41]line ДТ-К-5 [20:32:41]line 5.490 * 72.90 [20:32:41]line = 400.22 [20:32:41]line НДС 12% НСП 1% [20:32:41]line > о реализуемом товаре [20:32:41]line ОКРУГЛЕНИЕ: -0.22 [20:32:41]line ИТОГО: 400.00 [20:32:41]line Внесено: 400.00 [20:32:41]line СДАЧА: 0.00 [20:32:41]line НСП 1% : 3.54 [20:32:41]line НДС 12% : 42.50 [20:32:41]line Наличными: 400.00 [20:32:41]line Безнал.: 0.00 [20:32:41]line Место: АЗС № 65 "Партнер Нефть" [20:32:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:32:41]line СНО: Общий режим [20:32:41]line Чек 243 19.06.2024 20:32 [20:32:41]line Смена: 388 ФФД: 1.0 [20:32:41]line ЗНМ: 0300000198 [20:32:41]line РНМ: 0000000000092771 [20:32:41]line Версия ККМ: 001 [20:32:41]line ФМ: 0000000000875083 [20:32:41]line ФД: 111494 [20:32:41]line ФПД: 176363901644965 [20:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T203251&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111494&fm=176363901644965&tin=02508201610067®Number=0000000000092771&sum=40000 [20:32:41]OFD Sender: Processing packet 111494 [packets to send 38, broken 37] [20:32:41]ProducePacketName [20:32:41]name=ofd_packets/00111494 [20:32:41]OFD Sender: To server: pG, [20:32:41]CommunicateWithHost lk.salyk.kg:30040 [20:32:41]ConnectInit lk.salyk.kg [20:32:41]written 0, free lines is 4095 [20:32:42]Connected sock=10 [20:32:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 DC AC 04 01 67 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 73 40 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 86 B3 01 00 35 04 06 00 A0 66 EB B5 70 A5 2C 24 34 FA 94 3E 7A 47 [20:32:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 1B 23 47 00 35 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 35 30 38 33 10 04 04 00 86 B3 01 00 F4 03 04 00 D3 D7 72 66 B6 04 01 00 00 B7 D5 9D 68 4B 04 97 73 [20:32:42]CommunicateWithHost err = 0 [20:32:42]CheckOFDResponse [20:32:42]1017 (14) - 77093643461234 [20:32:42]1041 (16) - 0000000000875083 [20:32:42]1040 (4) - 111494 [20:32:42]1012 (4) - 19.06.2024 13:06 [20:32:42]1206 (1) - 0 [20:32:42]OFD Sender: Remove packet 111494 [20:32:42]ProducePacketName [20:32:42]name=ofd_packets/00111494 [20:32:42]NVStorageDeleteData [20:32:42]Write to MH i2c: 01 00 00 AB 30 DB [20:32:42]Write i2c OK [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: 01 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: 01 07 00 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: 01 07 00 AB 30 00 00 00 00 00 DD 0C CB [20:32:42]RasterBufferAndPrint [20:32:42]line [20:32:42]line [20:32:42]line [20:32:42]line [20:32:42]line [20:32:42]written 0, free lines is 3302 [20:32:42]MH_Cut [20:32:42]Write to MH i2c: D1 01 00 B2 30 01 B4 [20:32:42]Write i2c OK [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: D1 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: D1 01 00 [20:32:42]MH_I2C_Read... [20:32:42]Read from MH i2c: D1 01 00 B2 30 00 B3 [20:32:42]Write to MH i2c: 01 00 00 B3 30 E3 [20:32:42]Write i2c OK [20:32:42]MH_I2C_Read... [20:32:42]OFD Sender: No OFD packet to send [20:32:43]*** Cut start [20:32:43]*** Partial cut [20:32:43]*** CUTSNS_PIN = 1 [20:32:43]*** CUTSNS_PIN = 0 [20:32:43]*** Brake cut motor [20:32:43]Read from MH i2c: 01 [20:32:43]MH_I2C_Read... [20:32:43]*** Stop cut motor [20:32:43]*** Cut end [20:32:43]Read from MH i2c: 01 07 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: 01 07 00 B3 30 00 00 00 00 00 FF 0F F8 [20:32:43]process_action close_receipt done [20:32:43]requested_data is exist [20:32:43]produce_requested_data [20:32:43]requested_item fm.sn is exist - process it [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 11 00 00 [20:32:43]Write to MH i2c: E2 08 00 B4 30 80 11 00 00 00 00 00 00 5E [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 17 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 17 00 B4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [20:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:32:43]wFMCommunicate OK [20:32:43]requested_item fd.num is exist - process it [20:32:43]SAM_PROTO_GetFieldsCounters [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 13 00 00 [20:32:43]Write to MH i2c: E2 08 00 B5 30 80 13 00 00 00 00 00 00 61 [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:43]Read from MH i2c: E2 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 62 00 [20:32:43]MH_I2C_Read... [20:32:43]Read from MH i2c: E2 62 00 B5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B3 01 00 0E 04 04 00 84 01 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 1A [20:32: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:43]wFMCommunicate OK [20:32:43]SAM_PROTO_GetFieldsCounters done [20:32:43]requested_item shift.num is exist - process it [20:32:43]requested_item shift.opened is exist - process it [20:32:43]req_shift_opened [20:32:43]FM_GetShiftState [20:32:43]SAM_PROTO_GetShiftState [20:32:43]wFMCommunicate request_size=4 [20:32:43]MH_SAM_APDU [20:32:43]CAPDU: 80 13 01 00 [20:32:43]Write to MH i2c: E2 08 00 B6 30 80 13 01 00 00 00 00 00 63 [20:32:43]Write i2c OK [20:32:43]MH_I2C_Read... [20:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:44]Read from MH i2c: E2 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: E2 0E 00 [20:32:44]MH_I2C_Read... [20:32:44]Read from MH i2c: E2 0E 00 B6 30 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AD [20:32:44]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:32:44]wFMCommunicate OK [20:32:44]SAM_PROTO_GetShiftState done [20:32:44]FM_GetShiftState done [20:32:44]req_shift_opened done [20:32:44]requested_item shift.open_date is exist - process it [20:32:44]req_shift_open_date [20:32:44]req_shift_open_date done [20:32:44]produce_requested_data done [20:32:44]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111494,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:32:44]process_action_free close_receipt [20:32:44]json_value_free [20:32:44]json_value_free done [20:32:44]process_json_proto returns [20:32:44]Send response to host [20:32:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111494,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:32:44]free response buf [20:32:44]execute_script done [20:32:44]execute_script returns [20:32:44]free content buf [20:32:44]Sock 7.Close socket [20:32:44]Sock 7.Thread stoped [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:25]accept exits with 9 [20:38:25]New connection [20:38:25]New thread 3067321700 created [20:38:25]Thread 3067465060 joined [20:38:25]Waiting for new connection... [20:38:25] Sock 9.Parse request [20:38:25]Sock 9.Check first char [20:38:25]Sock 9.First char is OK [20:38:25]request: POST /json_proto HTTP/1.0 [20:38:25]Method: POST [20:38:25]URL: /json_proto [20:38:25]Method is POST - this is cgi request [20:38:25]url: /json_proto [20:38:25]query_string will be loaded in cgi processing [20:38:25]execute_cgi json_proto POST (null) [20:38:25]execute_cgi path=json_proto method=POST [20:38:25]POST find Content-Length [20:38:25]Host: 172.17.59.68:8080 [20:38:25]Content-Length: 1198 [20:38:25]Content-Type: application/json [20:38:25] [20:38:25]POST finish read [20:38:25]Found Content-Length = 1198 [20:38:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320083\u000A19.06.2024 19:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:25]execute_script... [20:38:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320083\u000A19.06.2024 19:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.580 x 72.90\u000A\u0418\u0422\u041E\u0413: 1500.28\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:25]POST & json_proto [20:38:25]process_json_proto [20:38:25]json parsed OK: [20:38:25]protocol is kg_v1.0 [20:38:25]action value=print_text [20:38:25]process_action print_text [20:38:25]cmd_print_text [20:38:25]ExternCall_PrintAddStr [20:38:25]wPrintStart [20:38:25]Write to MH i2c: 01 00 00 B7 30 E7 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 07 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 07 00 B7 30 00 00 00 00 00 FF 0F FC [20:38:25]RasterBufferAndPrint [20:38:25]line *****ТОВАРНЫЙ ЧЕК***** [20:38:25]line АЗС 65 [20:38:25]line Партнер нефть [20:38:25]line 02508201610067 [20:38:25]line Кассир : Амантуров Р. [20:38:25]line Счет N : (1)320083 [20:38:25]line 19.06.2024 19:06 [20:38:25]line ПРОДАЖА [20:38:25]line ТРК (МРК, ГНК): 22 [20:38:25]line Вид ГСМ : 2710194210 [20:38:25]line ДТ-К-5 [20:38:25]line 20.580 x 72.90 [20:38:25]line ИТОГ: 1500.28 [20:38:25]line Тип оплаты: Талоны: Топливная Карта [20:38:25]line 01591 [20:38:25]line ______________________ [20:38:25]line (подпись) [20:38:25]written 0, free lines is 4095 [20:38:25]Write to MH i2c: 01 00 00 CB 30 FB [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 07 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 07 00 CB 30 00 00 00 00 00 0F 0E 1F [20:38:25]RasterBufferAndPrint [20:38:25]line [20:38:25]line [20:38:25]line [20:38:25]line [20:38:25]line [20:38:25]written 0, free lines is 3600 [20:38:25]MH_Cut [20:38:25]Write to MH i2c: D1 01 00 D2 30 01 D4 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: D1 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: D1 01 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: D1 01 00 D2 30 00 D3 [20:38:25]Write to MH i2c: 01 00 00 D3 30 03 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:26]*** Cut start [20:38:26]*** Partial cut [20:38:26]*** CUTSNS_PIN = 1 [20:38:26]*** CUTSNS_PIN = 0 [20:38:26]*** Brake cut motor [20:38:26]Read from MH i2c: 01 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 [20:38:26]MH_I2C_Read... [20:38:26]*** Stop cut motor [20:38:26]*** Cut end [20:38:26]Read from MH i2c: 01 07 00 D3 30 00 00 00 00 00 FF 0F 18 [20:38:26]process_action print_text done [20:38:26]requested_data is exist [20:38:26]produce_requested_data [20:38:26]requested_item fm.sn is exist - process it [20:38:26]wFMCommunicate request_size=4 [20:38:26]MH_SAM_APDU [20:38:26]CAPDU: 80 11 00 00 [20:38:26]Write to MH i2c: E2 08 00 D4 30 80 11 00 00 00 00 00 00 7E [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:26]Read from MH i2c: E2 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 17 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 17 00 D4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D0 [20:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:38:26]wFMCommunicate OK [20:38:26]requested_item fd.num is exist - process it [20:38:26]SAM_PROTO_GetFieldsCounters [20:38:26]wFMCommunicate request_size=4 [20:38:26]MH_SAM_APDU [20:38:26]CAPDU: 80 13 00 00 [20:38:26]Write to MH i2c: E2 08 00 D5 30 80 13 00 00 00 00 00 00 81 [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:26]Read from MH i2c: E2 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 62 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 62 00 D5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B3 01 00 0E 04 04 00 84 01 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 3A [20:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 86 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:26]wFMCommunicate OK [20:38:26]SAM_PROTO_GetFieldsCounters done [20:38:26]requested_item shift.num is exist - process it [20:38:26]requested_item shift.opened is exist - process it [20:38:26]req_shift_opened [20:38:26]FM_GetShiftState [20:38:26]SAM_PROTO_GetShiftState [20:38:26]wFMCommunicate request_size=4 [20:38:26]MH_SAM_APDU [20:38:26]CAPDU: 80 13 01 00 [20:38:26]Write to MH i2c: E2 08 00 D6 30 80 13 01 00 00 00 00 00 83 [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:26]Read from MH i2c: E2 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 0E 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 0E 00 D6 30 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CD [20:38:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:38:26]wFMCommunicate OK [20:38:26]SAM_PROTO_GetShiftState done [20:38:26]FM_GetShiftState done [20:38:26]req_shift_opened done [20:38:26]requested_item shift.open_date is exist - process it [20:38:26]req_shift_open_date [20:38:26]req_shift_open_date done [20:38:26]produce_requested_data done [20:38:26]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111494,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:38:26]process_action_free print_text [20:38:26]json_value_free [20:38:26]json_value_free done [20:38:26]process_json_proto returns [20:38:26]Send response to host [20:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111494,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:38:26]free response buf [20:38:26]execute_script done [20:38:26]execute_script returns [20:38:26]free content buf [20:38:26]Sock 9.Close socket [20:38:26]Sock 9.Thread stoped [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:14]accept exits with 7 [20:42:14]New connection [20:42:14]New thread 3067465060 created [20:42:14]Thread 3067321700 joined [20:42:14]Waiting for new connection... [20:42:14] Sock 7.Parse request [20:42:14]Sock 7.Check first char [20:42:14]Sock 7.First char is OK [20:42:14]request: POST /json_proto HTTP/1.0 [20:42:14]Method: POST [20:42:14]URL: /json_proto [20:42:14]Method is POST - this is cgi request [20:42:14]url: /json_proto [20:42:14]query_string will be loaded in cgi processing [20:42:14]execute_cgi json_proto POST (null) [20:42:14]execute_cgi path=json_proto method=POST [20:42:14]POST find Content-Length [20:42:14]Host: 172.17.59.68:8080 [20:42:14]Content-Length: 677 [20:42:14]Content-Type: application/json [20:42:14] [20:42:14]POST finish read [20:42:14]Found Content-Length = 677 [20:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:14]execute_script... [20:42: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)320084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:14]POST & json_proto [20:42:14]process_json_proto [20:42:14]json parsed OK: [20:42:14]protocol is kg_v1.0 [20:42:14]action value=close_receipt [20:42:14]process_action close_receipt [20:42:14]cmd_close_receipt [20:42:14]MH_GetDate [20:42:14]Write to MH i2c: F0 00 00 D7 30 F6 [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: F0 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: F0 09 00 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: F0 09 00 D7 30 00 B2 42 73 66 BC EC 60 65 39 [20:42:14]GetLastDocTimeStamp 1718829171 [20:42:14]current date 1718829746 [20:42:14]FM_GetShiftState [20:42:14]SAM_PROTO_GetShiftState [20:42:14]wFMCommunicate request_size=4 [20:42:14]MH_SAM_APDU [20:42:14]CAPDU: 80 13 01 00 [20:42:14]Write to MH i2c: E2 08 00 D8 30 80 13 01 00 00 00 00 00 85 [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:14]Read from MH i2c: E2 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: E2 0E 00 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: E2 0E 00 D8 30 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CF [20:42:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:42:14]wFMCommunicate OK [20:42:14]SAM_PROTO_GetShiftState done [20:42:14]FM_GetShiftState done [20:42:14]opened in 1718760753 [20:42:14]opened+sec_in_day 1718847153 [20:42:14]quantity*price = 30012 [20:42:14]sum+1 = 30014 [20:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 244 19.06.2024 20:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111495 ФПД: 99387099139039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204226&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111495&fm=99387099139039&tin=02508201610067®Number=0000000000092771&sum=30000 [20:42:16]StoreToDocumentArchive [20:42:16]shift 388 fd 111495 [20:42:16]save to /storage/0388/doc_00111495 [20:42:16]save last doc name /storage/0388/doc_00111495 to /storage/kkm_last_doc_name [20:42:16]save OK [20:42:16]Clear old archive folders... [20:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:16]tlvbuf is 00F50970 [20:42:16]SAM_PROTO_ClearQueue [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 09 00 00 [20:42:16]Write to MH i2c: E2 08 00 E5 30 80 09 00 00 00 00 00 00 87 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 E5 30 00 90 00 89 [20:42:16]RAPDU: 90 00 [20:42:16]wFMCommunicate OK [20:42:16]SAM_PROTO_ClearQueue done [20:42:16]KKMCreateOFDPacket [20:42:16]OFDProtocolAddRootSTLVToBuf [20:42:16]FM_MakeSignedData [20:42:16]FM_MakeSignedData [20:42:16]SAM_PROTO_SignData [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 0D 01 02 [20:42:16]Write to MH i2c: E2 08 00 E6 30 80 0D 01 02 00 00 00 00 8F [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 E6 30 00 90 00 8A [20:42:16]RAPDU: 90 00 [20:42:16]wFMCommunicate OK [20:42:16]wFMCommunicate request_size=255 [20:42:16]MH_SAM_APDU [20:42: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 F4 00 00 00 F4 03 04 00 B2 42 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B3 01 00 35 04 06 00 5A [20:42:16]Write to MH i2c: E2 02 01 E7 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 F4 00 00 00 F4 03 04 00 B2 42 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B3 01 00 35 04 06 00 5A 00 00 BC [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 E7 30 00 90 00 8B [20:42:16]RAPDU: 90 00 [20:42:16]wFMCommunicate OK [20:42:16]wFMCommunicate request_size=10 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 0D 02 02 05 64 5C BD 4B DF [20:42:16]Write to MH i2c: E2 0D 00 E8 30 80 0D 02 02 05 00 64 5C BD 4B DF 00 00 43 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [20:42:16]RAPDU: 90 00 [20:42:16]wFMCommunicate OK [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 0D 03 02 [20:42:16]Write to MH i2c: E2 08 00 E9 30 80 0D 03 02 00 00 00 00 94 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 0B 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 0B 00 E9 30 00 63 8D 79 CC A4 FF D1 F2 90 00 30 [20:42:16]RAPDU: 63 8D 79 CC A4 FF D1 F2 90 00 [20:42:16]wFMCommunicate OK [20:42:16]SAM_PROTO_SignData done [20:42:16]FM_MakeSignedData done [20:42:16]CreateOFDProtocolMessage [20:42:16]wFMCommunicate request_size=4 [20:42:16]MH_SAM_APDU [20:42:16]CAPDU: 80 11 00 00 [20:42:16]Write to MH i2c: E2 08 00 EA 30 80 11 00 00 00 00 00 00 94 [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:16]Read from MH i2c: E2 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 17 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: E2 17 00 EA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E6 [20:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:42:16]wFMCommunicate OK [20:42:16]CreateOFDProtocolMessage done [20:42:16]OFDSenderStorePacket 111495 [20:42:16]StoreOFDPacket docnum=111495 [20:42:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 E4 07 01 E1 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 F4 00 00 00 F4 03 04 00 B2 42 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B3 01 00 35 04 06 00 5A 64 5C BD 4B DF 63 8D 79 CC A4 FF D1 F2 [20:42:16]CheckFolder [20:42:16]dirname=/storage/ofd_packets [20:42:16]CheckFolder done [20:42:16]ProducePacketName [20:42:16]name=ofd_packets/00111495 [20:42:16]NVStorageSaveData ofd_packets/00111495 [20:42:16]File name is /storage/ofd_packets/00111495 [20:42:16]Write 301 bytes [20:42:16]NVStorageSaveData done [20:42:16]OFDSenderStorePacket done [20:42:16]KKMCreateOFDPacket done [20:42:16]NVStorageSaveData kkm_last_timestamp [20:42:16]File name is /storage/kkm_last_timestamp [20:42:16]Write 4 bytes [20:42:16]NVStorageSaveData done [20:42:16]ExternCall_PrintAddStr [20:42:16]wPrintStart [20:42:16]Write to MH i2c: 01 00 00 EB 30 1B [20:42:16]Write i2c OK [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 [20:42:16]MH_I2C_Read... [20:42:16]Read from MH i2c: 01 07 00 EB 30 00 00 00 00 00 FF 0F 30 [20:42:16]RasterBufferAndPrint [20:42:16]line Счет N : (1)320084 [20:42:16]line ИНН: 02508201610067 [20:42:16]line Контрольно-Кассовый Чек [20:42:16]line ПРОДАЖА [20:42:16]line ТРК (МРК, ГНК) : 11 [20:42:16]line Товар: 2710124130 [20:42:16]line Аи-92-К-5 [20:42:16]line 4.520 * 66.40 [20:42:16]line = 300.13 [20:42:16]line НДС 12% НСП 1% [20:42:16]line > о реализуемом товаре [20:42:16]line ОКРУГЛЕНИЕ: -0.13 [20:42:16]line ИТОГО: 300.00 [20:42:16]line Внесено: 300.00 [20:42:16]line СДАЧА: 0.00 [20:42:16]line НСП 1% : 2.66 [20:42:16]line НДС 12% : 31.87 [20:42:16]line Наличными: 300.00 [20:42:16]line Безнал.: 0.00 [20:42:16]line Место: АЗС № 65 "Партнер Нефть" [20:42:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:42:16]line СНО: Общий режим [20:42:16]line Чек 244 19.06.2024 20:42 [20:42:16]line Смена: 388 ФФД: 1.0 [20:42:16]line ЗНМ: 0300000198 [20:42:16]line РНМ: 0000000000092771 [20:42:16]line Версия ККМ: 001 [20:42:16]line ФМ: 0000000000875083 [20:42:16]line ФД: 111495 [20:42:16]line ФПД: 99387099139039 [20:42:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204226&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111495&fm=99387099139039&tin=02508201610067®Number=0000000000092771&sum=30000 [20:42:16]OFD Sender: Processing packet 111495 [packets to send 38, broken 37] [20:42:16]ProducePacketName [20:42:16]name=ofd_packets/00111495 [20:42:16]OFD Sender: To server: pG, [20:42:16]CommunicateWithHost lk.salyk.kg:30040 [20:42:16]ConnectInit lk.salyk.kg [20:42:16]written 0, free lines is 4095 [20:42:16]Connected sock=10 [20:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 B0 E4 07 01 E1 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 F4 00 00 00 F4 03 04 00 B2 42 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B3 01 00 35 04 06 00 5A 64 5C BD 4B DF 63 8D 79 CC A4 FF D1 F2 [20:42:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3B 1B 47 00 87 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 87 B3 01 00 F4 03 04 00 11 DA 72 66 B6 04 01 00 00 D9 66 CF E6 75 79 07 D6 [20:42:17]CommunicateWithHost err = 0 [20:42:17]CheckOFDResponse [20:42:17]1017 (14) - 77093643461234 [20:42:17]1041 (16) - 0000000000875083 [20:42:17]1040 (4) - 111495 [20:42:17]1012 (4) - 19.06.2024 13:16 [20:42:17]1206 (1) - 0 [20:42:17]OFD Sender: Remove packet 111495 [20:42:17]ProducePacketName [20:42:17]name=ofd_packets/00111495 [20:42:17]NVStorageDeleteData [20:42:17]Write to MH i2c: 01 00 00 16 31 47 [20:42:17]Write i2c OK [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 07 00 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: 01 07 00 16 31 00 00 00 00 00 D4 0C 2E [20:42:17]RasterBufferAndPrint [20:42:17]line [20:42:17]line [20:42:17]line [20:42:17]line [20:42:17]line [20:42:17]written 0, free lines is 3292 [20:42:17]MH_Cut [20:42:17]Write to MH i2c: D1 01 00 1D 31 01 20 [20:42:17]Write i2c OK [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: D1 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: D1 01 00 [20:42:17]MH_I2C_Read... [20:42:17]Read from MH i2c: D1 01 00 1D 31 00 1F [20:42:17]Write to MH i2c: 01 00 00 1E 31 4F [20:42:17]Write i2c OK [20:42:17]MH_I2C_Read... [20:42:17]OFD Sender: No OFD packet to send [20:42:18]*** Cut start [20:42:18]*** Partial cut [20:42:18]*** CUTSNS_PIN = 1 [20:42:18]*** CUTSNS_PIN = 0 [20:42:18]*** Brake cut motor [20:42:18]Read from MH i2c: 01 [20:42:18]MH_I2C_Read... [20:42:18]*** Stop cut motor [20:42:18]*** Cut end [20:42:18]Read from MH i2c: 01 07 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: 01 07 00 1E 31 00 00 00 00 00 FF 0F 64 [20:42:18]process_action close_receipt done [20:42:18]requested_data is exist [20:42:18]produce_requested_data [20:42:18]requested_item fm.sn is exist - process it [20:42:18]wFMCommunicate request_size=4 [20:42:18]MH_SAM_APDU [20:42:18]CAPDU: 80 11 00 00 [20:42:18]Write to MH i2c: E2 08 00 1F 31 80 11 00 00 00 00 00 00 CA [20:42:18]Write i2c OK [20:42:18]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 17 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 17 00 1F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1C [20:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:42:18]wFMCommunicate OK [20:42:18]requested_item fd.num is exist - process it [20:42:18]SAM_PROTO_GetFieldsCounters [20:42:18]wFMCommunicate request_size=4 [20:42:18]MH_SAM_APDU [20:42:18]CAPDU: 80 13 00 00 [20:42:18]Write to MH i2c: E2 08 00 20 31 80 13 00 00 00 00 00 00 CD [20:42:18]Write i2c OK [20:42:18]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 62 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 62 00 20 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B3 01 00 0E 04 04 00 84 01 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 8A [20:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 87 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:18]wFMCommunicate OK [20:42:18]SAM_PROTO_GetFieldsCounters done [20:42:18]requested_item shift.num is exist - process it [20:42:18]requested_item shift.opened is exist - process it [20:42:18]req_shift_opened [20:42:18]FM_GetShiftState [20:42:18]SAM_PROTO_GetShiftState [20:42:18]wFMCommunicate request_size=4 [20:42:18]MH_SAM_APDU [20:42:18]CAPDU: 80 13 01 00 [20:42:18]Write to MH i2c: E2 08 00 21 31 80 13 01 00 00 00 00 00 CF [20:42:18]Write i2c OK [20:42:18]MH_I2C_Read... [20:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:18]Read from MH i2c: E2 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 0E 00 [20:42:18]MH_I2C_Read... [20:42:18]Read from MH i2c: E2 0E 00 21 31 00 09 00 01 31 35 72 66 00 00 00 00 90 00 19 [20:42:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:42:18]wFMCommunicate OK [20:42:18]SAM_PROTO_GetShiftState done [20:42:18]FM_GetShiftState done [20:42:18]req_shift_opened done [20:42:18]requested_item shift.open_date is exist - process it [20:42:18]req_shift_open_date [20:42:18]req_shift_open_date done [20:42:18]produce_requested_data done [20:42:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111495,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:42:18]process_action_free close_receipt [20:42:18]json_value_free [20:42:18]json_value_free done [20:42:18]process_json_proto returns [20:42:18]Send response to host [20:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111495,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:42:18]free response buf [20:42:18]execute_script done [20:42:18]execute_script returns [20:42:18]free content buf [20:42:18]Sock 7.Close socket [20:42:18]Sock 7.Thread stoped [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]accept exits with 9 [20:44:37]New connection [20:44:37]New thread 3067321700 created [20:44:37]Thread 3067465060 joined [20:44:37]Waiting for new connection... [20:44:37] Sock 9.Parse request [20:44:37]Sock 9.Check first char [20:44:37]Sock 9.First char is OK [20:44:37]request: POST /json_proto HTTP/1.0 [20:44:37]Method: POST [20:44:37]URL: /json_proto [20:44:37]Method is POST - this is cgi request [20:44:37]url: /json_proto [20:44:37]query_string will be loaded in cgi processing [20:44:37]execute_cgi json_proto POST (null) [20:44:37]execute_cgi path=json_proto method=POST [20:44:37]POST find Content-Length [20:44:37]Host: 172.17.59.68:8080 [20:44:37]Content-Length: 677 [20:44:37]Content-Type: application/json [20:44:37] [20:44:37]POST finish read [20:44:37]Found Content-Length = 677 [20:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:37]execute_script... [20: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)320085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44:37]POST & json_proto [20:44:37]process_json_proto [20:44:37]json parsed OK: [20:44:37]protocol is kg_v1.0 [20:44:37]action value=close_receipt [20:44:37]process_action close_receipt [20:44:37]cmd_close_receipt [20:44:37]MH_GetDate [20:44:37]Write to MH i2c: F0 00 00 22 31 42 [20:44:37]Write i2c OK [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: F0 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: F0 09 00 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: F0 09 00 22 31 00 41 43 73 66 BC EC 60 65 15 [20:44:37]GetLastDocTimeStamp 1718829746 [20:44:37]current date 1718829889 [20:44:37]FM_GetShiftState [20:44:37]SAM_PROTO_GetShiftState [20:44:37]wFMCommunicate request_size=4 [20:44:37]MH_SAM_APDU [20:44:37]CAPDU: 80 13 01 00 [20:44:37]Write to MH i2c: E2 08 00 23 31 80 13 01 00 00 00 00 00 D1 [20:44:37]Write i2c OK [20:44:37]MH_I2C_Read... [20:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:37]Read from MH i2c: E2 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: E2 0E 00 [20:44:37]MH_I2C_Read... [20:44:37]Read from MH i2c: E2 0E 00 23 31 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1B [20:44:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:44:37]wFMCommunicate OK [20:44:37]SAM_PROTO_GetShiftState done [20:44:37]FM_GetShiftState done [20:44:37]opened in 1718760753 [20:44:37]opened+sec_in_day 1718847153 [20:44:37]quantity*price = 50065 [20:44:37]sum+1 = 50067 [20:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 245 19.06.2024 20:44 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111496 ФПД: 105610925415201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204449&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111496&fm=105610925415201&tin=02508201610067®Number=0000000000092771&sum=50000 [20:44:38]StoreToDocumentArchive [20:44:38]shift 388 fd 111496 [20:44:38]save to /storage/0388/doc_00111496 [20:44:38]save last doc name /storage/0388/doc_00111496 to /storage/kkm_last_doc_name [20:44:38]save OK [20:44:38]Clear old archive folders... [20:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:38]tlvbuf is 00F50270 [20:44:38]SAM_PROTO_ClearQueue [20:44:38]wFMCommunicate request_size=4 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 09 00 00 [20:44:38]Write to MH i2c: E2 08 00 30 31 80 09 00 00 00 00 00 00 D3 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 30 31 00 90 00 D5 [20:44:38]RAPDU: 90 00 [20:44:38]wFMCommunicate OK [20:44:38]SAM_PROTO_ClearQueue done [20:44:38]KKMCreateOFDPacket [20:44:38]OFDProtocolAddRootSTLVToBuf [20:44:38]FM_MakeSignedData [20:44:38]FM_MakeSignedData [20:44:38]SAM_PROTO_SignData [20:44:38]wFMCommunicate request_size=4 [20:44:38]MH_SAM_APDU [20:44:38]CAPDU: 80 0D 01 02 [20:44:38]Write to MH i2c: E2 08 00 31 31 80 0D 01 02 00 00 00 00 DB [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:38]Read from MH i2c: E2 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 [20:44:38]MH_I2C_Read... [20:44:38]Read from MH i2c: E2 03 00 31 31 00 90 00 D6 [20:44:38]RAPDU: 90 00 [20:44:38]wFMCommunicate OK [20:44:38]wFMCommunicate request_size=255 [20:44:38]MH_SAM_APDU [20:44: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 41 43 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B3 01 00 35 04 06 00 60 [20:44:38]Write to MH i2c: E2 02 01 32 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 41 43 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B3 01 00 35 04 06 00 60 00 00 02 [20:44:38]Write i2c OK [20:44:38]MH_I2C_Read... [20:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:39]Read from MH i2c: E2 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 03 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 03 00 32 31 00 90 00 D7 [20:44:39]RAPDU: 90 00 [20:44:39]wFMCommunicate OK [20:44:39]wFMCommunicate request_size=10 [20:44:39]MH_SAM_APDU [20:44:39]CAPDU: 80 0D 02 02 05 0D 75 B1 9B 21 [20:44:39]Write to MH i2c: E2 0D 00 33 31 80 0D 02 02 05 00 0D 75 B1 9B 21 00 00 D7 [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:39]Read from MH i2c: E2 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 03 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 03 00 33 31 00 90 00 D8 [20:44:39]RAPDU: 90 00 [20:44:39]wFMCommunicate OK [20:44:39]wFMCommunicate request_size=4 [20:44:39]MH_SAM_APDU [20:44:39]CAPDU: 80 0D 03 02 [20:44:39]Write to MH i2c: E2 08 00 34 31 80 0D 03 02 00 00 00 00 E0 [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:39]Read from MH i2c: E2 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 0B 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 0B 00 34 31 00 BB 49 F0 78 BA 02 E6 04 90 00 F3 [20:44:39]RAPDU: BB 49 F0 78 BA 02 E6 04 90 00 [20:44:39]wFMCommunicate OK [20:44:39]SAM_PROTO_SignData done [20:44:39]FM_MakeSignedData done [20:44:39]CreateOFDProtocolMessage [20:44:39]wFMCommunicate request_size=4 [20:44:39]MH_SAM_APDU [20:44:39]CAPDU: 80 11 00 00 [20:44:39]Write to MH i2c: E2 08 00 35 31 80 11 00 00 00 00 00 00 E0 [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:39]Read from MH i2c: E2 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 17 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: E2 17 00 35 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 32 [20:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:44:39]wFMCommunicate OK [20:44:39]CreateOFDProtocolMessage done [20:44:39]OFDSenderStorePacket 111496 [20:44:39]StoreOFDPacket docnum=111496 [20:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 CD 56 07 01 83 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 41 43 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B3 01 00 35 04 06 00 60 0D 75 B1 9B 21 BB 49 F0 78 BA 02 E6 04 [20:44:39]CheckFolder [20:44:39]dirname=/storage/ofd_packets [20:44:39]CheckFolder done [20:44:39]ProducePacketName [20:44:39]name=ofd_packets/00111496 [20:44:39]NVStorageSaveData ofd_packets/00111496 [20:44:39]File name is /storage/ofd_packets/00111496 [20:44:39]Write 301 bytes [20:44:39]NVStorageSaveData done [20:44:39]OFDSenderStorePacket done [20:44:39]KKMCreateOFDPacket done [20:44:39]NVStorageSaveData kkm_last_timestamp [20:44:39]File name is /storage/kkm_last_timestamp [20:44:39]Write 4 bytes [20:44:39]NVStorageSaveData done [20:44:39]ExternCall_PrintAddStr [20:44:39]wPrintStart [20:44:39]Write to MH i2c: 01 00 00 36 31 67 [20:44:39]Write i2c OK [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: 01 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: 01 07 00 [20:44:39]MH_I2C_Read... [20:44:39]Read from MH i2c: 01 07 00 36 31 00 00 00 00 00 FF 0F 7C [20:44:39]RasterBufferAndPrint [20:44:39]line Счет N : (1)320085 [20:44:39]line ИНН: 02508201610067 [20:44:39]line Контрольно-Кассовый Чек [20:44:39]line ПРОДАЖА [20:44:39]line ТРК (МРК, ГНК) : 11 [20:44:39]line Товар: 2710124130 [20:44:39]line Аи-92-К-5 [20:44:39]line 7.540 * 66.40 [20:44:39]line = 500.66 [20:44:39]line НДС 12% НСП 1% [20:44:39]line > о реализуемом товаре [20:44:39]line ОКРУГЛЕНИЕ: -0.66 [20:44:39]line ИТОГО: 500.00 [20:44:39]line Внесено: 500.00 [20:44:39]line СДАЧА: 0.00 [20:44:39]line НСП 1% : 4.43 [20:44:39]line НДС 12% : 53.17 [20:44:39]line Наличными: 500.00 [20:44:39]line Безнал.: 0.00 [20:44:39]line Место: АЗС № 65 "Партнер Нефть" [20:44:39]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:44:39]line СНО: Общий режим [20:44:39]line Чек 245 19.06.2024 20:44 [20:44:39]line Смена: 388 ФФД: 1.0 [20:44:39]line ЗНМ: 0300000198 [20:44:39]line РНМ: 0000000000092771 [20:44:39]line Версия ККМ: 001 [20:44:39]line ФМ: 0000000000875083 [20:44:39]line ФД: 111496 [20:44:39]line ФПД: 105610925415201 [20:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204449&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111496&fm=105610925415201&tin=02508201610067®Number=0000000000092771&sum=50000 [20:44:39]OFD Sender: Processing packet 111496 [packets to send 38, broken 37] [20:44:39]ProducePacketName [20:44:39]name=ofd_packets/00111496 [20:44:39]OFD Sender: To server: pG, [20:44:39]CommunicateWithHost lk.salyk.kg:30040 [20:44:39]ConnectInit lk.salyk.kg [20:44:39]written 0, free lines is 4095 [20:44:39]Connected sock=10 [20: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 35 30 38 33 0F 01 00 00 CD 56 07 01 83 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 41 43 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B3 01 00 35 04 06 00 60 0D 75 B1 9B 21 BB 49 F0 78 BA 02 E6 04 [20:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 97 14 47 00 79 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 88 B3 01 00 F4 03 04 00 A0 DA 72 66 B6 04 01 00 00 3D 15 04 FB 9C EF 41 08 [20:44:39]CommunicateWithHost err = 0 [20:44:39]CheckOFDResponse [20:44:39]1017 (14) - 77093643461234 [20:44:39]1041 (16) - 0000000000875083 [20:44:39]1040 (4) - 111496 [20:44:39]1012 (4) - 19.06.2024 13:18 [20:44:39]1206 (1) - 0 [20:44:39]OFD Sender: Remove packet 111496 [20:44:39]ProducePacketName [20:44:39]name=ofd_packets/00111496 [20:44:39]NVStorageDeleteData [20:44:40]Write to MH i2c: 01 00 00 61 31 92 [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: 01 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: 01 07 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: 01 07 00 61 31 00 00 00 00 00 CD 0C 72 [20:44:40]RasterBufferAndPrint [20:44:40]line [20:44:40]line [20:44:40]line [20:44:40]line [20:44:40]line [20:44:40]written 0, free lines is 3283 [20:44:40]MH_Cut [20:44:40]Write to MH i2c: D1 01 00 68 31 01 6B [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: D1 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: D1 01 00 [20:44:40]MH_I2C_Read... [20:44:40]Read from MH i2c: D1 01 00 68 31 00 6A [20:44:40]Write to MH i2c: 01 00 00 69 31 9A [20:44:40]Write i2c OK [20:44:40]MH_I2C_Read... [20:44:40]OFD Sender: No OFD packet to send [20:44:40]*** Cut start [20:44:40]*** Partial cut [20:44:40]*** CUTSNS_PIN = 1 [20:44:40]*** CUTSNS_PIN = 0 [20:44:41]*** Brake cut motor [20:44:41]Read from MH i2c: 01 [20:44:41]MH_I2C_Read... [20:44:41]*** Stop cut motor [20:44:41]*** Cut end [20:44:41]Read from MH i2c: 01 07 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: 01 07 00 69 31 00 00 00 00 00 FF 0F AF [20:44:41]process_action close_receipt done [20:44:41]requested_data is exist [20:44:41]produce_requested_data [20:44:41]requested_item fm.sn is exist - process it [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 11 00 00 [20:44:41]Write to MH i2c: E2 08 00 6A 31 80 11 00 00 00 00 00 00 15 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 17 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 17 00 6A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 67 [20:44:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:44:41]wFMCommunicate OK [20:44:41]requested_item fd.num is exist - process it [20:44:41]SAM_PROTO_GetFieldsCounters [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 13 00 00 [20:44:41]Write to MH i2c: E2 08 00 6B 31 80 13 00 00 00 00 00 00 18 [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 62 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 62 00 6B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B3 01 00 0E 04 04 00 84 01 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 D9 [20: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:41]wFMCommunicate OK [20:44:41]SAM_PROTO_GetFieldsCounters done [20:44:41]requested_item shift.num is exist - process it [20:44:41]requested_item shift.opened is exist - process it [20:44:41]req_shift_opened [20:44:41]FM_GetShiftState [20:44:41]SAM_PROTO_GetShiftState [20:44:41]wFMCommunicate request_size=4 [20:44:41]MH_SAM_APDU [20:44:41]CAPDU: 80 13 01 00 [20:44:41]Write to MH i2c: E2 08 00 6C 31 80 13 01 00 00 00 00 00 1A [20:44:41]Write i2c OK [20:44:41]MH_I2C_Read... [20:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:41]Read from MH i2c: E2 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 [20:44:41]MH_I2C_Read... [20:44:41]Read from MH i2c: E2 0E 00 6C 31 00 09 00 01 31 35 72 66 00 00 00 00 90 00 64 [20:44:41]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:44:41]wFMCommunicate OK [20:44:41]SAM_PROTO_GetShiftState done [20:44:41]FM_GetShiftState done [20:44:41]req_shift_opened done [20:44:41]requested_item shift.open_date is exist - process it [20:44:41]req_shift_open_date [20:44:41]req_shift_open_date done [20:44:41]produce_requested_data done [20:44:41]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111496,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:44:41]process_action_free close_receipt [20:44:41]json_value_free [20:44:41]json_value_free done [20:44:41]process_json_proto returns [20:44:41]Send response to host [20:44:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111496,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:44:41]free response buf [20:44:41]execute_script done [20:44:41]execute_script returns [20:44:41]free content buf [20:44:41]Sock 9.Close socket [20:44:41]Sock 9.Thread stoped [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]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:13]accept exits with 7 [20:47:13]New connection [20:47:13]New thread 3067465060 created [20:47:13]Thread 3067321700 joined [20:47:13]Waiting for new connection... [20:47:13] Sock 7.Parse request [20:47:13]Sock 7.Check first char [20:47:13]Sock 7.First char is OK [20:47:13]request: POST /json_proto HTTP/1.0 [20:47:13]Method: POST [20:47:13]URL: /json_proto [20:47:13]Method is POST - this is cgi request [20:47:13]url: /json_proto [20:47:13]query_string will be loaded in cgi processing [20:47:13]execute_cgi json_proto POST (null) [20:47:13]execute_cgi path=json_proto method=POST [20:47:13]POST find Content-Length [20:47:13]Host: 172.17.59.68:8080 [20:47:13]Content-Length: 1196 [20:47:13]Content-Type: application/json [20:47:13] [20:47:13]POST finish read [20:47:13]Found Content-Length = 1196 [20:47:13]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320086\u000A19.06.2024 19:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 9.610 x 72.90\u000A\u0418\u0422\u041E\u0413: 700.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:13]execute_script... [20:47:13]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320086\u000A19.06.2024 19:15\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 9.610 x 72.90\u000A\u0418\u0422\u041E\u0413: 700.57\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01591\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:13]POST & json_proto [20:47:13]process_json_proto [20:47:13]json parsed OK: [20:47:13]protocol is kg_v1.0 [20:47:13]action value=print_text [20:47:13]process_action print_text [20:47:13]cmd_print_text [20:47:13]ExternCall_PrintAddStr [20:47:13]wPrintStart [20:47:13]Write to MH i2c: 01 00 00 6D 31 9E [20:47:13]Write i2c OK [20:47:13]MH_I2C_Read... [20:47:13]Read from MH i2c: 01 [20:47:13]MH_I2C_Read... [20:47:13]Read from MH i2c: 01 07 00 [20:47:13]MH_I2C_Read... [20:47:13]Read from MH i2c: 01 07 00 6D 31 00 00 00 00 00 FF 0F B3 [20:47:13]RasterBufferAndPrint [20:47:13]line *****ТОВАРНЫЙ ЧЕК***** [20:47:13]line АЗС 65 [20:47:13]line Партнер нефть [20:47:13]line 02508201610067 [20:47:13]line Кассир : Амантуров Р. [20:47:13]line Счет N : (1)320086 [20:47:13]line 19.06.2024 19:15 [20:47:13]line ПРОДАЖА [20:47:13]line ТРК (МРК, ГНК): 22 [20:47:13]line Вид ГСМ : 2710194210 [20:47:13]line ДТ-К-5 [20:47:13]line 9.610 x 72.90 [20:47:13]line ИТОГ: 700.57 [20:47:13]line Тип оплаты: Талоны: Топливная Карта [20:47:13]line 01591 [20:47:13]line ______________________ [20:47:13]line (подпись) [20:47:13]written 0, free lines is 4095 [20:47:14]Write to MH i2c: 01 00 00 81 31 B2 [20:47:14]Write i2c OK [20:47:14]MH_I2C_Read... [20:47:14]Read from MH i2c: 01 [20:47:14]MH_I2C_Read... [20:47:14]Read from MH i2c: 01 07 00 [20:47:14]MH_I2C_Read... [20:47:14]Read from MH i2c: 01 07 00 81 31 00 00 00 00 00 0D 0E D4 [20:47:14]RasterBufferAndPrint [20:47:14]line [20:47:14]line [20:47:14]line [20:47:14]line [20:47:14]line [20:47:14]written 0, free lines is 3598 [20:47:14]MH_Cut [20:47:14]Write to MH i2c: D1 01 00 88 31 01 8B [20:47:14]Write i2c OK [20:47:14]MH_I2C_Read... [20:47:14]Read from MH i2c: D1 [20:47:14]MH_I2C_Read... [20:47:14]Read from MH i2c: D1 01 00 [20:47:14]MH_I2C_Read... [20:47:14]Read from MH i2c: D1 01 00 88 31 00 8A [20:47:14]Write to MH i2c: 01 00 00 89 31 BA [20:47:14]Write i2c OK [20:47:14]MH_I2C_Read... [20:47:14]*** Cut start [20:47:14]*** Partial cut [20:47:14]*** CUTSNS_PIN = 1 [20:47:14]*** CUTSNS_PIN = 0 [20:47:14]*** Brake cut motor [20:47:15]Read from MH i2c: 01 [20:47:15]MH_I2C_Read... [20:47:15]Read from MH i2c: 01 07 00 [20:47:15]MH_I2C_Read... [20:47:15]*** Stop cut motor [20:47:15]*** Cut end [20:47:15]Read from MH i2c: 01 07 00 89 31 00 00 00 00 00 FF 0F CF [20:47:15]process_action print_text done [20:47:15]requested_data is exist [20:47:15]produce_requested_data [20:47:15]requested_item fm.sn is exist - process it [20:47:15]wFMCommunicate request_size=4 [20:47:15]MH_SAM_APDU [20:47:15]CAPDU: 80 11 00 00 [20:47:15]Write to MH i2c: E2 08 00 8A 31 80 11 00 00 00 00 00 00 35 [20:47:15]Write i2c OK [20:47:15]MH_I2C_Read... [20:47:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:15]Read from MH i2c: E2 [20:47:15]MH_I2C_Read... [20:47:15]Read from MH i2c: E2 17 00 [20:47:15]MH_I2C_Read... [20:47:15]Read from MH i2c: E2 17 00 8A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 87 [20:47:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:47:15]wFMCommunicate OK [20:47:15]requested_item fd.num is exist - process it [20:47:15]SAM_PROTO_GetFieldsCounters [20:47:15]wFMCommunicate request_size=4 [20:47:15]MH_SAM_APDU [20:47:15]CAPDU: 80 13 00 00 [20:47:15]Write to MH i2c: E2 08 00 8B 31 80 13 00 00 00 00 00 00 38 [20:47:15]Write i2c OK [20:47:15]MH_I2C_Read... [20:47:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:15]Read from MH i2c: E2 [20:47:15]MH_I2C_Read... [20:47:15]Read from MH i2c: E2 62 00 [20:47:15]MH_I2C_Read... [20:47:15]Read from MH i2c: E2 62 00 8B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B3 01 00 0E 04 04 00 84 01 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 F9 [20:47: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 88 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:15]wFMCommunicate OK [20:47:15]SAM_PROTO_GetFieldsCounters done [20:47:15]requested_item shift.num is exist - process it [20:47:15]requested_item shift.opened is exist - process it [20:47:15]req_shift_opened [20:47:15]FM_GetShiftState [20:47:15]SAM_PROTO_GetShiftState [20:47:15]wFMCommunicate request_size=4 [20:47:15]MH_SAM_APDU [20:47:15]CAPDU: 80 13 01 00 [20:47:15]Write to MH i2c: E2 08 00 8C 31 80 13 01 00 00 00 00 00 3A [20:47:15]Write i2c OK [20:47:15]MH_I2C_Read... [20:47:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:15]Read from MH i2c: E2 [20:47:15]MH_I2C_Read... [20:47:15]Read from MH i2c: E2 0E 00 [20:47:15]MH_I2C_Read... [20:47:15]Read from MH i2c: E2 0E 00 8C 31 00 09 00 01 31 35 72 66 00 00 00 00 90 00 84 [20:47:15]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:47:15]wFMCommunicate OK [20:47:15]SAM_PROTO_GetShiftState done [20:47:15]FM_GetShiftState done [20:47:15]req_shift_opened done [20:47:15]requested_item shift.open_date is exist - process it [20:47:15]req_shift_open_date [20:47:15]req_shift_open_date done [20:47:15]produce_requested_data done [20:47:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111496,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:47:15]process_action_free print_text [20:47:15]json_value_free [20:47:15]json_value_free done [20:47:15]process_json_proto returns [20:47:15]Send response to host [20:47:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111496,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:47:15]free response buf [20:47:15]execute_script done [20:47:15]execute_script returns [20:47:15]free content buf [20:47:15]Sock 7.Close socket [20:47:15]Sock 7.Thread stoped [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:47:56]accept exits with 9 [20:47:56]New connection [20:47:56]New thread 3067321700 created [20:47:56]Thread 3067465060 joined [20:47:56]Waiting for new connection... [20:47:56] Sock 9.Parse request [20:47:56]Sock 9.Check first char [20:47:56]Sock 9.First char is OK [20:47:56]request: POST /json_proto HTTP/1.0 [20:47:56]Method: POST [20:47:56]URL: /json_proto [20:47:56]Method is POST - this is cgi request [20:47:56]url: /json_proto [20:47:56]query_string will be loaded in cgi processing [20:47:56]execute_cgi json_proto POST (null) [20:47:56]execute_cgi path=json_proto method=POST [20:47:56]POST find Content-Length [20:47:56]Host: 172.17.59.68:8080 [20:47:56]Content-Length: 677 [20:47:56]Content-Type: application/json [20:47:56] [20:47:56]POST finish read [20:47:56]Found Content-Length = 677 [20:47:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:56]execute_script... [20:47: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)320087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:56]POST & json_proto [20:47:56]process_json_proto [20:47:56]json parsed OK: [20:47:56]protocol is kg_v1.0 [20:47:56]action value=close_receipt [20:47:56]process_action close_receipt [20:47:56]cmd_close_receipt [20:47:56]MH_GetDate [20:47:56]Write to MH i2c: F0 00 00 8D 31 AD [20:47:56]Write i2c OK [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: F0 [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: F0 09 00 [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: F0 09 00 8D 31 00 08 44 73 66 BC EC 60 65 48 [20:47:56]GetLastDocTimeStamp 1718829889 [20:47:56]current date 1718830088 [20:47:56]FM_GetShiftState [20:47:56]SAM_PROTO_GetShiftState [20:47:56]wFMCommunicate request_size=4 [20:47:56]MH_SAM_APDU [20:47:56]CAPDU: 80 13 01 00 [20:47:56]Write to MH i2c: E2 08 00 8E 31 80 13 01 00 00 00 00 00 3C [20:47:56]Write i2c OK [20:47:56]MH_I2C_Read... [20:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:56]Read from MH i2c: E2 [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: E2 0E 00 [20:47:56]MH_I2C_Read... [20:47:56]Read from MH i2c: E2 0E 00 8E 31 00 09 00 01 31 35 72 66 00 00 00 00 90 00 86 [20:47:56]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:47:56]wFMCommunicate OK [20:47:56]SAM_PROTO_GetShiftState done [20:47:56]FM_GetShiftState done [20:47:56]opened in 1718760753 [20:47:56]opened+sec_in_day 1718847153 [20:47:56]quantity*price = 50065 [20:47:56]sum+1 = 50067 [20:47:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 246 19.06.2024 20:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111497 ФПД: 9461680175893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111497&fm=9461680175893&tin=02508201610067®Number=0000000000092771&sum=50000 [20:47:57]StoreToDocumentArchive [20:47:57]shift 388 fd 111497 [20:47:57]save to /storage/0388/doc_00111497 [20:47:57]save last doc name /storage/0388/doc_00111497 to /storage/kkm_last_doc_name [20:47:57]save OK [20:47:57]Clear old archive folders... [20:47:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:47:57]tlvbuf is B6FD2400 [20:47:57]SAM_PROTO_ClearQueue [20:47:57]wFMCommunicate request_size=4 [20:47:57]MH_SAM_APDU [20:47:57]CAPDU: 80 09 00 00 [20:47:57]Write to MH i2c: E2 08 00 9B 31 80 09 00 00 00 00 00 00 3E [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 03 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 03 00 9B 31 00 90 00 40 [20:47:57]RAPDU: 90 00 [20:47:57]wFMCommunicate OK [20:47:57]SAM_PROTO_ClearQueue done [20:47:57]KKMCreateOFDPacket [20:47:57]OFDProtocolAddRootSTLVToBuf [20:47:57]FM_MakeSignedData [20:47:57]FM_MakeSignedData [20:47:57]SAM_PROTO_SignData [20:47:57]wFMCommunicate request_size=4 [20:47:57]MH_SAM_APDU [20:47:57]CAPDU: 80 0D 01 02 [20:47:57]Write to MH i2c: E2 08 00 9C 31 80 0D 01 02 00 00 00 00 46 [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 03 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 03 00 9C 31 00 90 00 41 [20:47:57]RAPDU: 90 00 [20:47:57]wFMCommunicate OK [20:47:57]wFMCommunicate request_size=255 [20:47:57]MH_SAM_APDU [20:47: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 08 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B3 01 00 35 04 06 00 08 [20:47:57]Write to MH i2c: E2 02 01 9D 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 08 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B3 01 00 35 04 06 00 08 00 00 DF [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 03 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 03 00 9D 31 00 90 00 42 [20:47:57]RAPDU: 90 00 [20:47:57]wFMCommunicate OK [20:47:57]wFMCommunicate request_size=10 [20:47:57]MH_SAM_APDU [20:47:57]CAPDU: 80 0D 02 02 05 9A F8 15 FB 15 [20:47:57]Write to MH i2c: E2 0D 00 9E 31 80 0D 02 02 05 00 9A F8 15 FB 15 00 00 0A [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 03 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 03 00 9E 31 00 90 00 43 [20:47:57]RAPDU: 90 00 [20:47:57]wFMCommunicate OK [20:47:57]wFMCommunicate request_size=4 [20:47:57]MH_SAM_APDU [20:47:57]CAPDU: 80 0D 03 02 [20:47:57]Write to MH i2c: E2 08 00 9F 31 80 0D 03 02 00 00 00 00 4B [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 0B 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 0B 00 9F 31 00 E0 5B 96 38 73 DF 66 49 90 00 56 [20:47:57]RAPDU: E0 5B 96 38 73 DF 66 49 90 00 [20:47:57]wFMCommunicate OK [20:47:57]SAM_PROTO_SignData done [20:47:57]FM_MakeSignedData done [20:47:57]CreateOFDProtocolMessage [20:47:57]wFMCommunicate request_size=4 [20:47:57]MH_SAM_APDU [20:47:57]CAPDU: 80 11 00 00 [20:47:57]Write to MH i2c: E2 08 00 A0 31 80 11 00 00 00 00 00 00 4B [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:57]Read from MH i2c: E2 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 17 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: E2 17 00 A0 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9D [20:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:47:57]wFMCommunicate OK [20:47:57]CreateOFDProtocolMessage done [20:47:57]OFDSenderStorePacket 111497 [20:47:57]StoreOFDPacket docnum=111497 [20:47:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 11 07 01 52 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 08 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B3 01 00 35 04 06 00 08 9A F8 15 FB 15 E0 5B 96 38 73 DF 66 49 [20:47:57]CheckFolder [20:47:57]dirname=/storage/ofd_packets [20:47:57]CheckFolder done [20:47:57]ProducePacketName [20:47:57]name=ofd_packets/00111497 [20:47:57]NVStorageSaveData ofd_packets/00111497 [20:47:57]File name is /storage/ofd_packets/00111497 [20:47:57]Write 301 bytes [20:47:57]NVStorageSaveData done [20:47:57]OFDSenderStorePacket done [20:47:57]KKMCreateOFDPacket done [20:47:57]NVStorageSaveData kkm_last_timestamp [20:47:57]File name is /storage/kkm_last_timestamp [20:47:57]Write 4 bytes [20:47:57]NVStorageSaveData done [20:47:57]ExternCall_PrintAddStr [20:47:57]wPrintStart [20:47:57]Write to MH i2c: 01 00 00 A1 31 D2 [20:47:57]Write i2c OK [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: 01 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: 01 07 00 [20:47:57]MH_I2C_Read... [20:47:57]Read from MH i2c: 01 07 00 A1 31 00 00 00 00 00 FF 0F E7 [20:47:57]RasterBufferAndPrint [20:47:57]line Счет N : (1)320087 [20:47:57]line ИНН: 02508201610067 [20:47:57]line Контрольно-Кассовый Чек [20:47:57]line ПРОДАЖА [20:47:57]line ТРК (МРК, ГНК) : 11 [20:47:57]line Товар: 2710124130 [20:47:57]line Аи-92-К-5 [20:47:57]line 7.540 * 66.40 [20:47:57]line = 500.66 [20:47:57]line НДС 12% НСП 1% [20:47:57]line > о реализуемом товаре [20:47:57]line ОКРУГЛЕНИЕ: -0.66 [20:47:57]line ИТОГО: 500.00 [20:47:57]line Внесено: 500.00 [20:47:57]line СДАЧА: 0.00 [20:47:57]line НСП 1% : 4.43 [20:47:57]line НДС 12% : 53.17 [20:47:57]line Наличными: 500.00 [20:47:57]line Безнал.: 0.00 [20:47:57]line Место: АЗС № 65 "Партнер Нефть" [20:47:57]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:47:57]line СНО: Общий режим [20:47:57]line Чек 246 19.06.2024 20:48 [20:47:57]line Смена: 388 ФФД: 1.0 [20:47:57]line ЗНМ: 0300000198 [20:47:57]line РНМ: 0000000000092771 [20:47:57]line Версия ККМ: 001 [20:47:57]line ФМ: 0000000000875083 [20:47:57]line ФД: 111497 [20:47:57]line ФПД: 9461680175893 [20:47:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204808&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111497&fm=9461680175893&tin=02508201610067®Number=0000000000092771&sum=50000 [20:47:58]OFD Sender: Processing packet 111497 [packets to send 38, broken 37] [20:47:58]ProducePacketName [20:47:58]name=ofd_packets/00111497 [20:47:58]OFD Sender: To server: pG, [20:47:58]CommunicateWithHost lk.salyk.kg:30040 [20:47:58]ConnectInit lk.salyk.kg [20:47:58]written 0, free lines is 4095 [20:47:58]Connected sock=10 [20:47:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 11 07 01 52 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 08 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B3 01 00 35 04 06 00 08 9A F8 15 FB 15 E0 5B 96 38 73 DF 66 49 [20:47:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 52 D4 47 00 5E 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 89 B3 01 00 F4 03 04 00 67 DB 72 66 B6 04 01 00 00 34 C0 40 04 E3 74 DA AB [20:47:58]CommunicateWithHost err = 0 [20:47:58]CheckOFDResponse [20:47:58]1017 (14) - 77093643461234 [20:47:58]1041 (16) - 0000000000875083 [20:47:58]1040 (4) - 111497 [20:47:58]1012 (4) - 19.06.2024 13:21 [20:47:58]1206 (1) - 0 [20:47:58]OFD Sender: Remove packet 111497 [20:47:58]ProducePacketName [20:47:58]name=ofd_packets/00111497 [20:47:58]NVStorageDeleteData [20:47:58]Write to MH i2c: 01 00 00 CC 31 FD [20:47:58]Write i2c OK [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: 01 [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: 01 07 00 [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: 01 07 00 CC 31 00 00 00 00 00 C6 0C D6 [20:47:58]RasterBufferAndPrint [20:47:58]line [20:47:58]line [20:47:58]line [20:47:58]line [20:47:58]line [20:47:58]written 0, free lines is 3279 [20:47:58]MH_Cut [20:47:58]Write to MH i2c: D1 01 00 D3 31 01 D6 [20:47:58]Write i2c OK [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: D1 [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: D1 01 00 [20:47:58]MH_I2C_Read... [20:47:58]Read from MH i2c: D1 01 00 D3 31 00 D5 [20:47:58]Write to MH i2c: 01 00 00 D4 31 05 [20:47:58]Write i2c OK [20:47:58]MH_I2C_Read... [20:47:58]OFD Sender: No OFD packet to send [20:47:59]*** Cut start [20:47:59]*** Partial cut [20:47:59]*** CUTSNS_PIN = 1 [20:47:59]*** CUTSNS_PIN = 0 [20:47:59]*** Brake cut motor [20:47:59]Read from MH i2c: 01 [20:47:59]MH_I2C_Read... [20:47:59]*** Stop cut motor [20:47:59]*** Cut end [20:47:59]Read from MH i2c: 01 07 00 [20:47:59]MH_I2C_Read... [20:47:59]Read from MH i2c: 01 07 00 D4 31 00 00 00 00 00 FF 0F 1A [20:47:59]process_action close_receipt done [20:47:59]requested_data is exist [20:47:59]produce_requested_data [20:47:59]requested_item fm.sn is exist - process it [20:47:59]wFMCommunicate request_size=4 [20:47:59]MH_SAM_APDU [20:47:59]CAPDU: 80 11 00 00 [20:47:59]Write to MH i2c: E2 08 00 D5 31 80 11 00 00 00 00 00 00 80 [20:47:59]Write i2c OK [20:47:59]MH_I2C_Read... [20:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:59]Read from MH i2c: E2 [20:47:59]MH_I2C_Read... [20:47:59]Read from MH i2c: E2 17 00 [20:47:59]MH_I2C_Read... [20:47:59]Read from MH i2c: E2 17 00 D5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D2 [20:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:47:59]wFMCommunicate OK [20:47:59]requested_item fd.num is exist - process it [20:47:59]SAM_PROTO_GetFieldsCounters [20:47:59]wFMCommunicate request_size=4 [20:47:59]MH_SAM_APDU [20:47:59]CAPDU: 80 13 00 00 [20:47:59]Write to MH i2c: E2 08 00 D6 31 80 13 00 00 00 00 00 00 83 [20:47:59]Write i2c OK [20:47:59]MH_I2C_Read... [20:48:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:00]Read from MH i2c: E2 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 62 00 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 62 00 D6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 89 B3 01 00 0E 04 04 00 84 01 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 48 [20:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 89 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:48:00]wFMCommunicate OK [20:48:00]SAM_PROTO_GetFieldsCounters done [20:48:00]requested_item shift.num is exist - process it [20:48:00]requested_item shift.opened is exist - process it [20:48:00]req_shift_opened [20:48:00]FM_GetShiftState [20:48:00]SAM_PROTO_GetShiftState [20:48:00]wFMCommunicate request_size=4 [20:48:00]MH_SAM_APDU [20:48:00]CAPDU: 80 13 01 00 [20:48:00]Write to MH i2c: E2 08 00 D7 31 80 13 01 00 00 00 00 00 85 [20:48:00]Write i2c OK [20:48:00]MH_I2C_Read... [20:48:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:00]Read from MH i2c: E2 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 0E 00 [20:48:00]MH_I2C_Read... [20:48:00]Read from MH i2c: E2 0E 00 D7 31 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CF [20:48:00]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:48:00]wFMCommunicate OK [20:48:00]SAM_PROTO_GetShiftState done [20:48:00]FM_GetShiftState done [20:48:00]req_shift_opened done [20:48:00]requested_item shift.open_date is exist - process it [20:48:00]req_shift_open_date [20:48:00]req_shift_open_date done [20:48:00]produce_requested_data done [20:48:00]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111497,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:48:00]process_action_free close_receipt [20:48:00]json_value_free [20:48:00]json_value_free done [20:48:00]process_json_proto returns [20:48:00]Send response to host [20:48:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111497,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:48:00]free response buf [20:48:00]execute_script done [20:48:00]execute_script returns [20:48:00]free content buf [20:48:00]Sock 9.Close socket [20:48:00]Sock 9.Thread stoped [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:48:59]accept exits with 7 [20:48:59]New connection [20:48:59]New thread 3067465060 created [20:48:59]Thread 3067321700 joined [20:48:59]Waiting for new connection... [20:48:59] Sock 7.Parse request [20:48:59]Sock 7.Check first char [20:48:59]Sock 7.First char is OK [20:48:59]request: POST /json_proto HTTP/1.0 [20:48:59]Method: POST [20:48:59]URL: /json_proto [20:48:59]Method is POST - this is cgi request [20:48:59]url: /json_proto [20:48:59]query_string will be loaded in cgi processing [20:48:59]execute_cgi json_proto POST (null) [20:48:59]execute_cgi path=json_proto method=POST [20:48:59]POST find Content-Length [20:48:59]Host: 172.17.59.68:8080 [20:48:59]Content-Length: 674 [20:48:59]Content-Type: application/json [20:48:59] [20:48:59]POST finish read [20:48:59]Found Content-Length = 674 [20:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [20:48:59]execute_script... [20:48: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)320088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [20:48:59]POST & json_proto [20:48:59]process_json_proto [20:48:59]json parsed OK: [20:48:59]protocol is kg_v1.0 [20:48:59]action value=close_receipt [20:48:59]process_action close_receipt [20:48:59]cmd_close_receipt [20:48:59]MH_GetDate [20:48:59]Write to MH i2c: F0 00 00 D8 31 F8 [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: F0 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: F0 09 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: F0 09 00 D8 31 00 48 44 73 66 BC EC 60 65 D3 [20:48:59]GetLastDocTimeStamp 1718830088 [20:48:59]current date 1718830152 [20:48:59]FM_GetShiftState [20:48:59]SAM_PROTO_GetShiftState [20:48:59]wFMCommunicate request_size=4 [20:48:59]MH_SAM_APDU [20:48:59]CAPDU: 80 13 01 00 [20:48:59]Write to MH i2c: E2 08 00 D9 31 80 13 01 00 00 00 00 00 87 [20:48:59]Write i2c OK [20:48:59]MH_I2C_Read... [20:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:59]Read from MH i2c: E2 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 0E 00 [20:48:59]MH_I2C_Read... [20:48:59]Read from MH i2c: E2 0E 00 D9 31 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D1 [20:48:59]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:48:59]wFMCommunicate OK [20:48:59]SAM_PROTO_GetShiftState done [20:48:59]FM_GetShiftState done [20:48:59]opened in 1718760753 [20:48:59]opened+sec_in_day 1718847153 [20:48:59]quantity*price = 70056 [20:48:59]sum+1 = 70058 [20:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 247 19.06.2024 20:49 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111498 ФПД: 15999685312973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204912&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111498&fm=15999685312973&tin=02508201610067®Number=0000000000092771&sum=70000 [20:49:01]StoreToDocumentArchive [20:49:01]shift 388 fd 111498 [20:49:01]save to /storage/0388/doc_00111498 [20:49:01]save last doc name /storage/0388/doc_00111498 to /storage/kkm_last_doc_name [20:49:01]save OK [20:49:01]Clear old archive folders... [20:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:49:01]tlvbuf is 00ED6AD0 [20:49:01]SAM_PROTO_ClearQueue [20:49:01]wFMCommunicate request_size=4 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 09 00 00 [20:49:01]Write to MH i2c: E2 08 00 E6 31 80 09 00 00 00 00 00 00 89 [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 03 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 03 00 E6 31 00 90 00 8B [20:49:01]RAPDU: 90 00 [20:49:01]wFMCommunicate OK [20:49:01]SAM_PROTO_ClearQueue done [20:49:01]KKMCreateOFDPacket [20:49:01]OFDProtocolAddRootSTLVToBuf [20:49:01]FM_MakeSignedData [20:49:01]FM_MakeSignedData [20:49:01]SAM_PROTO_SignData [20:49:01]wFMCommunicate request_size=4 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 0D 01 02 [20:49:01]Write to MH i2c: E2 08 00 E7 31 80 0D 01 02 00 00 00 00 91 [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 03 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 03 00 E7 31 00 90 00 8C [20:49:01]RAPDU: 90 00 [20:49:01]wFMCommunicate OK [20:49:01]wFMCommunicate request_size=255 [20:49:01]MH_SAM_APDU [20: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 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 F7 00 00 00 F4 03 04 00 48 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B3 01 00 35 04 06 00 0E 8D 37 8F [20:49:01]Write to MH i2c: E2 02 01 E8 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 F7 00 00 00 F4 03 04 00 48 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B3 01 00 35 04 06 00 0E 8D 37 8F 00 00 0D [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 03 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 03 00 E8 31 00 90 00 8D [20:49:01]RAPDU: 90 00 [20:49:01]wFMCommunicate OK [20:49:01]wFMCommunicate request_size=7 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 0D 02 02 02 41 CD [20:49:01]Write to MH i2c: E2 0A 00 E9 31 80 0D 02 02 02 00 41 CD 00 00 A6 [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 03 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 03 00 E9 31 00 90 00 8E [20:49:01]RAPDU: 90 00 [20:49:01]wFMCommunicate OK [20:49:01]wFMCommunicate request_size=4 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 0D 03 02 [20:49:01]Write to MH i2c: E2 08 00 EA 31 80 0D 03 02 00 00 00 00 96 [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 0B 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 0B 00 EA 31 00 12 95 0D 1E 0F 3F 4E B6 90 00 BB [20:49:01]RAPDU: 12 95 0D 1E 0F 3F 4E B6 90 00 [20:49:01]wFMCommunicate OK [20:49:01]SAM_PROTO_SignData done [20:49:01]FM_MakeSignedData done [20:49:01]CreateOFDProtocolMessage [20:49:01]wFMCommunicate request_size=4 [20:49:01]MH_SAM_APDU [20:49:01]CAPDU: 80 11 00 00 [20:49:01]Write to MH i2c: E2 08 00 EB 31 80 11 00 00 00 00 00 00 96 [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:01]Read from MH i2c: E2 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 17 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: E2 17 00 EB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E8 [20:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:49:01]wFMCommunicate OK [20:49:01]CreateOFDProtocolMessage done [20:49:01]OFDSenderStorePacket 111498 [20:49:01]StoreOFDPacket docnum=111498 [20:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B1 34 04 01 7E 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 F7 00 00 00 F4 03 04 00 48 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B3 01 00 35 04 06 00 0E 8D 37 8F 41 CD 12 95 0D 1E 0F 3F 4E B6 [20:49:01]CheckFolder [20:49:01]dirname=/storage/ofd_packets [20:49:01]CheckFolder done [20:49:01]ProducePacketName [20:49:01]name=ofd_packets/00111498 [20:49:01]NVStorageSaveData ofd_packets/00111498 [20:49:01]File name is /storage/ofd_packets/00111498 [20:49:01]Write 298 bytes [20:49:01]NVStorageSaveData done [20:49:01]OFDSenderStorePacket done [20:49:01]KKMCreateOFDPacket done [20:49:01]NVStorageSaveData kkm_last_timestamp [20:49:01]File name is /storage/kkm_last_timestamp [20:49:01]Write 4 bytes [20:49:01]NVStorageSaveData done [20:49:01]ExternCall_PrintAddStr [20:49:01]wPrintStart [20:49:01]Write to MH i2c: 01 00 00 EC 31 1D [20:49:01]Write i2c OK [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: 01 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: 01 07 00 [20:49:01]MH_I2C_Read... [20:49:01]Read from MH i2c: 01 07 00 EC 31 00 00 00 00 00 FF 0F 32 [20:49:01]RasterBufferAndPrint [20:49:01]line Счет N : (1)320088 [20:49:01]line ИНН: 02508201610067 [20:49:01]line Контрольно-Кассовый Чек [20:49:01]line ПРОДАЖА [20:49:01]line ТРК (МРК, ГНК) : 22 [20:49:01]line Товар: 2710194210 [20:49:01]line ДТ-К-5 [20:49:01]line 9.610 * 72.90 [20:49:01]line = 700.57 [20:49:01]line НДС 12% НСП 1% [20:49:01]line > о реализуемом товаре [20:49:01]line ОКРУГЛЕНИЕ: -0.57 [20:49:01]line ИТОГО: 700.00 [20:49:01]line Внесено: 700.00 [20:49:01]line СДАЧА: 0.00 [20:49:01]line НСП 1% : 6.20 [20:49:01]line НДС 12% : 74.40 [20:49:01]line Наличными: 700.00 [20:49:01]line Безнал.: 0.00 [20:49:01]line Место: АЗС № 65 "Партнер Нефть" [20:49:01]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:49:01]line СНО: Общий режим [20:49:01]line Чек 247 19.06.2024 20:49 [20:49:01]line Смена: 388 ФФД: 1.0 [20:49:01]line ЗНМ: 0300000198 [20:49:01]line РНМ: 0000000000092771 [20:49:01]line Версия ККМ: 001 [20:49:01]line ФМ: 0000000000875083 [20:49:01]line ФД: 111498 [20:49:01]line ФПД: 15999685312973 [20:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204912&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111498&fm=15999685312973&tin=02508201610067®Number=0000000000092771&sum=70000 [20:49:01]OFD Sender: Processing packet 111498 [packets to send 38, broken 37] [20:49:01]ProducePacketName [20:49:01]name=ofd_packets/00111498 [20:49:01]OFD Sender: To server: pG, [20:49:01]CommunicateWithHost lk.salyk.kg:30040 [20:49:01]ConnectInit lk.salyk.kg [20:49:01]written 0, free lines is 4095 [20:49:02]Connected sock=10 [20: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 35 30 38 33 0C 01 00 00 B1 34 04 01 7E 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 F7 00 00 00 F4 03 04 00 48 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B3 01 00 35 04 06 00 0E 8D 37 8F 41 CD 12 95 0D 1E 0F 3F 4E B6 [20:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 86 3C 47 00 B7 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8A B3 01 00 F4 03 04 00 A7 DB 72 66 B6 04 01 00 00 53 21 8F 36 38 3F 65 52 [20:49:02]CommunicateWithHost err = 0 [20:49:02]CheckOFDResponse [20:49:02]1017 (14) - 77093643461234 [20:49:02]1041 (16) - 0000000000875083 [20:49:02]1040 (4) - 111498 [20:49:02]1012 (4) - 19.06.2024 13:22 [20:49:02]1206 (1) - 0 [20:49:02]OFD Sender: Remove packet 111498 [20:49:02]ProducePacketName [20:49:02]name=ofd_packets/00111498 [20:49:02]NVStorageDeleteData [20:49:02]Write to MH i2c: 01 00 00 17 32 49 [20:49:02]Write i2c OK [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: 01 [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: 01 07 00 [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: 01 07 00 17 32 00 00 00 00 00 E1 0C 3D [20:49:02]RasterBufferAndPrint [20:49:02]line [20:49:02]line [20:49:02]line [20:49:02]line [20:49:02]line [20:49:02]written 0, free lines is 3303 [20:49:02]MH_Cut [20:49:02]Write to MH i2c: D1 01 00 1E 32 01 22 [20:49:02]Write i2c OK [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: D1 [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: D1 01 00 [20:49:02]MH_I2C_Read... [20:49:02]Read from MH i2c: D1 01 00 1E 32 00 21 [20:49:02]Write to MH i2c: 01 00 00 1F 32 51 [20:49:02]Write i2c OK [20:49:02]MH_I2C_Read... [20:49:02]OFD Sender: No OFD packet to send [20:49:03]*** Cut start [20:49:03]*** Partial cut [20:49:03]*** CUTSNS_PIN = 1 [20:49:03]*** CUTSNS_PIN = 0 [20:49:03]*** Brake cut motor [20:49:03]Read from MH i2c: 01 [20:49:03]MH_I2C_Read... [20:49:03]*** Stop cut motor [20:49:03]*** Cut end [20:49:03]Read from MH i2c: 01 07 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: 01 07 00 1F 32 00 00 00 00 00 FF 0F 66 [20:49:03]process_action close_receipt done [20:49:03]requested_data is exist [20:49:03]produce_requested_data [20:49:03]requested_item fm.sn is exist - process it [20:49:03]wFMCommunicate request_size=4 [20:49:03]MH_SAM_APDU [20:49:03]CAPDU: 80 11 00 00 [20:49:03]Write to MH i2c: E2 08 00 20 32 80 11 00 00 00 00 00 00 CC [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:03]Read from MH i2c: E2 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 17 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 17 00 20 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1E [20:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:49:03]wFMCommunicate OK [20:49:03]requested_item fd.num is exist - process it [20:49:03]SAM_PROTO_GetFieldsCounters [20:49:03]wFMCommunicate request_size=4 [20:49:03]MH_SAM_APDU [20:49:03]CAPDU: 80 13 00 00 [20:49:03]Write to MH i2c: E2 08 00 21 32 80 13 00 00 00 00 00 00 CF [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:03]Read from MH i2c: E2 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 62 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 62 00 21 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8A B3 01 00 0E 04 04 00 84 01 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 98 [20:49: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:03]wFMCommunicate OK [20:49:03]SAM_PROTO_GetFieldsCounters done [20:49:03]requested_item shift.num is exist - process it [20:49:03]requested_item shift.opened is exist - process it [20:49:03]req_shift_opened [20:49:03]FM_GetShiftState [20:49:03]SAM_PROTO_GetShiftState [20:49:03]wFMCommunicate request_size=4 [20:49:03]MH_SAM_APDU [20:49:03]CAPDU: 80 13 01 00 [20:49:03]Write to MH i2c: E2 08 00 22 32 80 13 01 00 00 00 00 00 D1 [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:03]Read from MH i2c: E2 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 0E 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 0E 00 22 32 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1B [20:49:03]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:49:03]wFMCommunicate OK [20:49:03]SAM_PROTO_GetShiftState done [20:49:03]FM_GetShiftState done [20:49:03]req_shift_opened done [20:49:03]requested_item shift.open_date is exist - process it [20:49:03]req_shift_open_date [20:49:03]req_shift_open_date done [20:49:03]produce_requested_data done [20:49:03]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111498,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:49:03]process_action_free close_receipt [20:49:03]json_value_free [20:49:03]json_value_free done [20:49:03]process_json_proto returns [20:49:03]Send response to host [20:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111498,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:49:03]free response buf [20:49:03]execute_script done [20:49:03]execute_script returns [20:49:03]free content buf [20:49:03]Sock 7.Close socket [20:49:03]Sock 7.Thread stoped [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:39]accept exits with 9 [20:49:39]New connection [20:49:39]New thread 3067321700 created [20:49:39]Thread 3067465060 joined [20:49:39]Waiting for new connection... [20:49:39] Sock 9.Parse request [20:49:39]Sock 9.Check first char [20:49:39]Sock 9.First char is OK [20:49:39]request: POST /json_proto HTTP/1.0 [20:49:39]Method: POST [20:49:39]URL: /json_proto [20:49:39]Method is POST - this is cgi request [20:49:39]url: /json_proto [20:49:39]query_string will be loaded in cgi processing [20:49:39]execute_cgi json_proto POST (null) [20:49:39]execute_cgi path=json_proto method=POST [20:49:39]POST find Content-Length [20:49:39]Host: 172.17.59.68:8080 [20:49:39]Content-Length: 677 [20:49:39]Content-Type: application/json [20:49:39] [20:49:39]POST finish read [20:49:39]Found Content-Length = 677 [20:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.010, "sum" : 133.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:39]execute_script... [20:49: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)320089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.010, "sum" : 133.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:39]POST & json_proto [20:49:39]process_json_proto [20:49:39]json parsed OK: [20:49:39]protocol is kg_v1.0 [20:49:39]action value=close_receipt [20:49:39]process_action close_receipt [20:49:39]cmd_close_receipt [20:49:39]MH_GetDate [20:49:39]Write to MH i2c: F0 00 00 23 32 44 [20:49:39]Write i2c OK [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: F0 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: F0 09 00 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: F0 09 00 23 32 00 6F 44 73 66 BC EC 60 65 46 [20:49:39]GetLastDocTimeStamp 1718830152 [20:49:39]current date 1718830191 [20:49:39]FM_GetShiftState [20:49:39]SAM_PROTO_GetShiftState [20:49:39]wFMCommunicate request_size=4 [20:49:39]MH_SAM_APDU [20:49:39]CAPDU: 80 13 01 00 [20:49:39]Write to MH i2c: E2 08 00 24 32 80 13 01 00 00 00 00 00 D3 [20:49:39]Write i2c OK [20:49:39]MH_I2C_Read... [20:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:39]Read from MH i2c: E2 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: E2 0E 00 [20:49:39]MH_I2C_Read... [20:49:39]Read from MH i2c: E2 0E 00 24 32 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1D [20:49:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:49:39]wFMCommunicate OK [20:49:39]SAM_PROTO_GetShiftState done [20:49:39]FM_GetShiftState done [20:49:39]opened in 1718760753 [20:49:39]opened+sec_in_day 1718847153 [20:49:39]quantity*price = 13346 [20:49:39]sum+1 = 13347 [20:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 133.00 Внесено: 133.00 СДАЧА: 0.00 НСП 1% : 1.18 НДС 12% : 14.17 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 248 19.06.2024 20:49 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111499 ФПД: 105889596678583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204951&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111499&fm=105889596678583&tin=02508201610067®Number=0000000000092771&sum=13300 [20:49:40]StoreToDocumentArchive [20:49:40]shift 388 fd 111499 [20:49:40]save to /storage/0388/doc_00111499 [20:49:40]save last doc name /storage/0388/doc_00111499 to /storage/kkm_last_doc_name [20:49:40]save OK [20:49:40]Clear old archive folders... [20:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:49:40]tlvbuf is 00ED7110 [20:49:40]SAM_PROTO_ClearQueue [20:49:40]wFMCommunicate request_size=4 [20:49:40]MH_SAM_APDU [20:49:40]CAPDU: 80 09 00 00 [20:49:40]Write to MH i2c: E2 08 00 31 32 80 09 00 00 00 00 00 00 D5 [20:49:40]Write i2c OK [20:49:40]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 31 32 00 90 00 D7 [20:49:41]RAPDU: 90 00 [20:49:41]wFMCommunicate OK [20:49:41]SAM_PROTO_ClearQueue done [20:49:41]KKMCreateOFDPacket [20:49:41]OFDProtocolAddRootSTLVToBuf [20:49:41]FM_MakeSignedData [20:49:41]FM_MakeSignedData [20:49:41]SAM_PROTO_SignData [20:49:41]wFMCommunicate request_size=4 [20:49:41]MH_SAM_APDU [20:49:41]CAPDU: 80 0D 01 02 [20:49:41]Write to MH i2c: E2 08 00 32 32 80 0D 01 02 00 00 00 00 DD [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 32 32 00 90 00 D8 [20:49:41]RAPDU: 90 00 [20:49:41]wFMCommunicate OK [20:49:41]wFMCommunicate request_size=255 [20:49:41]MH_SAM_APDU [20:49: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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 6F 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B3 01 00 35 04 06 00 60 [20:49:41]Write to MH i2c: E2 02 01 33 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 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 6F 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B3 01 00 35 04 06 00 60 00 00 21 [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 33 32 00 90 00 D9 [20:49:41]RAPDU: 90 00 [20:49:41]wFMCommunicate OK [20:49:41]wFMCommunicate request_size=10 [20:49:41]MH_SAM_APDU [20:49:41]CAPDU: 80 0D 02 02 05 4E 57 CB A1 B7 [20:49:41]Write to MH i2c: E2 0D 00 34 32 80 0D 02 02 05 00 4E 57 CB A1 B7 00 00 B2 [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 03 00 34 32 00 90 00 DA [20:49:41]RAPDU: 90 00 [20:49:41]wFMCommunicate OK [20:49:41]wFMCommunicate request_size=4 [20:49:41]MH_SAM_APDU [20:49:41]CAPDU: 80 0D 03 02 [20:49:41]Write to MH i2c: E2 08 00 35 32 80 0D 03 02 00 00 00 00 E2 [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 0B 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 0B 00 35 32 00 EA 64 83 C0 35 F3 53 50 90 00 3F [20:49:41]RAPDU: EA 64 83 C0 35 F3 53 50 90 00 [20:49:41]wFMCommunicate OK [20:49:41]SAM_PROTO_SignData done [20:49:41]FM_MakeSignedData done [20:49:41]CreateOFDProtocolMessage [20:49:41]wFMCommunicate request_size=4 [20:49:41]MH_SAM_APDU [20:49:41]CAPDU: 80 11 00 00 [20:49:41]Write to MH i2c: E2 08 00 36 32 80 11 00 00 00 00 00 00 E2 [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:41]Read from MH i2c: E2 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 17 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: E2 17 00 36 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 34 [20:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:49:41]wFMCommunicate OK [20:49:41]CreateOFDProtocolMessage done [20:49:41]OFDSenderStorePacket 111499 [20:49:41]StoreOFDPacket docnum=111499 [20:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 26 60 07 01 D7 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 6F 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B3 01 00 35 04 06 00 60 4E 57 CB A1 B7 EA 64 83 C0 35 F3 53 50 [20:49:41]CheckFolder [20:49:41]dirname=/storage/ofd_packets [20:49:41]CheckFolder done [20:49:41]ProducePacketName [20:49:41]name=ofd_packets/00111499 [20:49:41]NVStorageSaveData ofd_packets/00111499 [20:49:41]File name is /storage/ofd_packets/00111499 [20:49:41]Write 301 bytes [20:49:41]NVStorageSaveData done [20:49:41]OFDSenderStorePacket done [20:49:41]KKMCreateOFDPacket done [20:49:41]NVStorageSaveData kkm_last_timestamp [20:49:41]File name is /storage/kkm_last_timestamp [20:49:41]Write 4 bytes [20:49:41]NVStorageSaveData done [20:49:41]ExternCall_PrintAddStr [20:49:41]wPrintStart [20:49:41]Write to MH i2c: 01 00 00 37 32 69 [20:49:41]Write i2c OK [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 07 00 [20:49:41]MH_I2C_Read... [20:49:41]Read from MH i2c: 01 07 00 37 32 00 00 00 00 00 FF 0F 7E [20:49:41]RasterBufferAndPrint [20:49:41]line Счет N : (1)320089 [20:49:41]line ИНН: 02508201610067 [20:49:41]line Контрольно-Кассовый Чек [20:49:41]line ПРОДАЖА [20:49:41]line ТРК (МРК, ГНК) : 11 [20:49:41]line Товар: 2710124130 [20:49:41]line Аи-92-К-5 [20:49:41]line 2.010 * 66.40 [20:49:41]line = 133.46 [20:49:41]line НДС 12% НСП 1% [20:49:41]line > о реализуемом товаре [20:49:41]line ОКРУГЛЕНИЕ: -0.46 [20:49:41]line ИТОГО: 133.00 [20:49:41]line Внесено: 133.00 [20:49:41]line СДАЧА: 0.00 [20:49:41]line НСП 1% : 1.18 [20:49:41]line НДС 12% : 14.17 [20:49:41]line Наличными: 133.00 [20:49:41]line Безнал.: 0.00 [20:49:41]line Место: АЗС № 65 "Партнер Нефть" [20:49:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:49:41]line СНО: Общий режим [20:49:41]line Чек 248 19.06.2024 20:49 [20:49:41]line Смена: 388 ФФД: 1.0 [20:49:41]line ЗНМ: 0300000198 [20:49:41]line РНМ: 0000000000092771 [20:49:41]line Версия ККМ: 001 [20:49:41]line ФМ: 0000000000875083 [20:49:41]line ФД: 111499 [20:49:41]line ФПД: 105889596678583 [20:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T204951&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111499&fm=105889596678583&tin=02508201610067®Number=0000000000092771&sum=13300 [20:49:41]OFD Sender: Processing packet 111499 [packets to send 38, broken 37] [20:49:41]ProducePacketName [20:49:41]name=ofd_packets/00111499 [20:49:41]OFD Sender: To server: pG, [20:49:41]CommunicateWithHost lk.salyk.kg:30040 [20:49:41]ConnectInit lk.salyk.kg [20:49:41]written 0, free lines is 4095 [20:49:41]Connected sock=10 [20:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 26 60 07 01 D7 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 07 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 22 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 05 00 00 00 00 07 04 06 00 F4 33 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 6F 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8B B3 01 00 35 04 06 00 60 4E 57 CB A1 B7 EA 64 83 C0 35 F3 53 50 [20:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 89 11 47 00 E7 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 35 30 38 33 10 04 04 00 8B B3 01 00 F4 03 04 00 CE DB 72 66 B6 04 01 00 00 BE 5A EF 17 16 73 BF D0 [20:49:42]CommunicateWithHost err = 0 [20:49:42]CheckOFDResponse [20:49:42]1017 (14) - 77093643461234 [20:49:42]1041 (16) - 0000000000875083 [20:49:42]1040 (4) - 111499 [20:49:42]1012 (4) - 19.06.2024 13:23 [20:49:42]1206 (1) - 0 [20:49:42]OFD Sender: Remove packet 111499 [20:49:42]ProducePacketName [20:49:42]name=ofd_packets/00111499 [20:49:42]NVStorageDeleteData [20:49:42]Write to MH i2c: 01 00 00 62 32 94 [20:49:42]Write i2c OK [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: 01 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: 01 07 00 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: 01 07 00 62 32 00 00 00 00 00 D0 0C 77 [20:49:42]RasterBufferAndPrint [20:49:42]line [20:49:42]line [20:49:42]line [20:49:42]line [20:49:42]line [20:49:42]written 0, free lines is 3287 [20:49:42]MH_Cut [20:49:42]Write to MH i2c: D1 01 00 69 32 01 6D [20:49:42]Write i2c OK [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: D1 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: D1 01 00 [20:49:42]MH_I2C_Read... [20:49:42]Read from MH i2c: D1 01 00 69 32 00 6C [20:49:42]Write to MH i2c: 01 00 00 6A 32 9C [20:49:42]Write i2c OK [20:49:42]MH_I2C_Read... [20:49:42]OFD Sender: No OFD packet to send [20:49:43]*** Cut start [20:49:43]*** Partial cut [20:49:43]*** CUTSNS_PIN = 1 [20:49:43]*** CUTSNS_PIN = 0 [20:49:43]*** Brake cut motor [20:49:43]Read from MH i2c: 01 [20:49:43]MH_I2C_Read... [20:49:43]*** Stop cut motor [20:49:43]*** Cut end [20:49:43]Read from MH i2c: 01 07 00 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: 01 07 00 6A 32 00 00 00 00 00 FF 0F B1 [20:49:43]process_action close_receipt done [20:49:43]requested_data is exist [20:49:43]produce_requested_data [20:49:43]requested_item fm.sn is exist - process it [20:49:43]wFMCommunicate request_size=4 [20:49:43]MH_SAM_APDU [20:49:43]CAPDU: 80 11 00 00 [20:49:43]Write to MH i2c: E2 08 00 6B 32 80 11 00 00 00 00 00 00 17 [20:49:43]Write i2c OK [20:49:43]MH_I2C_Read... [20:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:43]Read from MH i2c: E2 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: E2 17 00 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: E2 17 00 6B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 69 [20:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:49:43]wFMCommunicate OK [20:49:43]requested_item fd.num is exist - process it [20:49:43]SAM_PROTO_GetFieldsCounters [20:49:43]wFMCommunicate request_size=4 [20:49:43]MH_SAM_APDU [20:49:43]CAPDU: 80 13 00 00 [20:49:43]Write to MH i2c: E2 08 00 6C 32 80 13 00 00 00 00 00 00 1A [20:49:43]Write i2c OK [20:49:43]MH_I2C_Read... [20:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:43]Read from MH i2c: E2 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: E2 62 00 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: E2 62 00 6C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8B B3 01 00 0E 04 04 00 84 01 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 E7 [20:49: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:43]wFMCommunicate OK [20:49:43]SAM_PROTO_GetFieldsCounters done [20:49:43]requested_item shift.num is exist - process it [20:49:43]requested_item shift.opened is exist - process it [20:49:43]req_shift_opened [20:49:43]FM_GetShiftState [20:49:43]SAM_PROTO_GetShiftState [20:49:43]wFMCommunicate request_size=4 [20:49:43]MH_SAM_APDU [20:49:43]CAPDU: 80 13 01 00 [20:49:43]Write to MH i2c: E2 08 00 6D 32 80 13 01 00 00 00 00 00 1C [20:49:43]Write i2c OK [20:49:43]MH_I2C_Read... [20:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:43]Read from MH i2c: E2 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: E2 0E 00 [20:49:43]MH_I2C_Read... [20:49:43]Read from MH i2c: E2 0E 00 6D 32 00 09 00 01 31 35 72 66 00 00 00 00 90 00 66 [20:49:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:49:43]wFMCommunicate OK [20:49:43]SAM_PROTO_GetShiftState done [20:49:43]FM_GetShiftState done [20:49:43]req_shift_opened done [20:49:43]requested_item shift.open_date is exist - process it [20:49:43]req_shift_open_date [20:49:43]req_shift_open_date done [20:49:43]produce_requested_data done [20:49:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111499,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:49:43]process_action_free close_receipt [20:49:43]json_value_free [20:49:43]json_value_free done [20:49:43]process_json_proto returns [20:49:43]Send response to host [20:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111499,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:49:43]free response buf [20:49:43]execute_script done [20:49:43]execute_script returns [20:49:43]free content buf [20:49:43]Sock 9.Close socket [20:49:43]Sock 9.Thread stoped [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:26]accept exits with 7 [20:50:26]New connection [20:50:26]New thread 3067465060 created [20:50:26]Thread 3067321700 joined [20:50:26]Waiting for new connection... [20:50:26] Sock 7.Parse request [20:50:26]Sock 7.Check first char [20:50:26]Sock 7.First char is OK [20:50:26]request: POST /json_proto HTTP/1.0 [20:50:26]Method: POST [20:50:26]URL: /json_proto [20:50:26]Method is POST - this is cgi request [20:50:26]url: /json_proto [20:50:26]query_string will be loaded in cgi processing [20:50:26]execute_cgi json_proto POST (null) [20:50:26]execute_cgi path=json_proto method=POST [20:50:26]POST find Content-Length [20:50:26]Host: 172.17.59.68:8080 [20:50:26]Content-Length: 682 [20:50:26]Content-Type: application/json [20:50:26] [20:50:26]POST finish read [20:50:26]Found Content-Length = 682 [20:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:26]execute_script... [20:50: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)320090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:26]POST & json_proto [20:50:26]process_json_proto [20:50:26]json parsed OK: [20:50:26]protocol is kg_v1.0 [20:50:26]action value=close_receipt [20:50:26]process_action close_receipt [20:50:26]cmd_close_receipt [20:50:26]MH_GetDate [20:50:26]Write to MH i2c: F0 00 00 6E 32 8F [20:50:26]Write i2c OK [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: F0 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: F0 09 00 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: F0 09 00 6E 32 00 9E 44 73 66 BC EC 60 65 C0 [20:50:26]GetLastDocTimeStamp 1718830191 [20:50:26]current date 1718830238 [20:50:26]FM_GetShiftState [20:50:26]SAM_PROTO_GetShiftState [20:50:26]wFMCommunicate request_size=4 [20:50:26]MH_SAM_APDU [20:50:26]CAPDU: 80 13 01 00 [20:50:26]Write to MH i2c: E2 08 00 6F 32 80 13 01 00 00 00 00 00 1E [20:50:26]Write i2c OK [20:50:26]MH_I2C_Read... [20:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:26]Read from MH i2c: E2 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: E2 0E 00 [20:50:26]MH_I2C_Read... [20:50:26]Read from MH i2c: E2 0E 00 6F 32 00 09 00 01 31 35 72 66 00 00 00 00 90 00 68 [20:50:26]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:50:26]wFMCommunicate OK [20:50:26]SAM_PROTO_GetShiftState done [20:50:26]FM_GetShiftState done [20:50:26]opened in 1718760753 [20:50:26]opened+sec_in_day 1718847153 [20:50:26]quantity*price = 100064 [20:50:26]sum+1 = 100066 [20:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 249 19.06.2024 20:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111500 ФПД: 215979170955481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T205039&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111500&fm=215979170955481&tin=02508201610067®Number=0000000000092771&sum=100000 [20:50:27]StoreToDocumentArchive [20:50:27]shift 388 fd 111500 [20:50:27]save to /storage/0388/doc_00111500 [20:50:27]save last doc name /storage/0388/doc_00111500 to /storage/kkm_last_doc_name [20:50:27]save OK [20:50:27]Clear old archive folders... [20:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:27]tlvbuf is 00F50660 [20:50:27]SAM_PROTO_ClearQueue [20:50:27]wFMCommunicate request_size=4 [20:50:27]MH_SAM_APDU [20:50:27]CAPDU: 80 09 00 00 [20:50:27]Write to MH i2c: E2 08 00 7C 32 80 09 00 00 00 00 00 00 20 [20:50:27]Write i2c OK [20:50:27]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 7C 32 00 90 00 22 [20:50:28]RAPDU: 90 00 [20:50:28]wFMCommunicate OK [20:50:28]SAM_PROTO_ClearQueue done [20:50:28]KKMCreateOFDPacket [20:50:28]OFDProtocolAddRootSTLVToBuf [20:50:28]FM_MakeSignedData [20:50:28]FM_MakeSignedData [20:50:28]SAM_PROTO_SignData [20:50:28]wFMCommunicate request_size=4 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 0D 01 02 [20:50:28]Write to MH i2c: E2 08 00 7D 32 80 0D 01 02 00 00 00 00 28 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 7D 32 00 90 00 23 [20:50:28]RAPDU: 90 00 [20:50:28]wFMCommunicate OK [20:50:28]wFMCommunicate request_size=255 [20:50:28]MH_SAM_APDU [20:50: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 9F 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B3 01 00 35 04 06 00 C4 [20:50:28]Write to MH i2c: E2 02 01 7E 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 9F 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B3 01 00 35 04 06 00 C4 00 00 6A [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 7E 32 00 90 00 24 [20:50:28]RAPDU: 90 00 [20:50:28]wFMCommunicate OK [20:50:28]wFMCommunicate request_size=10 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 0D 02 02 05 6E 91 C3 80 D9 [20:50:28]Write to MH i2c: E2 0D 00 7F 32 80 0D 02 02 05 00 6E 91 C3 80 D9 00 00 50 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 03 00 7F 32 00 90 00 25 [20:50:28]RAPDU: 90 00 [20:50:28]wFMCommunicate OK [20:50:28]wFMCommunicate request_size=4 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 0D 03 02 [20:50:28]Write to MH i2c: E2 08 00 80 32 80 0D 03 02 00 00 00 00 2D [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 0B 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 0B 00 80 32 00 6C 7A E6 17 60 E8 8A 39 90 00 1C [20:50:28]RAPDU: 6C 7A E6 17 60 E8 8A 39 90 00 [20:50:28]wFMCommunicate OK [20:50:28]SAM_PROTO_SignData done [20:50:28]FM_MakeSignedData done [20:50:28]CreateOFDProtocolMessage [20:50:28]wFMCommunicate request_size=4 [20:50:28]MH_SAM_APDU [20:50:28]CAPDU: 80 11 00 00 [20:50:28]Write to MH i2c: E2 08 00 81 32 80 11 00 00 00 00 00 00 2D [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:28]Read from MH i2c: E2 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 17 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: E2 17 00 81 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7F [20:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:50:28]wFMCommunicate OK [20:50:28]CreateOFDProtocolMessage done [20:50:28]OFDSenderStorePacket 111500 [20:50:28]StoreOFDPacket docnum=111500 [20:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 13 8B 07 01 E3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 9F 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B3 01 00 35 04 06 00 C4 6E 91 C3 80 D9 6C 7A E6 17 60 E8 8A 39 [20:50:28]CheckFolder [20:50:28]dirname=/storage/ofd_packets [20:50:28]CheckFolder done [20:50:28]ProducePacketName [20:50:28]name=ofd_packets/00111500 [20:50:28]NVStorageSaveData ofd_packets/00111500 [20:50:28]File name is /storage/ofd_packets/00111500 [20:50:28]Write 301 bytes [20:50:28]NVStorageSaveData done [20:50:28]OFDSenderStorePacket done [20:50:28]KKMCreateOFDPacket done [20:50:28]NVStorageSaveData kkm_last_timestamp [20:50:28]File name is /storage/kkm_last_timestamp [20:50:28]Write 4 bytes [20:50:28]NVStorageSaveData done [20:50:28]ExternCall_PrintAddStr [20:50:28]wPrintStart [20:50:28]Write to MH i2c: 01 00 00 82 32 B4 [20:50:28]Write i2c OK [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: 01 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: 01 07 00 [20:50:28]MH_I2C_Read... [20:50:28]Read from MH i2c: 01 07 00 82 32 00 00 00 00 00 FF 0F C9 [20:50:28]RasterBufferAndPrint [20:50:28]line Счет N : (1)320090 [20:50:28]line ИНН: 02508201610067 [20:50:28]line Контрольно-Кассовый Чек [20:50:28]line ПРОДАЖА [20:50:28]line ТРК (МРК, ГНК) : 11 [20:50:28]line Товар: 2710124130 [20:50:28]line Аи-92-К-5 [20:50:28]line 15.070 * 66.40 [20:50:28]line = 1000.65 [20:50:28]line НДС 12% НСП 1% [20:50:28]line > о реализуемом товаре [20:50:28]line ОКРУГЛЕНИЕ: -0.65 [20:50:28]line ИТОГО: 1000.00 [20:50:28]line Внесено: 1000.00 [20:50:28]line СДАЧА: 0.00 [20:50:28]line НСП 1% : 8.85 [20:50:28]line НДС 12% : 106.26 [20:50:28]line Наличными: 1000.00 [20:50:28]line Безнал.: 0.00 [20:50:28]line Место: АЗС № 65 "Партнер Нефть" [20:50:28]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [20:50:28]line СНО: Общий режим [20:50:28]line Чек 249 19.06.2024 20:50 [20:50:28]line Смена: 388 ФФД: 1.0 [20:50:28]line ЗНМ: 0300000198 [20:50:28]line РНМ: 0000000000092771 [20:50:28]line Версия ККМ: 001 [20:50:28]line ФМ: 0000000000875083 [20:50:28]line ФД: 111500 [20:50:28]line ФПД: 215979170955481 [20:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T205039&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111500&fm=215979170955481&tin=02508201610067®Number=0000000000092771&sum=100000 [20:50:28]OFD Sender: Processing packet 111500 [packets to send 38, broken 37] [20:50:28]ProducePacketName [20:50:28]name=ofd_packets/00111500 [20:50:28]OFD Sender: To server: pG, [20:50:28]CommunicateWithHost lk.salyk.kg:30040 [20:50:28]ConnectInit lk.salyk.kg [20:50:28]written 0, free lines is 4095 [20:50:28]Connected sock=10 [20:50:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 13 8B 07 01 E3 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 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 9F 44 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B3 01 00 35 04 06 00 C4 6E 91 C3 80 D9 6C 7A E6 17 60 E8 8A 39 [20:50:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 53 73 47 00 A8 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8C B3 01 00 F4 03 04 00 FD DB 72 66 B6 04 01 00 00 7F 3E 41 C1 B7 EF A3 84 [20:50:29]CommunicateWithHost err = 0 [20:50:29]CheckOFDResponse [20:50:29]1017 (14) - 77093643461234 [20:50:29]1041 (16) - 0000000000875083 [20:50:29]1040 (4) - 111500 [20:50:29]1012 (4) - 19.06.2024 13:24 [20:50:29]1206 (1) - 0 [20:50:29]OFD Sender: Remove packet 111500 [20:50:29]ProducePacketName [20:50:29]name=ofd_packets/00111500 [20:50:29]NVStorageDeleteData [20:50:29]Write to MH i2c: 01 00 00 AD 32 DF [20:50:29]Write i2c OK [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: 01 [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: 01 07 00 [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: 01 07 00 AD 32 00 00 00 00 00 D4 0C C6 [20:50:29]RasterBufferAndPrint [20:50:29]line [20:50:29]line [20:50:29]line [20:50:29]line [20:50:29]line [20:50:29]written 0, free lines is 3292 [20:50:29]MH_Cut [20:50:29]Write to MH i2c: D1 01 00 B4 32 01 B8 [20:50:29]Write i2c OK [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: D1 [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: D1 01 00 [20:50:29]MH_I2C_Read... [20:50:29]Read from MH i2c: D1 01 00 B4 32 00 B7 [20:50:29]Write to MH i2c: 01 00 00 B5 32 E7 [20:50:29]Write i2c OK [20:50:29]MH_I2C_Read... [20:50:29]OFD Sender: No OFD packet to send [20:50:30]*** Cut start [20:50:30]*** Partial cut [20:50:30]*** CUTSNS_PIN = 1 [20:50:30]*** CUTSNS_PIN = 0 [20:50:30]*** Brake cut motor [20:50:30]Read from MH i2c: 01 [20:50:30]MH_I2C_Read... [20:50:30]*** Stop cut motor [20:50:30]*** Cut end [20:50:30]Read from MH i2c: 01 07 00 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: 01 07 00 B5 32 00 00 00 00 00 FF 0F FC [20:50:30]process_action close_receipt done [20:50:30]requested_data is exist [20:50:30]produce_requested_data [20:50:30]requested_item fm.sn is exist - process it [20:50:30]wFMCommunicate request_size=4 [20:50:30]MH_SAM_APDU [20:50:30]CAPDU: 80 11 00 00 [20:50:30]Write to MH i2c: E2 08 00 B6 32 80 11 00 00 00 00 00 00 62 [20:50:30]Write i2c OK [20:50:30]MH_I2C_Read... [20:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:30]Read from MH i2c: E2 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: E2 17 00 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: E2 17 00 B6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B4 [20:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [20:50:30]wFMCommunicate OK [20:50:30]requested_item fd.num is exist - process it [20:50:30]SAM_PROTO_GetFieldsCounters [20:50:30]wFMCommunicate request_size=4 [20:50:30]MH_SAM_APDU [20:50:30]CAPDU: 80 13 00 00 [20:50:30]Write to MH i2c: E2 08 00 B7 32 80 13 00 00 00 00 00 00 65 [20:50:30]Write i2c OK [20:50:30]MH_I2C_Read... [20:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:30]Read from MH i2c: E2 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: E2 62 00 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: E2 62 00 B7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8C B3 01 00 0E 04 04 00 84 01 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 36 [20:50: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:30]wFMCommunicate OK [20:50:30]SAM_PROTO_GetFieldsCounters done [20:50:30]requested_item shift.num is exist - process it [20:50:30]requested_item shift.opened is exist - process it [20:50:30]req_shift_opened [20:50:30]FM_GetShiftState [20:50:30]SAM_PROTO_GetShiftState [20:50:30]wFMCommunicate request_size=4 [20:50:30]MH_SAM_APDU [20:50:30]CAPDU: 80 13 01 00 [20:50:30]Write to MH i2c: E2 08 00 B8 32 80 13 01 00 00 00 00 00 67 [20:50:30]Write i2c OK [20:50:30]MH_I2C_Read... [20:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:30]Read from MH i2c: E2 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: E2 0E 00 [20:50:30]MH_I2C_Read... [20:50:30]Read from MH i2c: E2 0E 00 B8 32 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B1 [20:50:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [20:50:30]wFMCommunicate OK [20:50:30]SAM_PROTO_GetShiftState done [20:50:30]FM_GetShiftState done [20:50:30]req_shift_opened done [20:50:30]requested_item shift.open_date is exist - process it [20:50:30]req_shift_open_date [20:50:30]req_shift_open_date done [20:50:30]produce_requested_data done [20:50:30]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111500,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [20:50:30]process_action_free close_receipt [20:50:30]json_value_free [20:50:30]json_value_free done [20:50:30]process_json_proto returns [20:50:30]Send response to host [20:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111500,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [20:50:30]free response buf [20:50:30]execute_script done [20:50:30]execute_script returns [20:50:30]free content buf [20:50:30]Sock 7.Close socket [20:50:30]Sock 7.Thread stoped [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]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:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]accept exits with 9 [21:09:20]New connection [21:09:20]New thread 3067321700 created [21:09:20]Thread 3067465060 joined [21:09:20]Waiting for new connection... [21:09:20] Sock 9.Parse request [21:09:20]Sock 9.Check first char [21:09:20]Sock 9.First char is OK [21:09:20]request: POST /json_proto HTTP/1.0 [21:09:20]Method: POST [21:09:20]URL: /json_proto [21:09:20]Method is POST - this is cgi request [21:09:20]url: /json_proto [21:09:20]query_string will be loaded in cgi processing [21:09:20]execute_cgi json_proto POST (null) [21:09:20]execute_cgi path=json_proto method=POST [21:09:20]POST find Content-Length [21:09:20]Host: 172.17.59.68:8080 [21:09:20]Content-Length: 677 [21:09:20]Content-Type: application/json [21:09:20] [21:09:20]POST finish read [21:09:20]Found Content-Length = 677 [21:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:20]execute_script... [21:09: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)320091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:20]POST & json_proto [21:09:20]process_json_proto [21:09:20]json parsed OK: [21:09:20]protocol is kg_v1.0 [21:09:20]action value=close_receipt [21:09:20]process_action close_receipt [21:09:20]cmd_close_receipt [21:09:20]MH_GetDate [21:09:20]Write to MH i2c: F0 00 00 B9 32 DA [21:09:20]Write i2c OK [21:09:20]MH_I2C_Read... [21:09:20]Read from MH i2c: F0 [21:09:20]MH_I2C_Read... [21:09:20]Read from MH i2c: F0 09 00 [21:09:20]MH_I2C_Read... [21:09:20]Read from MH i2c: F0 09 00 B9 32 00 0C 49 73 66 BC EC 60 65 7E [21:09:20]GetLastDocTimeStamp 1718830239 [21:09:20]current date 1718831372 [21:09:20]FM_GetShiftState [21:09:20]SAM_PROTO_GetShiftState [21:09:20]wFMCommunicate request_size=4 [21:09:20]MH_SAM_APDU [21:09:20]CAPDU: 80 13 01 00 [21:09:20]Write to MH i2c: E2 08 00 BA 32 80 13 01 00 00 00 00 00 69 [21:09:20]Write i2c OK [21:09:20]MH_I2C_Read... [21:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:20]Read from MH i2c: E2 [21:09:20]MH_I2C_Read... [21:09:20]Read from MH i2c: E2 0E 00 [21:09:20]MH_I2C_Read... [21:09:20]Read from MH i2c: E2 0E 00 BA 32 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B3 [21:09:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:09:20]wFMCommunicate OK [21:09:20]SAM_PROTO_GetShiftState done [21:09:20]FM_GetShiftState done [21:09:20]opened in 1718760753 [21:09:20]opened+sec_in_day 1718847153 [21:09:20]quantity*price = 30012 [21:09:20]sum+1 = 30014 [21:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 250 19.06.2024 21:09 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111501 ФПД: 183013900688441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T210932&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111501&fm=183013900688441&tin=02508201610067®Number=0000000000092771&sum=30000 [21:09:21]StoreToDocumentArchive [21:09:21]shift 388 fd 111501 [21:09:21]save to /storage/0388/doc_00111501 [21:09:21]save last doc name /storage/0388/doc_00111501 to /storage/kkm_last_doc_name [21:09:21]save OK [21:09:21]Clear old archive folders... [21:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:21]tlvbuf is 00EBF510 [21:09:21]SAM_PROTO_ClearQueue [21:09:21]wFMCommunicate request_size=4 [21:09:21]MH_SAM_APDU [21:09:21]CAPDU: 80 09 00 00 [21:09:21]Write to MH i2c: E2 08 00 C7 32 80 09 00 00 00 00 00 00 6B [21:09:21]Write i2c OK [21:09:21]MH_I2C_Read... [21:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:21]Read from MH i2c: E2 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 03 00 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 03 00 C7 32 00 90 00 6D [21:09:21]RAPDU: 90 00 [21:09:21]wFMCommunicate OK [21:09:21]SAM_PROTO_ClearQueue done [21:09:21]KKMCreateOFDPacket [21:09:21]OFDProtocolAddRootSTLVToBuf [21:09:21]FM_MakeSignedData [21:09:21]FM_MakeSignedData [21:09:21]SAM_PROTO_SignData [21:09:21]wFMCommunicate request_size=4 [21:09:21]MH_SAM_APDU [21:09:21]CAPDU: 80 0D 01 02 [21:09:21]Write to MH i2c: E2 08 00 C8 32 80 0D 01 02 00 00 00 00 73 [21:09:21]Write i2c OK [21:09:21]MH_I2C_Read... [21:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:21]Read from MH i2c: E2 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 03 00 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 03 00 C8 32 00 90 00 6E [21:09:21]RAPDU: 90 00 [21:09:21]wFMCommunicate OK [21:09:21]wFMCommunicate request_size=255 [21:09:21]MH_SAM_APDU [21:09: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 FA 00 00 00 F4 03 04 00 0C 49 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B3 01 00 35 04 06 00 A6 [21:09:21]Write to MH i2c: E2 02 01 C9 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 FA 00 00 00 F4 03 04 00 0C 49 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B3 01 00 35 04 06 00 A6 00 00 59 [21:09:21]Write i2c OK [21:09:21]MH_I2C_Read... [21:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:21]Read from MH i2c: E2 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 03 00 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 03 00 C9 32 00 90 00 6F [21:09:21]RAPDU: 90 00 [21:09:21]wFMCommunicate OK [21:09:21]wFMCommunicate request_size=10 [21:09:21]MH_SAM_APDU [21:09:21]CAPDU: 80 0D 02 02 05 73 3E 8A 1C 39 [21:09:21]Write to MH i2c: E2 0D 00 CA 32 80 0D 02 02 05 00 73 3E 8A 1C 39 00 00 10 [21:09:21]Write i2c OK [21:09:21]MH_I2C_Read... [21:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:21]Read from MH i2c: E2 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 03 00 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 03 00 CA 32 00 90 00 70 [21:09:21]RAPDU: 90 00 [21:09:21]wFMCommunicate OK [21:09:21]wFMCommunicate request_size=4 [21:09:21]MH_SAM_APDU [21:09:21]CAPDU: 80 0D 03 02 [21:09:21]Write to MH i2c: E2 08 00 CB 32 80 0D 03 02 00 00 00 00 78 [21:09:21]Write i2c OK [21:09:21]MH_I2C_Read... [21:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:21]Read from MH i2c: E2 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 0B 00 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 0B 00 CB 32 00 44 6E 8F 07 11 E5 BE 7E 90 00 F3 [21:09:21]RAPDU: 44 6E 8F 07 11 E5 BE 7E 90 00 [21:09:21]wFMCommunicate OK [21:09:21]SAM_PROTO_SignData done [21:09:21]FM_MakeSignedData done [21:09:21]CreateOFDProtocolMessage [21:09:21]wFMCommunicate request_size=4 [21:09:21]MH_SAM_APDU [21:09:21]CAPDU: 80 11 00 00 [21:09:21]Write to MH i2c: E2 08 00 CC 32 80 11 00 00 00 00 00 00 78 [21:09:21]Write i2c OK [21:09:21]MH_I2C_Read... [21:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:21]Read from MH i2c: E2 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 17 00 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: E2 17 00 CC 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CA [21:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:09:21]wFMCommunicate OK [21:09:21]CreateOFDProtocolMessage done [21:09:21]OFDSenderStorePacket 111501 [21:09:21]StoreOFDPacket docnum=111501 [21:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 88 A4 07 01 84 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 FA 00 00 00 F4 03 04 00 0C 49 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B3 01 00 35 04 06 00 A6 73 3E 8A 1C 39 44 6E 8F 07 11 E5 BE 7E [21:09:21]CheckFolder [21:09:21]dirname=/storage/ofd_packets [21:09:21]CheckFolder done [21:09:21]ProducePacketName [21:09:21]name=ofd_packets/00111501 [21:09:21]NVStorageSaveData ofd_packets/00111501 [21:09:21]File name is /storage/ofd_packets/00111501 [21:09:21]Write 301 bytes [21:09:21]NVStorageSaveData done [21:09:21]OFDSenderStorePacket done [21:09:21]KKMCreateOFDPacket done [21:09:21]NVStorageSaveData kkm_last_timestamp [21:09:21]File name is /storage/kkm_last_timestamp [21:09:21]Write 4 bytes [21:09:21]NVStorageSaveData done [21:09:21]ExternCall_PrintAddStr [21:09:21]wPrintStart [21:09:21]Write to MH i2c: 01 00 00 CD 32 FF [21:09:21]Write i2c OK [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: 01 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: 01 07 00 [21:09:21]MH_I2C_Read... [21:09:21]Read from MH i2c: 01 07 00 CD 32 00 00 00 00 00 FF 0F 14 [21:09:21]RasterBufferAndPrint [21:09:21]line Счет N : (1)320091 [21:09:21]line ИНН: 02508201610067 [21:09:21]line Контрольно-Кассовый Чек [21:09:21]line ПРОДАЖА [21:09:21]line ТРК (МРК, ГНК) : 11 [21:09:21]line Товар: 2710124130 [21:09:21]line Аи-92-К-5 [21:09:21]line 4.520 * 66.40 [21:09:21]line = 300.13 [21:09:21]line НДС 12% НСП 1% [21:09:21]line > о реализуемом товаре [21:09:21]line ОКРУГЛЕНИЕ: -0.13 [21:09:21]line ИТОГО: 300.00 [21:09:21]line Внесено: 300.00 [21:09:21]line СДАЧА: 0.00 [21:09:21]line НСП 1% : 2.66 [21:09:21]line НДС 12% : 31.87 [21:09:21]line Наличными: 300.00 [21:09:21]line Безнал.: 0.00 [21:09:21]line Место: АЗС № 65 "Партнер Нефть" [21:09:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:09:21]line СНО: Общий режим [21:09:21]line Чек 250 19.06.2024 21:09 [21:09:21]line Смена: 388 ФФД: 1.0 [21:09:21]line ЗНМ: 0300000198 [21:09:21]line РНМ: 0000000000092771 [21:09:21]line Версия ККМ: 001 [21:09:21]line ФМ: 0000000000875083 [21:09:21]line ФД: 111501 [21:09:21]line ФПД: 183013900688441 [21:09:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T210932&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111501&fm=183013900688441&tin=02508201610067®Number=0000000000092771&sum=30000 [21:09:22]OFD Sender: Processing packet 111501 [packets to send 38, broken 37] [21:09:22]ProducePacketName [21:09:22]name=ofd_packets/00111501 [21:09:22]OFD Sender: To server: pG, [21:09:22]CommunicateWithHost lk.salyk.kg:30040 [21:09:22]ConnectInit lk.salyk.kg [21:09:22]written 0, free lines is 4095 [21:09:22]Connected sock=10 [21:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 88 A4 07 01 84 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 FA 00 00 00 F4 03 04 00 0C 49 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8D B3 01 00 35 04 06 00 A6 73 3E 8A 1C 39 44 6E 8F 07 11 E5 BE 7E [21:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5B 55 47 00 50 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 35 30 38 33 10 04 04 00 8D B3 01 00 F4 03 04 00 6B E0 72 66 B6 04 01 00 00 43 C5 88 0B 62 E4 EE 6A [21:09:22]CommunicateWithHost err = 0 [21:09:22]CheckOFDResponse [21:09:22]1017 (14) - 77093643461234 [21:09:22]1041 (16) - 0000000000875083 [21:09:22]1040 (4) - 111501 [21:09:22]1012 (4) - 19.06.2024 13:43 [21:09:22]1206 (1) - 0 [21:09:22]OFD Sender: Remove packet 111501 [21:09:22]ProducePacketName [21:09:22]name=ofd_packets/00111501 [21:09:22]NVStorageDeleteData [21:09:22]Write to MH i2c: 01 00 00 F8 32 2A [21:09:22]Write i2c OK [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: 01 [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: 01 07 00 [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: 01 07 00 F8 32 00 00 00 00 00 CE 0C 0B [21:09:22]RasterBufferAndPrint [21:09:22]line [21:09:22]line [21:09:22]line [21:09:22]line [21:09:22]line [21:09:22]written 0, free lines is 3286 [21:09:22]MH_Cut [21:09:22]Write to MH i2c: D1 01 00 FF 32 01 03 [21:09:22]Write i2c OK [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: D1 [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: D1 01 00 [21:09:22]MH_I2C_Read... [21:09:22]Read from MH i2c: D1 01 00 FF 32 00 02 [21:09:22]Write to MH i2c: 01 00 00 00 33 33 [21:09:22]Write i2c OK [21:09:22]MH_I2C_Read... [21:09:22]OFD Sender: No OFD packet to send [21:09:23]*** Cut start [21:09:23]*** Partial cut [21:09:23]*** CUTSNS_PIN = 1 [21:09:23]*** CUTSNS_PIN = 0 [21:09:23]*** Brake cut motor [21:09:23]Read from MH i2c: 01 [21:09:23]MH_I2C_Read... [21:09:23]*** Stop cut motor [21:09:23]*** Cut end [21:09:23]Read from MH i2c: 01 07 00 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: 01 07 00 00 33 00 00 00 00 00 FF 0F 48 [21:09:23]process_action close_receipt done [21:09:23]requested_data is exist [21:09:23]produce_requested_data [21:09:23]requested_item fm.sn is exist - process it [21:09:23]wFMCommunicate request_size=4 [21:09:23]MH_SAM_APDU [21:09:23]CAPDU: 80 11 00 00 [21:09:23]Write to MH i2c: E2 08 00 01 33 80 11 00 00 00 00 00 00 AE [21:09:23]Write i2c OK [21:09:23]MH_I2C_Read... [21:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:23]Read from MH i2c: E2 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: E2 17 00 [21:09:23]MH_I2C_Read... [21:09:23]Read from MH i2c: E2 17 00 01 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 00 [21:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:09:23]wFMCommunicate OK [21:09:23]requested_item fd.num is exist - process it [21:09:23]SAM_PROTO_GetFieldsCounters [21:09:23]wFMCommunicate request_size=4 [21:09:23]MH_SAM_APDU [21:09:23]CAPDU: 80 13 00 00 [21:09:23]Write to MH i2c: E2 08 00 02 33 80 13 00 00 00 00 00 00 B1 [21:09:23]Write i2c OK [21:09:23]MH_I2C_Read... [21:09:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:24]Read from MH i2c: E2 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 62 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 62 00 02 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8D B3 01 00 0E 04 04 00 84 01 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 86 [21:09: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8D B3 01 00 0E 04 04 00 84 01 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 [21:09:24]wFMCommunicate OK [21:09:24]SAM_PROTO_GetFieldsCounters done [21:09:24]requested_item shift.num is exist - process it [21:09:24]requested_item shift.opened is exist - process it [21:09:24]req_shift_opened [21:09:24]FM_GetShiftState [21:09:24]SAM_PROTO_GetShiftState [21:09:24]wFMCommunicate request_size=4 [21:09:24]MH_SAM_APDU [21:09:24]CAPDU: 80 13 01 00 [21:09:24]Write to MH i2c: E2 08 00 03 33 80 13 01 00 00 00 00 00 B3 [21:09:24]Write i2c OK [21:09:24]MH_I2C_Read... [21:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:24]Read from MH i2c: E2 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 0E 00 [21:09:24]MH_I2C_Read... [21:09:24]Read from MH i2c: E2 0E 00 03 33 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FD [21:09:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:09:24]wFMCommunicate OK [21:09:24]SAM_PROTO_GetShiftState done [21:09:24]FM_GetShiftState done [21:09:24]req_shift_opened done [21:09:24]requested_item shift.open_date is exist - process it [21:09:24]req_shift_open_date [21:09:24]req_shift_open_date done [21:09:24]produce_requested_data done [21:09:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111501,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:09:24]process_action_free close_receipt [21:09:24]json_value_free [21:09:24]json_value_free done [21:09:24]process_json_proto returns [21:09:24]Send response to host [21:09:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111501,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:09:24]free response buf [21:09:24]execute_script done [21:09:24]execute_script returns [21:09:24]free content buf [21:09:24]Sock 9.Close socket [21:09:24]Sock 9.Thread stoped [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12: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:11]accept exits with 7 [21:13:11]New connection [21:13:11]New thread 3067465060 created [21:13:11]Thread 3067321700 joined [21:13:11]Waiting for new connection... [21:13:11] Sock 7.Parse request [21:13:11]Sock 7.Check first char [21:13:11]Sock 7.First char is OK [21:13:11]request: POST /json_proto HTTP/1.0 [21:13:11]Method: POST [21:13:11]URL: /json_proto [21:13:11]Method is POST - this is cgi request [21:13:11]url: /json_proto [21:13:11]query_string will be loaded in cgi processing [21:13:11]execute_cgi json_proto POST (null) [21:13:11]execute_cgi path=json_proto method=POST [21:13:11]POST find Content-Length [21:13:11]Host: 172.17.59.68:8080 [21:13:11]Content-Length: 682 [21:13:11]Content-Type: application/json [21:13:11] [21:13:11]POST finish read [21:13:11]Found Content-Length = 682 [21:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:11]execute_script... [21:13: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)320092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:13:11]POST & json_proto [21:13:11]process_json_proto [21:13:11]json parsed OK: [21:13:11]protocol is kg_v1.0 [21:13:11]action value=close_receipt [21:13:11]process_action close_receipt [21:13:11]cmd_close_receipt [21:13:11]MH_GetDate [21:13:11]Write to MH i2c: F0 00 00 04 33 26 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: F0 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: F0 09 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: F0 09 00 04 33 00 F3 49 73 66 BC EC 60 65 B1 [21:13:11]GetLastDocTimeStamp 1718831372 [21:13:11]current date 1718831603 [21:13:11]FM_GetShiftState [21:13:11]SAM_PROTO_GetShiftState [21:13:11]wFMCommunicate request_size=4 [21:13:11]MH_SAM_APDU [21:13:11]CAPDU: 80 13 01 00 [21:13:11]Write to MH i2c: E2 08 00 05 33 80 13 01 00 00 00 00 00 B5 [21:13:11]Write i2c OK [21:13:11]MH_I2C_Read... [21:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:11]Read from MH i2c: E2 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0E 00 [21:13:11]MH_I2C_Read... [21:13:11]Read from MH i2c: E2 0E 00 05 33 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FF [21:13:11]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:13:11]wFMCommunicate OK [21:13:11]SAM_PROTO_GetShiftState done [21:13:11]FM_GetShiftState done [21:13:11]opened in 1718760753 [21:13:11]opened+sec_in_day 1718847153 [21:13:11]quantity*price = 100064 [21:13:11]sum+1 = 100066 [21:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 251 19.06.2024 21:13 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111502 ФПД: 178659400336193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T211323&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111502&fm=178659400336193&tin=02508201610067®Number=0000000000092771&sum=100000 [21:13:12]StoreToDocumentArchive [21:13:12]shift 388 fd 111502 [21:13:12]save to /storage/0388/doc_00111502 [21:13:12]save last doc name /storage/0388/doc_00111502 to /storage/kkm_last_doc_name [21:13:12]save OK [21:13:12]Clear old archive folders... [21:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:13:12]tlvbuf is B6F57AB0 [21:13:12]SAM_PROTO_ClearQueue [21:13:12]wFMCommunicate request_size=4 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 09 00 00 [21:13:12]Write to MH i2c: E2 08 00 12 33 80 09 00 00 00 00 00 00 B7 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 12 33 00 90 00 B9 [21:13:12]RAPDU: 90 00 [21:13:12]wFMCommunicate OK [21:13:12]SAM_PROTO_ClearQueue done [21:13:12]KKMCreateOFDPacket [21:13:12]OFDProtocolAddRootSTLVToBuf [21:13:12]FM_MakeSignedData [21:13:12]FM_MakeSignedData [21:13:12]SAM_PROTO_SignData [21:13:12]wFMCommunicate request_size=4 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 0D 01 02 [21:13:12]Write to MH i2c: E2 08 00 13 33 80 0D 01 02 00 00 00 00 BF [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 13 33 00 90 00 BA [21:13:12]RAPDU: 90 00 [21:13:12]wFMCommunicate OK [21:13:12]wFMCommunicate request_size=255 [21:13:12]MH_SAM_APDU [21:13: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F3 49 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B3 01 00 35 04 06 00 A2 [21:13:12]Write to MH i2c: E2 02 01 14 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F3 49 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B3 01 00 35 04 06 00 A2 00 00 3C [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 14 33 00 90 00 BB [21:13:12]RAPDU: 90 00 [21:13:12]wFMCommunicate OK [21:13:12]wFMCommunicate request_size=10 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 0D 02 02 05 7D 62 17 C3 41 [21:13:12]Write to MH i2c: E2 0D 00 15 33 80 0D 02 02 05 00 7D 62 17 C3 41 00 00 C6 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 03 00 15 33 00 90 00 BC [21:13:12]RAPDU: 90 00 [21:13:12]wFMCommunicate OK [21:13:12]wFMCommunicate request_size=4 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 0D 03 02 [21:13:12]Write to MH i2c: E2 08 00 16 33 80 0D 03 02 00 00 00 00 C4 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 0B 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 0B 00 16 33 00 5F 9A 17 44 FB E7 09 D4 90 00 D8 [21:13:12]RAPDU: 5F 9A 17 44 FB E7 09 D4 90 00 [21:13:12]wFMCommunicate OK [21:13:12]SAM_PROTO_SignData done [21:13:12]FM_MakeSignedData done [21:13:12]CreateOFDProtocolMessage [21:13:12]wFMCommunicate request_size=4 [21:13:12]MH_SAM_APDU [21:13:12]CAPDU: 80 11 00 00 [21:13:12]Write to MH i2c: E2 08 00 17 33 80 11 00 00 00 00 00 00 C4 [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:12]Read from MH i2c: E2 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 17 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: E2 17 00 17 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 16 [21:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:13:12]wFMCommunicate OK [21:13:12]CreateOFDProtocolMessage done [21:13:12]OFDSenderStorePacket 111502 [21:13:12]StoreOFDPacket docnum=111502 [21:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A6 F4 07 01 75 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F3 49 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B3 01 00 35 04 06 00 A2 7D 62 17 C3 41 5F 9A 17 44 FB E7 09 D4 [21:13:12]CheckFolder [21:13:12]dirname=/storage/ofd_packets [21:13:12]CheckFolder done [21:13:12]ProducePacketName [21:13:12]name=ofd_packets/00111502 [21:13:12]NVStorageSaveData ofd_packets/00111502 [21:13:12]File name is /storage/ofd_packets/00111502 [21:13:12]Write 301 bytes [21:13:12]NVStorageSaveData done [21:13:12]OFDSenderStorePacket done [21:13:12]KKMCreateOFDPacket done [21:13:12]NVStorageSaveData kkm_last_timestamp [21:13:12]File name is /storage/kkm_last_timestamp [21:13:12]Write 4 bytes [21:13:12]NVStorageSaveData done [21:13:12]ExternCall_PrintAddStr [21:13:12]wPrintStart [21:13:12]Write to MH i2c: 01 00 00 18 33 4B [21:13:12]Write i2c OK [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 07 00 [21:13:12]MH_I2C_Read... [21:13:12]Read from MH i2c: 01 07 00 18 33 00 00 00 00 00 FF 0F 60 [21:13:12]RasterBufferAndPrint [21:13:12]line Счет N : (1)320092 [21:13:12]line ИНН: 02508201610067 [21:13:12]line Контрольно-Кассовый Чек [21:13:12]line ПРОДАЖА [21:13:12]line ТРК (МРК, ГНК) : 11 [21:13:12]line Товар: 2710124130 [21:13:12]line Аи-92-К-5 [21:13:12]line 15.070 * 66.40 [21:13:12]line = 1000.65 [21:13:12]line НДС 12% НСП 1% [21:13:12]line > о реализуемом товаре [21:13:12]line ОКРУГЛЕНИЕ: -0.65 [21:13:12]line ИТОГО: 1000.00 [21:13:12]line Внесено: 1000.00 [21:13:12]line СДАЧА: 0.00 [21:13:12]line НСП 1% : 8.85 [21:13:12]line НДС 12% : 106.26 [21:13:12]line Наличными: 1000.00 [21:13:12]line Безнал.: 0.00 [21:13:12]line Место: АЗС № 65 "Партнер Нефть" [21:13:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:13:12]line СНО: Общий режим [21:13:12]line Чек 251 19.06.2024 21:13 [21:13:12]line Смена: 388 ФФД: 1.0 [21:13:12]line ЗНМ: 0300000198 [21:13:12]line РНМ: 0000000000092771 [21:13:12]line Версия ККМ: 001 [21:13:12]line ФМ: 0000000000875083 [21:13:12]line ФД: 111502 [21:13:12]line ФПД: 178659400336193 [21:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T211323&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111502&fm=178659400336193&tin=02508201610067®Number=0000000000092771&sum=100000 [21:13:13]OFD Sender: Processing packet 111502 [packets to send 38, broken 37] [21:13:13]ProducePacketName [21:13:13]name=ofd_packets/00111502 [21:13:13]OFD Sender: To server: pG, [21:13:13]CommunicateWithHost lk.salyk.kg:30040 [21:13:13]ConnectInit lk.salyk.kg [21:13:13]written 0, free lines is 4095 [21:13:13]Connected sock=10 [21:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A6 F4 07 01 75 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 F3 49 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8E B3 01 00 35 04 06 00 A2 7D 62 17 C3 41 5F 9A 17 44 FB E7 09 D4 [21:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B7 B6 47 00 3C 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 35 30 38 33 10 04 04 00 8E B3 01 00 F4 03 04 00 52 E1 72 66 B6 04 01 00 00 40 0C B1 0F BD C7 BA E3 [21:13:13]CommunicateWithHost err = 0 [21:13:13]CheckOFDResponse [21:13:13]1017 (14) - 77093643461234 [21:13:13]1041 (16) - 0000000000875083 [21:13:13]1040 (4) - 111502 [21:13:13]1012 (4) - 19.06.2024 13:46 [21:13:13]1206 (1) - 0 [21:13:13]OFD Sender: Remove packet 111502 [21:13:13]ProducePacketName [21:13:13]name=ofd_packets/00111502 [21:13:13]NVStorageDeleteData [21:13:13]Write to MH i2c: 01 00 00 43 33 76 [21:13:13]Write i2c OK [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: 01 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: 01 07 00 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: 01 07 00 43 33 00 00 00 00 00 D3 0C 5C [21:13:13]RasterBufferAndPrint [21:13:13]line [21:13:13]line [21:13:13]line [21:13:13]line [21:13:13]line [21:13:13]written 0, free lines is 3290 [21:13:13]MH_Cut [21:13:13]Write to MH i2c: D1 01 00 4A 33 01 4F [21:13:13]Write i2c OK [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: D1 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: D1 01 00 [21:13:13]MH_I2C_Read... [21:13:13]Read from MH i2c: D1 01 00 4A 33 00 4E [21:13:13]Write to MH i2c: 01 00 00 4B 33 7E [21:13:13]Write i2c OK [21:13:13]MH_I2C_Read... [21:13:14]OFD Sender: No OFD packet to send [21:13:14]*** Cut start [21:13:14]*** Partial cut [21:13:14]*** CUTSNS_PIN = 1 [21:13:14]*** CUTSNS_PIN = 0 [21:13:14]*** Brake cut motor [21:13:15]Read from MH i2c: 01 [21:13:15]MH_I2C_Read... [21:13:15]*** Stop cut motor [21:13:15]*** Cut end [21:13:15]Read from MH i2c: 01 07 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: 01 07 00 4B 33 00 00 00 00 00 FF 0F 93 [21:13:15]process_action close_receipt done [21:13:15]requested_data is exist [21:13:15]produce_requested_data [21:13:15]requested_item fm.sn is exist - process it [21:13:15]wFMCommunicate request_size=4 [21:13:15]MH_SAM_APDU [21:13:15]CAPDU: 80 11 00 00 [21:13:15]Write to MH i2c: E2 08 00 4C 33 80 11 00 00 00 00 00 00 F9 [21:13:15]Write i2c OK [21:13:15]MH_I2C_Read... [21:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:13:15]Read from MH i2c: E2 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 17 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 17 00 4C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4B [21:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:13:15]wFMCommunicate OK [21:13:15]requested_item fd.num is exist - process it [21:13:15]SAM_PROTO_GetFieldsCounters [21:13:15]wFMCommunicate request_size=4 [21:13:15]MH_SAM_APDU [21:13:15]CAPDU: 80 13 00 00 [21:13:15]Write to MH i2c: E2 08 00 4D 33 80 13 00 00 00 00 00 00 FC [21:13:15]Write i2c OK [21:13:15]MH_I2C_Read... [21:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:13:15]Read from MH i2c: E2 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 62 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 62 00 4D 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8E B3 01 00 0E 04 04 00 84 01 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 D5 [21:13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8E B3 01 00 0E 04 04 00 84 01 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 [21:13:15]wFMCommunicate OK [21:13:15]SAM_PROTO_GetFieldsCounters done [21:13:15]requested_item shift.num is exist - process it [21:13:15]requested_item shift.opened is exist - process it [21:13:15]req_shift_opened [21:13:15]FM_GetShiftState [21:13:15]SAM_PROTO_GetShiftState [21:13:15]wFMCommunicate request_size=4 [21:13:15]MH_SAM_APDU [21:13:15]CAPDU: 80 13 01 00 [21:13:15]Write to MH i2c: E2 08 00 4E 33 80 13 01 00 00 00 00 00 FE [21:13:15]Write i2c OK [21:13:15]MH_I2C_Read... [21:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:13:15]Read from MH i2c: E2 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 0E 00 [21:13:15]MH_I2C_Read... [21:13:15]Read from MH i2c: E2 0E 00 4E 33 00 09 00 01 31 35 72 66 00 00 00 00 90 00 48 [21:13:15]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:13:15]wFMCommunicate OK [21:13:15]SAM_PROTO_GetShiftState done [21:13:15]FM_GetShiftState done [21:13:15]req_shift_opened done [21:13:15]requested_item shift.open_date is exist - process it [21:13:15]req_shift_open_date [21:13:15]req_shift_open_date done [21:13:15]produce_requested_data done [21:13:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111502,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:13:15]process_action_free close_receipt [21:13:15]json_value_free [21:13:15]json_value_free done [21:13:15]process_json_proto returns [21:13:15]Send response to host [21:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111502,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:13:15]free response buf [21:13:15]execute_script done [21:13:15]execute_script returns [21:13:15]free content buf [21:13:15]Sock 7.Close socket [21:13:15]Sock 7.Thread stoped [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:03]accept exits with 9 [21:15:03]New connection [21:15:03]New thread 3067321700 created [21:15:03]Thread 3067465060 joined [21:15:03]Waiting for new connection... [21:15:03] Sock 9.Parse request [21:15:03]Sock 9.Check first char [21:15:03]Sock 9.First char is OK [21:15:03]request: POST /json_proto HTTP/1.0 [21:15:03]Method: POST [21:15:03]URL: /json_proto [21:15:03]Method is POST - this is cgi request [21:15:03]url: /json_proto [21:15:03]query_string will be loaded in cgi processing [21:15:03]execute_cgi json_proto POST (null) [21:15:03]execute_cgi path=json_proto method=POST [21:15:03]POST find Content-Length [21:15:03]Host: 172.17.59.68:8080 [21:15:03]Content-Length: 808 [21:15:03]Content-Type: application/json [21:15:03] [21:15:03]POST finish read [21:15:03]Found Content-Length = 808 [21:15:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:03]execute_script... [21:15:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:03]POST & json_proto [21:15:03]process_json_proto [21:15:03]json parsed OK: [21:15:03]protocol is kg_v1.0 [21:15:03]action value=close_receipt [21:15:03]process_action close_receipt [21:15:03]cmd_close_receipt [21:15:03]MH_GetDate [21:15:03]Write to MH i2c: F0 00 00 4F 33 71 [21:15:03]Write i2c OK [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: F0 [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: F0 09 00 [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: F0 09 00 4F 33 00 64 4A 73 66 BC EC 60 65 6E [21:15:03]GetLastDocTimeStamp 1718831603 [21:15:03]current date 1718831716 [21:15:03]FM_GetShiftState [21:15:03]SAM_PROTO_GetShiftState [21:15:03]wFMCommunicate request_size=4 [21:15:03]MH_SAM_APDU [21:15:03]CAPDU: 80 13 01 00 [21:15:03]Write to MH i2c: E2 08 00 50 33 80 13 01 00 00 00 00 00 00 [21:15:03]Write i2c OK [21:15:03]MH_I2C_Read... [21:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:03]Read from MH i2c: E2 [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: E2 0E 00 [21:15:03]MH_I2C_Read... [21:15:03]Read from MH i2c: E2 0E 00 50 33 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4A [21:15:03]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:15:03]wFMCommunicate OK [21:15:03]SAM_PROTO_GetShiftState done [21:15:03]FM_GetShiftState done [21:15:03]opened in 1718760753 [21:15:03]opened+sec_in_day 1718847153 [21:15:03]quantity*price = 100064 [21:15:03]sum+1 = 100066 [21:15:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 252 19.06.2024 21:15 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111503 ФПД: 145040903814585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T211516&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111503&fm=145040903814585&tin=02508201610067®Number=0000000000092771&sum=100065 [21:15:04]StoreToDocumentArchive [21:15:04]shift 388 fd 111503 [21:15:04]save to /storage/0388/doc_00111503 [21:15:04]save last doc name /storage/0388/doc_00111503 to /storage/kkm_last_doc_name [21:15:04]save OK [21:15:04]Clear old archive folders... [21:15:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:04]tlvbuf is 00F2FEB0 [21:15:04]SAM_PROTO_ClearQueue [21:15:04]wFMCommunicate request_size=4 [21:15:04]MH_SAM_APDU [21:15:04]CAPDU: 80 09 00 00 [21:15:04]Write to MH i2c: E2 08 00 5D 33 80 09 00 00 00 00 00 00 02 [21:15:04]Write i2c OK [21:15:04]MH_I2C_Read... [21:15:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:04]Read from MH i2c: E2 [21:15:04]MH_I2C_Read... [21:15:04]Read from MH i2c: E2 03 00 [21:15:04]MH_I2C_Read... [21:15:04]Read from MH i2c: E2 03 00 5D 33 00 90 00 04 [21:15:04]RAPDU: 90 00 [21:15:04]wFMCommunicate OK [21:15:04]SAM_PROTO_ClearQueue done [21:15:04]KKMCreateOFDPacket [21:15:04]OFDProtocolAddRootSTLVToBuf [21:15:04]FM_MakeSignedData [21:15:04]FM_MakeSignedData [21:15:04]SAM_PROTO_SignData [21:15:04]wFMCommunicate request_size=4 [21:15:04]MH_SAM_APDU [21:15:04]CAPDU: 80 0D 01 02 [21:15:04]Write to MH i2c: E2 08 00 5E 33 80 0D 01 02 00 00 00 00 0A [21:15:04]Write i2c OK [21:15:04]MH_I2C_Read... [21:15:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:04]Read from MH i2c: E2 [21:15:04]MH_I2C_Read... [21:15:04]Read from MH i2c: E2 03 00 [21:15:04]MH_I2C_Read... [21:15:04]Read from MH i2c: E2 03 00 5E 33 00 90 00 05 [21:15:04]RAPDU: 90 00 [21:15:04]wFMCommunicate OK [21:15:04]wFMCommunicate request_size=255 [21:15:05]MH_SAM_APDU [21:15: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 64 4A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B3 01 00 35 04 06 00 83 [21:15:05]Write to MH i2c: E2 02 01 5F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 64 4A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B3 01 00 35 04 06 00 83 00 00 5E [21:15:05]Write i2c OK [21:15:05]MH_I2C_Read... [21:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:05]Read from MH i2c: E2 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 03 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 03 00 5F 33 00 90 00 06 [21:15:05]RAPDU: 90 00 [21:15:05]wFMCommunicate OK [21:15:05]wFMCommunicate request_size=10 [21:15:05]MH_SAM_APDU [21:15:05]CAPDU: 80 0D 02 02 05 E9 F7 8C BD B9 [21:15:05]Write to MH i2c: E2 0D 00 60 33 80 0D 02 02 05 00 E9 F7 8C BD B9 00 00 F9 [21:15:05]Write i2c OK [21:15:05]MH_I2C_Read... [21:15:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:05]Read from MH i2c: E2 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 03 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 03 00 60 33 00 90 00 07 [21:15:05]RAPDU: 90 00 [21:15:05]wFMCommunicate OK [21:15:05]wFMCommunicate request_size=4 [21:15:05]MH_SAM_APDU [21:15:05]CAPDU: 80 0D 03 02 [21:15:05]Write to MH i2c: E2 08 00 61 33 80 0D 03 02 00 00 00 00 0F [21:15:05]Write i2c OK [21:15:05]MH_I2C_Read... [21:15:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:05]Read from MH i2c: E2 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 0B 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 0B 00 61 33 00 1B 00 99 A2 26 A4 98 BF 90 00 87 [21:15:05]RAPDU: 1B 00 99 A2 26 A4 98 BF 90 00 [21:15:05]wFMCommunicate OK [21:15:05]SAM_PROTO_SignData done [21:15:05]FM_MakeSignedData done [21:15:05]CreateOFDProtocolMessage [21:15:05]wFMCommunicate request_size=4 [21:15:05]MH_SAM_APDU [21:15:05]CAPDU: 80 11 00 00 [21:15:05]Write to MH i2c: E2 08 00 62 33 80 11 00 00 00 00 00 00 0F [21:15:05]Write i2c OK [21:15:05]MH_I2C_Read... [21:15:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:05]Read from MH i2c: E2 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 17 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: E2 17 00 62 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 61 [21:15:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:15:05]wFMCommunicate OK [21:15:05]CreateOFDProtocolMessage done [21:15:05]OFDSenderStorePacket 111503 [21:15:05]StoreOFDPacket docnum=111503 [21:15:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 11 2A 07 01 DF 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 64 4A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B3 01 00 35 04 06 00 83 E9 F7 8C BD B9 1B 00 99 A2 26 A4 98 BF [21:15:05]CheckFolder [21:15:05]dirname=/storage/ofd_packets [21:15:05]CheckFolder done [21:15:05]ProducePacketName [21:15:05]name=ofd_packets/00111503 [21:15:05]NVStorageSaveData ofd_packets/00111503 [21:15:05]File name is /storage/ofd_packets/00111503 [21:15:05]Write 301 bytes [21:15:05]NVStorageSaveData done [21:15:05]OFDSenderStorePacket done [21:15:05]KKMCreateOFDPacket done [21:15:05]NVStorageSaveData kkm_last_timestamp [21:15:05]File name is /storage/kkm_last_timestamp [21:15:05]Write 4 bytes [21:15:05]NVStorageSaveData done [21:15:05]ExternCall_PrintAddStr [21:15:05]wPrintStart [21:15:05]Write to MH i2c: 01 00 00 63 33 96 [21:15:05]Write i2c OK [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: 01 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: 01 07 00 [21:15:05]MH_I2C_Read... [21:15:05]Read from MH i2c: 01 07 00 63 33 00 00 00 00 00 FF 0F AB [21:15:05]RasterBufferAndPrint [21:15:05]line Счет N : (1)320093 [21:15:05]line ИНН: 02508201610067 [21:15:05]line Контрольно-Кассовый Чек [21:15:05]line ПРОДАЖА [21:15:05]line ТРК (МРК, ГНК) : 11 [21:15:05]line Товар: 2710124130 [21:15:05]line Аи-92-К-5 [21:15:05]line 15.070 * 66.40 [21:15:05]line = 1000.65 [21:15:05]line НДС 12% НСП 1% [21:15:05]line > о реализуемом товаре [21:15:05]line ИТОГО: 1000.65 [21:15:05]line НСП 1% : 8.85 [21:15:05]line НДС 12% : 106.26 [21:15:05]line Наличными: 0.00 [21:15:05]line Безнал.: 1000.65 [21:15:05]line Место: АЗС № 65 "Партнер Нефть" [21:15:05]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:15:05]line СНО: Общий режим [21:15:05]line Чек 252 19.06.2024 21:15 [21:15:05]line Смена: 388 ФФД: 1.0 [21:15:05]line ЗНМ: 0300000198 [21:15:05]line РНМ: 0000000000092771 [21:15:05]line Версия ККМ: 001 [21:15:05]line Платежная система: О! деньги [21:15:05]line ФМ: 0000000000875083 [21:15:05]line ФД: 111503 [21:15:05]line ФПД: 145040903814585 [21:15:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T211516&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111503&fm=145040903814585&tin=02508201610067®Number=0000000000092771&sum=100065 [21:15:05]OFD Sender: Processing packet 111503 [packets to send 38, broken 37] [21:15:05]ProducePacketName [21:15:05]name=ofd_packets/00111503 [21:15:05]OFD Sender: To server: pG, [21:15:05]CommunicateWithHost lk.salyk.kg:30040 [21:15:05]ConnectInit lk.salyk.kg [21:15:05]written 0, free lines is 4095 [21:15:05]Connected sock=10 [21:15:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 11 2A 07 01 DF 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 64 4A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 8F B3 01 00 35 04 06 00 83 E9 F7 8C BD B9 1B 00 99 A2 26 A4 98 BF [21:15:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 51 B8 47 00 5C 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 35 30 38 33 10 04 04 00 8F B3 01 00 F4 03 04 00 C2 E1 72 66 B6 04 01 00 00 B3 E7 1C 4D 1C 4C 54 FF [21:15:06]CommunicateWithHost err = 0 [21:15:06]CheckOFDResponse [21:15:06]1017 (14) - 77093643461234 [21:15:06]1041 (16) - 0000000000875083 [21:15:06]1040 (4) - 111503 [21:15:06]1012 (4) - 19.06.2024 13:48 [21:15:06]1206 (1) - 0 [21:15:06]OFD Sender: Remove packet 111503 [21:15:06]ProducePacketName [21:15:06]name=ofd_packets/00111503 [21:15:06]NVStorageDeleteData [21:15:06]Write to MH i2c: 01 00 00 8D 33 C0 [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 07 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: 01 07 00 8D 33 00 00 00 00 00 E0 0C B3 [21:15:06]RasterBufferAndPrint [21:15:06]line [21:15:06]line [21:15:06]line [21:15:06]line [21:15:06]line [21:15:06]written 0, free lines is 3302 [21:15:06]MH_Cut [21:15:06]Write to MH i2c: D1 01 00 94 33 01 99 [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: D1 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: D1 01 00 [21:15:06]MH_I2C_Read... [21:15:06]Read from MH i2c: D1 01 00 94 33 00 98 [21:15:06]Write to MH i2c: 01 00 00 95 33 C8 [21:15:06]Write i2c OK [21:15:06]MH_I2C_Read... [21:15:06]OFD Sender: No OFD packet to send [21:15:06]*** Cut start [21:15:06]*** Partial cut [21:15:06]*** CUTSNS_PIN = 1 [21:15:07]*** CUTSNS_PIN = 0 [21:15:07]*** Brake cut motor [21:15:07]Read from MH i2c: 01 [21:15:07]MH_I2C_Read... [21:15:07]*** Stop cut motor [21:15:07]*** Cut end [21:15:07]Read from MH i2c: 01 07 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: 01 07 00 95 33 00 00 00 00 00 FF 0F DD [21:15:07]process_action close_receipt done [21:15:07]requested_data is exist [21:15:07]produce_requested_data [21:15:07]requested_item fm.sn is exist - process it [21:15:07]wFMCommunicate request_size=4 [21:15:07]MH_SAM_APDU [21:15:07]CAPDU: 80 11 00 00 [21:15:07]Write to MH i2c: E2 08 00 96 33 80 11 00 00 00 00 00 00 43 [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:07]Read from MH i2c: E2 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 17 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 17 00 96 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 95 [21:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:15:07]wFMCommunicate OK [21:15:07]requested_item fd.num is exist - process it [21:15:07]SAM_PROTO_GetFieldsCounters [21:15:07]wFMCommunicate request_size=4 [21:15:07]MH_SAM_APDU [21:15:07]CAPDU: 80 13 00 00 [21:15:07]Write to MH i2c: E2 08 00 97 33 80 13 00 00 00 00 00 00 46 [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:07]Read from MH i2c: E2 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 62 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 62 00 97 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8F B3 01 00 0E 04 04 00 84 01 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 23 [21:15:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 8F B3 01 00 0E 04 04 00 84 01 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 [21:15:07]wFMCommunicate OK [21:15:07]SAM_PROTO_GetFieldsCounters done [21:15:07]requested_item shift.num is exist - process it [21:15:07]requested_item shift.opened is exist - process it [21:15:07]req_shift_opened [21:15:07]FM_GetShiftState [21:15:07]SAM_PROTO_GetShiftState [21:15:07]wFMCommunicate request_size=4 [21:15:07]MH_SAM_APDU [21:15:07]CAPDU: 80 13 01 00 [21:15:07]Write to MH i2c: E2 08 00 98 33 80 13 01 00 00 00 00 00 48 [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:07]Read from MH i2c: E2 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 0E 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 0E 00 98 33 00 09 00 01 31 35 72 66 00 00 00 00 90 00 92 [21:15:07]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:15:07]wFMCommunicate OK [21:15:07]SAM_PROTO_GetShiftState done [21:15:07]FM_GetShiftState done [21:15:07]req_shift_opened done [21:15:07]requested_item shift.open_date is exist - process it [21:15:07]req_shift_open_date [21:15:07]req_shift_open_date done [21:15:07]produce_requested_data done [21:15:07]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111503,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:15:07]process_action_free close_receipt [21:15:07]json_value_free [21:15:07]json_value_free done [21:15:07]process_json_proto returns [21:15:07]Send response to host [21:15:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111503,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:15:07]free response buf [21:15:07]execute_script done [21:15:07]execute_script returns [21:15:07]free content buf [21:15:07]Sock 9.Close socket [21:15:07]Sock 9.Thread stoped [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [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:14]accept exits with 7 [21:20:14]New connection [21:20:14]New thread 3067465060 created [21:20:14]Thread 3067321700 joined [21:20:14]Waiting for new connection... [21:20:14] Sock 7.Parse request [21:20:14]Sock 7.Check first char [21:20:14]Sock 7.First char is OK [21:20:14]request: POST /json_proto HTTP/1.0 [21:20:14]Method: POST [21:20:14]URL: /json_proto [21:20:14]Method is POST - this is cgi request [21:20:14]url: /json_proto [21:20:14]query_string will be loaded in cgi processing [21:20:14]execute_cgi json_proto POST (null) [21:20:14]execute_cgi path=json_proto method=POST [21:20:14]POST find Content-Length [21:20:14]Host: 172.17.59.68:8080 [21:20:14]Content-Length: 677 [21:20:14]Content-Type: application/json [21:20:14] [21:20:14]POST finish read [21:20:14]Found Content-Length = 677 [21:20:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:14]execute_script... [21:20: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)320094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:20:14]POST & json_proto [21:20:14]process_json_proto [21:20:14]json parsed OK: [21:20:14]protocol is kg_v1.0 [21:20:14]action value=close_receipt [21:20:14]process_action close_receipt [21:20:14]cmd_close_receipt [21:20:14]MH_GetDate [21:20:14]Write to MH i2c: F0 00 00 99 33 BB [21:20:14]Write i2c OK [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: F0 [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: F0 09 00 [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: F0 09 00 99 33 00 9B 4B 73 66 BC EC 60 65 F0 [21:20:14]GetLastDocTimeStamp 1718831716 [21:20:14]current date 1718832027 [21:20:14]FM_GetShiftState [21:20:14]SAM_PROTO_GetShiftState [21:20:14]wFMCommunicate request_size=4 [21:20:14]MH_SAM_APDU [21:20:14]CAPDU: 80 13 01 00 [21:20:14]Write to MH i2c: E2 08 00 9A 33 80 13 01 00 00 00 00 00 4A [21:20:14]Write i2c OK [21:20:14]MH_I2C_Read... [21:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:14]Read from MH i2c: E2 [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: E2 0E 00 [21:20:14]MH_I2C_Read... [21:20:14]Read from MH i2c: E2 0E 00 9A 33 00 09 00 01 31 35 72 66 00 00 00 00 90 00 94 [21:20:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:20:14]wFMCommunicate OK [21:20:14]SAM_PROTO_GetShiftState done [21:20:14]FM_GetShiftState done [21:20:14]opened in 1718760753 [21:20:14]opened+sec_in_day 1718847153 [21:20:14]quantity*price = 50065 [21:20:14]sum+1 = 50067 [21:20:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 253 19.06.2024 21:20 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111504 ФПД: 185417528275180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212027&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111504&fm=185417528275180&tin=02508201610067®Number=0000000000092771&sum=50000 [21:20:15]StoreToDocumentArchive [21:20:15]shift 388 fd 111504 [21:20:15]save to /storage/0388/doc_00111504 [21:20:15]save last doc name /storage/0388/doc_00111504 to /storage/kkm_last_doc_name [21:20:15]save OK [21:20:15]Clear old archive folders... [21:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:20:15]tlvbuf is 00F70A40 [21:20:15]SAM_PROTO_ClearQueue [21:20:15]wFMCommunicate request_size=4 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 09 00 00 [21:20:15]Write to MH i2c: E2 08 00 A7 33 80 09 00 00 00 00 00 00 4C [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 A7 33 00 90 00 4E [21:20:15]RAPDU: 90 00 [21:20:15]wFMCommunicate OK [21:20:15]SAM_PROTO_ClearQueue done [21:20:15]KKMCreateOFDPacket [21:20:15]OFDProtocolAddRootSTLVToBuf [21:20:15]FM_MakeSignedData [21:20:15]FM_MakeSignedData [21:20:15]SAM_PROTO_SignData [21:20:15]wFMCommunicate request_size=4 [21:20:15]MH_SAM_APDU [21:20:15]CAPDU: 80 0D 01 02 [21:20:15]Write to MH i2c: E2 08 00 A8 33 80 0D 01 02 00 00 00 00 54 [21:20:15]Write i2c OK [21:20:15]MH_I2C_Read... [21:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:15]Read from MH i2c: E2 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 [21:20:15]MH_I2C_Read... [21:20:15]Read from MH i2c: E2 03 00 A8 33 00 90 00 4F [21:20:15]RAPDU: 90 00 [21:20:15]wFMCommunicate OK [21:20:15]wFMCommunicate request_size=255 [21:20:15]MH_SAM_APDU [21:20: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B 4B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B3 01 00 35 04 06 00 A8 [21:20:15]Write to MH i2c: E2 02 01 A9 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B 4B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B3 01 00 35 04 06 00 A8 00 00 35 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:16]Read from MH i2c: E2 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 A9 33 00 90 00 50 [21:20:16]RAPDU: 90 00 [21:20:16]wFMCommunicate OK [21:20:16]wFMCommunicate request_size=10 [21:20:16]MH_SAM_APDU [21:20:16]CAPDU: 80 0D 02 02 05 A2 E1 E8 70 EC [21:20:16]Write to MH i2c: E2 0D 00 AA 33 80 0D 02 02 05 00 A2 E1 E8 70 EC 00 00 28 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:16]Read from MH i2c: E2 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 03 00 AA 33 00 90 00 51 [21:20:16]RAPDU: 90 00 [21:20:16]wFMCommunicate OK [21:20:16]wFMCommunicate request_size=4 [21:20:16]MH_SAM_APDU [21:20:16]CAPDU: 80 0D 03 02 [21:20:16]Write to MH i2c: E2 08 00 AB 33 80 0D 03 02 00 00 00 00 59 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:16]Read from MH i2c: E2 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 0B 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 0B 00 AB 33 00 A0 8D 68 69 55 6B C2 FC 90 00 D6 [21:20:16]RAPDU: A0 8D 68 69 55 6B C2 FC 90 00 [21:20:16]wFMCommunicate OK [21:20:16]SAM_PROTO_SignData done [21:20:16]FM_MakeSignedData done [21:20:16]CreateOFDProtocolMessage [21:20:16]wFMCommunicate request_size=4 [21:20:16]MH_SAM_APDU [21:20:16]CAPDU: 80 11 00 00 [21:20:16]Write to MH i2c: E2 08 00 AC 33 80 11 00 00 00 00 00 00 59 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:16]Read from MH i2c: E2 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 17 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: E2 17 00 AC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AB [21:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:20:16]wFMCommunicate OK [21:20:16]CreateOFDProtocolMessage done [21:20:16]OFDSenderStorePacket 111504 [21:20:16]StoreOFDPacket docnum=111504 [21:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 27 07 01 14 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B 4B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B3 01 00 35 04 06 00 A8 A2 E1 E8 70 EC A0 8D 68 69 55 6B C2 FC [21:20:16]CheckFolder [21:20:16]dirname=/storage/ofd_packets [21:20:16]CheckFolder done [21:20:16]ProducePacketName [21:20:16]name=ofd_packets/00111504 [21:20:16]NVStorageSaveData ofd_packets/00111504 [21:20:16]File name is /storage/ofd_packets/00111504 [21:20:16]Write 301 bytes [21:20:16]NVStorageSaveData done [21:20:16]OFDSenderStorePacket done [21:20:16]KKMCreateOFDPacket done [21:20:16]NVStorageSaveData kkm_last_timestamp [21:20:16]File name is /storage/kkm_last_timestamp [21:20:16]Write 4 bytes [21:20:16]NVStorageSaveData done [21:20:16]ExternCall_PrintAddStr [21:20:16]wPrintStart [21:20:16]Write to MH i2c: 01 00 00 AD 33 E0 [21:20:16]Write i2c OK [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: 01 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: 01 07 00 [21:20:16]MH_I2C_Read... [21:20:16]Read from MH i2c: 01 07 00 AD 33 00 00 00 00 00 FF 0F F5 [21:20:16]RasterBufferAndPrint [21:20:16]line Счет N : (1)320094 [21:20:16]line ИНН: 02508201610067 [21:20:16]line Контрольно-Кассовый Чек [21:20:16]line ПРОДАЖА [21:20:16]line ТРК (МРК, ГНК) : 11 [21:20:16]line Товар: 2710124130 [21:20:16]line Аи-92-К-5 [21:20:16]line 7.540 * 66.40 [21:20:16]line = 500.66 [21:20:16]line НДС 12% НСП 1% [21:20:16]line > о реализуемом товаре [21:20:16]line ОКРУГЛЕНИЕ: -0.66 [21:20:16]line ИТОГО: 500.00 [21:20:16]line Внесено: 500.00 [21:20:16]line СДАЧА: 0.00 [21:20:16]line НСП 1% : 4.43 [21:20:16]line НДС 12% : 53.17 [21:20:16]line Наличными: 500.00 [21:20:16]line Безнал.: 0.00 [21:20:16]line Место: АЗС № 65 "Партнер Нефть" [21:20:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:20:16]line СНО: Общий режим [21:20:16]line Чек 253 19.06.2024 21:20 [21:20:16]line Смена: 388 ФФД: 1.0 [21:20:16]line ЗНМ: 0300000198 [21:20:16]line РНМ: 0000000000092771 [21:20:16]line Версия ККМ: 001 [21:20:16]line ФМ: 0000000000875083 [21:20:16]line ФД: 111504 [21:20:16]line ФПД: 185417528275180 [21:20:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212027&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111504&fm=185417528275180&tin=02508201610067®Number=0000000000092771&sum=50000 [21:20:16]OFD Sender: Processing packet 111504 [packets to send 38, broken 37] [21:20:16]ProducePacketName [21:20:16]name=ofd_packets/00111504 [21:20:16]OFD Sender: To server: pG, [21:20:16]CommunicateWithHost lk.salyk.kg:30040 [21:20:16]ConnectInit lk.salyk.kg [21:20:16]written 0, free lines is 4095 [21:20:16]Connected sock=9 [21:20:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C7 27 07 01 14 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 9B 4B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 90 B3 01 00 35 04 06 00 A8 A2 E1 E8 70 EC A0 8D 68 69 55 6B C2 FC [21:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 21 19 47 00 0E 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 35 30 38 33 10 04 04 00 90 B3 01 00 F4 03 04 00 F9 E2 72 66 B6 04 01 00 00 29 6F 77 1D C7 53 40 1C [21:20:17]CommunicateWithHost err = 0 [21:20:17]CheckOFDResponse [21:20:17]1017 (14) - 77093643461234 [21:20:17]1041 (16) - 0000000000875083 [21:20:17]1040 (4) - 111504 [21:20:17]1012 (4) - 19.06.2024 13:54 [21:20:17]1206 (1) - 0 [21:20:17]OFD Sender: Remove packet 111504 [21:20:17]ProducePacketName [21:20:17]name=ofd_packets/00111504 [21:20:17]NVStorageDeleteData [21:20:17]Write to MH i2c: 01 00 00 D8 33 0B [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 07 00 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: 01 07 00 D8 33 00 00 00 00 00 CC 0C EA [21:20:17]RasterBufferAndPrint [21:20:17]line [21:20:17]line [21:20:17]line [21:20:17]line [21:20:17]line [21:20:17]written 0, free lines is 3282 [21:20:17]MH_Cut [21:20:17]Write to MH i2c: D1 01 00 DF 33 01 E4 [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: D1 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: D1 01 00 [21:20:17]MH_I2C_Read... [21:20:17]Read from MH i2c: D1 01 00 DF 33 00 E3 [21:20:17]Write to MH i2c: 01 00 00 E0 33 13 [21:20:17]Write i2c OK [21:20:17]MH_I2C_Read... [21:20:17]OFD Sender: No OFD packet to send [21:20:17]*** Cut start [21:20:17]*** Partial cut [21:20:17]*** CUTSNS_PIN = 1 [21:20:18]*** CUTSNS_PIN = 0 [21:20:18]*** Brake cut motor [21:20:18]Read from MH i2c: 01 [21:20:18]MH_I2C_Read... [21:20:18]*** Stop cut motor [21:20:18]*** Cut end [21:20:18]Read from MH i2c: 01 07 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: 01 07 00 E0 33 00 00 00 00 00 FF 0F 28 [21:20:18]process_action close_receipt done [21:20:18]requested_data is exist [21:20:18]produce_requested_data [21:20:18]requested_item fm.sn is exist - process it [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 11 00 00 [21:20:18]Write to MH i2c: E2 08 00 E1 33 80 11 00 00 00 00 00 00 8E [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 17 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 17 00 E1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E0 [21:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:20:18]wFMCommunicate OK [21:20:18]requested_item fd.num is exist - process it [21:20:18]SAM_PROTO_GetFieldsCounters [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 13 00 00 [21:20:18]Write to MH i2c: E2 08 00 E2 33 80 13 00 00 00 00 00 00 91 [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 62 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 62 00 E2 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 90 B3 01 00 0E 04 04 00 84 01 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 72 [21:20: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 90 B3 01 00 0E 04 04 00 84 01 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 [21:20:18]wFMCommunicate OK [21:20:18]SAM_PROTO_GetFieldsCounters done [21:20:18]requested_item shift.num is exist - process it [21:20:18]requested_item shift.opened is exist - process it [21:20:18]req_shift_opened [21:20:18]FM_GetShiftState [21:20:18]SAM_PROTO_GetShiftState [21:20:18]wFMCommunicate request_size=4 [21:20:18]MH_SAM_APDU [21:20:18]CAPDU: 80 13 01 00 [21:20:18]Write to MH i2c: E2 08 00 E3 33 80 13 01 00 00 00 00 00 93 [21:20:18]Write i2c OK [21:20:18]MH_I2C_Read... [21:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:18]Read from MH i2c: E2 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 0E 00 [21:20:18]MH_I2C_Read... [21:20:18]Read from MH i2c: E2 0E 00 E3 33 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DD [21:20:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:20:18]wFMCommunicate OK [21:20:18]SAM_PROTO_GetShiftState done [21:20:18]FM_GetShiftState done [21:20:18]req_shift_opened done [21:20:18]requested_item shift.open_date is exist - process it [21:20:18]req_shift_open_date [21:20:18]req_shift_open_date done [21:20:18]produce_requested_data done [21:20:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111504,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:20:18]process_action_free close_receipt [21:20:18]json_value_free [21:20:18]json_value_free done [21:20:18]process_json_proto returns [21:20:18]Send response to host [21:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111504,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:20:18]free response buf [21:20:18]execute_script done [21:20:18]execute_script returns [21:20:18]free content buf [21:20:18]Sock 7.Close socket [21:20:18]Sock 7.Thread stoped [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:25]accept exits with 10 [21:21:25]New connection [21:21:25]New thread 3067321700 created [21:21:25]Thread 3067465060 joined [21:21:25]Waiting for new connection... [21:21:25] Sock 10.Parse request [21:21:25]Sock 10.Check first char [21:21:25]Sock 10.First char is OK [21:21:25]request: POST /json_proto HTTP/1.0 [21:21:25]Method: POST [21:21:25]URL: /json_proto [21:21:25]Method is POST - this is cgi request [21:21:25]url: /json_proto [21:21:25]query_string will be loaded in cgi processing [21:21:25]execute_cgi json_proto POST (null) [21:21:25]execute_cgi path=json_proto method=POST [21:21:25]POST find Content-Length [21:21:25]Host: 172.17.59.68:8080 [21:21:25]Content-Length: 674 [21:21:25]Content-Type: application/json [21:21:25] [21:21:25]POST finish read [21:21:25]Found Content-Length = 674 [21:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:21:25]execute_script... [21:21: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)320095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:21:25]POST & json_proto [21:21:25]process_json_proto [21:21:25]json parsed OK: [21:21:25]protocol is kg_v1.0 [21:21:25]action value=close_receipt [21:21:25]process_action close_receipt [21:21:25]cmd_close_receipt [21:21:25]MH_GetDate [21:21:25]Write to MH i2c: F0 00 00 E4 33 06 [21:21:25]Write i2c OK [21:21:25]MH_I2C_Read... [21:21:25]Read from MH i2c: F0 [21:21:25]MH_I2C_Read... [21:21:25]Read from MH i2c: F0 09 00 [21:21:25]MH_I2C_Read... [21:21:25]Read from MH i2c: F0 09 00 E4 33 00 E2 4B 73 66 BC EC 60 65 82 [21:21:25]GetLastDocTimeStamp 1718832027 [21:21:25]current date 1718832098 [21:21:25]FM_GetShiftState [21:21:25]SAM_PROTO_GetShiftState [21:21:25]wFMCommunicate request_size=4 [21:21:25]MH_SAM_APDU [21:21:25]CAPDU: 80 13 01 00 [21:21:25]Write to MH i2c: E2 08 00 E5 33 80 13 01 00 00 00 00 00 95 [21:21:25]Write i2c OK [21:21:25]MH_I2C_Read... [21:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:25]Read from MH i2c: E2 [21:21:25]MH_I2C_Read... [21:21:25]Read from MH i2c: E2 0E 00 [21:21:25]MH_I2C_Read... [21:21:25]Read from MH i2c: E2 0E 00 E5 33 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DF [21:21:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:21:25]wFMCommunicate OK [21:21:25]SAM_PROTO_GetShiftState done [21:21:25]FM_GetShiftState done [21:21:25]opened in 1718760753 [21:21:25]opened+sec_in_day 1718847153 [21:21:25]quantity*price = 20047 [21:21:25]sum+1 = 20049 [21:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 254 19.06.2024 21:21 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111505 ФПД: 275213053907919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212138&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111505&fm=275213053907919&tin=02508201610067®Number=0000000000092771&sum=20000 [21:21:26]StoreToDocumentArchive [21:21:26]shift 388 fd 111505 [21:21:26]save to /storage/0388/doc_00111505 [21:21:26]save last doc name /storage/0388/doc_00111505 to /storage/kkm_last_doc_name [21:21:26]save OK [21:21:26]Clear old archive folders... [21:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:21:26]tlvbuf is B6F57DF0 [21:21:26]SAM_PROTO_ClearQueue [21:21:26]wFMCommunicate request_size=4 [21:21:26]MH_SAM_APDU [21:21:26]CAPDU: 80 09 00 00 [21:21:26]Write to MH i2c: E2 08 00 F2 33 80 09 00 00 00 00 00 00 97 [21:21:26]Write i2c OK [21:21:26]MH_I2C_Read... [21:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:21:26]Read from MH i2c: E2 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 03 00 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 03 00 F2 33 00 90 00 99 [21:21:26]RAPDU: 90 00 [21:21:26]wFMCommunicate OK [21:21:26]SAM_PROTO_ClearQueue done [21:21:26]KKMCreateOFDPacket [21:21:26]OFDProtocolAddRootSTLVToBuf [21:21:26]FM_MakeSignedData [21:21:26]FM_MakeSignedData [21:21:26]SAM_PROTO_SignData [21:21:26]wFMCommunicate request_size=4 [21:21:26]MH_SAM_APDU [21:21:26]CAPDU: 80 0D 01 02 [21:21:26]Write to MH i2c: E2 08 00 F3 33 80 0D 01 02 00 00 00 00 9F [21:21:26]Write i2c OK [21:21:26]MH_I2C_Read... [21:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:21:26]Read from MH i2c: E2 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 03 00 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 03 00 F3 33 00 90 00 9A [21:21:26]RAPDU: 90 00 [21:21:26]wFMCommunicate OK [21:21:26]wFMCommunicate request_size=255 [21:21:26]MH_SAM_APDU [21:21: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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E2 4B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B3 01 00 35 04 06 00 FA 4E 08 50 [21:21:26]Write to MH i2c: E2 02 01 F4 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E2 4B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B3 01 00 35 04 06 00 FA 4E 08 50 00 00 4C [21:21:26]Write i2c OK [21:21:26]MH_I2C_Read... [21:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:26]Read from MH i2c: E2 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 03 00 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 03 00 F4 33 00 90 00 9B [21:21:26]RAPDU: 90 00 [21:21:26]wFMCommunicate OK [21:21:26]wFMCommunicate request_size=7 [21:21:26]MH_SAM_APDU [21:21:26]CAPDU: 80 0D 02 02 02 D3 CF [21:21:26]Write to MH i2c: E2 0A 00 F5 33 80 0D 02 02 02 00 D3 CF 00 00 48 [21:21:26]Write i2c OK [21:21:26]MH_I2C_Read... [21:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:21:26]Read from MH i2c: E2 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 03 00 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 03 00 F5 33 00 90 00 9C [21:21:26]RAPDU: 90 00 [21:21:26]wFMCommunicate OK [21:21:26]wFMCommunicate request_size=4 [21:21:26]MH_SAM_APDU [21:21:26]CAPDU: 80 0D 03 02 [21:21:26]Write to MH i2c: E2 08 00 F6 33 80 0D 03 02 00 00 00 00 A4 [21:21:26]Write i2c OK [21:21:26]MH_I2C_Read... [21:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:21:26]Read from MH i2c: E2 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 0B 00 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 0B 00 F6 33 00 29 EF 72 69 14 43 72 71 90 00 D2 [21:21:26]RAPDU: 29 EF 72 69 14 43 72 71 90 00 [21:21:26]wFMCommunicate OK [21:21:26]SAM_PROTO_SignData done [21:21:26]FM_MakeSignedData done [21:21:26]CreateOFDProtocolMessage [21:21:26]wFMCommunicate request_size=4 [21:21:26]MH_SAM_APDU [21:21:26]CAPDU: 80 11 00 00 [21:21:26]Write to MH i2c: E2 08 00 F7 33 80 11 00 00 00 00 00 00 A4 [21:21:26]Write i2c OK [21:21:26]MH_I2C_Read... [21:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:26]Read from MH i2c: E2 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 17 00 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: E2 17 00 F7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F6 [21:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:21:26]wFMCommunicate OK [21:21:26]CreateOFDProtocolMessage done [21:21:26]OFDSenderStorePacket 111505 [21:21:26]StoreOFDPacket docnum=111505 [21:21:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F2 7D 04 01 40 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E2 4B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B3 01 00 35 04 06 00 FA 4E 08 50 D3 CF 29 EF 72 69 14 43 72 71 [21:21:26]CheckFolder [21:21:26]dirname=/storage/ofd_packets [21:21:26]CheckFolder done [21:21:26]ProducePacketName [21:21:26]name=ofd_packets/00111505 [21:21:26]NVStorageSaveData ofd_packets/00111505 [21:21:26]File name is /storage/ofd_packets/00111505 [21:21:26]Write 298 bytes [21:21:26]NVStorageSaveData done [21:21:26]OFDSenderStorePacket done [21:21:26]KKMCreateOFDPacket done [21:21:26]NVStorageSaveData kkm_last_timestamp [21:21:26]File name is /storage/kkm_last_timestamp [21:21:26]Write 4 bytes [21:21:26]NVStorageSaveData done [21:21:26]ExternCall_PrintAddStr [21:21:26]wPrintStart [21:21:26]Write to MH i2c: 01 00 00 F8 33 2B [21:21:26]Write i2c OK [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: 01 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: 01 07 00 [21:21:26]MH_I2C_Read... [21:21:26]Read from MH i2c: 01 07 00 F8 33 00 00 00 00 00 FF 0F 40 [21:21:26]RasterBufferAndPrint [21:21:26]line Счет N : (1)320095 [21:21:26]line ИНН: 02508201610067 [21:21:26]line Контрольно-Кассовый Чек [21:21:26]line ПРОДАЖА [21:21:26]line ТРК (МРК, ГНК) : 22 [21:21:26]line Товар: 2710194210 [21:21:26]line ДТ-К-5 [21:21:26]line 2.750 * 72.90 [21:21:26]line = 200.48 [21:21:26]line НДС 12% НСП 1% [21:21:26]line > о реализуемом товаре [21:21:26]line ОКРУГЛЕНИЕ: -0.48 [21:21:26]line ИТОГО: 200.00 [21:21:26]line Внесено: 200.00 [21:21:26]line СДАЧА: 0.00 [21:21:26]line НСП 1% : 1.77 [21:21:26]line НДС 12% : 21.29 [21:21:26]line Наличными: 200.00 [21:21:26]line Безнал.: 0.00 [21:21:26]line Место: АЗС № 65 "Партнер Нефть" [21:21:26]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:21:26]line СНО: Общий режим [21:21:26]line Чек 254 19.06.2024 21:21 [21:21:26]line Смена: 388 ФФД: 1.0 [21:21:26]line ЗНМ: 0300000198 [21:21:26]line РНМ: 0000000000092771 [21:21:26]line Версия ККМ: 001 [21:21:26]line ФМ: 0000000000875083 [21:21:26]line ФД: 111505 [21:21:26]line ФПД: 275213053907919 [21:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212138&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111505&fm=275213053907919&tin=02508201610067®Number=0000000000092771&sum=20000 [21:21:27]OFD Sender: Processing packet 111505 [packets to send 38, broken 37] [21:21:27]ProducePacketName [21:21:27]name=ofd_packets/00111505 [21:21:27]OFD Sender: To server: pG, [21:21:27]CommunicateWithHost lk.salyk.kg:30040 [21:21:27]ConnectInit lk.salyk.kg [21:21:27]written 0, free lines is 4095 [21:21:27]Connected sock=9 [21:21:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 F2 7D 04 01 40 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E2 4B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B3 01 00 35 04 06 00 FA 4E 08 50 D3 CF 29 EF 72 69 14 43 72 71 [21:21:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 12 04 47 00 FD 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 91 B3 01 00 F4 03 04 00 40 E3 72 66 B6 04 01 00 00 12 03 3A 4E B0 11 BC 4B [21:21:27]CommunicateWithHost err = 0 [21:21:27]CheckOFDResponse [21:21:27]1017 (14) - 77093643461234 [21:21:27]1041 (16) - 0000000000875083 [21:21:27]1040 (4) - 111505 [21:21:27]1012 (4) - 19.06.2024 13:55 [21:21:27]1206 (1) - 0 [21:21:27]OFD Sender: Remove packet 111505 [21:21:27]ProducePacketName [21:21:27]name=ofd_packets/00111505 [21:21:27]NVStorageDeleteData [21:21:27]Write to MH i2c: 01 00 00 23 34 57 [21:21:27]Write i2c OK [21:21:27]MH_I2C_Read... [21:21:27]Read from MH i2c: 01 [21:21:27]MH_I2C_Read... [21:21:27]Read from MH i2c: 01 07 00 [21:21:27]MH_I2C_Read... [21:21:27]Read from MH i2c: 01 07 00 23 34 00 00 00 00 00 CC 0C 36 [21:21:27]RasterBufferAndPrint [21:21:27]line [21:21:27]line [21:21:27]line [21:21:27]line [21:21:27]line [21:21:27]written 0, free lines is 3282 [21:21:27]MH_Cut [21:21:27]Write to MH i2c: D1 01 00 2A 34 01 30 [21:21:27]Write i2c OK [21:21:27]MH_I2C_Read... [21:21:27]Read from MH i2c: D1 [21:21:27]MH_I2C_Read... [21:21:27]Read from MH i2c: D1 01 00 [21:21:27]MH_I2C_Read... [21:21:27]Read from MH i2c: D1 01 00 2A 34 00 2F [21:21:27]Write to MH i2c: 01 00 00 2B 34 5F [21:21:27]Write i2c OK [21:21:27]MH_I2C_Read... [21:21:28]OFD Sender: No OFD packet to send [21:21:28]*** Cut start [21:21:28]*** Partial cut [21:21:28]*** CUTSNS_PIN = 1 [21:21:28]*** CUTSNS_PIN = 0 [21:21:28]*** Brake cut motor [21:21:29]Read from MH i2c: 01 [21:21:29]MH_I2C_Read... [21:21:29]*** Stop cut motor [21:21:29]*** Cut end [21:21:29]Read from MH i2c: 01 07 00 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: 01 07 00 2B 34 00 00 00 00 00 FF 0F 74 [21:21:29]process_action close_receipt done [21:21:29]requested_data is exist [21:21:29]produce_requested_data [21:21:29]requested_item fm.sn is exist - process it [21:21:29]wFMCommunicate request_size=4 [21:21:29]MH_SAM_APDU [21:21:29]CAPDU: 80 11 00 00 [21:21:29]Write to MH i2c: E2 08 00 2C 34 80 11 00 00 00 00 00 00 DA [21:21:29]Write i2c OK [21:21:29]MH_I2C_Read... [21:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:29]Read from MH i2c: E2 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 17 00 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 17 00 2C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2C [21:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:21:29]wFMCommunicate OK [21:21:29]requested_item fd.num is exist - process it [21:21:29]SAM_PROTO_GetFieldsCounters [21:21:29]wFMCommunicate request_size=4 [21:21:29]MH_SAM_APDU [21:21:29]CAPDU: 80 13 00 00 [21:21:29]Write to MH i2c: E2 08 00 2D 34 80 13 00 00 00 00 00 00 DD [21:21:29]Write i2c OK [21:21:29]MH_I2C_Read... [21:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:29]Read from MH i2c: E2 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 62 00 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 62 00 2D 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 91 B3 01 00 0E 04 04 00 84 01 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 C2 [21:21: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 91 B3 01 00 0E 04 04 00 84 01 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 [21:21:29]wFMCommunicate OK [21:21:29]SAM_PROTO_GetFieldsCounters done [21:21:29]requested_item shift.num is exist - process it [21:21:29]requested_item shift.opened is exist - process it [21:21:29]req_shift_opened [21:21:29]FM_GetShiftState [21:21:29]SAM_PROTO_GetShiftState [21:21:29]wFMCommunicate request_size=4 [21:21:29]MH_SAM_APDU [21:21:29]CAPDU: 80 13 01 00 [21:21:29]Write to MH i2c: E2 08 00 2E 34 80 13 01 00 00 00 00 00 DF [21:21:29]Write i2c OK [21:21:29]MH_I2C_Read... [21:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:29]Read from MH i2c: E2 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 0E 00 [21:21:29]MH_I2C_Read... [21:21:29]Read from MH i2c: E2 0E 00 2E 34 00 09 00 01 31 35 72 66 00 00 00 00 90 00 29 [21:21:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:21:29]wFMCommunicate OK [21:21:29]SAM_PROTO_GetShiftState done [21:21:29]FM_GetShiftState done [21:21:29]req_shift_opened done [21:21:29]requested_item shift.open_date is exist - process it [21:21:29]req_shift_open_date [21:21:29]req_shift_open_date done [21:21:29]produce_requested_data done [21:21:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111505,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:21:29]process_action_free close_receipt [21:21:29]json_value_free [21:21:29]json_value_free done [21:21:29]process_json_proto returns [21:21:29]Send response to host [21:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111505,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:21:29]free response buf [21:21:29]execute_script done [21:21:29]execute_script returns [21:21:29]free content buf [21:21:29]Sock 10.Close socket [21:21:29]Sock 10.Thread stoped [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:01]accept exits with 7 [21:23:01]New connection [21:23:01]New thread 3067465060 created [21:23:01]Thread 3067321700 joined [21:23:01]Waiting for new connection... [21:23:01] Sock 7.Parse request [21:23:01]Sock 7.Check first char [21:23:01]Sock 7.First char is OK [21:23:01]request: POST /json_proto HTTP/1.0 [21:23:01]Method: POST [21:23:01]URL: /json_proto [21:23:01]Method is POST - this is cgi request [21:23:01]url: /json_proto [21:23:01]query_string will be loaded in cgi processing [21:23:01]execute_cgi json_proto POST (null) [21:23:01]execute_cgi path=json_proto method=POST [21:23:01]POST find Content-Length [21:23:01]Host: 172.17.59.68:8080 [21:23:01]Content-Length: 674 [21:23:01]Content-Type: application/json [21:23:01] [21:23:01]POST finish read [21:23:01]Found Content-Length = 674 [21:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:01]execute_script... [21:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:23:01]POST & json_proto [21:23:01]process_json_proto [21:23:01]json parsed OK: [21:23:01]protocol is kg_v1.0 [21:23:01]action value=close_receipt [21:23:01]process_action close_receipt [21:23:01]cmd_close_receipt [21:23:01]MH_GetDate [21:23:01]Write to MH i2c: F0 00 00 2F 34 52 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: F0 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: F0 09 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: F0 09 00 2F 34 00 42 4C 73 66 BC EC 60 65 2F [21:23:01]GetLastDocTimeStamp 1718832098 [21:23:01]current date 1718832194 [21:23:01]FM_GetShiftState [21:23:01]SAM_PROTO_GetShiftState [21:23:01]wFMCommunicate request_size=4 [21:23:01]MH_SAM_APDU [21:23:01]CAPDU: 80 13 01 00 [21:23:01]Write to MH i2c: E2 08 00 30 34 80 13 01 00 00 00 00 00 E1 [21:23:01]Write i2c OK [21:23:01]MH_I2C_Read... [21:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:01]Read from MH i2c: E2 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 0E 00 [21:23:01]MH_I2C_Read... [21:23:01]Read from MH i2c: E2 0E 00 30 34 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2B [21:23:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:23:01]wFMCommunicate OK [21:23:01]SAM_PROTO_GetShiftState done [21:23:01]FM_GetShiftState done [21:23:01]opened in 1718760753 [21:23:01]opened+sec_in_day 1718847153 [21:23:01]quantity*price = 50009 [21:23:01]sum+1 = 50010 [21:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 255 19.06.2024 21:23 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111506 ФПД: 260068723636909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212314&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111506&fm=260068723636909&tin=02508201610067®Number=0000000000092771&sum=50000 [21:23:03]StoreToDocumentArchive [21:23:03]shift 388 fd 111506 [21:23:03]save to /storage/0388/doc_00111506 [21:23:03]save last doc name /storage/0388/doc_00111506 to /storage/kkm_last_doc_name [21:23:03]save OK [21:23:03]Clear old archive folders... [21:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:23:03]tlvbuf is B6FD20C0 [21:23:03]SAM_PROTO_ClearQueue [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 09 00 00 [21:23:03]Write to MH i2c: E2 08 00 3D 34 80 09 00 00 00 00 00 00 E3 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 03 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 03 00 3D 34 00 90 00 E5 [21:23:03]RAPDU: 90 00 [21:23:03]wFMCommunicate OK [21:23:03]SAM_PROTO_ClearQueue done [21:23:03]KKMCreateOFDPacket [21:23:03]OFDProtocolAddRootSTLVToBuf [21:23:03]FM_MakeSignedData [21:23:03]FM_MakeSignedData [21:23:03]SAM_PROTO_SignData [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 0D 01 02 [21:23:03]Write to MH i2c: E2 08 00 3E 34 80 0D 01 02 00 00 00 00 EB [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 03 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 03 00 3E 34 00 90 00 E6 [21:23:03]RAPDU: 90 00 [21:23:03]wFMCommunicate OK [21:23:03]wFMCommunicate request_size=255 [21:23:03]MH_SAM_APDU [21:23: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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 42 4C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B3 01 00 35 04 06 00 EC 87 F7 E3 [21:23:03]Write to MH i2c: E2 02 01 3F 34 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 42 4C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B3 01 00 35 04 06 00 EC 87 F7 E3 00 00 13 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]OFD Sender: No OFD packet to send [21:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 03 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 03 00 3F 34 00 90 00 E7 [21:23:03]RAPDU: 90 00 [21:23:03]wFMCommunicate OK [21:23:03]wFMCommunicate request_size=7 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 0D 02 02 02 BA AD [21:23:03]Write to MH i2c: E2 0A 00 40 34 80 0D 02 02 02 00 BA AD 00 00 59 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 03 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 03 00 40 34 00 90 00 E8 [21:23:03]RAPDU: 90 00 [21:23:03]wFMCommunicate OK [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 0D 03 02 [21:23:03]Write to MH i2c: E2 08 00 41 34 80 0D 03 02 00 00 00 00 F0 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 0B 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 0B 00 41 34 00 61 CA B7 D2 EC 9B 27 C1 90 00 14 [21:23:03]RAPDU: 61 CA B7 D2 EC 9B 27 C1 90 00 [21:23:03]wFMCommunicate OK [21:23:03]SAM_PROTO_SignData done [21:23:03]FM_MakeSignedData done [21:23:03]CreateOFDProtocolMessage [21:23:03]wFMCommunicate request_size=4 [21:23:03]MH_SAM_APDU [21:23:03]CAPDU: 80 11 00 00 [21:23:03]Write to MH i2c: E2 08 00 42 34 80 11 00 00 00 00 00 00 F0 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:03]Read from MH i2c: E2 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 17 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: E2 17 00 42 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 42 [21:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:23:03]wFMCommunicate OK [21:23:03]CreateOFDProtocolMessage done [21:23:03]OFDSenderStorePacket 111506 [21:23:03]StoreOFDPacket docnum=111506 [21:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 2B F7 04 01 58 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 42 4C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B3 01 00 35 04 06 00 EC 87 F7 E3 BA AD 61 CA B7 D2 EC 9B 27 C1 [21:23:03]CheckFolder [21:23:03]dirname=/storage/ofd_packets [21:23:03]CheckFolder done [21:23:03]ProducePacketName [21:23:03]name=ofd_packets/00111506 [21:23:03]NVStorageSaveData ofd_packets/00111506 [21:23:03]File name is /storage/ofd_packets/00111506 [21:23:03]Write 298 bytes [21:23:03]NVStorageSaveData done [21:23:03]OFDSenderStorePacket done [21:23:03]KKMCreateOFDPacket done [21:23:03]NVStorageSaveData kkm_last_timestamp [21:23:03]File name is /storage/kkm_last_timestamp [21:23:03]Write 4 bytes [21:23:03]NVStorageSaveData done [21:23:03]ExternCall_PrintAddStr [21:23:03]wPrintStart [21:23:03]Write to MH i2c: 01 00 00 43 34 77 [21:23:03]Write i2c OK [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 07 00 [21:23:03]MH_I2C_Read... [21:23:03]Read from MH i2c: 01 07 00 43 34 00 00 00 00 00 FF 0F 8C [21:23:03]RasterBufferAndPrint [21:23:03]line Счет N : (1)320096 [21:23:03]line ИНН: 02508201610067 [21:23:03]line Контрольно-Кассовый Чек [21:23:03]line ПРОДАЖА [21:23:03]line ТРК (МРК, ГНК) : 22 [21:23:03]line Товар: 2710194210 [21:23:03]line ДТ-К-5 [21:23:03]line 6.860 * 72.90 [21:23:03]line = 500.09 [21:23:03]line НДС 12% НСП 1% [21:23:03]line > о реализуемом товаре [21:23:03]line ОКРУГЛЕНИЕ: -0.09 [21:23:03]line ИТОГО: 500.00 [21:23:03]line Внесено: 500.00 [21:23:03]line СДАЧА: 0.00 [21:23:03]line НСП 1% : 4.43 [21:23:03]line НДС 12% : 53.11 [21:23:03]line Наличными: 500.00 [21:23:03]line Безнал.: 0.00 [21:23:03]line Место: АЗС № 65 "Партнер Нефть" [21:23:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:23:03]line СНО: Общий режим [21:23:03]line Чек 255 19.06.2024 21:23 [21:23:03]line Смена: 388 ФФД: 1.0 [21:23:03]line ЗНМ: 0300000198 [21:23:03]line РНМ: 0000000000092771 [21:23:03]line Версия ККМ: 001 [21:23:03]line ФМ: 0000000000875083 [21:23:03]line ФД: 111506 [21:23:03]line ФПД: 260068723636909 [21:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212314&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111506&fm=260068723636909&tin=02508201610067®Number=0000000000092771&sum=50000 [21:23:03]OFD Sender: Processing packet 111506 [packets to send 38, broken 37] [21:23:03]ProducePacketName [21:23:03]name=ofd_packets/00111506 [21:23:03]OFD Sender: To server: pG, [21:23:03]CommunicateWithHost lk.salyk.kg:30040 [21:23:03]ConnectInit lk.salyk.kg [21:23:03]written 0, free lines is 4095 [21:23:03]Connected sock=10 [21:23:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 2B F7 04 01 58 A6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 42 4C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B3 01 00 35 04 06 00 EC 87 F7 E3 BA AD 61 CA B7 D2 EC 9B 27 C1 [21:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BC 41 47 00 A7 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 92 B3 01 00 F4 03 04 00 A1 E3 72 66 B6 04 01 00 00 81 11 17 96 77 D4 DD 84 [21:23:04]CommunicateWithHost err = 0 [21:23:04]CheckOFDResponse [21:23:04]1017 (14) - 77093643461234 [21:23:04]1041 (16) - 0000000000875083 [21:23:04]1040 (4) - 111506 [21:23:04]1012 (4) - 19.06.2024 13:56 [21:23:04]1206 (1) - 0 [21:23:04]OFD Sender: Remove packet 111506 [21:23:04]ProducePacketName [21:23:04]name=ofd_packets/00111506 [21:23:04]NVStorageDeleteData [21:23:04]Write to MH i2c: 01 00 00 6E 34 A2 [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: 01 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: 01 07 00 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: 01 07 00 6E 34 00 00 00 00 00 D0 0C 85 [21:23:04]RasterBufferAndPrint [21:23:04]line [21:23:04]line [21:23:04]line [21:23:04]line [21:23:04]line [21:23:04]written 0, free lines is 3284 [21:23:04]MH_Cut [21:23:04]Write to MH i2c: D1 01 00 75 34 01 7B [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: D1 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: D1 01 00 [21:23:04]MH_I2C_Read... [21:23:04]Read from MH i2c: D1 01 00 75 34 00 7A [21:23:04]Write to MH i2c: 01 00 00 76 34 AA [21:23:04]Write i2c OK [21:23:04]MH_I2C_Read... [21:23:04]OFD Sender: No OFD packet to send [21:23:05]*** Cut start [21:23:05]*** Partial cut [21:23:05]*** CUTSNS_PIN = 1 [21:23:05]*** CUTSNS_PIN = 0 [21:23:05]*** Brake cut motor [21:23:05]Read from MH i2c: 01 [21:23:05]MH_I2C_Read... [21:23:05]*** Stop cut motor [21:23:05]*** Cut end [21:23:05]Read from MH i2c: 01 07 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: 01 07 00 76 34 00 00 00 00 00 FF 0F BF [21:23:05]process_action close_receipt done [21:23:05]requested_data is exist [21:23:05]produce_requested_data [21:23:05]requested_item fm.sn is exist - process it [21:23:05]wFMCommunicate request_size=4 [21:23:05]MH_SAM_APDU [21:23:05]CAPDU: 80 11 00 00 [21:23:05]Write to MH i2c: E2 08 00 77 34 80 11 00 00 00 00 00 00 25 [21:23:05]Write i2c OK [21:23:05]MH_I2C_Read... [21:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:05]Read from MH i2c: E2 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 17 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 17 00 77 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 77 [21:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:23:05]wFMCommunicate OK [21:23:05]requested_item fd.num is exist - process it [21:23:05]SAM_PROTO_GetFieldsCounters [21:23:05]wFMCommunicate request_size=4 [21:23:05]MH_SAM_APDU [21:23:05]CAPDU: 80 13 00 00 [21:23:05]Write to MH i2c: E2 08 00 78 34 80 13 00 00 00 00 00 00 28 [21:23:05]Write i2c OK [21:23:05]MH_I2C_Read... [21:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:23:05]Read from MH i2c: E2 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 62 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 62 00 78 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 92 B3 01 00 0E 04 04 00 84 01 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 12 [21:23:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 92 B3 01 00 0E 04 04 00 84 01 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 [21:23:05]wFMCommunicate OK [21:23:05]SAM_PROTO_GetFieldsCounters done [21:23:05]requested_item shift.num is exist - process it [21:23:05]requested_item shift.opened is exist - process it [21:23:05]req_shift_opened [21:23:05]FM_GetShiftState [21:23:05]SAM_PROTO_GetShiftState [21:23:05]wFMCommunicate request_size=4 [21:23:05]MH_SAM_APDU [21:23:05]CAPDU: 80 13 01 00 [21:23:05]Write to MH i2c: E2 08 00 79 34 80 13 01 00 00 00 00 00 2A [21:23:05]Write i2c OK [21:23:05]MH_I2C_Read... [21:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:05]Read from MH i2c: E2 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 0E 00 [21:23:05]MH_I2C_Read... [21:23:05]Read from MH i2c: E2 0E 00 79 34 00 09 00 01 31 35 72 66 00 00 00 00 90 00 74 [21:23:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:23:05]wFMCommunicate OK [21:23:05]SAM_PROTO_GetShiftState done [21:23:05]FM_GetShiftState done [21:23:05]req_shift_opened done [21:23:05]requested_item shift.open_date is exist - process it [21:23:05]req_shift_open_date [21:23:05]req_shift_open_date done [21:23:05]produce_requested_data done [21:23:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111506,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:23:05]process_action_free close_receipt [21:23:05]json_value_free [21:23:05]json_value_free done [21:23:05]process_json_proto returns [21:23:05]Send response to host [21:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111506,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:23:05]free response buf [21:23:05]execute_script done [21:23:05]execute_script returns [21:23:05]free content buf [21:23:05]Sock 7.Close socket [21:23:05]Sock 7.Thread stoped [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:20]accept exits with 9 [21:25:20]New connection [21:25:20]New thread 3067321700 created [21:25:20]Thread 3067465060 joined [21:25:20]Waiting for new connection... [21:25:20] Sock 9.Parse request [21:25:20]Sock 9.Check first char [21:25:20]Sock 9.First char is OK [21:25:20]request: POST /json_proto HTTP/1.0 [21:25:20]Method: POST [21:25:20]URL: /json_proto [21:25:20]Method is POST - this is cgi request [21:25:20]url: /json_proto [21:25:20]query_string will be loaded in cgi processing [21:25:20]execute_cgi json_proto POST (null) [21:25:20]execute_cgi path=json_proto method=POST [21:25:20]POST find Content-Length [21:25:20]Host: 172.17.59.68:8080 [21:25:20]Content-Length: 805 [21:25:20]Content-Type: application/json [21:25:20] [21:25:20]POST finish read [21:25:20]Found Content-Length = 805 [21:25:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:20]execute_script... [21:25:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:20]POST & json_proto [21:25:20]process_json_proto [21:25:20]json parsed OK: [21:25:20]protocol is kg_v1.0 [21:25:20]action value=close_receipt [21:25:20]process_action close_receipt [21:25:20]cmd_close_receipt [21:25:20]MH_GetDate [21:25:20]Write to MH i2c: F0 00 00 7A 34 9D [21:25:20]Write i2c OK [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: F0 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: F0 09 00 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: F0 09 00 7A 34 00 CD 4C 73 66 BC EC 60 65 05 [21:25:20]GetLastDocTimeStamp 1718832194 [21:25:20]current date 1718832333 [21:25:20]FM_GetShiftState [21:25:20]SAM_PROTO_GetShiftState [21:25:20]wFMCommunicate request_size=4 [21:25:20]MH_SAM_APDU [21:25:20]CAPDU: 80 13 01 00 [21:25:20]Write to MH i2c: E2 08 00 7B 34 80 13 01 00 00 00 00 00 2C [21:25:20]Write i2c OK [21:25:20]MH_I2C_Read... [21:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:20]Read from MH i2c: E2 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: E2 0E 00 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: E2 0E 00 7B 34 00 09 00 01 31 35 72 66 00 00 00 00 90 00 76 [21:25:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:25:20]wFMCommunicate OK [21:25:20]SAM_PROTO_GetShiftState done [21:25:20]FM_GetShiftState done [21:25:20]opened in 1718760753 [21:25:20]opened+sec_in_day 1718847153 [21:25:20]quantity*price = 40053 [21:25:20]sum+1 = 40055 [21:25:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.54 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 0.00 Безнал.: 400.54 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 256 19.06.2024 21:25 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111507 ФПД: 189629573117825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111507&fm=189629573117825&tin=02508201610067®Number=0000000000092771&sum=40054 [21:25:21]StoreToDocumentArchive [21:25:21]shift 388 fd 111507 [21:25:21]save to /storage/0388/doc_00111507 [21:25:21]save last doc name /storage/0388/doc_00111507 to /storage/kkm_last_doc_name [21:25:21]save OK [21:25:21]Clear old archive folders... [21:25:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:21]tlvbuf is 00F00700 [21:25:21]SAM_PROTO_ClearQueue [21:25:21]wFMCommunicate request_size=4 [21:25:21]MH_SAM_APDU [21:25:21]CAPDU: 80 09 00 00 [21:25:21]Write to MH i2c: E2 08 00 88 34 80 09 00 00 00 00 00 00 2E [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:21]Read from MH i2c: E2 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 03 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 03 00 88 34 00 90 00 30 [21:25:21]RAPDU: 90 00 [21:25:21]wFMCommunicate OK [21:25:21]SAM_PROTO_ClearQueue done [21:25:21]KKMCreateOFDPacket [21:25:21]OFDProtocolAddRootSTLVToBuf [21:25:21]FM_MakeSignedData [21:25:21]FM_MakeSignedData [21:25:21]SAM_PROTO_SignData [21:25:21]wFMCommunicate request_size=4 [21:25:21]MH_SAM_APDU [21:25:21]CAPDU: 80 0D 01 02 [21:25:21]Write to MH i2c: E2 08 00 89 34 80 0D 01 02 00 00 00 00 36 [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:21]Read from MH i2c: E2 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 03 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 03 00 89 34 00 90 00 31 [21:25:21]RAPDU: 90 00 [21:25:21]wFMCommunicate OK [21:25:21]wFMCommunicate request_size=255 [21:25:21]MH_SAM_APDU [21:25:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CD 4C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B3 01 00 35 04 06 00 AC [21:25:21]Write to MH i2c: E2 02 01 8A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CD 4C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B3 01 00 35 04 06 00 AC 00 00 30 [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:21]Read from MH i2c: E2 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 03 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 03 00 8A 34 00 90 00 32 [21:25:21]RAPDU: 90 00 [21:25:21]wFMCommunicate OK [21:25:21]wFMCommunicate request_size=10 [21:25:21]MH_SAM_APDU [21:25:21]CAPDU: 80 0D 02 02 05 77 93 58 37 81 [21:25:21]Write to MH i2c: E2 0D 00 8B 34 80 0D 02 02 05 00 77 93 58 37 81 00 00 5D [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:21]Read from MH i2c: E2 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 03 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 03 00 8B 34 00 90 00 33 [21:25:21]RAPDU: 90 00 [21:25:21]wFMCommunicate OK [21:25:21]wFMCommunicate request_size=4 [21:25:21]MH_SAM_APDU [21:25:21]CAPDU: 80 0D 03 02 [21:25:21]Write to MH i2c: E2 08 00 8C 34 80 0D 03 02 00 00 00 00 3B [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:21]Read from MH i2c: E2 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 0B 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 0B 00 8C 34 00 26 01 23 52 42 E5 B8 E5 90 00 9C [21:25:21]RAPDU: 26 01 23 52 42 E5 B8 E5 90 00 [21:25:21]wFMCommunicate OK [21:25:21]SAM_PROTO_SignData done [21:25:21]FM_MakeSignedData done [21:25:21]CreateOFDProtocolMessage [21:25:21]wFMCommunicate request_size=4 [21:25:21]MH_SAM_APDU [21:25:21]CAPDU: 80 11 00 00 [21:25:21]Write to MH i2c: E2 08 00 8D 34 80 11 00 00 00 00 00 00 3B [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:21]Read from MH i2c: E2 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 17 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 17 00 8D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8D [21:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:25:21]wFMCommunicate OK [21:25:21]CreateOFDProtocolMessage done [21:25:21]OFDSenderStorePacket 111507 [21:25:21]StoreOFDPacket docnum=111507 [21:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 21 07 01 90 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CD 4C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B3 01 00 35 04 06 00 AC 77 93 58 37 81 26 01 23 52 42 E5 B8 E5 [21:25:21]CheckFolder [21:25:21]dirname=/storage/ofd_packets [21:25:21]CheckFolder done [21:25:21]ProducePacketName [21:25:21]name=ofd_packets/00111507 [21:25:21]NVStorageSaveData ofd_packets/00111507 [21:25:21]File name is /storage/ofd_packets/00111507 [21:25:21]Write 301 bytes [21:25:21]NVStorageSaveData done [21:25:21]OFDSenderStorePacket done [21:25:21]KKMCreateOFDPacket done [21:25:21]NVStorageSaveData kkm_last_timestamp [21:25:21]File name is /storage/kkm_last_timestamp [21:25:21]Write 4 bytes [21:25:21]NVStorageSaveData done [21:25:21]ExternCall_PrintAddStr [21:25:21]wPrintStart [21:25:21]Write to MH i2c: 01 00 00 8E 34 C2 [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: 01 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: 01 07 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: 01 07 00 8E 34 00 00 00 00 00 FF 0F D7 [21:25:21]RasterBufferAndPrint [21:25:21]line Счет N : (1)320098 [21:25:21]line ИНН: 02508201610067 [21:25:21]line Контрольно-Кассовый Чек [21:25:21]line ПРОДАЖА [21:25:21]line ТРК (МРК, ГНК) : 12 [21:25:21]line Товар: 2710124500 [21:25:21]line Аи-95-К-5 [21:25:21]line 5.420 * 73.90 [21:25:21]line = 400.54 [21:25:21]line НДС 12% НСП 1% [21:25:21]line > о реализуемом товаре [21:25:21]line ИТОГО: 400.54 [21:25:21]line НСП 1% : 3.54 [21:25:21]line НДС 12% : 42.53 [21:25:21]line Наличными: 0.00 [21:25:21]line Безнал.: 400.54 [21:25:21]line Место: АЗС № 65 "Партнер Нефть" [21:25:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:25:21]line СНО: Общий режим [21:25:21]line Чек 256 19.06.2024 21:25 [21:25:21]line Смена: 388 ФФД: 1.0 [21:25:21]line ЗНМ: 0300000198 [21:25:21]line РНМ: 0000000000092771 [21:25:21]line Версия ККМ: 001 [21:25:22]line Платежная система: О! деньги [21:25:22]line ФМ: 0000000000875083 [21:25:22]line ФД: 111507 [21:25:22]line ФПД: 189629573117825 [21:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111507&fm=189629573117825&tin=02508201610067®Number=0000000000092771&sum=40054 [21:25:22]OFD Sender: Processing packet 111507 [packets to send 38, broken 37] [21:25:22]ProducePacketName [21:25:22]name=ofd_packets/00111507 [21:25:22]OFD Sender: To server: pG, [21:25:22]CommunicateWithHost lk.salyk.kg:30040 [21:25:22]ConnectInit lk.salyk.kg [21:25:22]written 0, free lines is 4095 [21:25:22]Connected sock=10 [21:25:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 58 21 07 01 90 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 76 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 9D 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 76 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 CD 4C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B3 01 00 35 04 06 00 AC 77 93 58 37 81 26 01 23 52 42 E5 B8 E5 [21:25:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 52 F0 47 00 1F 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 93 B3 01 00 F4 03 04 00 2B E4 72 66 B6 04 01 00 00 91 00 24 27 EC FC 51 7B [21:25:22]CommunicateWithHost err = 0 [21:25:22]CheckOFDResponse [21:25:22]1017 (14) - 77093643461234 [21:25:22]1041 (16) - 0000000000875083 [21:25:22]1040 (4) - 111507 [21:25:22]1012 (4) - 19.06.2024 13:59 [21:25:22]1206 (1) - 0 [21:25:22]OFD Sender: Remove packet 111507 [21:25:22]ProducePacketName [21:25:22]name=ofd_packets/00111507 [21:25:22]NVStorageDeleteData [21:25:22]Write to MH i2c: 01 00 00 B8 34 EC [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: 01 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: 01 07 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: 01 07 00 B8 34 00 00 00 00 00 DD 0C DC [21:25:22]RasterBufferAndPrint [21:25:22]line [21:25:22]line [21:25:22]line [21:25:22]line [21:25:22]line [21:25:22]written 0, free lines is 3300 [21:25:22]MH_Cut [21:25:22]Write to MH i2c: D1 01 00 BF 34 01 C5 [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: D1 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: D1 01 00 [21:25:22]MH_I2C_Read... [21:25:22]Read from MH i2c: D1 01 00 BF 34 00 C4 [21:25:22]Write to MH i2c: 01 00 00 C0 34 F4 [21:25:22]Write i2c OK [21:25:22]MH_I2C_Read... [21:25:23]OFD Sender: No OFD packet to send [21:25:23]*** Cut start [21:25:23]*** Partial cut [21:25:23]*** CUTSNS_PIN = 1 [21:25:23]*** CUTSNS_PIN = 0 [21:25:23]*** Brake cut motor [21:25:24]Read from MH i2c: 01 [21:25:24]MH_I2C_Read... [21:25:24]*** Stop cut motor [21:25:24]*** Cut end [21:25:24]Read from MH i2c: 01 07 00 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: 01 07 00 C0 34 00 00 00 00 00 FF 0F 09 [21:25:24]process_action close_receipt done [21:25:24]requested_data is exist [21:25:24]produce_requested_data [21:25:24]requested_item fm.sn is exist - process it [21:25:24]wFMCommunicate request_size=4 [21:25:24]MH_SAM_APDU [21:25:24]CAPDU: 80 11 00 00 [21:25:24]Write to MH i2c: E2 08 00 C1 34 80 11 00 00 00 00 00 00 6F [21:25:24]Write i2c OK [21:25:24]MH_I2C_Read... [21:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:24]Read from MH i2c: E2 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 17 00 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 17 00 C1 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C1 [21:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:25:24]wFMCommunicate OK [21:25:24]requested_item fd.num is exist - process it [21:25:24]SAM_PROTO_GetFieldsCounters [21:25:24]wFMCommunicate request_size=4 [21:25:24]MH_SAM_APDU [21:25:24]CAPDU: 80 13 00 00 [21:25:24]Write to MH i2c: E2 08 00 C2 34 80 13 00 00 00 00 00 00 72 [21:25:24]Write i2c OK [21:25:24]MH_I2C_Read... [21:25:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:24]Read from MH i2c: E2 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 62 00 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 62 00 C2 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 93 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 62 [21:25:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 93 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:24]wFMCommunicate OK [21:25:24]SAM_PROTO_GetFieldsCounters done [21:25:24]requested_item shift.num is exist - process it [21:25:24]requested_item shift.opened is exist - process it [21:25:24]req_shift_opened [21:25:24]FM_GetShiftState [21:25:24]SAM_PROTO_GetShiftState [21:25:24]wFMCommunicate request_size=4 [21:25:24]MH_SAM_APDU [21:25:24]CAPDU: 80 13 01 00 [21:25:24]Write to MH i2c: E2 08 00 C3 34 80 13 01 00 00 00 00 00 74 [21:25:24]Write i2c OK [21:25:24]MH_I2C_Read... [21:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:24]Read from MH i2c: E2 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 0E 00 [21:25:24]MH_I2C_Read... [21:25:24]Read from MH i2c: E2 0E 00 C3 34 00 09 00 01 31 35 72 66 00 00 00 00 90 00 BE [21:25:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:25:24]wFMCommunicate OK [21:25:24]SAM_PROTO_GetShiftState done [21:25:24]FM_GetShiftState done [21:25:24]req_shift_opened done [21:25:24]requested_item shift.open_date is exist - process it [21:25:24]req_shift_open_date [21:25:24]req_shift_open_date done [21:25:24]produce_requested_data done [21:25:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111507,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:25:24]process_action_free close_receipt [21:25:24]json_value_free [21:25:24]json_value_free done [21:25:24]process_json_proto returns [21:25:24]Send response to host [21:25:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111507,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:25:24]free response buf [21:25:24]execute_script done [21:25:24]execute_script returns [21:25:24]free content buf [21:25:24]Sock 9.Close socket [21:25:24]Sock 9.Thread stoped [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:14]accept exits with 7 [21:28:14]New connection [21:28:14]New thread 3067465060 created [21:28:14]Thread 3067321700 joined [21:28:14]Waiting for new connection... [21:28:14] Sock 7.Parse request [21:28:14]Sock 7.Check first char [21:28:14]Sock 7.First char is OK [21:28:14]request: POST /json_proto HTTP/1.0 [21:28:14]Method: POST [21:28:14]URL: /json_proto [21:28:14]Method is POST - this is cgi request [21:28:14]url: /json_proto [21:28:14]query_string will be loaded in cgi processing [21:28:14]execute_cgi json_proto POST (null) [21:28:14]execute_cgi path=json_proto method=POST [21:28:14]POST find Content-Length [21:28:14]Host: 172.17.59.68:8080 [21:28:14]Content-Length: 682 [21:28:14]Content-Type: application/json [21:28:14] [21:28:14]POST finish read [21:28:14]Found Content-Length = 682 [21:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 90.370, "sum" : 6000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:14]execute_script... [21:28: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)320097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 90.370, "sum" : 6000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:14]POST & json_proto [21:28:14]process_json_proto [21:28:14]json parsed OK: [21:28:14]protocol is kg_v1.0 [21:28:14]action value=close_receipt [21:28:14]process_action close_receipt [21:28:14]cmd_close_receipt [21:28:14]MH_GetDate [21:28:14]Write to MH i2c: F0 00 00 C4 34 E7 [21:28:14]Write i2c OK [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: F0 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: F0 09 00 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: F0 09 00 C4 34 00 7B 4D 73 66 BC EC 60 65 FE [21:28:14]GetLastDocTimeStamp 1718832333 [21:28:14]current date 1718832507 [21:28:14]FM_GetShiftState [21:28:14]SAM_PROTO_GetShiftState [21:28:14]wFMCommunicate request_size=4 [21:28:14]MH_SAM_APDU [21:28:14]CAPDU: 80 13 01 00 [21:28:14]Write to MH i2c: E2 08 00 C5 34 80 13 01 00 00 00 00 00 76 [21:28:14]Write i2c OK [21:28:14]MH_I2C_Read... [21:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:14]Read from MH i2c: E2 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: E2 0E 00 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: E2 0E 00 C5 34 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C0 [21:28:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:28:14]wFMCommunicate OK [21:28:14]SAM_PROTO_GetShiftState done [21:28:14]FM_GetShiftState done [21:28:14]opened in 1718760753 [21:28:14]opened+sec_in_day 1718847153 [21:28:14]quantity*price = 600056 [21:28:14]sum+1 = 600058 [21:28:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.23 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 257 19.06.2024 21:28 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111508 ФПД: 184165656848156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212827&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111508&fm=184165656848156&tin=02508201610067®Number=0000000000092771&sum=600000 [21:28:15]StoreToDocumentArchive [21:28:15]shift 388 fd 111508 [21:28:15]save to /storage/0388/doc_00111508 [21:28:15]save last doc name /storage/0388/doc_00111508 to /storage/kkm_last_doc_name [21:28:15]save OK [21:28:15]Clear old archive folders... [21:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:15]tlvbuf is B6FD2780 [21:28:15]SAM_PROTO_ClearQueue [21:28:15]wFMCommunicate request_size=4 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 09 00 00 [21:28:15]Write to MH i2c: E2 08 00 D2 34 80 09 00 00 00 00 00 00 78 [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 03 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 03 00 D2 34 00 90 00 7A [21:28:15]RAPDU: 90 00 [21:28:15]wFMCommunicate OK [21:28:15]SAM_PROTO_ClearQueue done [21:28:15]KKMCreateOFDPacket [21:28:15]OFDProtocolAddRootSTLVToBuf [21:28:15]FM_MakeSignedData [21:28:15]FM_MakeSignedData [21:28:15]SAM_PROTO_SignData [21:28:15]wFMCommunicate request_size=4 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 0D 01 02 [21:28:15]Write to MH i2c: E2 08 00 D3 34 80 0D 01 02 00 00 00 00 80 [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 03 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 03 00 D3 34 00 90 00 7B [21:28:15]RAPDU: 90 00 [21:28:15]wFMCommunicate OK [21:28:15]wFMCommunicate request_size=255 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 61 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F9 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 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 7B 4D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B3 01 00 35 04 06 00 A7 [21:28:15]Write to MH i2c: E2 02 01 D4 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 02 61 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F9 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 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 7B 4D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B3 01 00 35 04 06 00 A7 00 00 CC [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 03 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 03 00 D4 34 00 90 00 7C [21:28:15]RAPDU: 90 00 [21:28:15]wFMCommunicate OK [21:28:15]wFMCommunicate request_size=10 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 0D 02 02 05 7F 68 8E 67 1C [21:28:15]Write to MH i2c: E2 0D 00 D5 34 80 0D 02 02 05 00 7F 68 8E 67 1C 00 00 85 [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 03 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 03 00 D5 34 00 90 00 7D [21:28:15]RAPDU: 90 00 [21:28:15]wFMCommunicate OK [21:28:15]wFMCommunicate request_size=4 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 0D 03 02 [21:28:15]Write to MH i2c: E2 08 00 D6 34 80 0D 03 02 00 00 00 00 85 [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 0B 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 0B 00 D6 34 00 44 5A 56 09 A4 5A EE C5 90 00 34 [21:28:15]RAPDU: 44 5A 56 09 A4 5A EE C5 90 00 [21:28:15]wFMCommunicate OK [21:28:15]SAM_PROTO_SignData done [21:28:15]FM_MakeSignedData done [21:28:15]CreateOFDProtocolMessage [21:28:15]wFMCommunicate request_size=4 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 11 00 00 [21:28:15]Write to MH i2c: E2 08 00 D7 34 80 11 00 00 00 00 00 00 85 [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:15]Read from MH i2c: E2 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 17 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: E2 17 00 D7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [21:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:28:15]wFMCommunicate OK [21:28:15]CreateOFDProtocolMessage done [21:28:15]OFDSenderStorePacket 111508 [21:28:15]StoreOFDPacket docnum=111508 [21:28:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 18 10 07 01 BF 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 02 61 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F9 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 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 7B 4D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B3 01 00 35 04 06 00 A7 7F 68 8E 67 1C 44 5A 56 09 A4 5A EE C5 [21:28:15]CheckFolder [21:28:15]dirname=/storage/ofd_packets [21:28:15]CheckFolder done [21:28:15]ProducePacketName [21:28:15]name=ofd_packets/00111508 [21:28:15]NVStorageSaveData ofd_packets/00111508 [21:28:15]File name is /storage/ofd_packets/00111508 [21:28:15]Write 301 bytes [21:28:15]NVStorageSaveData done [21:28:15]OFDSenderStorePacket done [21:28:15]KKMCreateOFDPacket done [21:28:15]NVStorageSaveData kkm_last_timestamp [21:28:15]File name is /storage/kkm_last_timestamp [21:28:15]Write 4 bytes [21:28:15]NVStorageSaveData done [21:28:15]ExternCall_PrintAddStr [21:28:15]wPrintStart [21:28:15]Write to MH i2c: 01 00 00 D8 34 0C [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: 01 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: 01 07 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: 01 07 00 D8 34 00 00 00 00 00 FF 0F 21 [21:28:15]RasterBufferAndPrint [21:28:15]line Счет N : (1)320097 [21:28:15]line ИНН: 02508201610067 [21:28:15]line Контрольно-Кассовый Чек [21:28:15]line ПРОДАЖА [21:28:15]line ТРК (МРК, ГНК) : 11 [21:28:15]line Товар: 2710124130 [21:28:15]line Аи-92-К-5 [21:28:15]line 90.370 * 66.40 [21:28:15]line = 6000.57 [21:28:15]line НДС 12% НСП 1% [21:28:15]line > о реализуемом товаре [21:28:15]line ОКРУГЛЕНИЕ: -0.57 [21:28:15]line ИТОГО: 6000.00 [21:28:15]line Внесено: 6000.00 [21:28:15]line СДАЧА: 0.00 [21:28:15]line НСП 1% : 53.10 [21:28:15]line НДС 12% : 637.23 [21:28:15]line Наличными: 6000.00 [21:28:15]line Безнал.: 0.00 [21:28:15]line Место: АЗС № 65 "Партнер Нефть" [21:28:15]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:28:15]line СНО: Общий режим [21:28:15]line Чек 257 19.06.2024 21:28 [21:28:15]line Смена: 388 ФФД: 1.0 [21:28:15]line ЗНМ: 0300000198 [21:28:15]line РНМ: 0000000000092771 [21:28:15]line Версия ККМ: 001 [21:28:15]line ФМ: 0000000000875083 [21:28:15]line ФД: 111508 [21:28:15]line ФПД: 184165656848156 [21:28:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T212827&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111508&fm=184165656848156&tin=02508201610067®Number=0000000000092771&sum=600000 [21:28:16]OFD Sender: Processing packet 111508 [packets to send 38, broken 37] [21:28:16]ProducePacketName [21:28:16]name=ofd_packets/00111508 [21:28:16]OFD Sender: To server: pG, [21:28:16]CommunicateWithHost lk.salyk.kg:30040 [21:28:16]ConnectInit lk.salyk.kg [21:28:16]written 0, free lines is 4095 [21:28:16]Connected sock=10 [21:28:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 18 10 07 01 BF 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 02 61 01 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F9 27 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB F8 00 00 00 00 07 04 06 00 C0 27 09 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 7B 4D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B3 01 00 35 04 06 00 A7 7F 68 8E 67 1C 44 5A 56 09 A4 5A EE C5 [21:28:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 68 6C 47 00 E2 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 94 B3 01 00 F4 03 04 00 D9 E4 72 66 B6 04 01 00 00 0F 94 31 47 ED 2C AA 63 [21:28:16]CommunicateWithHost err = 0 [21:28:16]CheckOFDResponse [21:28:16]1017 (14) - 77093643461234 [21:28:16]1041 (16) - 0000000000875083 [21:28:16]1040 (4) - 111508 [21:28:16]1012 (4) - 19.06.2024 14:02 [21:28:16]1206 (1) - 0 [21:28:16]OFD Sender: Remove packet 111508 [21:28:16]ProducePacketName [21:28:16]name=ofd_packets/00111508 [21:28:16]NVStorageDeleteData [21:28:16]Write to MH i2c: 01 00 00 03 35 38 [21:28:16]Write i2c OK [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: 01 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: 01 07 00 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: 01 07 00 03 35 00 00 00 00 00 E2 0C 2D [21:28:16]RasterBufferAndPrint [21:28:16]line [21:28:16]line [21:28:16]line [21:28:16]line [21:28:16]line [21:28:16]written 0, free lines is 3304 [21:28:16]MH_Cut [21:28:16]Write to MH i2c: D1 01 00 0A 35 01 11 [21:28:16]Write i2c OK [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: D1 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: D1 01 00 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: D1 01 00 0A 35 00 10 [21:28:16]Write to MH i2c: 01 00 00 0B 35 40 [21:28:16]Write i2c OK [21:28:16]MH_I2C_Read... [21:28:17]OFD Sender: No OFD packet to send [21:28:17]*** Cut start [21:28:17]*** Partial cut [21:28:17]*** CUTSNS_PIN = 1 [21:28:17]*** CUTSNS_PIN = 0 [21:28:17]*** Brake cut motor [21:28:18]Read from MH i2c: 01 [21:28:18]MH_I2C_Read... [21:28:18]*** Stop cut motor [21:28:18]*** Cut end [21:28:18]Read from MH i2c: 01 07 00 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: 01 07 00 0B 35 00 00 00 00 00 FF 0F 55 [21:28:18]process_action close_receipt done [21:28:18]requested_data is exist [21:28:18]produce_requested_data [21:28:18]requested_item fm.sn is exist - process it [21:28:18]wFMCommunicate request_size=4 [21:28:18]MH_SAM_APDU [21:28:18]CAPDU: 80 11 00 00 [21:28:18]Write to MH i2c: E2 08 00 0C 35 80 11 00 00 00 00 00 00 BB [21:28:18]Write i2c OK [21:28:18]MH_I2C_Read... [21:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:18]Read from MH i2c: E2 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: E2 17 00 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: E2 17 00 0C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0D [21:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:28:18]wFMCommunicate OK [21:28:18]requested_item fd.num is exist - process it [21:28:18]SAM_PROTO_GetFieldsCounters [21:28:18]wFMCommunicate request_size=4 [21:28:18]MH_SAM_APDU [21:28:18]CAPDU: 80 13 00 00 [21:28:18]Write to MH i2c: E2 08 00 0D 35 80 13 00 00 00 00 00 00 BE [21:28:18]Write i2c OK [21:28:18]MH_I2C_Read... [21:28:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:18]Read from MH i2c: E2 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: E2 62 00 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: E2 62 00 0D 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 94 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [21:28: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 94 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:18]wFMCommunicate OK [21:28:18]SAM_PROTO_GetFieldsCounters done [21:28:18]requested_item shift.num is exist - process it [21:28:18]requested_item shift.opened is exist - process it [21:28:18]req_shift_opened [21:28:18]FM_GetShiftState [21:28:18]SAM_PROTO_GetShiftState [21:28:18]wFMCommunicate request_size=4 [21:28:18]MH_SAM_APDU [21:28:18]CAPDU: 80 13 01 00 [21:28:18]Write to MH i2c: E2 08 00 0E 35 80 13 01 00 00 00 00 00 C0 [21:28:18]Write i2c OK [21:28:18]MH_I2C_Read... [21:28:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:18]Read from MH i2c: E2 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: E2 0E 00 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: E2 0E 00 0E 35 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0A [21:28:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:28:18]wFMCommunicate OK [21:28:18]SAM_PROTO_GetShiftState done [21:28:18]FM_GetShiftState done [21:28:18]req_shift_opened done [21:28:18]requested_item shift.open_date is exist - process it [21:28:18]req_shift_open_date [21:28:18]req_shift_open_date done [21:28:18]produce_requested_data done [21:28:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111508,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:28:18]process_action_free close_receipt [21:28:18]json_value_free [21:28:18]json_value_free done [21:28:18]process_json_proto returns [21:28:18]Send response to host [21:28:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111508,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:28:18]free response buf [21:28:18]execute_script done [21:28:18]execute_script returns [21:28:18]free content buf [21:28:18]Sock 7.Close socket [21:28:18]Sock 7.Thread stoped [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21: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:53]accept exits with 9 [21:30:53]New connection [21:30:53]New thread 3067321700 created [21:30:53]Thread 3067465060 joined [21:30:53]Waiting for new connection... [21:30:53] Sock 9.Parse request [21:30:53]Sock 9.Check first char [21:30:53]Sock 9.First char is OK [21:30:53]request: POST /json_proto HTTP/1.0 [21:30:53]Method: POST [21:30:53]URL: /json_proto [21:30:53]Method is POST - this is cgi request [21:30:53]url: /json_proto [21:30:53]query_string will be loaded in cgi processing [21:30:53]execute_cgi json_proto POST (null) [21:30:53]execute_cgi path=json_proto method=POST [21:30:53]POST find Content-Length [21:30:53]Host: 172.17.59.68:8080 [21:30:53]Content-Length: 805 [21:30:53]Content-Type: application/json [21:30:53] [21:30:53]POST finish read [21:30:53]Found Content-Length = 805 [21:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:53]execute_script... [21:30: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)320099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:53]POST & json_proto [21:30:53]process_json_proto [21:30:53]json parsed OK: [21:30:53]protocol is kg_v1.0 [21:30:53]action value=close_receipt [21:30:53]process_action close_receipt [21:30:53]cmd_close_receipt [21:30:53]MH_GetDate [21:30:53]Write to MH i2c: F0 00 00 0F 35 33 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: F0 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: F0 09 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: F0 09 00 0F 35 00 1A 4E 73 66 BC EC 60 65 EA [21:30:53]GetLastDocTimeStamp 1718832507 [21:30:53]current date 1718832666 [21:30:53]FM_GetShiftState [21:30:53]SAM_PROTO_GetShiftState [21:30:53]wFMCommunicate request_size=4 [21:30:53]MH_SAM_APDU [21:30:53]CAPDU: 80 13 01 00 [21:30:53]Write to MH i2c: E2 08 00 10 35 80 13 01 00 00 00 00 00 C2 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:53]Read from MH i2c: E2 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: E2 0E 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: E2 0E 00 10 35 00 09 00 01 31 35 72 66 00 00 00 00 90 00 0C [21:30:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:30:53]wFMCommunicate OK [21:30:53]SAM_PROTO_GetShiftState done [21:30:53]FM_GetShiftState done [21:30:53]opened in 1718760753 [21:30:53]opened+sec_in_day 1718847153 [21:30:53]quantity*price = 30012 [21:30:53]sum+1 = 30014 [21:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 258 19.06.2024 21:31 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111509 ФПД: 252433726093370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T213107&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111509&fm=252433726093370&tin=02508201610067®Number=0000000000092771&sum=30013 [21:30:55]StoreToDocumentArchive [21:30:55]shift 388 fd 111509 [21:30:55]save to /storage/0388/doc_00111509 [21:30:55]save last doc name /storage/0388/doc_00111509 to /storage/kkm_last_doc_name [21:30:55]save OK [21:30:55]Clear old archive folders... [21:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:55]tlvbuf is 00F64180 [21:30:55]SAM_PROTO_ClearQueue [21:30:55]wFMCommunicate request_size=4 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 09 00 00 [21:30:55]Write to MH i2c: E2 08 00 1D 35 80 09 00 00 00 00 00 00 C4 [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 03 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 03 00 1D 35 00 90 00 C6 [21:30:55]RAPDU: 90 00 [21:30:55]wFMCommunicate OK [21:30:55]SAM_PROTO_ClearQueue done [21:30:55]KKMCreateOFDPacket [21:30:55]OFDProtocolAddRootSTLVToBuf [21:30:55]FM_MakeSignedData [21:30:55]FM_MakeSignedData [21:30:55]SAM_PROTO_SignData [21:30:55]wFMCommunicate request_size=4 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 0D 01 02 [21:30:55]Write to MH i2c: E2 08 00 1E 35 80 0D 01 02 00 00 00 00 CC [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 03 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 03 00 1E 35 00 90 00 C7 [21:30:55]RAPDU: 90 00 [21:30:55]wFMCommunicate OK [21:30:55]wFMCommunicate request_size=255 [21:30:55]MH_SAM_APDU [21:30: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1B 4E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B3 01 00 35 04 06 00 E5 [21:30:55]Write to MH i2c: E2 02 01 1F 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1B 4E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B3 01 00 35 04 06 00 E5 00 00 30 [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 03 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 03 00 1F 35 00 90 00 C8 [21:30:55]RAPDU: 90 00 [21:30:55]wFMCommunicate OK [21:30:55]wFMCommunicate request_size=10 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 0D 02 02 05 96 4E 92 B8 3A [21:30:55]Write to MH i2c: E2 0D 00 20 35 80 0D 02 02 05 00 96 4E 92 B8 3A 00 00 41 [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 03 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 03 00 20 35 00 90 00 C9 [21:30:55]RAPDU: 90 00 [21:30:55]wFMCommunicate OK [21:30:55]wFMCommunicate request_size=4 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 0D 03 02 [21:30:55]Write to MH i2c: E2 08 00 21 35 80 0D 03 02 00 00 00 00 D1 [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 0B 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 0B 00 21 35 00 FD 5F 42 70 10 7E 4F 97 90 00 54 [21:30:55]RAPDU: FD 5F 42 70 10 7E 4F 97 90 00 [21:30:55]wFMCommunicate OK [21:30:55]SAM_PROTO_SignData done [21:30:55]FM_MakeSignedData done [21:30:55]CreateOFDProtocolMessage [21:30:55]wFMCommunicate request_size=4 [21:30:55]MH_SAM_APDU [21:30:55]CAPDU: 80 11 00 00 [21:30:55]Write to MH i2c: E2 08 00 22 35 80 11 00 00 00 00 00 00 D1 [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:55]Read from MH i2c: E2 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 17 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: E2 17 00 22 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 23 [21:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:30:55]wFMCommunicate OK [21:30:55]CreateOFDProtocolMessage done [21:30:55]OFDSenderStorePacket 111509 [21:30:55]StoreOFDPacket docnum=111509 [21:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0A 5B 07 01 C0 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1B 4E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B3 01 00 35 04 06 00 E5 96 4E 92 B8 3A FD 5F 42 70 10 7E 4F 97 [21:30:55]CheckFolder [21:30:55]dirname=/storage/ofd_packets [21:30:55]CheckFolder done [21:30:55]ProducePacketName [21:30:55]name=ofd_packets/00111509 [21:30:55]NVStorageSaveData ofd_packets/00111509 [21:30:55]File name is /storage/ofd_packets/00111509 [21:30:55]Write 301 bytes [21:30:55]NVStorageSaveData done [21:30:55]OFDSenderStorePacket done [21:30:55]KKMCreateOFDPacket done [21:30:55]NVStorageSaveData kkm_last_timestamp [21:30:55]File name is /storage/kkm_last_timestamp [21:30:55]Write 4 bytes [21:30:55]NVStorageSaveData done [21:30:55]ExternCall_PrintAddStr [21:30:55]wPrintStart [21:30:55]Write to MH i2c: 01 00 00 23 35 58 [21:30:55]Write i2c OK [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: 01 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: 01 07 00 [21:30:55]MH_I2C_Read... [21:30:55]Read from MH i2c: 01 07 00 23 35 00 00 00 00 00 FF 0F 6D [21:30:55]RasterBufferAndPrint [21:30:55]line Счет N : (1)320099 [21:30:55]line ИНН: 02508201610067 [21:30:55]line Контрольно-Кассовый Чек [21:30:55]line ПРОДАЖА [21:30:55]line ТРК (МРК, ГНК) : 11 [21:30:55]line Товар: 2710124130 [21:30:55]line Аи-92-К-5 [21:30:55]line 4.520 * 66.40 [21:30:55]line = 300.13 [21:30:55]line НДС 12% НСП 1% [21:30:55]line > о реализуемом товаре [21:30:55]line ИТОГО: 300.13 [21:30:55]line НСП 1% : 2.66 [21:30:55]line НДС 12% : 31.87 [21:30:55]line Наличными: 0.00 [21:30:55]line Безнал.: 300.13 [21:30:55]line Место: АЗС № 65 "Партнер Нефть" [21:30:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:30:55]line СНО: Общий режим [21:30:55]line Чек 258 19.06.2024 21:31 [21:30:55]line Смена: 388 ФФД: 1.0 [21:30:55]line ЗНМ: 0300000198 [21:30:55]line РНМ: 0000000000092771 [21:30:55]line Версия ККМ: 001 [21:30:55]line Платежная система: О! деньги [21:30:55]line ФМ: 0000000000875083 [21:30:55]line ФД: 111509 [21:30:55]line ФПД: 252433726093370 [21:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T213107&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111509&fm=252433726093370&tin=02508201610067®Number=0000000000092771&sum=30013 [21:30:55]written 0, free lines is 4095 [21:30:55]OFD Sender: Processing packet 111509 [packets to send 38, broken 37] [21:30:55]ProducePacketName [21:30:55]name=ofd_packets/00111509 [21:30:55]OFD Sender: To server: pG, [21:30:55]CommunicateWithHost lk.salyk.kg:30040 [21:30:55]ConnectInit lk.salyk.kg [21:30:56]Connected sock=10 [21:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0A 5B 07 01 C0 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1B 4E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 95 B3 01 00 35 04 06 00 E5 96 4E 92 B8 3A FD 5F 42 70 10 7E 4F 97 [21:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3D 22 47 00 E2 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 35 30 38 33 10 04 04 00 95 B3 01 00 F4 03 04 00 79 E5 72 66 B6 04 01 00 00 DB DA 12 22 EE CF 10 C7 [21:30:56]CommunicateWithHost err = 0 [21:30:56]CheckOFDResponse [21:30:56]1017 (14) - 77093643461234 [21:30:56]1041 (16) - 0000000000875083 [21:30:56]1040 (4) - 111509 [21:30:56]1012 (4) - 19.06.2024 14:04 [21:30:56]1206 (1) - 0 [21:30:56]OFD Sender: Remove packet 111509 [21:30:56]ProducePacketName [21:30:56]name=ofd_packets/00111509 [21:30:56]NVStorageDeleteData [21:30:56]Write to MH i2c: 01 00 00 4D 35 82 [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: 01 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: 01 07 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: 01 07 00 4D 35 00 00 00 00 00 E4 0C 79 [21:30:56]RasterBufferAndPrint [21:30:56]line [21:30:56]line [21:30:56]line [21:30:56]line [21:30:56]line [21:30:56]written 0, free lines is 3306 [21:30:56]MH_Cut [21:30:56]Write to MH i2c: D1 01 00 54 35 01 5B [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: D1 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: D1 01 00 [21:30:56]MH_I2C_Read... [21:30:56]Read from MH i2c: D1 01 00 54 35 00 5A [21:30:56]Write to MH i2c: 01 00 00 55 35 8A [21:30:56]Write i2c OK [21:30:56]MH_I2C_Read... [21:30:56]OFD Sender: No OFD packet to send [21:30:57]*** Cut start [21:30:57]*** Partial cut [21:30:57]*** CUTSNS_PIN = 1 [21:30:57]*** CUTSNS_PIN = 0 [21:30:57]*** Brake cut motor [21:30:57]Read from MH i2c: 01 [21:30:57]MH_I2C_Read... [21:30:57]*** Stop cut motor [21:30:57]*** Cut end [21:30:57]Read from MH i2c: 01 07 00 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: 01 07 00 55 35 00 00 00 00 00 FF 0F 9F [21:30:57]process_action close_receipt done [21:30:57]requested_data is exist [21:30:57]produce_requested_data [21:30:57]requested_item fm.sn is exist - process it [21:30:57]wFMCommunicate request_size=4 [21:30:57]MH_SAM_APDU [21:30:57]CAPDU: 80 11 00 00 [21:30:57]Write to MH i2c: E2 08 00 56 35 80 11 00 00 00 00 00 00 05 [21:30:57]Write i2c OK [21:30:57]MH_I2C_Read... [21:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:57]Read from MH i2c: E2 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: E2 17 00 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: E2 17 00 56 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 57 [21:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:30:57]wFMCommunicate OK [21:30:57]requested_item fd.num is exist - process it [21:30:57]SAM_PROTO_GetFieldsCounters [21:30:57]wFMCommunicate request_size=4 [21:30:57]MH_SAM_APDU [21:30:57]CAPDU: 80 13 00 00 [21:30:57]Write to MH i2c: E2 08 00 57 35 80 13 00 00 00 00 00 00 08 [21:30:57]Write i2c OK [21:30:57]MH_I2C_Read... [21:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:57]Read from MH i2c: E2 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: E2 62 00 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: E2 62 00 57 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 95 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [21:30: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 95 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:57]wFMCommunicate OK [21:30:57]SAM_PROTO_GetFieldsCounters done [21:30:57]requested_item shift.num is exist - process it [21:30:57]requested_item shift.opened is exist - process it [21:30:57]req_shift_opened [21:30:57]FM_GetShiftState [21:30:57]SAM_PROTO_GetShiftState [21:30:57]wFMCommunicate request_size=4 [21:30:57]MH_SAM_APDU [21:30:57]CAPDU: 80 13 01 00 [21:30:57]Write to MH i2c: E2 08 00 58 35 80 13 01 00 00 00 00 00 0A [21:30:57]Write i2c OK [21:30:57]MH_I2C_Read... [21:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:57]Read from MH i2c: E2 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: E2 0E 00 [21:30:57]MH_I2C_Read... [21:30:57]Read from MH i2c: E2 0E 00 58 35 00 09 00 01 31 35 72 66 00 00 00 00 90 00 54 [21:30:57]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:30:57]wFMCommunicate OK [21:30:57]SAM_PROTO_GetShiftState done [21:30:57]FM_GetShiftState done [21:30:57]req_shift_opened done [21:30:57]requested_item shift.open_date is exist - process it [21:30:57]req_shift_open_date [21:30:57]req_shift_open_date done [21:30:57]produce_requested_data done [21:30:57]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111509,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:30:57]process_action_free close_receipt [21:30:57]json_value_free [21:30:57]json_value_free done [21:30:57]process_json_proto returns [21:30:57]Send response to host [21:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111509,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:30:57]free response buf [21:30:57]execute_script done [21:30:57]execute_script returns [21:30:57]free content buf [21:30:57]Sock 9.Close socket [21:30:57]Sock 9.Thread stoped [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:18]accept exits with 7 [21:36:18]New connection [21:36:18]New thread 3067465060 created [21:36:18]Thread 3067321700 joined [21:36:18]Waiting for new connection... [21:36:18] Sock 7.Parse request [21:36:18]Sock 7.Check first char [21:36:18]Sock 7.First char is OK [21:36:18]request: POST /json_proto HTTP/1.0 [21:36:18]Method: POST [21:36:18]URL: /json_proto [21:36:18]Method is POST - this is cgi request [21:36:18]url: /json_proto [21:36:18]query_string will be loaded in cgi processing [21:36:18]execute_cgi json_proto POST (null) [21:36:18]execute_cgi path=json_proto method=POST [21:36:18]POST find Content-Length [21:36:18]Host: 172.17.59.68:8080 [21:36:18]Content-Length: 802 [21:36:18]Content-Type: application/json [21:36:18] [21:36:18]POST finish read [21:36:18]Found Content-Length = 802 [21:36:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:18]execute_script... [21:36: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)320100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.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: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:18]POST & json_proto [21:36:18]process_json_proto [21:36:18]json parsed OK: [21:36:18]protocol is kg_v1.0 [21:36:18]action value=close_receipt [21:36:18]process_action close_receipt [21:36:18]cmd_close_receipt [21:36:18]MH_GetDate [21:36:18]Write to MH i2c: F0 00 00 59 35 7D [21:36:18]Write i2c OK [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: F0 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: F0 09 00 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: F0 09 00 59 35 00 60 4F 73 66 BC EC 60 65 7B [21:36:18]GetLastDocTimeStamp 1718832667 [21:36:18]current date 1718832992 [21:36:18]FM_GetShiftState [21:36:18]SAM_PROTO_GetShiftState [21:36:18]wFMCommunicate request_size=4 [21:36:18]MH_SAM_APDU [21:36:18]CAPDU: 80 13 01 00 [21:36:18]Write to MH i2c: E2 08 00 5A 35 80 13 01 00 00 00 00 00 0C [21:36:18]Write i2c OK [21:36:18]MH_I2C_Read... [21:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:18]Read from MH i2c: E2 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: E2 0E 00 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: E2 0E 00 5A 35 00 09 00 01 31 35 72 66 00 00 00 00 90 00 56 [21:36:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:36:18]wFMCommunicate OK [21:36:18]SAM_PROTO_GetShiftState done [21:36:18]FM_GetShiftState done [21:36:18]opened in 1718760753 [21:36:18]opened+sec_in_day 1718847153 [21:36:18]quantity*price = 50009 [21:36:18]sum+1 = 50010 [21:36:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 259 19.06.2024 21:36 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111510 ФПД: 250978479832307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T213632&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111510&fm=250978479832307&tin=02508201610067®Number=0000000000092771&sum=50009 [21:36:20]StoreToDocumentArchive [21:36:20]shift 388 fd 111510 [21:36:20]save to /storage/0388/doc_00111510 [21:36:20]save last doc name /storage/0388/doc_00111510 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=248 [21:36:20]tlvbuf is B6F25090 [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 67 35 80 09 00 00 00 00 00 00 0E [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 67 35 00 90 00 10 [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 68 35 80 0D 01 02 00 00 00 00 16 [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 68 35 00 90 00 11 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 60 4F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B3 01 00 35 04 06 00 E4 43 7B 22 [21:36:20]Write to MH i2c: E2 02 01 69 35 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 60 4F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B3 01 00 35 04 06 00 E4 43 7B 22 00 00 F1 [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 69 35 00 90 00 12 [21:36:20]RAPDU: 90 00 [21:36:20]wFMCommunicate OK [21:36:20]wFMCommunicate request_size=7 [21:36:20]MH_SAM_APDU [21:36:20]CAPDU: 80 0D 02 02 02 FC F3 [21:36:20]Write to MH i2c: E2 0A 00 6A 35 80 0D 02 02 02 00 FC F3 00 00 0C [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 6A 35 00 90 00 13 [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 6B 35 80 0D 03 02 00 00 00 00 1B [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 6B 35 00 78 AB E8 0E 5D 90 90 BC 90 00 6E [21:36:20]RAPDU: 78 AB E8 0E 5D 90 90 BC 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 6C 35 80 11 00 00 00 00 00 00 1B [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 6C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [21:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:36:20]wFMCommunicate OK [21:36:20]CreateOFDProtocolMessage done [21:36:20]OFDSenderStorePacket 111510 [21:36:20]StoreOFDPacket docnum=111510 [21:36:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 C6 F8 04 01 07 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 60 4F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B3 01 00 35 04 06 00 E4 43 7B 22 FC F3 78 AB E8 0E 5D 90 90 BC [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/00111510 [21:36:20]NVStorageSaveData ofd_packets/00111510 [21:36:20]File name is /storage/ofd_packets/00111510 [21:36:20]Write 298 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 6D 35 A2 [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 6D 35 00 00 00 00 00 FF 0F B7 [21:36:20]RasterBufferAndPrint [21:36:20]line Счет N : (1)320100 [21:36:20]line ИНН: 02508201610067 [21:36:20]line Контрольно-Кассовый Чек [21:36:20]line ПРОДАЖА [21:36:20]line ТРК (МРК, ГНК) : 22 [21:36:20]line Товар: 2710194210 [21:36:20]line ДТ-К-5 [21:36:20]line 6.860 * 72.90 [21:36:20]line = 500.09 [21:36:20]line НДС 12% НСП 1% [21:36:20]line > о реализуемом товаре [21:36:20]line ИТОГО: 500.09 [21:36:20]line НСП 1% : 4.43 [21:36:20]line НДС 12% : 53.11 [21:36:20]line Наличными: 0.00 [21:36:20]line Безнал.: 500.09 [21:36:20]line Место: АЗС № 65 "Партнер Нефть" [21:36:20]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:36:20]line СНО: Общий режим [21:36:20]line Чек 259 19.06.2024 21:36 [21:36:20]line Смена: 388 ФФД: 1.0 [21:36:20]line ЗНМ: 0300000198 [21:36:20]line РНМ: 0000000000092771 [21:36:20]line Версия ККМ: 001 [21:36:20]line Платежная система: О! деньги [21:36:20]line ФМ: 0000000000875083 [21:36:20]line ФД: 111510 [21:36:20]line ФПД: 250978479832307 [21:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T213632&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111510&fm=250978479832307&tin=02508201610067®Number=0000000000092771&sum=50009 [21:36:20]OFD Sender: Processing packet 111510 [packets to send 38, broken 37] [21:36:20]ProducePacketName [21:36:20]name=ofd_packets/00111510 [21:36:20]OFD Sender: To server: pG, [21:36:20]CommunicateWithHost lk.salyk.kg:30040 [21:36:20]ConnectInit lk.salyk.kg [21:36:20]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 35 30 38 33 0C 01 00 00 C6 F8 04 01 07 0F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 60 4F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 96 B3 01 00 35 04 06 00 E4 43 7B 22 FC F3 78 AB E8 0E 5D 90 90 BC [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 35 30 38 33 4F 00 00 00 C7 24 47 00 F6 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 35 30 38 33 10 04 04 00 96 B3 01 00 F4 03 04 00 BE E6 72 66 B6 04 01 00 00 DC 28 74 04 BA 81 73 3B [21:36:21]CommunicateWithHost err = 0 [21:36:21]CheckOFDResponse [21:36:21]1017 (14) - 77093643461234 [21:36:21]1041 (16) - 0000000000875083 [21:36:21]1040 (4) - 111510 [21:36:21]1012 (4) - 19.06.2024 14:10 [21:36:21]1206 (1) - 0 [21:36:21]OFD Sender: Remove packet 111510 [21:36:21]ProducePacketName [21:36:21]name=ofd_packets/00111510 [21:36:21]NVStorageDeleteData [21:36:21]Write to MH i2c: 01 00 00 97 35 CC [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 97 35 00 00 00 00 00 DA 0C B9 [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 3296 [21:36:21]MH_Cut [21:36:21]Write to MH i2c: D1 01 00 9E 35 01 A5 [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 9E 35 00 A4 [21:36:21]Write to MH i2c: 01 00 00 9F 35 D4 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]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:22]Read from MH i2c: 01 [21:36:22]MH_I2C_Read... [21:36:22]*** Stop cut motor [21:36:22]*** Cut end [21:36:22]Read from MH i2c: 01 07 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: 01 07 00 9F 35 00 00 00 00 00 FF 0F E9 [21:36:22]process_action close_receipt done [21:36:22]requested_data is exist [21:36:22]produce_requested_data [21:36:22]requested_item fm.sn is exist - process it [21:36:22]wFMCommunicate request_size=4 [21:36:22]MH_SAM_APDU [21:36:22]CAPDU: 80 11 00 00 [21:36:22]Write to MH i2c: E2 08 00 A0 35 80 11 00 00 00 00 00 00 4F [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:22]Read from MH i2c: E2 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 17 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 17 00 A0 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [21:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:36:22]wFMCommunicate OK [21:36:22]requested_item fd.num is exist - process it [21:36:22]SAM_PROTO_GetFieldsCounters [21:36:22]wFMCommunicate request_size=4 [21:36:22]MH_SAM_APDU [21:36:22]CAPDU: 80 13 00 00 [21:36:22]Write to MH i2c: E2 08 00 A1 35 80 13 00 00 00 00 00 00 52 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:22]Read from MH i2c: E2 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 62 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 62 00 A1 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 96 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [21:36: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 96 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:22]wFMCommunicate OK [21:36:22]SAM_PROTO_GetFieldsCounters done [21:36:22]requested_item shift.num is exist - process it [21:36:22]requested_item shift.opened is exist - process it [21:36:22]req_shift_opened [21:36:22]FM_GetShiftState [21:36:22]SAM_PROTO_GetShiftState [21:36:22]wFMCommunicate request_size=4 [21:36:22]MH_SAM_APDU [21:36:22]CAPDU: 80 13 01 00 [21:36:22]Write to MH i2c: E2 08 00 A2 35 80 13 01 00 00 00 00 00 54 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]*** 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 A2 35 00 09 00 01 31 35 72 66 00 00 00 00 90 00 9E [21:36:23]RAPDU: 09 00 01 31 35 72 66 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":"0000000000875083","fd.num":111510,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [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":"0000000000875083","fd.num":111510,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [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 7.Close socket [21:36:23]Sock 7.Thread stoped [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:42]accept exits with 9 [21:44:42]New connection [21:44:42]New thread 3067321700 created [21:44:42]Thread 3067465060 joined [21:44:42]Waiting for new connection... [21:44:42] Sock 9.Parse request [21:44:42]Sock 9.Check first char [21:44:42]Sock 9.First char is OK [21:44:42]request: POST /json_proto HTTP/1.0 [21:44:42]Method: POST [21:44:42]URL: /json_proto [21:44:42]Method is POST - this is cgi request [21:44:42]url: /json_proto [21:44:42]query_string will be loaded in cgi processing [21:44:42]execute_cgi json_proto POST (null) [21:44:42]execute_cgi path=json_proto method=POST [21:44:42]POST find Content-Length [21:44:42]Host: 172.17.59.68:8080 [21:44:42]Content-Length: 677 [21:44:42]Content-Type: application/json [21:44:42] [21:44:42]POST finish read [21:44:42]Found Content-Length = 677 [21:44:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:42]execute_script... [21:44: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)320101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:42]POST & json_proto [21:44:42]process_json_proto [21:44:42]json parsed OK: [21:44:42]protocol is kg_v1.0 [21:44:42]action value=close_receipt [21:44:42]process_action close_receipt [21:44:42]cmd_close_receipt [21:44:42]MH_GetDate [21:44:42]Write to MH i2c: F0 00 00 A3 35 C7 [21:44:42]Write i2c OK [21:44:42]MH_I2C_Read... [21:44:42]Read from MH i2c: F0 [21:44:42]MH_I2C_Read... [21:44:42]Read from MH i2c: F0 09 00 [21:44:42]MH_I2C_Read... [21:44:42]Read from MH i2c: F0 09 00 A3 35 00 57 51 73 66 BC EC 60 65 BE [21:44:42]GetLastDocTimeStamp 1718832992 [21:44:42]current date 1718833495 [21:44:42]FM_GetShiftState [21:44:42]SAM_PROTO_GetShiftState [21:44:42]wFMCommunicate request_size=4 [21:44:42]MH_SAM_APDU [21:44:42]CAPDU: 80 13 01 00 [21:44:42]Write to MH i2c: E2 08 00 A4 35 80 13 01 00 00 00 00 00 56 [21:44:42]Write i2c OK [21:44:42]MH_I2C_Read... [21:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:42]Read from MH i2c: E2 [21:44:42]MH_I2C_Read... [21:44:42]Read from MH i2c: E2 0E 00 [21:44:42]MH_I2C_Read... [21:44:42]Read from MH i2c: E2 0E 00 A4 35 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A0 [21:44:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:44:42]wFMCommunicate OK [21:44:42]SAM_PROTO_GetShiftState done [21:44:42]FM_GetShiftState done [21:44:42]opened in 1718760753 [21:44:42]opened+sec_in_day 1718847153 [21:44:42]quantity*price = 60025 [21:44:42]sum+1 = 60027 [21:44:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 260 19.06.2024 21:44 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111511 ФПД: 219922062416314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T214455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111511&fm=219922062416314&tin=02508201610067®Number=0000000000092771&sum=60000 [21:44:43]StoreToDocumentArchive [21:44:43]shift 388 fd 111511 [21:44:43]save to /storage/0388/doc_00111511 [21:44:43]save last doc name /storage/0388/doc_00111511 to /storage/kkm_last_doc_name [21:44:43]save OK [21:44:43]Clear old archive folders... [21:44:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:44:43]tlvbuf is B6FD2160 [21:44:43]SAM_PROTO_ClearQueue [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 09 00 00 [21:44:43]Write to MH i2c: E2 08 00 B1 35 80 09 00 00 00 00 00 00 58 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 B1 35 00 90 00 5A [21:44:43]RAPDU: 90 00 [21:44:43]wFMCommunicate OK [21:44:43]SAM_PROTO_ClearQueue done [21:44:43]KKMCreateOFDPacket [21:44:43]OFDProtocolAddRootSTLVToBuf [21:44:43]FM_MakeSignedData [21:44:43]FM_MakeSignedData [21:44:43]SAM_PROTO_SignData [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 0D 01 02 [21:44:43]Write to MH i2c: E2 08 00 B2 35 80 0D 01 02 00 00 00 00 60 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 B2 35 00 90 00 5B [21:44:43]RAPDU: 90 00 [21:44:43]wFMCommunicate OK [21:44:43]wFMCommunicate request_size=255 [21:44:43]MH_SAM_APDU [21:44: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 57 51 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B3 01 00 35 04 06 00 C8 [21:44:43]Write to MH i2c: E2 02 01 B3 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 57 51 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B3 01 00 35 04 06 00 C8 00 00 0F [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 B3 35 00 90 00 5C [21:44:43]RAPDU: 90 00 [21:44:43]wFMCommunicate OK [21:44:43]wFMCommunicate request_size=10 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 0D 02 02 05 04 98 68 99 BA [21:44:43]Write to MH i2c: E2 0D 00 B4 35 80 0D 02 02 05 00 04 98 68 99 BA 00 00 C4 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 03 00 B4 35 00 90 00 5D [21:44:43]RAPDU: 90 00 [21:44:43]wFMCommunicate OK [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 0D 03 02 [21:44:43]Write to MH i2c: E2 08 00 B5 35 80 0D 03 02 00 00 00 00 65 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 0B 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 0B 00 B5 35 00 28 9C 5D A7 B2 7F 42 5D 90 00 FE [21:44:43]RAPDU: 28 9C 5D A7 B2 7F 42 5D 90 00 [21:44:43]wFMCommunicate OK [21:44:43]SAM_PROTO_SignData done [21:44:43]FM_MakeSignedData done [21:44:43]CreateOFDProtocolMessage [21:44:43]wFMCommunicate request_size=4 [21:44:43]MH_SAM_APDU [21:44:43]CAPDU: 80 11 00 00 [21:44:43]Write to MH i2c: E2 08 00 B6 35 80 11 00 00 00 00 00 00 65 [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:43]Read from MH i2c: E2 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 17 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: E2 17 00 B6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B7 [21:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:44:43]wFMCommunicate OK [21:44:43]CreateOFDProtocolMessage done [21:44:43]OFDSenderStorePacket 111511 [21:44:43]StoreOFDPacket docnum=111511 [21:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3A 8F 07 01 CF ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 57 51 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B3 01 00 35 04 06 00 C8 04 98 68 99 BA 28 9C 5D A7 B2 7F 42 5D [21:44:43]CheckFolder [21:44:43]dirname=/storage/ofd_packets [21:44:43]CheckFolder done [21:44:43]ProducePacketName [21:44:43]name=ofd_packets/00111511 [21:44:43]NVStorageSaveData ofd_packets/00111511 [21:44:43]File name is /storage/ofd_packets/00111511 [21:44:43]Write 301 bytes [21:44:43]NVStorageSaveData done [21:44:43]OFDSenderStorePacket done [21:44:43]KKMCreateOFDPacket done [21:44:43]NVStorageSaveData kkm_last_timestamp [21:44:43]File name is /storage/kkm_last_timestamp [21:44:43]Write 4 bytes [21:44:43]NVStorageSaveData done [21:44:43]ExternCall_PrintAddStr [21:44:43]wPrintStart [21:44:43]Write to MH i2c: 01 00 00 B7 35 EC [21:44:43]Write i2c OK [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 07 00 [21:44:43]MH_I2C_Read... [21:44:43]Read from MH i2c: 01 07 00 B7 35 00 00 00 00 00 FF 0F 01 [21:44:43]RasterBufferAndPrint [21:44:43]line Счет N : (1)320101 [21:44:43]line ИНН: 02508201610067 [21:44:43]line Контрольно-Кассовый Чек [21:44:43]line ПРОДАЖА [21:44:43]line ТРК (МРК, ГНК) : 11 [21:44:43]line Товар: 2710124130 [21:44:43]line Аи-92-К-5 [21:44:43]line 9.040 * 66.40 [21:44:43]line = 600.26 [21:44:43]line НДС 12% НСП 1% [21:44:43]line > о реализуемом товаре [21:44:43]line ОКРУГЛЕНИЕ: -0.26 [21:44:43]line ИТОГО: 600.00 [21:44:43]line Внесено: 600.00 [21:44:43]line СДАЧА: 0.00 [21:44:43]line НСП 1% : 5.31 [21:44:43]line НДС 12% : 63.74 [21:44:43]line Наличными: 600.00 [21:44:43]line Безнал.: 0.00 [21:44:43]line Место: АЗС № 65 "Партнер Нефть" [21:44:43]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:44:43]line СНО: Общий режим [21:44:43]line Чек 260 19.06.2024 21:44 [21:44:43]line Смена: 388 ФФД: 1.0 [21:44:43]line ЗНМ: 0300000198 [21:44:43]line РНМ: 0000000000092771 [21:44:43]line Версия ККМ: 001 [21:44:43]line ФМ: 0000000000875083 [21:44:43]line ФД: 111511 [21:44:43]line ФПД: 219922062416314 [21:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T214455&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111511&fm=219922062416314&tin=02508201610067®Number=0000000000092771&sum=60000 [21:44:44]OFD Sender: Processing packet 111511 [packets to send 38, broken 37] [21:44:44]ProducePacketName [21:44:44]name=ofd_packets/00111511 [21:44:44]OFD Sender: To server: pG, [21:44:44]CommunicateWithHost lk.salyk.kg:30040 [21:44:44]ConnectInit lk.salyk.kg [21:44:44]written 0, free lines is 4095 [21:44:44]Connected sock=10 [21:44:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3A 8F 07 01 CF ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 57 51 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 97 B3 01 00 35 04 06 00 C8 04 98 68 99 BA 28 9C 5D A7 B2 7F 42 5D [21:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4D 1A 47 00 B3 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 35 30 38 33 10 04 04 00 97 B3 01 00 F4 03 04 00 B5 E8 72 66 B6 04 01 00 00 68 DB 45 82 10 B3 AE DC [21:44:44]CommunicateWithHost err = 0 [21:44:44]CheckOFDResponse [21:44:44]1017 (14) - 77093643461234 [21:44:44]1041 (16) - 0000000000875083 [21:44:44]1040 (4) - 111511 [21:44:44]1012 (4) - 19.06.2024 14:18 [21:44:44]1206 (1) - 0 [21:44:44]OFD Sender: Remove packet 111511 [21:44:44]ProducePacketName [21:44:44]name=ofd_packets/00111511 [21:44:44]NVStorageDeleteData [21:44:44]Write to MH i2c: 01 00 00 E2 35 17 [21:44:44]Write i2c OK [21:44:44]MH_I2C_Read... [21:44:44]Read from MH i2c: 01 [21:44:44]MH_I2C_Read... [21:44:44]Read from MH i2c: 01 07 00 [21:44:44]MH_I2C_Read... [21:44:44]Read from MH i2c: 01 07 00 E2 35 00 00 00 00 00 D0 0C FA [21:44:44]RasterBufferAndPrint [21:44:44]line [21:44:44]line [21:44:44]line [21:44:44]line [21:44:44]line [21:44:44]written 0, free lines is 3284 [21:44:44]MH_Cut [21:44:44]Write to MH i2c: D1 01 00 E9 35 01 F0 [21:44:44]Write i2c OK [21:44:44]MH_I2C_Read... [21:44:44]Read from MH i2c: D1 [21:44:44]MH_I2C_Read... [21:44:44]Read from MH i2c: D1 01 00 [21:44:44]MH_I2C_Read... [21:44:44]Read from MH i2c: D1 01 00 E9 35 00 EF [21:44:44]Write to MH i2c: 01 00 00 EA 35 1F [21:44:44]Write i2c OK [21:44:44]MH_I2C_Read... [21:44:45]OFD Sender: No OFD packet to send [21:44:45]*** Cut start [21:44:45]*** Partial cut [21:44:45]*** CUTSNS_PIN = 1 [21:44:45]*** CUTSNS_PIN = 0 [21:44:45]*** Brake cut motor [21:44:46]Read from MH i2c: 01 [21:44:46]MH_I2C_Read... [21:44:46]*** Stop cut motor [21:44:46]*** Cut end [21:44:46]Read from MH i2c: 01 07 00 [21:44:46]MH_I2C_Read... [21:44:46]Read from MH i2c: 01 07 00 EA 35 00 00 00 00 00 FF 0F 34 [21:44:46]process_action close_receipt done [21:44:46]requested_data is exist [21:44:46]produce_requested_data [21:44:46]requested_item fm.sn is exist - process it [21:44:46]wFMCommunicate request_size=4 [21:44:46]MH_SAM_APDU [21:44:46]CAPDU: 80 11 00 00 [21:44:46]Write to MH i2c: E2 08 00 EB 35 80 11 00 00 00 00 00 00 9A [21:44:46]Write i2c OK [21:44:46]MH_I2C_Read... [21:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:46]Read from MH i2c: E2 [21:44:46]MH_I2C_Read... [21:44:46]Read from MH i2c: E2 17 00 [21:44:46]MH_I2C_Read... [21:44:46]Read from MH i2c: E2 17 00 EB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [21:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:44:46]wFMCommunicate OK [21:44:46]requested_item fd.num is exist - process it [21:44:46]SAM_PROTO_GetFieldsCounters [21:44:46]wFMCommunicate request_size=4 [21:44:46]MH_SAM_APDU [21:44:46]CAPDU: 80 13 00 00 [21:44:46]Write to MH i2c: E2 08 00 EC 35 80 13 00 00 00 00 00 00 9D [21:44:46]Write i2c OK [21:44:46]MH_I2C_Read... [21:44:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:46]Read from MH i2c: E2 [21:44:46]MH_I2C_Read... [21:44:46]Read from MH i2c: E2 62 00 [21:44:46]MH_I2C_Read... [21:44:46]Read from MH i2c: E2 62 00 EC 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 97 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [21:44: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 97 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:46]wFMCommunicate OK [21:44:46]SAM_PROTO_GetFieldsCounters done [21:44:46]requested_item shift.num is exist - process it [21:44:46]requested_item shift.opened is exist - process it [21:44:46]req_shift_opened [21:44:46]FM_GetShiftState [21:44:46]SAM_PROTO_GetShiftState [21:44:46]wFMCommunicate request_size=4 [21:44:46]MH_SAM_APDU [21:44:46]CAPDU: 80 13 01 00 [21:44:46]Write to MH i2c: E2 08 00 ED 35 80 13 01 00 00 00 00 00 9F [21:44:46]Write i2c OK [21:44:46]MH_I2C_Read... [21:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:46]Read from MH i2c: E2 [21:44:46]MH_I2C_Read... [21:44:46]Read from MH i2c: E2 0E 00 [21:44:46]MH_I2C_Read... [21:44:46]Read from MH i2c: E2 0E 00 ED 35 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E9 [21:44:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:44:46]wFMCommunicate OK [21:44:46]SAM_PROTO_GetShiftState done [21:44:46]FM_GetShiftState done [21:44:46]req_shift_opened done [21:44:46]requested_item shift.open_date is exist - process it [21:44:46]req_shift_open_date [21:44:46]req_shift_open_date done [21:44:46]produce_requested_data done [21:44:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111511,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:44:46]process_action_free close_receipt [21:44:46]json_value_free [21:44:46]json_value_free done [21:44:46]process_json_proto returns [21:44:46]Send response to host [21:44:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111511,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:44:46]free response buf [21:44:46]execute_script done [21:44:46]execute_script returns [21:44:46]free content buf [21:44:46]Sock 9.Close socket [21:44:46]Sock 9.Thread stoped [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:00]accept exits with 7 [21:54:00]New connection [21:54:00]New thread 3067465060 created [21:54:00]Thread 3067321700 joined [21:54:00]Waiting for new connection... [21:54:00] Sock 7.Parse request [21:54:00]Sock 7.Check first char [21:54:00]Sock 7.First char is OK [21:54:00]request: POST /json_proto HTTP/1.0 [21:54:00]Method: POST [21:54:00]URL: /json_proto [21:54:00]Method is POST - this is cgi request [21:54:00]url: /json_proto [21:54:00]query_string will be loaded in cgi processing [21:54:00]execute_cgi json_proto POST (null) [21:54:00]execute_cgi path=json_proto method=POST [21:54:00]POST find Content-Length [21:54:00]Host: 172.17.59.68:8080 [21:54:00]Content-Length: 803 [21:54:00]Content-Type: application/json [21:54:00] [21:54:00]POST finish read [21:54:00]Found Content-Length = 803 [21:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.260, "sum" : 17.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 17.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:00]execute_script... [21:54: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)320102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 0.260, "sum" : 17.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 17.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:00]POST & json_proto [21:54:00]process_json_proto [21:54:00]json parsed OK: [21:54:00]protocol is kg_v1.0 [21:54:00]action value=close_receipt [21:54:00]process_action close_receipt [21:54:00]cmd_close_receipt [21:54:00]MH_GetDate [21:54:00]Write to MH i2c: F0 00 00 EE 35 12 [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: F0 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: F0 09 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: F0 09 00 EE 35 00 86 53 73 66 BC EC 60 65 3A [21:54:00]GetLastDocTimeStamp 1718833495 [21:54:00]current date 1718834054 [21:54:00]FM_GetShiftState [21:54:00]SAM_PROTO_GetShiftState [21:54:00]wFMCommunicate request_size=4 [21:54:00]MH_SAM_APDU [21:54:00]CAPDU: 80 13 01 00 [21:54:00]Write to MH i2c: E2 08 00 EF 35 80 13 01 00 00 00 00 00 A1 [21:54:00]Write i2c OK [21:54:00]MH_I2C_Read... [21:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:00]Read from MH i2c: E2 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 0E 00 [21:54:00]MH_I2C_Read... [21:54:00]Read from MH i2c: E2 0E 00 EF 35 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EB [21:54:00]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:54:00]wFMCommunicate OK [21:54:00]SAM_PROTO_GetShiftState done [21:54:00]FM_GetShiftState done [21:54:00]opened in 1718760753 [21:54:00]opened+sec_in_day 1718847153 [21:54:00]quantity*price = 1726 [21:54:00]sum+1 = 1727 [21:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 17.26 НСП 1% : 0.15 НДС 12% : 1.83 Наличными: 0.00 Безнал.: 17.26 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 261 19.06.2024 21:54 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111512 ФПД: 26065235207873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T215414&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111512&fm=26065235207873&tin=02508201610067®Number=0000000000092771&sum=1726 [21:54:02]StoreToDocumentArchive [21:54:02]shift 388 fd 111512 [21:54:02]save to /storage/0388/doc_00111512 [21:54:02]save last doc name /storage/0388/doc_00111512 to /storage/kkm_last_doc_name [21:54:02]save OK [21:54:02]Clear old archive folders... [21:54:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:02]tlvbuf is 00F300B0 [21:54:02]SAM_PROTO_ClearQueue [21:54:02]wFMCommunicate request_size=4 [21:54:02]MH_SAM_APDU [21:54:02]CAPDU: 80 09 00 00 [21:54:02]Write to MH i2c: E2 08 00 FC 35 80 09 00 00 00 00 00 00 A3 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 03 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 03 00 FC 35 00 90 00 A5 [21:54:02]RAPDU: 90 00 [21:54:02]wFMCommunicate OK [21:54:02]SAM_PROTO_ClearQueue done [21:54:02]KKMCreateOFDPacket [21:54:02]OFDProtocolAddRootSTLVToBuf [21:54:02]FM_MakeSignedData [21:54:02]FM_MakeSignedData [21:54:02]SAM_PROTO_SignData [21:54:02]wFMCommunicate request_size=4 [21:54:02]MH_SAM_APDU [21:54:02]CAPDU: 80 0D 01 02 [21:54:02]Write to MH i2c: E2 08 00 FD 35 80 0D 01 02 00 00 00 00 AB [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 03 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 03 00 FD 35 00 90 00 A6 [21:54:02]RAPDU: 90 00 [21:54:02]wFMCommunicate OK [21:54:02]wFMCommunicate request_size=255 [21:54:02]MH_SAM_APDU [21:54: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 04 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 06 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 86 53 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B3 01 00 35 04 06 00 17 [21:54:02]Write to MH i2c: E2 02 01 FE 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 04 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 06 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 86 53 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B3 01 00 35 04 06 00 17 00 00 75 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 03 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 03 00 FE 35 00 90 00 A7 [21:54:02]RAPDU: 90 00 [21:54:02]wFMCommunicate OK [21:54:02]wFMCommunicate request_size=10 [21:54:02]MH_SAM_APDU [21:54:02]CAPDU: 80 0D 02 02 05 B4 C9 15 E6 C1 [21:54:02]Write to MH i2c: E2 0D 00 FF 35 80 0D 02 02 05 00 B4 C9 15 E6 C1 00 00 F1 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 03 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 03 00 FF 35 00 90 00 A8 [21:54:02]RAPDU: 90 00 [21:54:02]wFMCommunicate OK [21:54:02]wFMCommunicate request_size=4 [21:54:02]MH_SAM_APDU [21:54:02]CAPDU: 80 0D 03 02 [21:54:02]Write to MH i2c: E2 08 00 00 36 80 0D 03 02 00 00 00 00 B1 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 0B 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 0B 00 00 36 00 CE 33 A4 6D B4 34 FB A6 90 00 4D [21:54:02]RAPDU: CE 33 A4 6D B4 34 FB A6 90 00 [21:54:02]wFMCommunicate OK [21:54:02]SAM_PROTO_SignData done [21:54:02]FM_MakeSignedData done [21:54:02]CreateOFDProtocolMessage [21:54:02]wFMCommunicate request_size=4 [21:54:02]MH_SAM_APDU [21:54:02]CAPDU: 80 11 00 00 [21:54:02]Write to MH i2c: E2 08 00 01 36 80 11 00 00 00 00 00 00 B1 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:02]Read from MH i2c: E2 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 17 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: E2 17 00 01 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 03 [21:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:54:02]wFMCommunicate OK [21:54:02]CreateOFDProtocolMessage done [21:54:02]OFDSenderStorePacket 111512 [21:54:02]StoreOFDPacket docnum=111512 [21:54:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BC CF 07 01 DB 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 04 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 06 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 86 53 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B3 01 00 35 04 06 00 17 B4 C9 15 E6 C1 CE 33 A4 6D B4 34 FB A6 [21:54:02]CheckFolder [21:54:02]dirname=/storage/ofd_packets [21:54:02]CheckFolder done [21:54:02]ProducePacketName [21:54:02]name=ofd_packets/00111512 [21:54:02]NVStorageSaveData ofd_packets/00111512 [21:54:02]File name is /storage/ofd_packets/00111512 [21:54:02]Write 301 bytes [21:54:02]NVStorageSaveData done [21:54:02]OFDSenderStorePacket done [21:54:02]KKMCreateOFDPacket done [21:54:02]NVStorageSaveData kkm_last_timestamp [21:54:02]File name is /storage/kkm_last_timestamp [21:54:02]Write 4 bytes [21:54:02]NVStorageSaveData done [21:54:02]ExternCall_PrintAddStr [21:54:02]wPrintStart [21:54:02]Write to MH i2c: 01 00 00 02 36 38 [21:54:02]Write i2c OK [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: 01 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: 01 07 00 [21:54:02]MH_I2C_Read... [21:54:02]Read from MH i2c: 01 07 00 02 36 00 00 00 00 00 FF 0F 4D [21:54:02]RasterBufferAndPrint [21:54:02]line Счет N : (1)320102 [21:54:02]line ИНН: 02508201610067 [21:54:02]line Контрольно-Кассовый Чек [21:54:02]line ПРОДАЖА [21:54:02]line ТРК (МРК, ГНК) : 11 [21:54:02]line Товар: 2710124130 [21:54:02]line Аи-92-К-5 [21:54:02]line 0.260 * 66.40 [21:54:02]line = 17.26 [21:54:02]line НДС 12% НСП 1% [21:54:02]line > о реализуемом товаре [21:54:02]line ИТОГО: 17.26 [21:54:02]line НСП 1% : 0.15 [21:54:02]line НДС 12% : 1.83 [21:54:02]line Наличными: 0.00 [21:54:02]line Безнал.: 17.26 [21:54:02]line Место: АЗС № 65 "Партнер Нефть" [21:54:02]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:54:02]line СНО: Общий режим [21:54:02]line Чек 261 19.06.2024 21:54 [21:54:02]line Смена: 388 ФФД: 1.0 [21:54:02]line ЗНМ: 0300000198 [21:54:02]line РНМ: 0000000000092771 [21:54:02]line Версия ККМ: 001 [21:54:02]line Платежная система: О! деньги [21:54:02]line ФМ: 0000000000875083 [21:54:02]line ФД: 111512 [21:54:02]line ФПД: 26065235207873 [21:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T215414&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111512&fm=26065235207873&tin=02508201610067®Number=0000000000092771&sum=1726 [21:54:02]OFD Sender: Processing packet 111512 [packets to send 38, broken 37] [21:54:02]ProducePacketName [21:54:02]name=ofd_packets/00111512 [21:54:02]OFD Sender: To server: pG, [21:54:02]CommunicateWithHost lk.salyk.kg:30040 [21:54:02]ConnectInit lk.salyk.kg [21:54:02]written 0, free lines is 4095 [21:54:03]Connected sock=10 [21:54:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BC CF 07 01 DB 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 04 01 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BE 06 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BE 06 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 86 53 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B3 01 00 35 04 06 00 17 B4 C9 15 E6 C1 CE 33 A4 6D B4 34 FB A6 [21:54:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 D9 55 47 00 DB 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 98 B3 01 00 F4 03 04 00 E4 EA 72 66 B6 04 01 00 00 F9 58 61 19 7C 5C CB 60 [21:54:03]CommunicateWithHost err = 0 [21:54:03]CheckOFDResponse [21:54:03]1017 (14) - 77093643461234 [21:54:03]1041 (16) - 0000000000875083 [21:54:03]1040 (4) - 111512 [21:54:03]1012 (4) - 19.06.2024 14:27 [21:54:03]1206 (1) - 0 [21:54:03]OFD Sender: Remove packet 111512 [21:54:03]ProducePacketName [21:54:03]name=ofd_packets/00111512 [21:54:03]NVStorageDeleteData [21:54:03]Write to MH i2c: 01 00 00 2C 36 62 [21:54:03]Write i2c OK [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: 01 [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: 01 07 00 [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: 01 07 00 2C 36 00 00 00 00 00 E2 0C 57 [21:54:03]RasterBufferAndPrint [21:54:03]line [21:54:03]line [21:54:03]line [21:54:03]line [21:54:03]line [21:54:03]written 0, free lines is 3303 [21:54:03]MH_Cut [21:54:03]Write to MH i2c: D1 01 00 33 36 01 3B [21:54:03]Write i2c OK [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: D1 [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: D1 01 00 [21:54:03]MH_I2C_Read... [21:54:03]Read from MH i2c: D1 01 00 33 36 00 3A [21:54:03]Write to MH i2c: 01 00 00 34 36 6A [21:54:03]Write i2c OK [21:54:03]MH_I2C_Read... [21:54:03]OFD Sender: No OFD packet to send [21:54:04]*** Cut start [21:54:04]*** Partial cut [21:54:04]*** CUTSNS_PIN = 1 [21:54:04]*** CUTSNS_PIN = 0 [21:54:04]*** Brake cut motor [21:54:04]Read from MH i2c: 01 [21:54:04]MH_I2C_Read... [21:54:04]*** Stop cut motor [21:54:04]*** Cut end [21:54:04]Read from MH i2c: 01 07 00 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: 01 07 00 34 36 00 00 00 00 00 FF 0F 7F [21:54:04]process_action close_receipt done [21:54:04]requested_data is exist [21:54:04]produce_requested_data [21:54:04]requested_item fm.sn is exist - process it [21:54:04]wFMCommunicate request_size=4 [21:54:04]MH_SAM_APDU [21:54:04]CAPDU: 80 11 00 00 [21:54:04]Write to MH i2c: E2 08 00 35 36 80 11 00 00 00 00 00 00 E5 [21:54:04]Write i2c OK [21:54:04]MH_I2C_Read... [21:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:04]Read from MH i2c: E2 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: E2 17 00 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: E2 17 00 35 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 37 [21:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:54:04]wFMCommunicate OK [21:54:04]requested_item fd.num is exist - process it [21:54:04]SAM_PROTO_GetFieldsCounters [21:54:04]wFMCommunicate request_size=4 [21:54:04]MH_SAM_APDU [21:54:04]CAPDU: 80 13 00 00 [21:54:04]Write to MH i2c: E2 08 00 36 36 80 13 00 00 00 00 00 00 E8 [21:54:04]Write i2c OK [21:54:04]MH_I2C_Read... [21:54:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:04]Read from MH i2c: E2 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: E2 62 00 [21:54:04]MH_I2C_Read... [21:54:04]Read from MH i2c: E2 62 00 36 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 98 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [21:54: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 98 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:04]wFMCommunicate OK [21:54:04]SAM_PROTO_GetFieldsCounters done [21:54:04]requested_item shift.num is exist - process it [21:54:04]requested_item shift.opened is exist - process it [21:54:04]req_shift_opened [21:54:04]FM_GetShiftState [21:54:04]SAM_PROTO_GetShiftState [21:54:04]wFMCommunicate request_size=4 [21:54:04]MH_SAM_APDU [21:54:04]CAPDU: 80 13 01 00 [21:54:04]Write to MH i2c: E2 08 00 37 36 80 13 01 00 00 00 00 00 EA [21:54:04]Write i2c OK [21:54:04]MH_I2C_Read... [21:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:05]Read from MH i2c: E2 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 0E 00 [21:54:05]MH_I2C_Read... [21:54:05]Read from MH i2c: E2 0E 00 37 36 00 09 00 01 31 35 72 66 00 00 00 00 90 00 34 [21:54:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:54:05]wFMCommunicate OK [21:54:05]SAM_PROTO_GetShiftState done [21:54:05]FM_GetShiftState done [21:54:05]req_shift_opened done [21:54:05]requested_item shift.open_date is exist - process it [21:54:05]req_shift_open_date [21:54:05]req_shift_open_date done [21:54:05]produce_requested_data done [21:54:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111512,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:54:05]process_action_free close_receipt [21:54:05]json_value_free [21:54:05]json_value_free done [21:54:05]process_json_proto returns [21:54:05]Send response to host [21:54:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111512,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:54:05]free response buf [21:54:05]execute_script done [21:54:05]execute_script returns [21:54:05]free content buf [21:54:05]Sock 7.Close socket [21:54:05]Sock 7.Thread stoped [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:20]accept exits with 9 [21:55:20]New connection [21:55:20]New thread 3067321700 created [21:55:20]Thread 3067465060 joined [21:55:20]Waiting for new connection... [21:55:20] Sock 9.Parse request [21:55:20]Sock 9.Check first char [21:55:20]Sock 9.First char is OK [21:55:20]request: POST /json_proto HTTP/1.0 [21:55:20]Method: POST [21:55:20]URL: /json_proto [21:55:20]Method is POST - this is cgi request [21:55:20]url: /json_proto [21:55:20]query_string will be loaded in cgi processing [21:55:20]execute_cgi json_proto POST (null) [21:55:20]execute_cgi path=json_proto method=POST [21:55:20]POST find Content-Length [21:55:20]Host: 172.17.59.68:8080 [21:55:20]Content-Length: 808 [21:55:20]Content-Type: application/json [21:55:20] [21:55:20]POST finish read [21:55:20]Found Content-Length = 808 [21:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:20]execute_script... [21:55: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)320103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 25.610, "sum" : 1700.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:20]POST & json_proto [21:55:20]process_json_proto [21:55:20]json parsed OK: [21:55:20]protocol is kg_v1.0 [21:55:20]action value=close_receipt [21:55:20]process_action close_receipt [21:55:20]cmd_close_receipt [21:55:20]MH_GetDate [21:55:20]Write to MH i2c: F0 00 00 38 36 5D [21:55:20]Write i2c OK [21:55:20]MH_I2C_Read... [21:55:20]Read from MH i2c: F0 [21:55:20]MH_I2C_Read... [21:55:20]Read from MH i2c: F0 09 00 [21:55:20]MH_I2C_Read... [21:55:20]Read from MH i2c: F0 09 00 38 36 00 D5 53 73 66 BC EC 60 65 D4 [21:55:20]GetLastDocTimeStamp 1718834054 [21:55:20]current date 1718834133 [21:55:20]FM_GetShiftState [21:55:20]SAM_PROTO_GetShiftState [21:55:20]wFMCommunicate request_size=4 [21:55:20]MH_SAM_APDU [21:55:20]CAPDU: 80 13 01 00 [21:55:20]Write to MH i2c: E2 08 00 39 36 80 13 01 00 00 00 00 00 EC [21:55:20]Write i2c OK [21:55:20]MH_I2C_Read... [21:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:20]Read from MH i2c: E2 [21:55:20]MH_I2C_Read... [21:55:20]Read from MH i2c: E2 0E 00 [21:55:20]MH_I2C_Read... [21:55:20]Read from MH i2c: E2 0E 00 39 36 00 09 00 01 31 35 72 66 00 00 00 00 90 00 36 [21:55:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:55:20]wFMCommunicate OK [21:55:20]SAM_PROTO_GetShiftState done [21:55:20]FM_GetShiftState done [21:55:20]opened in 1718760753 [21:55:20]opened+sec_in_day 1718847153 [21:55:20]quantity*price = 170050 [21:55:20]sum+1 = 170051 [21:55:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.50 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 0.00 Безнал.: 1700.50 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 262 19.06.2024 21:55 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111513 ФПД: 231261244652808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T215533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111513&fm=231261244652808&tin=02508201610067®Number=0000000000092771&sum=170050 [21:55:21]StoreToDocumentArchive [21:55:21]shift 388 fd 111513 [21:55:21]save to /storage/0388/doc_00111513 [21:55:21]save last doc name /storage/0388/doc_00111513 to /storage/kkm_last_doc_name [21:55:21]save OK [21:55:21]Clear old archive folders... [21:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:21]tlvbuf is B6E25990 [21:55:21]SAM_PROTO_ClearQueue [21:55:21]wFMCommunicate request_size=4 [21:55:21]MH_SAM_APDU [21:55:21]CAPDU: 80 09 00 00 [21:55:21]Write to MH i2c: E2 08 00 46 36 80 09 00 00 00 00 00 00 EE [21:55:21]Write i2c OK [21:55:21]MH_I2C_Read... [21:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:21]Read from MH i2c: E2 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 03 00 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 03 00 46 36 00 90 00 F0 [21:55:21]RAPDU: 90 00 [21:55:21]wFMCommunicate OK [21:55:21]SAM_PROTO_ClearQueue done [21:55:21]KKMCreateOFDPacket [21:55:21]OFDProtocolAddRootSTLVToBuf [21:55:21]FM_MakeSignedData [21:55:21]FM_MakeSignedData [21:55:21]SAM_PROTO_SignData [21:55:21]wFMCommunicate request_size=4 [21:55:21]MH_SAM_APDU [21:55:21]CAPDU: 80 0D 01 02 [21:55:21]Write to MH i2c: E2 08 00 47 36 80 0D 01 02 00 00 00 00 F6 [21:55:21]Write i2c OK [21:55:21]MH_I2C_Read... [21:55:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:21]Read from MH i2c: E2 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 03 00 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 03 00 47 36 00 90 00 F1 [21:55:21]RAPDU: 90 00 [21:55:21]wFMCommunicate OK [21:55:21]wFMCommunicate request_size=255 [21:55:21]MH_SAM_APDU [21:55: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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D5 53 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B3 01 00 35 04 06 00 D2 [21:55:21]Write to MH i2c: E2 02 01 48 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D5 53 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B3 01 00 35 04 06 00 D2 00 00 6D [21:55:21]Write i2c OK [21:55:21]MH_I2C_Read... [21:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:21]Read from MH i2c: E2 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 03 00 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 03 00 48 36 00 90 00 F2 [21:55:21]RAPDU: 90 00 [21:55:21]wFMCommunicate OK [21:55:21]wFMCommunicate request_size=10 [21:55:21]MH_SAM_APDU [21:55:21]CAPDU: 80 0D 02 02 05 54 B4 56 7D 08 [21:55:21]Write to MH i2c: E2 0D 00 49 36 80 0D 02 02 05 00 54 B4 56 7D 08 00 00 E6 [21:55:21]Write i2c OK [21:55:21]MH_I2C_Read... [21:55:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:21]Read from MH i2c: E2 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 03 00 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 03 00 49 36 00 90 00 F3 [21:55:21]RAPDU: 90 00 [21:55:21]wFMCommunicate OK [21:55:21]wFMCommunicate request_size=4 [21:55:21]MH_SAM_APDU [21:55:21]CAPDU: 80 0D 03 02 [21:55:21]Write to MH i2c: E2 08 00 4A 36 80 0D 03 02 00 00 00 00 FB [21:55:21]Write i2c OK [21:55:21]MH_I2C_Read... [21:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:21]Read from MH i2c: E2 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 0B 00 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 0B 00 4A 36 00 B9 50 37 94 05 F1 16 E6 90 00 C2 [21:55:21]RAPDU: B9 50 37 94 05 F1 16 E6 90 00 [21:55:21]wFMCommunicate OK [21:55:21]SAM_PROTO_SignData done [21:55:21]FM_MakeSignedData done [21:55:21]CreateOFDProtocolMessage [21:55:21]wFMCommunicate request_size=4 [21:55:21]MH_SAM_APDU [21:55:21]CAPDU: 80 11 00 00 [21:55:21]Write to MH i2c: E2 08 00 4B 36 80 11 00 00 00 00 00 00 FB [21:55:21]Write i2c OK [21:55:21]MH_I2C_Read... [21:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:21]Read from MH i2c: E2 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 17 00 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: E2 17 00 4B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4D [21:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:55:21]wFMCommunicate OK [21:55:21]CreateOFDProtocolMessage done [21:55:21]OFDSenderStorePacket 111513 [21:55:21]StoreOFDPacket docnum=111513 [21:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1E 67 07 01 6D 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D5 53 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B3 01 00 35 04 06 00 D2 54 B4 56 7D 08 B9 50 37 94 05 F1 16 E6 [21:55:21]CheckFolder [21:55:21]dirname=/storage/ofd_packets [21:55:21]CheckFolder done [21:55:21]ProducePacketName [21:55:21]name=ofd_packets/00111513 [21:55:21]NVStorageSaveData ofd_packets/00111513 [21:55:21]File name is /storage/ofd_packets/00111513 [21:55:21]Write 301 bytes [21:55:21]NVStorageSaveData done [21:55:21]OFDSenderStorePacket done [21:55:21]KKMCreateOFDPacket done [21:55:21]NVStorageSaveData kkm_last_timestamp [21:55:21]File name is /storage/kkm_last_timestamp [21:55:21]Write 4 bytes [21:55:21]NVStorageSaveData done [21:55:21]ExternCall_PrintAddStr [21:55:21]wPrintStart [21:55:21]Write to MH i2c: 01 00 00 4C 36 82 [21:55:21]Write i2c OK [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: 01 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: 01 07 00 [21:55:21]MH_I2C_Read... [21:55:21]Read from MH i2c: 01 07 00 4C 36 00 00 00 00 00 FF 0F 97 [21:55:21]RasterBufferAndPrint [21:55:21]line Счет N : (1)320103 [21:55:21]line ИНН: 02508201610067 [21:55:21]line Контрольно-Кассовый Чек [21:55:21]line ПРОДАЖА [21:55:21]line ТРК (МРК, ГНК) : 11 [21:55:21]line Товар: 2710124130 [21:55:21]line Аи-92-К-5 [21:55:21]line 25.610 * 66.40 [21:55:21]line = 1700.50 [21:55:21]line НДС 12% НСП 1% [21:55:21]line > о реализуемом товаре [21:55:21]line ИТОГО: 1700.50 [21:55:21]line НСП 1% : 15.05 [21:55:21]line НДС 12% : 180.58 [21:55:21]line Наличными: 0.00 [21:55:21]line Безнал.: 1700.50 [21:55:21]line Место: АЗС № 65 "Партнер Нефть" [21:55:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [21:55:21]line СНО: Общий режим [21:55:21]line Чек 262 19.06.2024 21:55 [21:55:21]line Смена: 388 ФФД: 1.0 [21:55:21]line ЗНМ: 0300000198 [21:55:21]line РНМ: 0000000000092771 [21:55:21]line Версия ККМ: 001 [21:55:21]line Платежная система: О! деньги [21:55:21]line ФМ: 0000000000875083 [21:55:21]line ФД: 111513 [21:55:21]line ФПД: 231261244652808 [21:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T215533&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111513&fm=231261244652808&tin=02508201610067®Number=0000000000092771&sum=170050 [21:55:22]written 0, free lines is 4095 [21:55:22]OFD Sender: Processing packet 111513 [packets to send 38, broken 37] [21:55:22]ProducePacketName [21:55:22]name=ofd_packets/00111513 [21:55:22]OFD Sender: To server: pG, [21:55:22]CommunicateWithHost lk.salyk.kg:30040 [21:55:22]ConnectInit lk.salyk.kg [21:55:22]Connected sock=10 [21:55:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1E 67 07 01 6D 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 0A 64 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 42 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 D5 53 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 99 B3 01 00 35 04 06 00 D2 54 B4 56 7D 08 B9 50 37 94 05 F1 16 E6 [21:55:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 FE 1E 47 00 69 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 35 30 38 33 10 04 04 00 99 B3 01 00 F4 03 04 00 33 EB 72 66 B6 04 01 00 00 08 E9 9A 8E D5 91 93 3E [21:55:22]CommunicateWithHost err = 0 [21:55:22]CheckOFDResponse [21:55:22]1017 (14) - 77093643461234 [21:55:22]1041 (16) - 0000000000875083 [21:55:22]1040 (4) - 111513 [21:55:22]1012 (4) - 19.06.2024 14:29 [21:55:22]1206 (1) - 0 [21:55:22]OFD Sender: Remove packet 111513 [21:55:22]ProducePacketName [21:55:22]name=ofd_packets/00111513 [21:55:22]NVStorageDeleteData [21:55:22]Write to MH i2c: 01 00 00 76 36 AC [21:55:22]Write i2c OK [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: 01 [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: 01 07 00 [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: 01 07 00 76 36 00 00 00 00 00 ED 0C AC [21:55:22]RasterBufferAndPrint [21:55:22]line [21:55:22]line [21:55:22]line [21:55:22]line [21:55:22]line [21:55:22]written 0, free lines is 3317 [21:55:22]MH_Cut [21:55:22]Write to MH i2c: D1 01 00 7D 36 01 85 [21:55:22]Write i2c OK [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: D1 [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: D1 01 00 [21:55:22]MH_I2C_Read... [21:55:22]Read from MH i2c: D1 01 00 7D 36 00 84 [21:55:22]Write to MH i2c: 01 00 00 7E 36 B4 [21:55:22]Write i2c OK [21:55:22]MH_I2C_Read... [21:55:22]OFD Sender: No OFD packet to send [21:55:23]*** Cut start [21:55:23]*** Partial cut [21:55:23]*** CUTSNS_PIN = 1 [21:55:23]*** CUTSNS_PIN = 0 [21:55:23]*** Brake cut motor [21:55:23]Read from MH i2c: 01 [21:55:23]MH_I2C_Read... [21:55:23]*** Stop cut motor [21:55:23]*** Cut end [21:55:23]Read from MH i2c: 01 07 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: 01 07 00 7E 36 00 00 00 00 00 FF 0F C9 [21:55:23]process_action close_receipt done [21:55:23]requested_data is exist [21:55:23]produce_requested_data [21:55:23]requested_item fm.sn is exist - process it [21:55:23]wFMCommunicate request_size=4 [21:55:23]MH_SAM_APDU [21:55:23]CAPDU: 80 11 00 00 [21:55:23]Write to MH i2c: E2 08 00 7F 36 80 11 00 00 00 00 00 00 2F [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:23]Read from MH i2c: E2 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 17 00 [21:55:23]MH_I2C_Read... [21:55:23]Read from MH i2c: E2 17 00 7F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 81 [21:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [21:55:23]wFMCommunicate OK [21:55:23]requested_item fd.num is exist - process it [21:55:23]SAM_PROTO_GetFieldsCounters [21:55:23]wFMCommunicate request_size=4 [21:55:23]MH_SAM_APDU [21:55:23]CAPDU: 80 13 00 00 [21:55:23]Write to MH i2c: E2 08 00 80 36 80 13 00 00 00 00 00 00 32 [21:55:23]Write i2c OK [21:55:23]MH_I2C_Read... [21:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:24]Read from MH i2c: E2 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: E2 62 00 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: E2 62 00 80 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 99 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [21:55: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 99 B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:24]wFMCommunicate OK [21:55:24]SAM_PROTO_GetFieldsCounters done [21:55:24]requested_item shift.num is exist - process it [21:55:24]requested_item shift.opened is exist - process it [21:55:24]req_shift_opened [21:55:24]FM_GetShiftState [21:55:24]SAM_PROTO_GetShiftState [21:55:24]wFMCommunicate request_size=4 [21:55:24]MH_SAM_APDU [21:55:24]CAPDU: 80 13 01 00 [21:55:24]Write to MH i2c: E2 08 00 81 36 80 13 01 00 00 00 00 00 34 [21:55:24]Write i2c OK [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: E2 [21:55:24]MH_I2C_Read... [21:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:24]Read from MH i2c: E2 0E 00 [21:55:24]MH_I2C_Read... [21:55:24]Read from MH i2c: E2 0E 00 81 36 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7E [21:55:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [21:55:24]wFMCommunicate OK [21:55:24]SAM_PROTO_GetShiftState done [21:55:24]FM_GetShiftState done [21:55:24]req_shift_opened done [21:55:24]requested_item shift.open_date is exist - process it [21:55:24]req_shift_open_date [21:55:24]req_shift_open_date done [21:55:24]produce_requested_data done [21:55:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111513,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [21:55:24]process_action_free close_receipt [21:55:24]json_value_free [21:55:24]json_value_free done [21:55:24]process_json_proto returns [21:55:24]Send response to host [21:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111513,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [21:55:24]free response buf [21:55:24]execute_script done [21:55:24]execute_script returns [21:55:24]free content buf [21:55:24]Sock 9.Close socket [21:55:24]Sock 9.Thread stoped [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:38]accept exits with 7 [22:02:38]New connection [22:02:38]New thread 3067465060 created [22:02:38]Thread 3067321700 joined [22:02:38]Waiting for new connection... [22:02:38] Sock 7.Parse request [22:02:38]Sock 7.Check first char [22:02:38]Sock 7.First char is OK [22:02:38]request: POST /json_proto HTTP/1.0 [22:02:38]Method: POST [22:02:38]URL: /json_proto [22:02:38]Method is POST - this is cgi request [22:02:38]url: /json_proto [22:02:38]query_string will be loaded in cgi processing [22:02:38]execute_cgi json_proto POST (null) [22:02:38]execute_cgi path=json_proto method=POST [22:02:38]POST find Content-Length [22:02:38]Host: 172.17.59.68:8080 [22:02:38]Content-Length: 677 [22:02:38]Content-Type: application/json [22:02:38] [22:02:38]POST finish read [22:02:38]Found Content-Length = 677 [22:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:38]execute_script... [22:02: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)320105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:38]POST & json_proto [22:02:38]process_json_proto [22:02:38]json parsed OK: [22:02:38]protocol is kg_v1.0 [22:02:38]action value=close_receipt [22:02:38]process_action close_receipt [22:02:38]cmd_close_receipt [22:02:38]MH_GetDate [22:02:38]Write to MH i2c: F0 00 00 82 36 A7 [22:02:38]Write i2c OK [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: F0 [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: F0 09 00 [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: F0 09 00 82 36 00 8C 55 73 66 BC EC 60 65 D7 [22:02:38]GetLastDocTimeStamp 1718834133 [22:02:38]current date 1718834572 [22:02:38]FM_GetShiftState [22:02:38]SAM_PROTO_GetShiftState [22:02:38]wFMCommunicate request_size=4 [22:02:38]MH_SAM_APDU [22:02:38]CAPDU: 80 13 01 00 [22:02:38]Write to MH i2c: E2 08 00 83 36 80 13 01 00 00 00 00 00 36 [22:02:38]Write i2c OK [22:02:38]MH_I2C_Read... [22:02:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:38]Read from MH i2c: E2 [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: E2 0E 00 [22:02:38]MH_I2C_Read... [22:02:38]Read from MH i2c: E2 0E 00 83 36 00 09 00 01 31 35 72 66 00 00 00 00 90 00 80 [22:02:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:02:38]wFMCommunicate OK [22:02:38]SAM_PROTO_GetShiftState done [22:02:38]FM_GetShiftState done [22:02:38]opened in 1718760753 [22:02:38]opened+sec_in_day 1718847153 [22:02:38]quantity*price = 50065 [22:02:38]sum+1 = 50067 [22:02:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 263 19.06.2024 22:02 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111514 ФПД: 236259776452798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220252&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111514&fm=236259776452798&tin=02508201610067®Number=0000000000092771&sum=50000 [22:02:39]StoreToDocumentArchive [22:02:39]shift 388 fd 111514 [22:02:39]save to /storage/0388/doc_00111514 [22:02:39]save last doc name /storage/0388/doc_00111514 to /storage/kkm_last_doc_name [22:02:39]save OK [22:02:39]Clear old archive folders... [22:02:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:02:39]tlvbuf is 00FF17A0 [22:02:39]SAM_PROTO_ClearQueue [22:02:39]wFMCommunicate request_size=4 [22:02:39]MH_SAM_APDU [22:02:39]CAPDU: 80 09 00 00 [22:02:39]Write to MH i2c: E2 08 00 90 36 80 09 00 00 00 00 00 00 38 [22:02:39]Write i2c OK [22:02:39]MH_I2C_Read... [22:02:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:02:39]Read from MH i2c: E2 [22:02:39]MH_I2C_Read... [22:02:39]Read from MH i2c: E2 03 00 [22:02:39]MH_I2C_Read... [22:02:39]Read from MH i2c: E2 03 00 90 36 00 90 00 3A [22:02:39]RAPDU: 90 00 [22:02:39]wFMCommunicate OK [22:02:39]SAM_PROTO_ClearQueue done [22:02:39]KKMCreateOFDPacket [22:02:39]OFDProtocolAddRootSTLVToBuf [22:02:39]FM_MakeSignedData [22:02:39]FM_MakeSignedData [22:02:39]SAM_PROTO_SignData [22:02:39]wFMCommunicate request_size=4 [22:02:39]MH_SAM_APDU [22:02:39]CAPDU: 80 0D 01 02 [22:02:39]Write to MH i2c: E2 08 00 91 36 80 0D 01 02 00 00 00 00 40 [22:02:39]Write i2c OK [22:02:39]MH_I2C_Read... [22:02:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:02:39]Read from MH i2c: E2 [22:02:39]MH_I2C_Read... [22:02:39]Read from MH i2c: E2 03 00 [22:02:39]MH_I2C_Read... [22:02:39]Read from MH i2c: E2 03 00 91 36 00 90 00 3B [22:02:39]RAPDU: 90 00 [22:02:39]wFMCommunicate OK [22:02:39]wFMCommunicate request_size=255 [22:02:39]MH_SAM_APDU [22:02: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 8C 55 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B3 01 00 35 04 06 00 D6 [22:02:40]Write to MH i2c: E2 02 01 92 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 8C 55 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B3 01 00 35 04 06 00 D6 00 00 5F [22:02:40]Write i2c OK [22:02:40]MH_I2C_Read... [22:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:40]Read from MH i2c: E2 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 03 00 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 03 00 92 36 00 90 00 3C [22:02:40]RAPDU: 90 00 [22:02:40]wFMCommunicate OK [22:02:40]wFMCommunicate request_size=10 [22:02:40]MH_SAM_APDU [22:02:40]CAPDU: 80 0D 02 02 05 E0 84 0C D8 BE [22:02:40]Write to MH i2c: E2 0D 00 93 36 80 0D 02 02 05 00 E0 84 0C D8 BE 00 00 53 [22:02:40]Write i2c OK [22:02:40]MH_I2C_Read... [22:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:02:40]Read from MH i2c: E2 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 03 00 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 03 00 93 36 00 90 00 3D [22:02:40]RAPDU: 90 00 [22:02:40]wFMCommunicate OK [22:02:40]wFMCommunicate request_size=4 [22:02:40]MH_SAM_APDU [22:02:40]CAPDU: 80 0D 03 02 [22:02:40]Write to MH i2c: E2 08 00 94 36 80 0D 03 02 00 00 00 00 45 [22:02:40]Write i2c OK [22:02:40]MH_I2C_Read... [22:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:02:40]Read from MH i2c: E2 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 0B 00 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 0B 00 94 36 00 5E 26 B1 11 CC C3 C8 24 90 00 07 [22:02:40]RAPDU: 5E 26 B1 11 CC C3 C8 24 90 00 [22:02:40]wFMCommunicate OK [22:02:40]SAM_PROTO_SignData done [22:02:40]FM_MakeSignedData done [22:02:40]CreateOFDProtocolMessage [22:02:40]wFMCommunicate request_size=4 [22:02:40]MH_SAM_APDU [22:02:40]CAPDU: 80 11 00 00 [22:02:40]Write to MH i2c: E2 08 00 95 36 80 11 00 00 00 00 00 00 45 [22:02:40]Write i2c OK [22:02:40]MH_I2C_Read... [22:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:40]Read from MH i2c: E2 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 17 00 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: E2 17 00 95 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 97 [22:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:02:40]wFMCommunicate OK [22:02:40]CreateOFDProtocolMessage done [22:02:40]OFDSenderStorePacket 111514 [22:02:40]StoreOFDPacket docnum=111514 [22:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A AC 07 01 E6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 8C 55 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B3 01 00 35 04 06 00 D6 E0 84 0C D8 BE 5E 26 B1 11 CC C3 C8 24 [22:02:40]CheckFolder [22:02:40]dirname=/storage/ofd_packets [22:02:40]CheckFolder done [22:02:40]ProducePacketName [22:02:40]name=ofd_packets/00111514 [22:02:40]NVStorageSaveData ofd_packets/00111514 [22:02:40]File name is /storage/ofd_packets/00111514 [22:02:40]Write 301 bytes [22:02:40]NVStorageSaveData done [22:02:40]OFDSenderStorePacket done [22:02:40]KKMCreateOFDPacket done [22:02:40]NVStorageSaveData kkm_last_timestamp [22:02:40]File name is /storage/kkm_last_timestamp [22:02:40]Write 4 bytes [22:02:40]NVStorageSaveData done [22:02:40]ExternCall_PrintAddStr [22:02:40]wPrintStart [22:02:40]Write to MH i2c: 01 00 00 96 36 CC [22:02:40]Write i2c OK [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: 01 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: 01 07 00 [22:02:40]MH_I2C_Read... [22:02:40]Read from MH i2c: 01 07 00 96 36 00 00 00 00 00 FF 0F E1 [22:02:40]RasterBufferAndPrint [22:02:40]line Счет N : (1)320105 [22:02:40]line ИНН: 02508201610067 [22:02:40]line Контрольно-Кассовый Чек [22:02:40]line ПРОДАЖА [22:02:40]line ТРК (МРК, ГНК) : 11 [22:02:40]line Товар: 2710124130 [22:02:40]line Аи-92-К-5 [22:02:40]line 7.540 * 66.40 [22:02:40]line = 500.66 [22:02:40]line НДС 12% НСП 1% [22:02:40]line > о реализуемом товаре [22:02:40]line ОКРУГЛЕНИЕ: -0.66 [22:02:40]line ИТОГО: 500.00 [22:02:40]line Внесено: 500.00 [22:02:40]line СДАЧА: 0.00 [22:02:40]line НСП 1% : 4.43 [22:02:40]line НДС 12% : 53.17 [22:02:40]line Наличными: 500.00 [22:02:40]line Безнал.: 0.00 [22:02:40]line Место: АЗС № 65 "Партнер Нефть" [22:02:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:02:40]line СНО: Общий режим [22:02:40]line Чек 263 19.06.2024 22:02 [22:02:40]line Смена: 388 ФФД: 1.0 [22:02:40]line ЗНМ: 0300000198 [22:02:40]line РНМ: 0000000000092771 [22:02:40]line Версия ККМ: 001 [22:02:40]line ФМ: 0000000000875083 [22:02:40]line ФД: 111514 [22:02:40]line ФПД: 236259776452798 [22:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220252&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111514&fm=236259776452798&tin=02508201610067®Number=0000000000092771&sum=50000 [22:02:40]OFD Sender: Processing packet 111514 [packets to send 38, broken 37] [22:02:40]ProducePacketName [22:02:40]name=ofd_packets/00111514 [22:02:40]OFD Sender: To server: pG, [22:02:40]CommunicateWithHost lk.salyk.kg:30040 [22:02:40]ConnectInit lk.salyk.kg [22:02:40]written 0, free lines is 4095 [22:02:40]Connected sock=10 [22:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A AC 07 01 E6 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 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 8C 55 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B3 01 00 35 04 06 00 D6 E0 84 0C D8 BE 5E 26 B1 11 CC C3 C8 24 [22:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 C7 6C 47 00 11 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9A B3 01 00 F4 03 04 00 E9 EC 72 66 B6 04 01 00 00 47 F0 E9 18 01 85 65 78 [22:02:41]CommunicateWithHost err = 0 [22:02:41]CheckOFDResponse [22:02:41]1017 (14) - 77093643461234 [22:02:41]1041 (16) - 0000000000875083 [22:02:41]1040 (4) - 111514 [22:02:41]1012 (4) - 19.06.2024 14:36 [22:02:41]1206 (1) - 0 [22:02:41]OFD Sender: Remove packet 111514 [22:02:41]ProducePacketName [22:02:41]name=ofd_packets/00111514 [22:02:41]NVStorageDeleteData [22:02:41]Write to MH i2c: 01 00 00 C1 36 F7 [22:02:41]Write i2c OK [22:02:41]MH_I2C_Read... [22:02:41]Read from MH i2c: 01 [22:02:41]MH_I2C_Read... [22:02:41]Read from MH i2c: 01 07 00 [22:02:41]MH_I2C_Read... [22:02:41]Read from MH i2c: 01 07 00 C1 36 00 00 00 00 00 E9 0C F3 [22:02:41]RasterBufferAndPrint [22:02:41]line [22:02:41]line [22:02:41]line [22:02:41]line [22:02:41]line [22:02:41]written 0, free lines is 3311 [22:02:41]MH_Cut [22:02:41]Write to MH i2c: D1 01 00 C8 36 01 D0 [22:02:41]Write i2c OK [22:02:41]MH_I2C_Read... [22:02:41]Read from MH i2c: D1 [22:02:41]MH_I2C_Read... [22:02:41]Read from MH i2c: D1 01 00 [22:02:41]MH_I2C_Read... [22:02:41]Read from MH i2c: D1 01 00 C8 36 00 CF [22:02:41]Write to MH i2c: 01 00 00 C9 36 FF [22:02:41]Write i2c OK [22:02:41]MH_I2C_Read... [22:02:41]OFD Sender: No OFD packet to send [22:02:41]*** Cut start [22:02:41]*** Partial cut [22:02:41]*** CUTSNS_PIN = 1 [22:02:42]*** CUTSNS_PIN = 0 [22:02:42]*** Brake cut motor [22:02:42]Read from MH i2c: 01 [22:02:42]MH_I2C_Read... [22:02:42]*** Stop cut motor [22:02:42]*** Cut end [22:02:42]Read from MH i2c: 01 07 00 [22:02:42]MH_I2C_Read... [22:02:42]Read from MH i2c: 01 07 00 C9 36 00 00 00 00 00 FF 0F 14 [22:02:42]process_action close_receipt done [22:02:42]requested_data is exist [22:02:42]produce_requested_data [22:02:42]requested_item fm.sn is exist - process it [22:02:42]wFMCommunicate request_size=4 [22:02:42]MH_SAM_APDU [22:02:42]CAPDU: 80 11 00 00 [22:02:42]Write to MH i2c: E2 08 00 CA 36 80 11 00 00 00 00 00 00 7A [22:02:42]Write i2c OK [22:02:42]MH_I2C_Read... [22:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:02:42]Read from MH i2c: E2 [22:02:42]MH_I2C_Read... [22:02:42]Read from MH i2c: E2 17 00 [22:02:42]MH_I2C_Read... [22:02:42]Read from MH i2c: E2 17 00 CA 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CC [22:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:02:42]wFMCommunicate OK [22:02:42]requested_item fd.num is exist - process it [22:02:42]SAM_PROTO_GetFieldsCounters [22:02:42]wFMCommunicate request_size=4 [22:02:42]MH_SAM_APDU [22:02:42]CAPDU: 80 13 00 00 [22:02:42]Write to MH i2c: E2 08 00 CB 36 80 13 00 00 00 00 00 00 7D [22:02:42]Write i2c OK [22:02:42]MH_I2C_Read... [22:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:02:42]Read from MH i2c: E2 [22:02:42]MH_I2C_Read... [22:02:42]Read from MH i2c: E2 62 00 [22:02:42]MH_I2C_Read... [22:02:42]Read from MH i2c: E2 62 00 CB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [22:02: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9A B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:02:42]wFMCommunicate OK [22:02:42]SAM_PROTO_GetFieldsCounters done [22:02:42]requested_item shift.num is exist - process it [22:02:42]requested_item shift.opened is exist - process it [22:02:42]req_shift_opened [22:02:42]FM_GetShiftState [22:02:42]SAM_PROTO_GetShiftState [22:02:42]wFMCommunicate request_size=4 [22:02:42]MH_SAM_APDU [22:02:42]CAPDU: 80 13 01 00 [22:02:42]Write to MH i2c: E2 08 00 CC 36 80 13 01 00 00 00 00 00 7F [22:02:42]Write i2c OK [22:02:42]MH_I2C_Read... [22:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:02:42]Read from MH i2c: E2 [22:02:42]MH_I2C_Read... [22:02:42]Read from MH i2c: E2 0E 00 [22:02:42]MH_I2C_Read... [22:02:42]Read from MH i2c: E2 0E 00 CC 36 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C9 [22:02:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:02:42]wFMCommunicate OK [22:02:42]SAM_PROTO_GetShiftState done [22:02:42]FM_GetShiftState done [22:02:42]req_shift_opened done [22:02:42]requested_item shift.open_date is exist - process it [22:02:42]req_shift_open_date [22:02:42]req_shift_open_date done [22:02:42]produce_requested_data done [22:02:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111514,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:02:42]process_action_free close_receipt [22:02:42]json_value_free [22:02:42]json_value_free done [22:02:42]process_json_proto returns [22:02:42]Send response to host [22:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111514,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:02:42]free response buf [22:02:42]execute_script done [22:02:42]execute_script returns [22:02:42]free content buf [22:02:42]Sock 7.Close socket [22:02:42]Sock 7.Thread stoped [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:03:57]accept exits with 9 [22:03:57]New connection [22:03:57]New thread 3067321700 created [22:03:57]Thread 3067465060 joined [22:03:57]Waiting for new connection... [22:03:57] Sock 9.Parse request [22:03:57]Sock 9.Check first char [22:03:57]Sock 9.First char is OK [22:03:57]request: POST /json_proto HTTP/1.0 [22:03:57]Method: POST [22:03:57]URL: /json_proto [22:03:57]Method is POST - this is cgi request [22:03:57]url: /json_proto [22:03:57]query_string will be loaded in cgi processing [22:03:57]execute_cgi json_proto POST (null) [22:03:57]execute_cgi path=json_proto method=POST [22:03:57]POST find Content-Length [22:03:57]Host: 172.17.59.68:8080 [22:03:57]Content-Length: 677 [22:03:57]Content-Type: application/json [22:03:57] [22:03:57]POST finish read [22:03:57]Found Content-Length = 677 [22:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.390, "sum" : 424.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 424.00, "payments": [ { "type": 0, "sum" : 424.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:57]execute_script... [22: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)320106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.390, "sum" : 424.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 424.00, "payments": [ { "type": 0, "sum" : 424.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:57]POST & json_proto [22:03:57]process_json_proto [22:03:57]json parsed OK: [22:03:57]protocol is kg_v1.0 [22:03:57]action value=close_receipt [22:03:57]process_action close_receipt [22:03:57]cmd_close_receipt [22:03:57]MH_GetDate [22:03:57]Write to MH i2c: F0 00 00 CD 36 F2 [22:03:57]Write i2c OK [22:03:57]MH_I2C_Read... [22:03:57]Read from MH i2c: F0 [22:03:57]MH_I2C_Read... [22:03:57]Read from MH i2c: F0 09 00 [22:03:57]MH_I2C_Read... [22:03:57]Read from MH i2c: F0 09 00 CD 36 00 DB 55 73 66 BC EC 60 65 71 [22:03:57]GetLastDocTimeStamp 1718834572 [22:03:57]current date 1718834651 [22:03:57]FM_GetShiftState [22:03:57]SAM_PROTO_GetShiftState [22:03:57]wFMCommunicate request_size=4 [22:03:57]MH_SAM_APDU [22:03:57]CAPDU: 80 13 01 00 [22:03:57]Write to MH i2c: E2 08 00 CE 36 80 13 01 00 00 00 00 00 81 [22:03:57]Write i2c OK [22:03:57]MH_I2C_Read... [22:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:57]Read from MH i2c: E2 [22:03:57]MH_I2C_Read... [22:03:57]Read from MH i2c: E2 0E 00 [22:03:57]MH_I2C_Read... [22:03:57]Read from MH i2c: E2 0E 00 CE 36 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CB [22:03:57]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:03:57]wFMCommunicate OK [22:03:57]SAM_PROTO_GetShiftState done [22:03:57]FM_GetShiftState done [22:03:57]opened in 1718760753 [22:03:57]opened+sec_in_day 1718847153 [22:03:57]quantity*price = 42429 [22:03:57]sum+1 = 42431 [22:03:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 424.00 Внесено: 665.00 СДАЧА: 241.00 НСП 1% : 3.75 НДС 12% : 45.06 Наличными: 424.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 264 19.06.2024 22:04 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111515 ФПД: 151041216943978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220411&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111515&fm=151041216943978&tin=02508201610067®Number=0000000000092771&sum=42400 [22:03:59]StoreToDocumentArchive [22:03:59]shift 388 fd 111515 [22:03:59]save to /storage/0388/doc_00111515 [22:03:59]save last doc name /storage/0388/doc_00111515 to /storage/kkm_last_doc_name [22:03:59]save OK [22:03:59]Clear old archive folders... [22:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:59]tlvbuf is 00F0C680 [22:03:59]SAM_PROTO_ClearQueue [22:03:59]wFMCommunicate request_size=4 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 09 00 00 [22:03:59]Write to MH i2c: E2 08 00 DB 36 80 09 00 00 00 00 00 00 83 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 DB 36 00 90 00 85 [22:03:59]RAPDU: 90 00 [22:03:59]wFMCommunicate OK [22:03:59]SAM_PROTO_ClearQueue done [22:03:59]KKMCreateOFDPacket [22:03:59]OFDProtocolAddRootSTLVToBuf [22:03:59]FM_MakeSignedData [22:03:59]FM_MakeSignedData [22:03:59]SAM_PROTO_SignData [22:03:59]wFMCommunicate request_size=4 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 0D 01 02 [22:03:59]Write to MH i2c: E2 08 00 DC 36 80 0D 01 02 00 00 00 00 8B [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 DC 36 00 90 00 86 [22:03:59]RAPDU: 90 00 [22:03:59]wFMCommunicate OK [22:03:59]wFMCommunicate request_size=255 [22:03:59]MH_SAM_APDU [22: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 F6 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 DB 55 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B3 01 00 35 04 06 00 89 [22:03:59]Write to MH i2c: E2 02 01 DD 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 F6 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 DB 55 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B3 01 00 35 04 06 00 89 00 00 2B [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 DD 36 00 90 00 87 [22:03:59]RAPDU: 90 00 [22:03:59]wFMCommunicate OK [22:03:59]wFMCommunicate request_size=10 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 0D 02 02 05 5F 06 15 17 6A [22:03:59]Write to MH i2c: E2 0D 00 DE 36 80 0D 02 02 05 00 5F 06 15 17 6A 00 00 93 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 DE 36 00 90 00 88 [22:03:59]RAPDU: 90 00 [22:03:59]wFMCommunicate OK [22:03:59]wFMCommunicate request_size=4 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 0D 03 02 [22:03:59]Write to MH i2c: E2 08 00 DF 36 80 0D 03 02 00 00 00 00 90 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 0B 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 0B 00 DF 36 00 EB 7F 40 A8 8F 51 15 21 90 00 F9 [22:03:59]RAPDU: EB 7F 40 A8 8F 51 15 21 90 00 [22:03:59]wFMCommunicate OK [22:03:59]SAM_PROTO_SignData done [22:03:59]FM_MakeSignedData done [22:03:59]CreateOFDProtocolMessage [22:03:59]wFMCommunicate request_size=4 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 11 00 00 [22:03:59]Write to MH i2c: E2 08 00 E0 36 80 11 00 00 00 00 00 00 90 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 17 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 17 00 E0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E2 [22:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:03:59]wFMCommunicate OK [22:03:59]CreateOFDProtocolMessage done [22:03:59]OFDSenderStorePacket 111515 [22:03:59]StoreOFDPacket docnum=111515 [22:03:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 3C 2C 07 01 D4 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 DB 55 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B3 01 00 35 04 06 00 89 5F 06 15 17 6A EB 7F 40 A8 8F 51 15 21 [22:03:59]CheckFolder [22:03:59]dirname=/storage/ofd_packets [22:03:59]CheckFolder done [22:03:59]ProducePacketName [22:03:59]name=ofd_packets/00111515 [22:03:59]NVStorageSaveData ofd_packets/00111515 [22:03:59]File name is /storage/ofd_packets/00111515 [22:03:59]Write 301 bytes [22:03:59]NVStorageSaveData done [22:03:59]OFDSenderStorePacket done [22:03:59]KKMCreateOFDPacket done [22:03:59]NVStorageSaveData kkm_last_timestamp [22:03:59]File name is /storage/kkm_last_timestamp [22:03:59]Write 4 bytes [22:03:59]NVStorageSaveData done [22:03:59]ExternCall_PrintAddStr [22:03:59]wPrintStart [22:03:59]Write to MH i2c: 01 00 00 E1 36 17 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 E1 36 00 00 00 00 00 FF 0F 2C [22:03:59]RasterBufferAndPrint [22:03:59]line Счет N : (1)320106 [22:03:59]line ИНН: 02508201610067 [22:03:59]line Контрольно-Кассовый Чек [22:03:59]line ПРОДАЖА [22:03:59]line ТРК (МРК, ГНК) : 11 [22:03:59]line Товар: 2710124130 [22:03:59]line Аи-92-К-5 [22:03:59]line 6.390 * 66.40 [22:03:59]line = 424.30 [22:03:59]line НДС 12% НСП 1% [22:03:59]line > о реализуемом товаре [22:03:59]line ОКРУГЛЕНИЕ: -0.30 [22:03:59]line ИТОГО: 424.00 [22:03:59]line Внесено: 665.00 [22:03:59]line СДАЧА: 241.00 [22:03:59]line НСП 1% : 3.75 [22:03:59]line НДС 12% : 45.06 [22:03:59]line Наличными: 424.00 [22:03:59]line Безнал.: 0.00 [22:03:59]line Место: АЗС № 65 "Партнер Нефть" [22:03:59]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:03:59]line СНО: Общий режим [22:03:59]line Чек 264 19.06.2024 22:04 [22:03:59]line Смена: 388 ФФД: 1.0 [22:03:59]line ЗНМ: 0300000198 [22:03:59]line РНМ: 0000000000092771 [22:03:59]line Версия ККМ: 001 [22:03:59]line ФМ: 0000000000875083 [22:03:59]line ФД: 111515 [22:03:59]line ФПД: 151041216943978 [22:03:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220411&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111515&fm=151041216943978&tin=02508201610067®Number=0000000000092771&sum=42400 [22:03:59]OFD Sender: Processing packet 111515 [packets to send 38, broken 37] [22:03:59]ProducePacketName [22:03:59]name=ofd_packets/00111515 [22:03:59]OFD Sender: To server: pG, [22:03:59]CommunicateWithHost lk.salyk.kg:30040 [22:03:59]ConnectInit lk.salyk.kg [22:03:59]written 0, free lines is 4095 [22:04:00]Connected sock=10 [22: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 35 30 38 33 0F 01 00 00 3C 2C 07 01 D4 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 18 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 BE A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 11 00 00 00 00 07 04 06 00 A0 A5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 DB 55 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9B B3 01 00 35 04 06 00 89 5F 06 15 17 6A EB 7F 40 A8 8F 51 15 21 [22:04:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DC E2 47 00 86 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 35 30 38 33 10 04 04 00 9B B3 01 00 F4 03 04 00 39 ED 72 66 B6 04 01 00 00 6C 53 1A D4 E0 52 84 E7 [22:04:00]CommunicateWithHost err = 0 [22:04:00]CheckOFDResponse [22:04:00]1017 (14) - 77093643461234 [22:04:00]1041 (16) - 0000000000875083 [22:04:00]1040 (4) - 111515 [22:04:00]1012 (4) - 19.06.2024 14:37 [22:04:00]1206 (1) - 0 [22:04:00]OFD Sender: Remove packet 111515 [22:04:00]ProducePacketName [22:04:00]name=ofd_packets/00111515 [22:04:00]NVStorageDeleteData [22:04:00]Write to MH i2c: 01 00 00 0C 37 43 [22:04:00]Write i2c OK [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: 01 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: 01 07 00 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: 01 07 00 0C 37 00 00 00 00 00 F2 0C 48 [22:04:00]RasterBufferAndPrint [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]written 0, free lines is 3321 [22:04:00]MH_Cut [22:04:00]Write to MH i2c: D1 01 00 13 37 01 1C [22:04:00]Write i2c OK [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 01 00 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 01 00 13 37 00 1B [22:04:00]Write to MH i2c: 01 00 00 14 37 4B [22:04:00]Write i2c OK [22:04:00]MH_I2C_Read... [22:04:00]OFD Sender: No OFD packet to send [22:04:01]*** Cut start [22:04:01]*** Partial cut [22:04:01]*** CUTSNS_PIN = 1 [22:04:01]*** CUTSNS_PIN = 0 [22:04:01]*** Brake cut motor [22:04:01]Read from MH i2c: 01 [22:04:01]MH_I2C_Read... [22:04:01]*** Stop cut motor [22:04:01]*** Cut end [22:04:01]Read from MH i2c: 01 07 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: 01 07 00 14 37 00 00 00 00 00 FF 0F 60 [22:04:01]process_action close_receipt done [22:04:01]requested_data is exist [22:04:01]produce_requested_data [22:04:01]requested_item fm.sn is exist - process it [22:04:01]wFMCommunicate request_size=4 [22:04:01]MH_SAM_APDU [22:04:01]CAPDU: 80 11 00 00 [22:04:01]Write to MH i2c: E2 08 00 15 37 80 11 00 00 00 00 00 00 C6 [22:04:01]Write i2c OK [22:04:01]MH_I2C_Read... [22:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:01]Read from MH i2c: E2 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 17 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 17 00 15 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 18 [22:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:04:01]wFMCommunicate OK [22:04:01]requested_item fd.num is exist - process it [22:04:01]SAM_PROTO_GetFieldsCounters [22:04:01]wFMCommunicate request_size=4 [22:04:01]MH_SAM_APDU [22:04:01]CAPDU: 80 13 00 00 [22:04:01]Write to MH i2c: E2 08 00 16 37 80 13 00 00 00 00 00 00 C9 [22:04:01]Write i2c OK [22:04:01]MH_I2C_Read... [22:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:01]Read from MH i2c: E2 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 62 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 62 00 16 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [22:04: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9B B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:01]wFMCommunicate OK [22:04:01]SAM_PROTO_GetFieldsCounters done [22:04:01]requested_item shift.num is exist - process it [22:04:01]requested_item shift.opened is exist - process it [22:04:01]req_shift_opened [22:04:01]FM_GetShiftState [22:04:01]SAM_PROTO_GetShiftState [22:04:01]wFMCommunicate request_size=4 [22:04:01]MH_SAM_APDU [22:04:01]CAPDU: 80 13 01 00 [22:04:01]Write to MH i2c: E2 08 00 17 37 80 13 01 00 00 00 00 00 CB [22:04:01]Write i2c OK [22:04:01]MH_I2C_Read... [22:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:01]Read from MH i2c: E2 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 0E 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 0E 00 17 37 00 09 00 01 31 35 72 66 00 00 00 00 90 00 15 [22:04:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:04:01]wFMCommunicate OK [22:04:01]SAM_PROTO_GetShiftState done [22:04:01]FM_GetShiftState done [22:04:01]req_shift_opened done [22:04:01]requested_item shift.open_date is exist - process it [22:04:01]req_shift_open_date [22:04:01]req_shift_open_date done [22:04:01]produce_requested_data done [22:04:01]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111515,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:04:01]process_action_free close_receipt [22:04:01]json_value_free [22:04:01]json_value_free done [22:04:01]process_json_proto returns [22:04:01]Send response to host [22:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111515,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:04:01]free response buf [22:04:01]execute_script done [22:04:01]execute_script returns [22:04:01]free content buf [22:04:01]Sock 9.Close socket [22:04:01]Sock 9.Thread stoped [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:14]accept exits with 7 [22:06:14]New connection [22:06:14]New thread 3067465060 created [22:06:14]Thread 3067321700 joined [22:06:14]Waiting for new connection... [22:06:14] Sock 7.Parse request [22:06:14]Sock 7.Check first char [22:06:14]Sock 7.First char is OK [22:06:14]request: POST /json_proto HTTP/1.0 [22:06:14]Method: POST [22:06:14]URL: /json_proto [22:06:14]Method is POST - this is cgi request [22:06:14]url: /json_proto [22:06:14]query_string will be loaded in cgi processing [22:06:14]execute_cgi json_proto POST (null) [22:06:14]execute_cgi path=json_proto method=POST [22:06:14]POST find Content-Length [22:06:14]Host: 172.17.59.68:8080 [22:06:14]Content-Length: 677 [22:06:14]Content-Type: application/json [22:06:14] [22:06:14]POST finish read [22:06:14]Found Content-Length = 677 [22:06:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [22:06:14]execute_script... [22:06: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)320107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "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" ] } } [22:06:14]POST & json_proto [22:06:14]process_json_proto [22:06:14]json parsed OK: [22:06:14]protocol is kg_v1.0 [22:06:14]action value=close_receipt [22:06:14]process_action close_receipt [22:06:14]cmd_close_receipt [22:06:14]MH_GetDate [22:06:14]Write to MH i2c: F0 00 00 18 37 3E [22:06:14]Write i2c OK [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: F0 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: F0 09 00 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: F0 09 00 18 37 00 64 56 73 66 BC EC 60 65 47 [22:06:14]GetLastDocTimeStamp 1718834651 [22:06:14]current date 1718834788 [22:06:14]FM_GetShiftState [22:06:14]SAM_PROTO_GetShiftState [22:06:14]wFMCommunicate request_size=4 [22:06:14]MH_SAM_APDU [22:06:14]CAPDU: 80 13 01 00 [22:06:14]Write to MH i2c: E2 08 00 19 37 80 13 01 00 00 00 00 00 CD [22:06:14]Write i2c OK [22:06:14]MH_I2C_Read... [22:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:14]Read from MH i2c: E2 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: E2 0E 00 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: E2 0E 00 19 37 00 09 00 01 31 35 72 66 00 00 00 00 90 00 17 [22:06:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:06:14]wFMCommunicate OK [22:06:14]SAM_PROTO_GetShiftState done [22:06:14]FM_GetShiftState done [22:06:14]opened in 1718760753 [22:06:14]opened+sec_in_day 1718847153 [22:06:14]quantity*price = 60025 [22:06:14]sum+1 = 60027 [22:06:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 265 19.06.2024 22:06 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111516 ФПД: 275249137297115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220628&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111516&fm=275249137297115&tin=02508201610067®Number=0000000000092771&sum=60000 [22:06:15]StoreToDocumentArchive [22:06:15]shift 388 fd 111516 [22:06:15]save to /storage/0388/doc_00111516 [22:06:15]save last doc name /storage/0388/doc_00111516 to /storage/kkm_last_doc_name [22:06:15]save OK [22:06:15]Clear old archive folders... [22:06:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:15]tlvbuf is B6FD5AC0 [22:06:15]SAM_PROTO_ClearQueue [22:06:15]wFMCommunicate request_size=4 [22:06:15]MH_SAM_APDU [22:06:15]CAPDU: 80 09 00 00 [22:06:15]Write to MH i2c: E2 08 00 26 37 80 09 00 00 00 00 00 00 CF [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 03 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 03 00 26 37 00 90 00 D1 [22:06:16]RAPDU: 90 00 [22:06:16]wFMCommunicate OK [22:06:16]SAM_PROTO_ClearQueue done [22:06:16]KKMCreateOFDPacket [22:06:16]OFDProtocolAddRootSTLVToBuf [22:06:16]FM_MakeSignedData [22:06:16]FM_MakeSignedData [22:06:16]SAM_PROTO_SignData [22:06:16]wFMCommunicate request_size=4 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 0D 01 02 [22:06:16]Write to MH i2c: E2 08 00 27 37 80 0D 01 02 00 00 00 00 D7 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 03 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 03 00 27 37 00 90 00 D2 [22:06:16]RAPDU: 90 00 [22:06:16]wFMCommunicate OK [22:06:16]wFMCommunicate request_size=255 [22:06:16]MH_SAM_APDU [22: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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 64 56 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B3 01 00 35 04 06 00 FA [22:06:16]Write to MH i2c: E2 02 01 28 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 64 56 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B3 01 00 35 04 06 00 FA 00 00 D4 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 03 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 03 00 28 37 00 90 00 D3 [22:06:16]RAPDU: 90 00 [22:06:16]wFMCommunicate OK [22:06:16]wFMCommunicate request_size=10 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 0D 02 02 05 56 6F 0D A6 DB [22:06:16]Write to MH i2c: E2 0D 00 29 37 80 0D 02 02 05 00 56 6F 0D A6 DB 00 00 37 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 03 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 03 00 29 37 00 90 00 D4 [22:06:16]RAPDU: 90 00 [22:06:16]wFMCommunicate OK [22:06:16]wFMCommunicate request_size=4 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 0D 03 02 [22:06:16]Write to MH i2c: E2 08 00 2A 37 80 0D 03 02 00 00 00 00 DC [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 0B 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 0B 00 2A 37 00 C1 8E 26 CB 34 24 0B B9 90 00 39 [22:06:16]RAPDU: C1 8E 26 CB 34 24 0B B9 90 00 [22:06:16]wFMCommunicate OK [22:06:16]SAM_PROTO_SignData done [22:06:16]FM_MakeSignedData done [22:06:16]CreateOFDProtocolMessage [22:06:16]wFMCommunicate request_size=4 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 11 00 00 [22:06:16]Write to MH i2c: E2 08 00 2B 37 80 11 00 00 00 00 00 00 DC [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 17 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 17 00 2B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 2E [22:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:06:16]wFMCommunicate OK [22:06:16]CreateOFDProtocolMessage done [22:06:16]OFDSenderStorePacket 111516 [22:06:16]StoreOFDPacket docnum=111516 [22:06:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC 70 07 01 87 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 64 56 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B3 01 00 35 04 06 00 FA 56 6F 0D A6 DB C1 8E 26 CB 34 24 0B B9 [22:06:16]CheckFolder [22:06:16]dirname=/storage/ofd_packets [22:06:16]CheckFolder done [22:06:16]ProducePacketName [22:06:16]name=ofd_packets/00111516 [22:06:16]NVStorageSaveData ofd_packets/00111516 [22:06:16]File name is /storage/ofd_packets/00111516 [22:06:16]Write 301 bytes [22:06:16]NVStorageSaveData done [22:06:16]OFDSenderStorePacket done [22:06:16]KKMCreateOFDPacket done [22:06:16]NVStorageSaveData kkm_last_timestamp [22:06:16]File name is /storage/kkm_last_timestamp [22:06:16]Write 4 bytes [22:06:16]NVStorageSaveData done [22:06:16]ExternCall_PrintAddStr [22:06:16]wPrintStart [22:06:16]Write to MH i2c: 01 00 00 2C 37 63 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 07 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 07 00 2C 37 00 00 00 00 00 FF 0F 78 [22:06:16]RasterBufferAndPrint [22:06:16]line Счет N : (1)320107 [22:06:16]line ИНН: 02508201610067 [22:06:16]line Контрольно-Кассовый Чек [22:06:16]line ПРОДАЖА [22:06:16]line ТРК (МРК, ГНК) : 11 [22:06:16]line Товар: 2710124130 [22:06:16]line Аи-92-К-5 [22:06:16]line 9.040 * 66.40 [22:06:16]line = 600.26 [22:06:16]line НДС 12% НСП 1% [22:06:16]line > о реализуемом товаре [22:06:16]line ОКРУГЛЕНИЕ: -0.26 [22:06:16]line ИТОГО: 600.00 [22:06:16]line Внесено: 600.00 [22:06:16]line СДАЧА: 0.00 [22:06:16]line НСП 1% : 5.31 [22:06:16]line НДС 12% : 63.74 [22:06:16]line Наличными: 600.00 [22:06:16]line Безнал.: 0.00 [22:06:16]line Место: АЗС № 65 "Партнер Нефть" [22:06:16]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:06:16]line СНО: Общий режим [22:06:16]line Чек 265 19.06.2024 22:06 [22:06:16]line Смена: 388 ФФД: 1.0 [22:06:16]line ЗНМ: 0300000198 [22:06:16]line РНМ: 0000000000092771 [22:06:16]line Версия ККМ: 001 [22:06:16]line ФМ: 0000000000875083 [22:06:16]line ФД: 111516 [22:06:16]line ФПД: 275249137297115 [22:06:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220628&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111516&fm=275249137297115&tin=02508201610067®Number=0000000000092771&sum=60000 [22:06:16]written 0, free lines is 4095 [22:06:16]OFD Sender: Processing packet 111516 [packets to send 38, broken 37] [22:06:16]ProducePacketName [22:06:16]name=ofd_packets/00111516 [22:06:16]OFD Sender: To server: pG, [22:06:16]CommunicateWithHost lk.salyk.kg:30040 [22:06:16]ConnectInit lk.salyk.kg [22:06:16]Connected sock=10 [22:06:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 AC 70 07 01 87 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 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 64 56 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B3 01 00 35 04 06 00 FA 56 6F 0D A6 DB C1 8E 26 CB 34 24 0B B9 [22:06:16]Write to MH i2c: 01 00 00 57 37 8E [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 07 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 07 00 57 37 00 00 00 00 00 E5 0C 86 [22:06:16]RasterBufferAndPrint [22:06:16]line [22:06:16]line [22:06:16]line [22:06:16]line [22:06:16]line [22:06:16]written 0, free lines is 3307 [22:06:16]MH_Cut [22:06:16]Write to MH i2c: D1 01 00 5E 37 01 67 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: D1 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: D1 01 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: D1 01 00 5E 37 00 66 [22:06:16]Write to MH i2c: 01 00 00 5F 37 96 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 BC FF 47 00 74 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9C B3 01 00 F4 03 04 00 C2 ED 72 66 B6 04 01 00 00 20 5F 70 CB 53 55 7D 97 [22:06:17]CommunicateWithHost err = 0 [22:06:17]CheckOFDResponse [22:06:17]1017 (14) - 77093643461234 [22:06:17]1041 (16) - 0000000000875083 [22:06:17]1040 (4) - 111516 [22:06:17]1012 (4) - 19.06.2024 14:40 [22:06:17]1206 (1) - 0 [22:06:17]OFD Sender: Remove packet 111516 [22:06:17]ProducePacketName [22:06:17]name=ofd_packets/00111516 [22:06:17]NVStorageDeleteData [22:06:17]OFD Sender: No OFD packet to send [22:06:17]*** Cut start [22:06:17]*** Partial cut [22:06:17]*** CUTSNS_PIN = 1 [22:06:17]*** CUTSNS_PIN = 0 [22:06:17]*** Brake cut motor [22:06:18]Read from MH i2c: 01 [22:06:18]MH_I2C_Read... [22:06:18]*** Stop cut motor [22:06:18]*** Cut end [22:06:18]Read from MH i2c: 01 07 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: 01 07 00 5F 37 00 00 00 00 00 FF 0F AB [22:06:18]process_action close_receipt done [22:06:18]requested_data is exist [22:06:18]produce_requested_data [22:06:18]requested_item fm.sn is exist - process it [22:06:18]wFMCommunicate request_size=4 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 11 00 00 [22:06:18]Write to MH i2c: E2 08 00 60 37 80 11 00 00 00 00 00 00 11 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 17 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 17 00 60 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 63 [22:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:06:18]wFMCommunicate OK [22:06:18]requested_item fd.num is exist - process it [22:06:18]SAM_PROTO_GetFieldsCounters [22:06:18]wFMCommunicate request_size=4 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 13 00 00 [22:06:18]Write to MH i2c: E2 08 00 61 37 80 13 00 00 00 00 00 00 14 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 62 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 62 00 61 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 28 [22:06:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9C B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:18]wFMCommunicate OK [22:06:18]SAM_PROTO_GetFieldsCounters done [22:06:18]requested_item shift.num is exist - process it [22:06:18]requested_item shift.opened is exist - process it [22:06:18]req_shift_opened [22:06:18]FM_GetShiftState [22:06:18]SAM_PROTO_GetShiftState [22:06:18]wFMCommunicate request_size=4 [22:06:18]MH_SAM_APDU [22:06:18]CAPDU: 80 13 01 00 [22:06:18]Write to MH i2c: E2 08 00 62 37 80 13 01 00 00 00 00 00 16 [22:06:18]Write i2c OK [22:06:18]MH_I2C_Read... [22:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:18]Read from MH i2c: E2 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 0E 00 [22:06:18]MH_I2C_Read... [22:06:18]Read from MH i2c: E2 0E 00 62 37 00 09 00 01 31 35 72 66 00 00 00 00 90 00 60 [22:06:18]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:06:18]wFMCommunicate OK [22:06:18]SAM_PROTO_GetShiftState done [22:06:18]FM_GetShiftState done [22:06:18]req_shift_opened done [22:06:18]requested_item shift.open_date is exist - process it [22:06:18]req_shift_open_date [22:06:18]req_shift_open_date done [22:06:18]produce_requested_data done [22:06:18]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111516,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:06:18]process_action_free close_receipt [22:06:18]json_value_free [22:06:18]json_value_free done [22:06:18]process_json_proto returns [22:06:18]Send response to host [22:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111516,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:06:18]free response buf [22:06:18]execute_script done [22:06:18]execute_script returns [22:06:18]free content buf [22:06:18]Sock 7.Close socket [22:06:18]Sock 7.Thread stoped [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:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:10]accept exits with 9 [22:07:10]New connection [22:07:10]New thread 3067321700 created [22:07:10]Thread 3067465060 joined [22:07:10]Waiting for new connection... [22:07:10] Sock 9.Parse request [22:07:10]Sock 9.Check first char [22:07:10]Sock 9.First char is OK [22:07:10]request: POST /json_proto HTTP/1.0 [22:07:10]Method: POST [22:07:10]URL: /json_proto [22:07:10]Method is POST - this is cgi request [22:07:10]url: /json_proto [22:07:10]query_string will be loaded in cgi processing [22:07:10]execute_cgi json_proto POST (null) [22:07:10]execute_cgi path=json_proto method=POST [22:07:10]POST find Content-Length [22:07:10]Host: 172.17.59.68:8080 [22:07:10]Content-Length: 808 [22:07:10]Content-Type: application/json [22:07:10] [22:07:10]POST finish read [22:07:10]Found Content-Length = 808 [22:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:10]execute_script... [22:07: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)320108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:10]POST & json_proto [22:07:10]process_json_proto [22:07:10]json parsed OK: [22:07:10]protocol is kg_v1.0 [22:07:10]action value=close_receipt [22:07:10]process_action close_receipt [22:07:10]cmd_close_receipt [22:07:10]MH_GetDate [22:07:10]Write to MH i2c: F0 00 00 63 37 89 [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: F0 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: F0 09 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: F0 09 00 63 37 00 9C 56 73 66 BC EC 60 65 CA [22:07:10]GetLastDocTimeStamp 1718834788 [22:07:10]current date 1718834844 [22:07:10]FM_GetShiftState [22:07:10]SAM_PROTO_GetShiftState [22:07:10]wFMCommunicate request_size=4 [22:07:10]MH_SAM_APDU [22:07:10]CAPDU: 80 13 01 00 [22:07:10]Write to MH i2c: E2 08 00 64 37 80 13 01 00 00 00 00 00 18 [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:10]Read from MH i2c: E2 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 0E 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 0E 00 64 37 00 09 00 01 31 35 72 66 00 00 00 00 90 00 62 [22:07:10]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:07:10]wFMCommunicate OK [22:07:10]SAM_PROTO_GetShiftState done [22:07:10]FM_GetShiftState done [22:07:10]opened in 1718760753 [22:07:10]opened+sec_in_day 1718847153 [22:07:10]quantity*price = 100064 [22:07:10]sum+1 = 100066 [22:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 266 19.06.2024 22:07 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111517 ФПД: 38312562029697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111517&fm=38312562029697&tin=02508201610067®Number=0000000000092771&sum=100065 [22:07:11]StoreToDocumentArchive [22:07:11]shift 388 fd 111517 [22:07:11]save to /storage/0388/doc_00111517 [22:07:11]save last doc name /storage/0388/doc_00111517 to /storage/kkm_last_doc_name [22:07:11]save OK [22:07:11]Clear old archive folders... [22:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:11]tlvbuf is B6FD2160 [22:07:11]SAM_PROTO_ClearQueue [22:07:11]wFMCommunicate request_size=4 [22:07:11]MH_SAM_APDU [22:07:11]CAPDU: 80 09 00 00 [22:07:11]Write to MH i2c: E2 08 00 71 37 80 09 00 00 00 00 00 00 1A [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:11]Read from MH i2c: E2 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 71 37 00 90 00 1C [22:07:11]RAPDU: 90 00 [22:07:11]wFMCommunicate OK [22:07:11]SAM_PROTO_ClearQueue done [22:07:11]KKMCreateOFDPacket [22:07:11]OFDProtocolAddRootSTLVToBuf [22:07:11]FM_MakeSignedData [22:07:11]FM_MakeSignedData [22:07:11]SAM_PROTO_SignData [22:07:11]wFMCommunicate request_size=4 [22:07:11]MH_SAM_APDU [22:07:11]CAPDU: 80 0D 01 02 [22:07:11]Write to MH i2c: E2 08 00 72 37 80 0D 01 02 00 00 00 00 22 [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:11]Read from MH i2c: E2 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 72 37 00 90 00 1D [22:07:11]RAPDU: 90 00 [22:07:11]wFMCommunicate OK [22:07:11]wFMCommunicate request_size=255 [22:07:11]MH_SAM_APDU [22:07: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9C 56 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B3 01 00 35 04 06 00 22 [22:07:11]Write to MH i2c: E2 02 01 73 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9C 56 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B3 01 00 35 04 06 00 22 00 00 76 [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:11]Read from MH i2c: E2 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 73 37 00 90 00 1E [22:07:11]RAPDU: 90 00 [22:07:11]wFMCommunicate OK [22:07:11]wFMCommunicate request_size=10 [22:07:11]MH_SAM_APDU [22:07:11]CAPDU: 80 0D 02 02 05 D8 56 A6 74 81 [22:07:11]Write to MH i2c: E2 0D 00 74 37 80 0D 02 02 05 00 D8 56 A6 74 81 00 00 F8 [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:12]Read from MH i2c: E2 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 03 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 03 00 74 37 00 90 00 1F [22:07:12]RAPDU: 90 00 [22:07:12]wFMCommunicate OK [22:07:12]wFMCommunicate request_size=4 [22:07:12]MH_SAM_APDU [22:07:12]CAPDU: 80 0D 03 02 [22:07:12]Write to MH i2c: E2 08 00 75 37 80 0D 03 02 00 00 00 00 27 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:12]Read from MH i2c: E2 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 0B 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 0B 00 75 37 00 26 1C A8 5E AD D0 AE 51 90 00 EC [22:07:12]RAPDU: 26 1C A8 5E AD D0 AE 51 90 00 [22:07:12]wFMCommunicate OK [22:07:12]SAM_PROTO_SignData done [22:07:12]FM_MakeSignedData done [22:07:12]CreateOFDProtocolMessage [22:07:12]wFMCommunicate request_size=4 [22:07:12]MH_SAM_APDU [22:07:12]CAPDU: 80 11 00 00 [22:07:12]Write to MH i2c: E2 08 00 76 37 80 11 00 00 00 00 00 00 27 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:12]Read from MH i2c: E2 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 17 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 17 00 76 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 79 [22:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:07:12]wFMCommunicate OK [22:07:12]CreateOFDProtocolMessage done [22:07:12]OFDSenderStorePacket 111517 [22:07:12]StoreOFDPacket docnum=111517 [22:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 7D 07 01 73 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9C 56 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B3 01 00 35 04 06 00 22 D8 56 A6 74 81 26 1C A8 5E AD D0 AE 51 [22:07:12]CheckFolder [22:07:12]dirname=/storage/ofd_packets [22:07:12]CheckFolder done [22:07:12]ProducePacketName [22:07:12]name=ofd_packets/00111517 [22:07:12]NVStorageSaveData ofd_packets/00111517 [22:07:12]File name is /storage/ofd_packets/00111517 [22:07:12]Write 301 bytes [22:07:12]NVStorageSaveData done [22:07:12]OFDSenderStorePacket done [22:07:12]KKMCreateOFDPacket done [22:07:12]NVStorageSaveData kkm_last_timestamp [22:07:12]File name is /storage/kkm_last_timestamp [22:07:12]Write 4 bytes [22:07:12]NVStorageSaveData done [22:07:12]ExternCall_PrintAddStr [22:07:12]wPrintStart [22:07:12]Write to MH i2c: 01 00 00 77 37 AE [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 77 37 00 00 00 00 00 FF 0F C3 [22:07:12]RasterBufferAndPrint [22:07:12]line Счет N : (1)320108 [22:07:12]line ИНН: 02508201610067 [22:07:12]line Контрольно-Кассовый Чек [22:07:12]line ПРОДАЖА [22:07:12]line ТРК (МРК, ГНК) : 11 [22:07:12]line Товар: 2710124130 [22:07:12]line Аи-92-К-5 [22:07:12]line 15.070 * 66.40 [22:07:12]line = 1000.65 [22:07:12]line НДС 12% НСП 1% [22:07:12]line > о реализуемом товаре [22:07:12]line ИТОГО: 1000.65 [22:07:12]line НСП 1% : 8.85 [22:07:12]line НДС 12% : 106.26 [22:07:12]line Наличными: 0.00 [22:07:12]line Безнал.: 1000.65 [22:07:12]line Место: АЗС № 65 "Партнер Нефть" [22:07:12]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:07:12]line СНО: Общий режим [22:07:12]line Чек 266 19.06.2024 22:07 [22:07:12]line Смена: 388 ФФД: 1.0 [22:07:12]line ЗНМ: 0300000198 [22:07:12]line РНМ: 0000000000092771 [22:07:12]line Версия ККМ: 001 [22:07:12]line Платежная система: О! деньги [22:07:12]line ФМ: 0000000000875083 [22:07:12]line ФД: 111517 [22:07:12]line ФПД: 38312562029697 [22:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T220724&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111517&fm=38312562029697&tin=02508201610067®Number=0000000000092771&sum=100065 [22:07:12]written 0, free lines is 4095 [22:07:12]OFD Sender: Processing packet 111517 [packets to send 38, broken 37] [22:07:12]ProducePacketName [22:07:12]name=ofd_packets/00111517 [22:07:12]OFD Sender: To server: pG, [22:07:12]CommunicateWithHost lk.salyk.kg:30040 [22:07:12]ConnectInit lk.salyk.kg [22:07:12]Connected sock=10 [22:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 7D 07 01 73 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 9C 56 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B3 01 00 35 04 06 00 22 D8 56 A6 74 81 26 1C A8 5E AD D0 AE 51 [22:07:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0D 7B 47 00 0F 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9D B3 01 00 F4 03 04 00 F9 ED 72 66 B6 04 01 00 00 52 FC 99 A1 F4 34 AD 84 [22:07:12]CommunicateWithHost err = 0 [22:07:12]CheckOFDResponse [22:07:12]1017 (14) - 77093643461234 [22:07:12]1041 (16) - 0000000000875083 [22:07:12]1040 (4) - 111517 [22:07:12]1012 (4) - 19.06.2024 14:40 [22:07:12]1206 (1) - 0 [22:07:12]OFD Sender: Remove packet 111517 [22:07:12]ProducePacketName [22:07:12]name=ofd_packets/00111517 [22:07:12]NVStorageDeleteData [22:07:12]Write to MH i2c: 01 00 00 A1 37 D8 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 A1 37 00 00 00 00 00 F2 0C DD [22:07:12]RasterBufferAndPrint [22:07:12]line [22:07:12]line [22:07:12]line [22:07:12]line [22:07:12]line [22:07:12]written 0, free lines is 3322 [22:07:12]MH_Cut [22:07:12]Write to MH i2c: D1 01 00 A8 37 01 B1 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: D1 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: D1 01 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: D1 01 00 A8 37 00 B0 [22:07:12]Write to MH i2c: 01 00 00 A9 37 E0 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:13]OFD Sender: No OFD packet to send [22:07:13]*** Cut start [22:07:13]*** Partial cut [22:07:13]*** CUTSNS_PIN = 1 [22:07:13]*** CUTSNS_PIN = 0 [22:07:13]*** Brake cut motor [22:07:14]Read from MH i2c: 01 [22:07:14]MH_I2C_Read... [22:07:14]*** Stop cut motor [22:07:14]*** Cut end [22:07:14]Read from MH i2c: 01 07 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: 01 07 00 A9 37 00 00 00 00 00 FF 0F F5 [22:07:14]process_action close_receipt done [22:07:14]requested_data is exist [22:07:14]produce_requested_data [22:07:14]requested_item fm.sn is exist - process it [22:07:14]wFMCommunicate request_size=4 [22:07:14]MH_SAM_APDU [22:07:14]CAPDU: 80 11 00 00 [22:07:14]Write to MH i2c: E2 08 00 AA 37 80 11 00 00 00 00 00 00 5B [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:14]Read from MH i2c: E2 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 17 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 17 00 AA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AD [22:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:07:14]wFMCommunicate OK [22:07:14]requested_item fd.num is exist - process it [22:07:14]SAM_PROTO_GetFieldsCounters [22:07:14]wFMCommunicate request_size=4 [22:07:14]MH_SAM_APDU [22:07:14]CAPDU: 80 13 00 00 [22:07:14]Write to MH i2c: E2 08 00 AB 37 80 13 00 00 00 00 00 00 5E [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:14]Read from MH i2c: E2 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 62 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 62 00 AB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B3 01 00 0E 04 04 00 84 01 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 76 [22:07: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9D B3 01 00 0E 04 04 00 84 01 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 [22:07:14]wFMCommunicate OK [22:07:14]SAM_PROTO_GetFieldsCounters done [22:07:14]requested_item shift.num is exist - process it [22:07:14]requested_item shift.opened is exist - process it [22:07:14]req_shift_opened [22:07:14]FM_GetShiftState [22:07:14]SAM_PROTO_GetShiftState [22:07:14]wFMCommunicate request_size=4 [22:07:14]MH_SAM_APDU [22:07:14]CAPDU: 80 13 01 00 [22:07:14]Write to MH i2c: E2 08 00 AC 37 80 13 01 00 00 00 00 00 60 [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:14]Read from MH i2c: E2 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 0E 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 0E 00 AC 37 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AA [22:07:14]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:07:14]wFMCommunicate OK [22:07:14]SAM_PROTO_GetShiftState done [22:07:14]FM_GetShiftState done [22:07:14]req_shift_opened done [22:07:14]requested_item shift.open_date is exist - process it [22:07:14]req_shift_open_date [22:07:14]req_shift_open_date done [22:07:14]produce_requested_data done [22:07:14]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111517,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:07:14]process_action_free close_receipt [22:07:14]json_value_free [22:07:14]json_value_free done [22:07:14]process_json_proto returns [22:07:14]Send response to host [22:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111517,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:07:14]free response buf [22:07:14]execute_script done [22:07:14]execute_script returns [22:07:14]free content buf [22:07:14]Sock 9.Close socket [22:07:14]Sock 9.Thread stoped [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:34]accept exits with 7 [22:18:34]New connection [22:18:34]New thread 3067465060 created [22:18:34]Thread 3067321700 joined [22:18:34]Waiting for new connection... [22:18:34] Sock 7.Parse request [22:18:34]Sock 7.Check first char [22:18:34]Sock 7.First char is OK [22:18:34]request: POST /json_proto HTTP/1.0 [22:18:34]Method: POST [22:18:34]URL: /json_proto [22:18:34]Method is POST - this is cgi request [22:18:34]url: /json_proto [22:18:34]query_string will be loaded in cgi processing [22:18:34]execute_cgi json_proto POST (null) [22:18:34]execute_cgi path=json_proto method=POST [22:18:34]POST find Content-Length [22:18:34]Host: 172.17.59.68:8080 [22:18:34]Content-Length: 808 [22:18:34]Content-Type: application/json [22:18:34] [22:18:34]POST finish read [22:18:34]Found Content-Length = 808 [22:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:34]execute_script... [22:18: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)320109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:34]POST & json_proto [22:18:34]process_json_proto [22:18:34]json parsed OK: [22:18:34]protocol is kg_v1.0 [22:18:34]action value=close_receipt [22:18:34]process_action close_receipt [22:18:34]cmd_close_receipt [22:18:34]MH_GetDate [22:18:34]Write to MH i2c: F0 00 00 AD 37 D3 [22:18:34]Write i2c OK [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: F0 [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: F0 09 00 [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: F0 09 00 AD 37 00 49 59 73 66 BC EC 60 65 C4 [22:18:34]GetLastDocTimeStamp 1718834844 [22:18:34]current date 1718835529 [22:18:34]FM_GetShiftState [22:18:34]SAM_PROTO_GetShiftState [22:18:34]wFMCommunicate request_size=4 [22:18:34]MH_SAM_APDU [22:18:34]CAPDU: 80 13 01 00 [22:18:34]Write to MH i2c: E2 08 00 AE 37 80 13 01 00 00 00 00 00 62 [22:18:34]Write i2c OK [22:18:34]MH_I2C_Read... [22:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:34]Read from MH i2c: E2 [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: E2 0E 00 [22:18:34]MH_I2C_Read... [22:18:34]Read from MH i2c: E2 0E 00 AE 37 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AC [22:18:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:18:34]wFMCommunicate OK [22:18:34]SAM_PROTO_GetShiftState done [22:18:34]FM_GetShiftState done [22:18:34]opened in 1718760753 [22:18:34]opened+sec_in_day 1718847153 [22:18:34]quantity*price = 100064 [22:18:34]sum+1 = 100066 [22:18:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.65 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.65 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 267 19.06.2024 22:18 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111518 ФПД: 170770510116061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T221849&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111518&fm=170770510116061&tin=02508201610067®Number=0000000000092771&sum=100065 [22:18:36]StoreToDocumentArchive [22:18:36]shift 388 fd 111518 [22:18:36]save to /storage/0388/doc_00111518 [22:18:36]save last doc name /storage/0388/doc_00111518 to /storage/kkm_last_doc_name [22:18:36]save OK [22:18:36]Clear old archive folders... [22:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:36]tlvbuf is B6FD5350 [22:18:36]SAM_PROTO_ClearQueue [22:18:36]wFMCommunicate request_size=4 [22:18:36]MH_SAM_APDU [22:18:36]CAPDU: 80 09 00 00 [22:18:36]Write to MH i2c: E2 08 00 BB 37 80 09 00 00 00 00 00 00 64 [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:36]Read from MH i2c: E2 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 03 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 03 00 BB 37 00 90 00 66 [22:18:36]RAPDU: 90 00 [22:18:36]wFMCommunicate OK [22:18:36]SAM_PROTO_ClearQueue done [22:18:36]KKMCreateOFDPacket [22:18:36]OFDProtocolAddRootSTLVToBuf [22:18:36]FM_MakeSignedData [22:18:36]FM_MakeSignedData [22:18:36]SAM_PROTO_SignData [22:18:36]wFMCommunicate request_size=4 [22:18:36]MH_SAM_APDU [22:18:36]CAPDU: 80 0D 01 02 [22:18:36]Write to MH i2c: E2 08 00 BC 37 80 0D 01 02 00 00 00 00 6C [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:36]Read from MH i2c: E2 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 03 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 03 00 BC 37 00 90 00 67 [22:18:36]RAPDU: 90 00 [22:18:36]wFMCommunicate OK [22:18:36]wFMCommunicate request_size=255 [22:18:36]MH_SAM_APDU [22: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 49 59 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B3 01 00 35 04 06 00 9B [22:18:36]Write to MH i2c: E2 02 01 BD 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 49 59 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B3 01 00 35 04 06 00 9B 00 00 EB [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:36]Read from MH i2c: E2 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 03 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 03 00 BD 37 00 90 00 68 [22:18:36]RAPDU: 90 00 [22:18:36]wFMCommunicate OK [22:18:36]wFMCommunicate request_size=10 [22:18:36]MH_SAM_APDU [22:18:36]CAPDU: 80 0D 02 02 05 50 9B 97 F4 DD [22:18:36]Write to MH i2c: E2 0D 00 BE 37 80 0D 02 02 05 00 50 9B 97 F4 DD 00 00 CC [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:36]Read from MH i2c: E2 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 03 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 03 00 BE 37 00 90 00 69 [22:18:36]RAPDU: 90 00 [22:18:36]wFMCommunicate OK [22:18:36]wFMCommunicate request_size=4 [22:18:36]MH_SAM_APDU [22:18:36]CAPDU: 80 0D 03 02 [22:18:36]Write to MH i2c: E2 08 00 BF 37 80 0D 03 02 00 00 00 00 71 [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:36]Read from MH i2c: E2 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 0B 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 0B 00 BF 37 00 3F 8A 75 FE 5F 8F 7E EF 90 00 09 [22:18:36]RAPDU: 3F 8A 75 FE 5F 8F 7E EF 90 00 [22:18:36]wFMCommunicate OK [22:18:36]SAM_PROTO_SignData done [22:18:36]FM_MakeSignedData done [22:18:36]CreateOFDProtocolMessage [22:18:36]wFMCommunicate request_size=4 [22:18:36]MH_SAM_APDU [22:18:36]CAPDU: 80 11 00 00 [22:18:36]Write to MH i2c: E2 08 00 C0 37 80 11 00 00 00 00 00 00 71 [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:36]Read from MH i2c: E2 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 17 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: E2 17 00 C0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C3 [22:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:18:36]wFMCommunicate OK [22:18:36]CreateOFDProtocolMessage done [22:18:36]OFDSenderStorePacket 111518 [22:18:36]StoreOFDPacket docnum=111518 [22:18:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 30 A1 07 01 2F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 49 59 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B3 01 00 35 04 06 00 9B 50 9B 97 F4 DD 3F 8A 75 FE 5F 8F 7E EF [22:18:36]CheckFolder [22:18:36]dirname=/storage/ofd_packets [22:18:36]CheckFolder done [22:18:36]ProducePacketName [22:18:36]name=ofd_packets/00111518 [22:18:36]NVStorageSaveData ofd_packets/00111518 [22:18:36]File name is /storage/ofd_packets/00111518 [22:18:36]Write 301 bytes [22:18:36]NVStorageSaveData done [22:18:36]OFDSenderStorePacket done [22:18:36]KKMCreateOFDPacket done [22:18:36]NVStorageSaveData kkm_last_timestamp [22:18:36]File name is /storage/kkm_last_timestamp [22:18:36]Write 4 bytes [22:18:36]NVStorageSaveData done [22:18:36]ExternCall_PrintAddStr [22:18:36]wPrintStart [22:18:36]Write to MH i2c: 01 00 00 C1 37 F8 [22:18:36]Write i2c OK [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: 01 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: 01 07 00 [22:18:36]MH_I2C_Read... [22:18:36]Read from MH i2c: 01 07 00 C1 37 00 00 00 00 00 FF 0F 0D [22:18:36]RasterBufferAndPrint [22:18:36]line Счет N : (1)320109 [22:18:36]line ИНН: 02508201610067 [22:18:36]line Контрольно-Кассовый Чек [22:18:36]line ПРОДАЖА [22:18:36]line ТРК (МРК, ГНК) : 11 [22:18:36]line Товар: 2710124130 [22:18:36]line Аи-92-К-5 [22:18:36]line 15.070 * 66.40 [22:18:36]line = 1000.65 [22:18:36]line НДС 12% НСП 1% [22:18:36]line > о реализуемом товаре [22:18:36]line ИТОГО: 1000.65 [22:18:36]line НСП 1% : 8.85 [22:18:36]line НДС 12% : 106.26 [22:18:36]line Наличными: 0.00 [22:18:36]line Безнал.: 1000.65 [22:18:36]line Место: АЗС № 65 "Партнер Нефть" [22:18:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:18:36]line СНО: Общий режим [22:18:36]line Чек 267 19.06.2024 22:18 [22:18:36]line Смена: 388 ФФД: 1.0 [22:18:36]line ЗНМ: 0300000198 [22:18:36]line РНМ: 0000000000092771 [22:18:36]line Версия ККМ: 001 [22:18:36]line Платежная система: О! деньги [22:18:36]line ФМ: 0000000000875083 [22:18:36]line ФД: 111518 [22:18:36]line ФПД: 170770510116061 [22:18:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T221849&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111518&fm=170770510116061&tin=02508201610067®Number=0000000000092771&sum=100065 [22:18:36]written 0, free lines is 4095 [22:18:36]OFD Sender: Processing packet 111518 [packets to send 38, broken 37] [22:18:36]ProducePacketName [22:18:36]name=ofd_packets/00111518 [22:18:36]OFD Sender: To server: pG, [22:18:36]CommunicateWithHost lk.salyk.kg:30040 [22:18:36]ConnectInit lk.salyk.kg [22:18:37]Connected sock=10 [22: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 35 30 38 33 0F 01 00 00 30 A1 07 01 2F 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 49 59 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9E B3 01 00 35 04 06 00 9B 50 9B 97 F4 DD 3F 8A 75 FE 5F 8F 7E EF [22:18:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 16 BD 47 00 5C 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 35 30 38 33 10 04 04 00 9E B3 01 00 F4 03 04 00 A6 F0 72 66 B6 04 01 00 00 B5 5C CD 37 0E 57 0F 15 [22:18:37]CommunicateWithHost err = 0 [22:18:37]CheckOFDResponse [22:18:37]1017 (14) - 77093643461234 [22:18:37]1041 (16) - 0000000000875083 [22:18:37]1040 (4) - 111518 [22:18:37]1012 (4) - 19.06.2024 14:52 [22:18:37]1206 (1) - 0 [22:18:37]OFD Sender: Remove packet 111518 [22:18:37]ProducePacketName [22:18:37]name=ofd_packets/00111518 [22:18:37]NVStorageDeleteData [22:18:37]Write to MH i2c: 01 00 00 EB 37 22 [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: 01 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: 01 07 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: 01 07 00 EB 37 00 00 00 00 00 ED 0C 22 [22:18:37]RasterBufferAndPrint [22:18:37]line [22:18:37]line [22:18:37]line [22:18:37]line [22:18:37]line [22:18:37]written 0, free lines is 3317 [22:18:37]MH_Cut [22:18:37]Write to MH i2c: D1 01 00 F2 37 01 FB [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: D1 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: D1 01 00 [22:18:37]MH_I2C_Read... [22:18:37]Read from MH i2c: D1 01 00 F2 37 00 FA [22:18:37]Write to MH i2c: 01 00 00 F3 37 2A [22:18:37]Write i2c OK [22:18:37]MH_I2C_Read... [22:18:37]OFD Sender: No OFD packet to send [22:18:38]*** Cut start [22:18:38]*** Partial cut [22:18:38]*** CUTSNS_PIN = 1 [22:18:38]*** CUTSNS_PIN = 0 [22:18:38]*** Brake cut motor [22:18:38]Read from MH i2c: 01 [22:18:38]MH_I2C_Read... [22:18:38]*** Stop cut motor [22:18:38]*** Cut end [22:18:38]Read from MH i2c: 01 07 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: 01 07 00 F3 37 00 00 00 00 00 FF 0F 3F [22:18:38]process_action close_receipt done [22:18:38]requested_data is exist [22:18:38]produce_requested_data [22:18:38]requested_item fm.sn is exist - process it [22:18:38]wFMCommunicate request_size=4 [22:18:38]MH_SAM_APDU [22:18:38]CAPDU: 80 11 00 00 [22:18:38]Write to MH i2c: E2 08 00 F4 37 80 11 00 00 00 00 00 00 A5 [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:38]Read from MH i2c: E2 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 17 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 17 00 F4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F7 [22:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:18:38]wFMCommunicate OK [22:18:38]requested_item fd.num is exist - process it [22:18:38]SAM_PROTO_GetFieldsCounters [22:18:38]wFMCommunicate request_size=4 [22:18:38]MH_SAM_APDU [22:18:38]CAPDU: 80 13 00 00 [22:18:38]Write to MH i2c: E2 08 00 F5 37 80 13 00 00 00 00 00 00 A8 [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:38]Read from MH i2c: E2 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 62 00 [22:18:38]MH_I2C_Read... [22:18:38]Read from MH i2c: E2 62 00 F5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B3 01 00 0E 04 04 00 84 01 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 C4 [22:18: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9E B3 01 00 0E 04 04 00 84 01 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 [22:18:38]wFMCommunicate OK [22:18:38]SAM_PROTO_GetFieldsCounters done [22:18:38]requested_item shift.num is exist - process it [22:18:38]requested_item shift.opened is exist - process it [22:18:38]req_shift_opened [22:18:38]FM_GetShiftState [22:18:38]SAM_PROTO_GetShiftState [22:18:38]wFMCommunicate request_size=4 [22:18:38]MH_SAM_APDU [22:18:38]CAPDU: 80 13 01 00 [22:18:38]Write to MH i2c: E2 08 00 F6 37 80 13 01 00 00 00 00 00 AA [22:18:38]Write i2c OK [22:18:38]MH_I2C_Read... [22:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:39]Read from MH i2c: E2 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 0E 00 [22:18:39]MH_I2C_Read... [22:18:39]Read from MH i2c: E2 0E 00 F6 37 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F4 [22:18:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:18:39]wFMCommunicate OK [22:18:39]SAM_PROTO_GetShiftState done [22:18:39]FM_GetShiftState done [22:18:39]req_shift_opened done [22:18:39]requested_item shift.open_date is exist - process it [22:18:39]req_shift_open_date [22:18:39]req_shift_open_date done [22:18:39]produce_requested_data done [22:18:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111518,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:18:39]process_action_free close_receipt [22:18:39]json_value_free [22:18:39]json_value_free done [22:18:39]process_json_proto returns [22:18:39]Send response to host [22:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111518,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:18:39]free response buf [22:18:39]execute_script done [22:18:39]execute_script returns [22:18:39]free content buf [22:18:39]Sock 7.Close socket [22:18:39]Sock 7.Thread stoped [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]accept exits with 9 [22:28:23]New connection [22:28:23]New thread 3067321700 created [22:28:23]Thread 3067465060 joined [22:28:23]Waiting for new connection... [22:28:23] Sock 9.Parse request [22:28:23]Sock 9.Check first char [22:28:23]Sock 9.First char is OK [22:28:23]request: POST /json_proto HTTP/1.0 [22:28:23]Method: POST [22:28:23]URL: /json_proto [22:28:23]Method is POST - this is cgi request [22:28:23]url: /json_proto [22:28:23]query_string will be loaded in cgi processing [22:28:23]execute_cgi json_proto POST (null) [22:28:23]execute_cgi path=json_proto method=POST [22:28:23]POST find Content-Length [22:28:23]Host: 172.17.59.68:8080 [22:28:23]Content-Length: 677 [22:28:23]Content-Type: application/json [22:28:23] [22:28:23]POST finish read [22:28:23]Found Content-Length = 677 [22:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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" ] } } [22:28:23]execute_script... [22:28: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)320110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "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" ] } } [22:28:23]POST & json_proto [22:28:23]process_json_proto [22:28:23]json parsed OK: [22:28:23]protocol is kg_v1.0 [22:28:23]action value=close_receipt [22:28:23]process_action close_receipt [22:28:23]cmd_close_receipt [22:28:23]MH_GetDate [22:28:23]Write to MH i2c: F0 00 00 F7 37 1D [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: F0 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: F0 09 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: F0 09 00 F7 37 00 95 5B 73 66 BC EC 60 65 5C [22:28:23]GetLastDocTimeStamp 1718835529 [22:28:23]current date 1718836117 [22:28:23]FM_GetShiftState [22:28:23]SAM_PROTO_GetShiftState [22:28:23]wFMCommunicate request_size=4 [22:28:23]MH_SAM_APDU [22:28:23]CAPDU: 80 13 01 00 [22:28:23]Write to MH i2c: E2 08 00 F8 37 80 13 01 00 00 00 00 00 AC [22:28:23]Write i2c OK [22:28:23]MH_I2C_Read... [22:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:23]Read from MH i2c: E2 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 0E 00 [22:28:23]MH_I2C_Read... [22:28:23]Read from MH i2c: E2 0E 00 F8 37 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F6 [22:28:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:28:23]wFMCommunicate OK [22:28:23]SAM_PROTO_GetShiftState done [22:28:23]FM_GetShiftState done [22:28:23]opened in 1718760753 [22:28:23]opened+sec_in_day 1718847153 [22:28:23]quantity*price = 30012 [22:28:23]sum+1 = 30014 [22:28:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 268 19.06.2024 22:28 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111519 ФПД: 241452392087752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T222837&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111519&fm=241452392087752&tin=02508201610067®Number=0000000000092771&sum=30000 [22:28:24]StoreToDocumentArchive [22:28:24]shift 388 fd 111519 [22:28:24]save to /storage/0388/doc_00111519 [22:28:24]save last doc name /storage/0388/doc_00111519 to /storage/kkm_last_doc_name [22:28:24]save OK [22:28:24]Clear old archive folders... [22:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:24]tlvbuf is 00F643C0 [22:28:24]SAM_PROTO_ClearQueue [22:28:24]wFMCommunicate request_size=4 [22:28:24]MH_SAM_APDU [22:28:24]CAPDU: 80 09 00 00 [22:28:24]Write to MH i2c: E2 08 00 05 38 80 09 00 00 00 00 00 00 AF [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 03 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 03 00 05 38 00 90 00 B1 [22:28:24]RAPDU: 90 00 [22:28:24]wFMCommunicate OK [22:28:24]SAM_PROTO_ClearQueue done [22:28:24]KKMCreateOFDPacket [22:28:24]OFDProtocolAddRootSTLVToBuf [22:28:24]FM_MakeSignedData [22:28:24]FM_MakeSignedData [22:28:24]SAM_PROTO_SignData [22:28:24]wFMCommunicate request_size=4 [22:28:24]MH_SAM_APDU [22:28:24]CAPDU: 80 0D 01 02 [22:28:24]Write to MH i2c: E2 08 00 06 38 80 0D 01 02 00 00 00 00 B7 [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 03 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 03 00 06 38 00 90 00 B2 [22:28:24]RAPDU: 90 00 [22:28:24]wFMCommunicate OK [22:28:24]wFMCommunicate request_size=255 [22:28:24]MH_SAM_APDU [22:28: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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 95 5B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B3 01 00 35 04 06 00 DB [22:28:24]Write to MH i2c: E2 02 01 07 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 95 5B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B3 01 00 35 04 06 00 DB 00 00 92 [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 03 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 03 00 07 38 00 90 00 B3 [22:28:24]RAPDU: 90 00 [22:28:24]wFMCommunicate OK [22:28:24]wFMCommunicate request_size=10 [22:28:24]MH_SAM_APDU [22:28:24]CAPDU: 80 0D 02 02 05 99 84 0F 80 C8 [22:28:24]Write to MH i2c: E2 0D 00 08 38 80 0D 02 02 05 00 99 84 0F 80 C8 00 00 38 [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 03 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 03 00 08 38 00 90 00 B4 [22:28:24]RAPDU: 90 00 [22:28:24]wFMCommunicate OK [22:28:24]wFMCommunicate request_size=4 [22:28:24]MH_SAM_APDU [22:28:24]CAPDU: 80 0D 03 02 [22:28:24]Write to MH i2c: E2 08 00 09 38 80 0D 03 02 00 00 00 00 BC [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 0B 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 0B 00 09 38 00 9C F6 8B B4 F6 9D 40 A3 90 00 04 [22:28:24]RAPDU: 9C F6 8B B4 F6 9D 40 A3 90 00 [22:28:24]wFMCommunicate OK [22:28:24]SAM_PROTO_SignData done [22:28:24]FM_MakeSignedData done [22:28:24]CreateOFDProtocolMessage [22:28:24]wFMCommunicate request_size=4 [22:28:24]MH_SAM_APDU [22:28:24]CAPDU: 80 11 00 00 [22:28:24]Write to MH i2c: E2 08 00 0A 38 80 11 00 00 00 00 00 00 BC [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:24]Read from MH i2c: E2 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 17 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: E2 17 00 0A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0E [22:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:28:24]wFMCommunicate OK [22:28:24]CreateOFDProtocolMessage done [22:28:24]OFDSenderStorePacket 111519 [22:28:24]StoreOFDPacket docnum=111519 [22:28:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 92 E8 07 01 00 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 95 5B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B3 01 00 35 04 06 00 DB 99 84 0F 80 C8 9C F6 8B B4 F6 9D 40 A3 [22:28:24]CheckFolder [22:28:24]dirname=/storage/ofd_packets [22:28:24]CheckFolder done [22:28:24]ProducePacketName [22:28:24]name=ofd_packets/00111519 [22:28:24]NVStorageSaveData ofd_packets/00111519 [22:28:24]File name is /storage/ofd_packets/00111519 [22:28:24]Write 301 bytes [22:28:24]NVStorageSaveData done [22:28:24]OFDSenderStorePacket done [22:28:24]KKMCreateOFDPacket done [22:28:24]NVStorageSaveData kkm_last_timestamp [22:28:24]File name is /storage/kkm_last_timestamp [22:28:24]Write 4 bytes [22:28:24]NVStorageSaveData done [22:28:24]ExternCall_PrintAddStr [22:28:24]wPrintStart [22:28:24]Write to MH i2c: 01 00 00 0B 38 43 [22:28:24]Write i2c OK [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: 01 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: 01 07 00 [22:28:24]MH_I2C_Read... [22:28:24]Read from MH i2c: 01 07 00 0B 38 00 00 00 00 00 FF 0F 58 [22:28:24]RasterBufferAndPrint [22:28:24]line Счет N : (1)320110 [22:28:24]line ИНН: 02508201610067 [22:28:24]line Контрольно-Кассовый Чек [22:28:24]line ПРОДАЖА [22:28:24]line ТРК (МРК, ГНК) : 11 [22:28:24]line Товар: 2710124130 [22:28:24]line Аи-92-К-5 [22:28:24]line 4.520 * 66.40 [22:28:24]line = 300.13 [22:28:24]line НДС 12% НСП 1% [22:28:24]line > о реализуемом товаре [22:28:24]line ОКРУГЛЕНИЕ: -0.13 [22:28:24]line ИТОГО: 300.00 [22:28:24]line Внесено: 300.00 [22:28:24]line СДАЧА: 0.00 [22:28:24]line НСП 1% : 2.66 [22:28:24]line НДС 12% : 31.87 [22:28:24]line Наличными: 300.00 [22:28:24]line Безнал.: 0.00 [22:28:24]line Место: АЗС № 65 "Партнер Нефть" [22:28:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:28:24]line СНО: Общий режим [22:28:24]line Чек 268 19.06.2024 22:28 [22:28:24]line Смена: 388 ФФД: 1.0 [22:28:24]line ЗНМ: 0300000198 [22:28:24]line РНМ: 0000000000092771 [22:28:24]line Версия ККМ: 001 [22:28:24]line ФМ: 0000000000875083 [22:28:24]line ФД: 111519 [22:28:24]line ФПД: 241452392087752 [22:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T222837&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111519&fm=241452392087752&tin=02508201610067®Number=0000000000092771&sum=30000 [22:28:25]OFD Sender: Processing packet 111519 [packets to send 38, broken 37] [22:28:25]ProducePacketName [22:28:25]name=ofd_packets/00111519 [22:28:25]OFD Sender: To server: pG, [22:28:25]CommunicateWithHost lk.salyk.kg:30040 [22:28:25]ConnectInit lk.salyk.kg [22:28:25]written 0, free lines is 4095 [22:28:25]Connected sock=10 [22:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 92 E8 07 01 00 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 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 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 73 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 95 5B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 9F B3 01 00 35 04 06 00 DB 99 84 0F 80 C8 9C F6 8B B4 F6 9D 40 A3 [22:28:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 97 60 47 00 8C 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 35 30 38 33 10 04 04 00 9F B3 01 00 F4 03 04 00 F2 F2 72 66 B6 04 01 00 00 54 70 DC 11 4A 05 21 D1 [22:28:25]CommunicateWithHost err = 0 [22:28:25]CheckOFDResponse [22:28:25]1017 (14) - 77093643461234 [22:28:25]1041 (16) - 0000000000875083 [22:28:25]1040 (4) - 111519 [22:28:25]1012 (4) - 19.06.2024 15:02 [22:28:25]1206 (1) - 0 [22:28:25]OFD Sender: Remove packet 111519 [22:28:25]ProducePacketName [22:28:25]name=ofd_packets/00111519 [22:28:25]NVStorageDeleteData [22:28:25]Write to MH i2c: 01 00 00 36 38 6E [22:28:25]Write i2c OK [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: 01 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: 01 07 00 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: 01 07 00 36 38 00 00 00 00 00 E4 0C 65 [22:28:25]RasterBufferAndPrint [22:28:25]line [22:28:25]line [22:28:25]line [22:28:25]line [22:28:25]line [22:28:25]written 0, free lines is 3306 [22:28:25]MH_Cut [22:28:25]Write to MH i2c: D1 01 00 3D 38 01 47 [22:28:25]Write i2c OK [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: D1 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: D1 01 00 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: D1 01 00 3D 38 00 46 [22:28:25]Write to MH i2c: 01 00 00 3E 38 76 [22:28:25]Write i2c OK [22:28:25]MH_I2C_Read... [22:28:25]OFD Sender: No OFD packet to send [22:28:26]*** Cut start [22:28:26]*** Partial cut [22:28:26]*** CUTSNS_PIN = 1 [22:28:26]*** CUTSNS_PIN = 0 [22:28:26]*** Brake cut motor [22:28:26]Read from MH i2c: 01 [22:28:26]MH_I2C_Read... [22:28:26]*** Stop cut motor [22:28:26]*** Cut end [22:28:26]Read from MH i2c: 01 07 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: 01 07 00 3E 38 00 00 00 00 00 FF 0F 8B [22:28:26]process_action close_receipt done [22:28:26]requested_data is exist [22:28:26]produce_requested_data [22:28:26]requested_item fm.sn is exist - process it [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 11 00 00 [22:28:26]Write to MH i2c: E2 08 00 3F 38 80 11 00 00 00 00 00 00 F1 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 17 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 17 00 3F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 43 [22:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:28:26]wFMCommunicate OK [22:28:26]requested_item fd.num is exist - process it [22:28:26]SAM_PROTO_GetFieldsCounters [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 13 00 00 [22:28:26]Write to MH i2c: E2 08 00 40 38 80 13 00 00 00 00 00 00 F4 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:27]Read from MH i2c: E2 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 62 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 62 00 40 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B3 01 00 0E 04 04 00 84 01 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 14 [22:28: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 9F B3 01 00 0E 04 04 00 84 01 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 [22:28:27]wFMCommunicate OK [22:28:27]SAM_PROTO_GetFieldsCounters done [22:28:27]requested_item shift.num is exist - process it [22:28:27]requested_item shift.opened is exist - process it [22:28:27]req_shift_opened [22:28:27]FM_GetShiftState [22:28:27]SAM_PROTO_GetShiftState [22:28:27]wFMCommunicate request_size=4 [22:28:27]MH_SAM_APDU [22:28:27]CAPDU: 80 13 01 00 [22:28:27]Write to MH i2c: E2 08 00 41 38 80 13 01 00 00 00 00 00 F6 [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:27]Read from MH i2c: E2 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 0E 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: E2 0E 00 41 38 00 09 00 01 31 35 72 66 00 00 00 00 90 00 40 [22:28:27]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:28:27]wFMCommunicate OK [22:28:27]SAM_PROTO_GetShiftState done [22:28:27]FM_GetShiftState done [22:28:27]req_shift_opened done [22:28:27]requested_item shift.open_date is exist - process it [22:28:27]req_shift_open_date [22:28:27]req_shift_open_date done [22:28:27]produce_requested_data done [22:28:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111519,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:28:27]process_action_free close_receipt [22:28:27]json_value_free [22:28:27]json_value_free done [22:28:27]process_json_proto returns [22:28:27]Send response to host [22:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111519,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:28:27]free response buf [22:28:27]execute_script done [22:28:27]execute_script returns [22:28:27]free content buf [22:28:27]Sock 9.Close socket [22:28:27]Sock 9.Thread stoped [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:02]accept exits with 7 [22:30:02]New connection [22:30:02]New thread 3067465060 created [22:30:02]Thread 3067321700 joined [22:30:02]Waiting for new connection... [22:30:02] Sock 7.Parse request [22:30:02]Sock 7.Check first char [22:30:02]Sock 7.First char is OK [22:30:02]request: POST /json_proto HTTP/1.0 [22:30:02]Method: POST [22:30:02]URL: /json_proto [22:30:02]Method is POST - this is cgi request [22:30:02]url: /json_proto [22:30:02]query_string will be loaded in cgi processing [22:30:02]execute_cgi json_proto POST (null) [22:30:02]execute_cgi path=json_proto method=POST [22:30:02]POST find Content-Length [22:30:02]Host: 172.17.59.68:8080 [22:30:02]Content-Length: 677 [22:30:02]Content-Type: application/json [22:30:02] [22:30:02]POST finish read [22:30:02]Found Content-Length = 677 [22:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.870, "sum" : 190.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:02]execute_script... [22:30:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.870, "sum" : 190.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:30:02]POST & json_proto [22:30:02]process_json_proto [22:30:02]json parsed OK: [22:30:02]protocol is kg_v1.0 [22:30:02]action value=close_receipt [22:30:02]process_action close_receipt [22:30:02]cmd_close_receipt [22:30:02]MH_GetDate [22:30:02]Write to MH i2c: F0 00 00 42 38 69 [22:30:02]Write i2c OK [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: F0 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: F0 09 00 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: F0 09 00 42 38 00 F8 5B 73 66 BC EC 60 65 0B [22:30:02]GetLastDocTimeStamp 1718836117 [22:30:02]current date 1718836216 [22:30:02]FM_GetShiftState [22:30:02]SAM_PROTO_GetShiftState [22:30:02]wFMCommunicate request_size=4 [22:30:02]MH_SAM_APDU [22:30:02]CAPDU: 80 13 01 00 [22:30:02]Write to MH i2c: E2 08 00 43 38 80 13 01 00 00 00 00 00 F8 [22:30:02]Write i2c OK [22:30:02]MH_I2C_Read... [22:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:02]Read from MH i2c: E2 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: E2 0E 00 [22:30:02]MH_I2C_Read... [22:30:02]Read from MH i2c: E2 0E 00 43 38 00 09 00 01 31 35 72 66 00 00 00 00 90 00 42 [22:30:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:30:02]wFMCommunicate OK [22:30:02]SAM_PROTO_GetShiftState done [22:30:02]FM_GetShiftState done [22:30:02]opened in 1718760753 [22:30:02]opened+sec_in_day 1718847153 [22:30:02]quantity*price = 19056 [22:30:02]sum+1 = 19058 [22:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.24 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 269 19.06.2024 22:30 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111520 ФПД: 203896146457025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T223016&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111520&fm=203896146457025&tin=02508201610067®Number=0000000000092771&sum=19000 [22:30:03]StoreToDocumentArchive [22:30:03]shift 388 fd 111520 [22:30:03]save to /storage/0388/doc_00111520 [22:30:03]save last doc name /storage/0388/doc_00111520 to /storage/kkm_last_doc_name [22:30:03]save OK [22:30:03]Clear old archive folders... [22:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:03]tlvbuf is B6F578E0 [22:30:03]SAM_PROTO_ClearQueue [22:30:03]wFMCommunicate request_size=4 [22:30:03]MH_SAM_APDU [22:30:03]CAPDU: 80 09 00 00 [22:30:03]Write to MH i2c: E2 08 00 50 38 80 09 00 00 00 00 00 00 FA [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 03 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 03 00 50 38 00 90 00 FC [22:30:03]RAPDU: 90 00 [22:30:03]wFMCommunicate OK [22:30:03]SAM_PROTO_ClearQueue done [22:30:03]KKMCreateOFDPacket [22:30:03]OFDProtocolAddRootSTLVToBuf [22:30:03]FM_MakeSignedData [22:30:03]FM_MakeSignedData [22:30:03]SAM_PROTO_SignData [22:30:03]wFMCommunicate request_size=4 [22:30:03]MH_SAM_APDU [22:30:03]CAPDU: 80 0D 01 02 [22:30:03]Write to MH i2c: E2 08 00 51 38 80 0D 01 02 00 00 00 00 02 [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 03 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 03 00 51 38 00 90 00 FD [22:30:03]RAPDU: 90 00 [22:30:03]wFMCommunicate OK [22:30:03]wFMCommunicate request_size=255 [22:30:03]MH_SAM_APDU [22:30: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 36 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 71 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F8 5B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B3 01 00 35 04 06 00 B9 [22:30:03]Write to MH i2c: E2 02 01 52 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 36 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 71 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F8 5B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B3 01 00 35 04 06 00 B9 00 00 79 [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 03 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 03 00 52 38 00 90 00 FE [22:30:03]RAPDU: 90 00 [22:30:03]wFMCommunicate OK [22:30:03]wFMCommunicate request_size=10 [22:30:03]MH_SAM_APDU [22:30:03]CAPDU: 80 0D 02 02 05 71 45 61 71 C1 [22:30:03]Write to MH i2c: E2 0D 00 53 38 80 0D 02 02 05 00 71 45 61 71 C1 00 00 58 [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 03 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 03 00 53 38 00 90 00 FF [22:30:03]RAPDU: 90 00 [22:30:03]wFMCommunicate OK [22:30:03]wFMCommunicate request_size=4 [22:30:03]MH_SAM_APDU [22:30:03]CAPDU: 80 0D 03 02 [22:30:03]Write to MH i2c: E2 08 00 54 38 80 0D 03 02 00 00 00 00 07 [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 0B 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 0B 00 54 38 00 54 09 A5 4F 02 4C 53 AF 90 00 A9 [22:30:03]RAPDU: 54 09 A5 4F 02 4C 53 AF 90 00 [22:30:03]wFMCommunicate OK [22:30:03]SAM_PROTO_SignData done [22:30:03]FM_MakeSignedData done [22:30:03]CreateOFDProtocolMessage [22:30:03]wFMCommunicate request_size=4 [22:30:03]MH_SAM_APDU [22:30:03]CAPDU: 80 11 00 00 [22:30:03]Write to MH i2c: E2 08 00 55 38 80 11 00 00 00 00 00 00 07 [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:03]Read from MH i2c: E2 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 17 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: E2 17 00 55 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 59 [22:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:30:03]wFMCommunicate OK [22:30:03]CreateOFDProtocolMessage done [22:30:03]OFDSenderStorePacket 111520 [22:30:03]StoreOFDPacket docnum=111520 [22:30:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C B8 07 01 0D 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 36 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 71 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F8 5B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B3 01 00 35 04 06 00 B9 71 45 61 71 C1 54 09 A5 4F 02 4C 53 AF [22:30:03]CheckFolder [22:30:03]dirname=/storage/ofd_packets [22:30:03]CheckFolder done [22:30:03]ProducePacketName [22:30:03]name=ofd_packets/00111520 [22:30:03]NVStorageSaveData ofd_packets/00111520 [22:30:03]File name is /storage/ofd_packets/00111520 [22:30:03]Write 301 bytes [22:30:03]NVStorageSaveData done [22:30:03]OFDSenderStorePacket done [22:30:03]KKMCreateOFDPacket done [22:30:03]NVStorageSaveData kkm_last_timestamp [22:30:03]File name is /storage/kkm_last_timestamp [22:30:03]Write 4 bytes [22:30:03]NVStorageSaveData done [22:30:03]ExternCall_PrintAddStr [22:30:03]wPrintStart [22:30:03]Write to MH i2c: 01 00 00 56 38 8E [22:30:03]Write i2c OK [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: 01 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: 01 07 00 [22:30:03]MH_I2C_Read... [22:30:03]Read from MH i2c: 01 07 00 56 38 00 00 00 00 00 FF 0F A3 [22:30:03]RasterBufferAndPrint [22:30:03]line Счет N : (1)320111 [22:30:03]line ИНН: 02508201610067 [22:30:03]line Контрольно-Кассовый Чек [22:30:03]line ПРОДАЖА [22:30:03]line ТРК (МРК, ГНК) : 11 [22:30:03]line Товар: 2710124130 [22:30:03]line Аи-92-К-5 [22:30:03]line 2.870 * 66.40 [22:30:03]line = 190.57 [22:30:03]line НДС 12% НСП 1% [22:30:03]line > о реализуемом товаре [22:30:03]line ОКРУГЛЕНИЕ: -0.57 [22:30:03]line ИТОГО: 190.00 [22:30:03]line Внесено: 190.00 [22:30:03]line СДАЧА: 0.00 [22:30:03]line НСП 1% : 1.69 [22:30:03]line НДС 12% : 20.24 [22:30:03]line Наличными: 190.00 [22:30:03]line Безнал.: 0.00 [22:30:03]line Место: АЗС № 65 "Партнер Нефть" [22:30:03]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:30:03]line СНО: Общий режим [22:30:03]line Чек 269 19.06.2024 22:30 [22:30:03]line Смена: 388 ФФД: 1.0 [22:30:03]line ЗНМ: 0300000198 [22:30:03]line РНМ: 0000000000092771 [22:30:03]line Версия ККМ: 001 [22:30:03]line ФМ: 0000000000875083 [22:30:03]line ФД: 111520 [22:30:03]line ФПД: 203896146457025 [22:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T223016&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111520&fm=203896146457025&tin=02508201610067®Number=0000000000092771&sum=19000 [22:30:04]OFD Sender: Processing packet 111520 [packets to send 38, broken 37] [22:30:04]ProducePacketName [22:30:04]name=ofd_packets/00111520 [22:30:04]OFD Sender: To server: pG, [22:30:04]CommunicateWithHost lk.salyk.kg:30040 [22:30:04]ConnectInit lk.salyk.kg [22:30:04]written 0, free lines is 4095 [22:30:04]Connected sock=10 [22:30:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 1C B8 07 01 0D 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 36 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 71 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 F8 5B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A0 B3 01 00 35 04 06 00 B9 71 45 61 71 C1 54 09 A5 4F 02 4C 53 AF [22:30:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 58 47 00 A0 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 35 30 38 33 10 04 04 00 A0 B3 01 00 F4 03 04 00 55 F3 72 66 B6 04 01 00 00 D2 29 C8 2F A8 91 7F 82 [22:30:04]CommunicateWithHost err = 0 [22:30:04]CheckOFDResponse [22:30:04]1017 (14) - 77093643461234 [22:30:04]1041 (16) - 0000000000875083 [22:30:04]1040 (4) - 111520 [22:30:04]1012 (4) - 19.06.2024 15:03 [22:30:04]1206 (1) - 0 [22:30:04]OFD Sender: Remove packet 111520 [22:30:04]ProducePacketName [22:30:04]name=ofd_packets/00111520 [22:30:04]NVStorageDeleteData [22:30:04]Write to MH i2c: 01 00 00 81 38 B9 [22:30:04]Write i2c OK [22:30:04]MH_I2C_Read... [22:30:04]Read from MH i2c: 01 [22:30:04]MH_I2C_Read... [22:30:04]Read from MH i2c: 01 07 00 [22:30:04]MH_I2C_Read... [22:30:04]Read from MH i2c: 01 07 00 81 38 00 00 00 00 00 E0 0C AC [22:30:04]RasterBufferAndPrint [22:30:04]line [22:30:04]line [22:30:04]line [22:30:04]line [22:30:04]line [22:30:04]written 0, free lines is 3302 [22:30:04]MH_Cut [22:30:04]Write to MH i2c: D1 01 00 88 38 01 92 [22:30:04]Write i2c OK [22:30:04]MH_I2C_Read... [22:30:04]Read from MH i2c: D1 [22:30:04]MH_I2C_Read... [22:30:04]Read from MH i2c: D1 01 00 [22:30:04]MH_I2C_Read... [22:30:04]Read from MH i2c: D1 01 00 88 38 00 91 [22:30:04]Write to MH i2c: 01 00 00 89 38 C1 [22:30:04]Write i2c OK [22:30:04]MH_I2C_Read... [22:30:04]OFD Sender: No OFD packet to send [22:30:05]*** Cut start [22:30:05]*** Partial cut [22:30:05]*** CUTSNS_PIN = 1 [22:30:05]*** CUTSNS_PIN = 0 [22:30:05]*** Brake cut motor [22:30:05]Read from MH i2c: 01 [22:30:05]MH_I2C_Read... [22:30:05]*** Stop cut motor [22:30:05]*** Cut end [22:30:05]Read from MH i2c: 01 07 00 [22:30:05]MH_I2C_Read... [22:30:05]Read from MH i2c: 01 07 00 89 38 00 00 00 00 00 FF 0F D6 [22:30:05]process_action close_receipt done [22:30:05]requested_data is exist [22:30:05]produce_requested_data [22:30:05]requested_item fm.sn is exist - process it [22:30:05]wFMCommunicate request_size=4 [22:30:05]MH_SAM_APDU [22:30:05]CAPDU: 80 11 00 00 [22:30:05]Write to MH i2c: E2 08 00 8A 38 80 11 00 00 00 00 00 00 3C [22:30:05]Write i2c OK [22:30:05]MH_I2C_Read... [22:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:06]Read from MH i2c: E2 [22:30:06]MH_I2C_Read... [22:30:06]Read from MH i2c: E2 17 00 [22:30:06]MH_I2C_Read... [22:30:06]Read from MH i2c: E2 17 00 8A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8E [22:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:30:06]wFMCommunicate OK [22:30:06]requested_item fd.num is exist - process it [22:30:06]SAM_PROTO_GetFieldsCounters [22:30:06]wFMCommunicate request_size=4 [22:30:06]MH_SAM_APDU [22:30:06]CAPDU: 80 13 00 00 [22:30:06]Write to MH i2c: E2 08 00 8B 38 80 13 00 00 00 00 00 00 3F [22:30:06]Write i2c OK [22:30:06]MH_I2C_Read... [22:30:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:06]Read from MH i2c: E2 [22:30:06]MH_I2C_Read... [22:30:06]Read from MH i2c: E2 62 00 [22:30:06]MH_I2C_Read... [22:30:06]Read from MH i2c: E2 62 00 8B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B3 01 00 0E 04 04 00 84 01 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 63 [22:30: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A0 B3 01 00 0E 04 04 00 84 01 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 [22:30:06]wFMCommunicate OK [22:30:06]SAM_PROTO_GetFieldsCounters done [22:30:06]requested_item shift.num is exist - process it [22:30:06]requested_item shift.opened is exist - process it [22:30:06]req_shift_opened [22:30:06]FM_GetShiftState [22:30:06]SAM_PROTO_GetShiftState [22:30:06]wFMCommunicate request_size=4 [22:30:06]MH_SAM_APDU [22:30:06]CAPDU: 80 13 01 00 [22:30:06]Write to MH i2c: E2 08 00 8C 38 80 13 01 00 00 00 00 00 41 [22:30:06]Write i2c OK [22:30:06]MH_I2C_Read... [22:30:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:06]Read from MH i2c: E2 [22:30:06]MH_I2C_Read... [22:30:06]Read from MH i2c: E2 0E 00 [22:30:06]MH_I2C_Read... [22:30:06]Read from MH i2c: E2 0E 00 8C 38 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8B [22:30:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:30:06]wFMCommunicate OK [22:30:06]SAM_PROTO_GetShiftState done [22:30:06]FM_GetShiftState done [22:30:06]req_shift_opened done [22:30:06]requested_item shift.open_date is exist - process it [22:30:06]req_shift_open_date [22:30:06]req_shift_open_date done [22:30:06]produce_requested_data done [22:30:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111520,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:30:06]process_action_free close_receipt [22:30:06]json_value_free [22:30:06]json_value_free done [22:30:06]process_json_proto returns [22:30:06]Send response to host [22:30:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111520,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:30:06]free response buf [22:30:06]execute_script done [22:30:06]execute_script returns [22:30:06]free content buf [22:30:06]Sock 7.Close socket [22:30:06]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34: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:16]accept exits with 9 [22:35:16]New connection [22:35:16]New thread 3067321700 created [22:35:16]Thread 3067465060 joined [22:35:16]Waiting for new connection... [22:35:16] Sock 9.Parse request [22:35:16]Sock 9.Check first char [22:35:16]Sock 9.First char is OK [22:35:16]request: POST /json_proto HTTP/1.0 [22:35:16]Method: POST [22:35:16]URL: /json_proto [22:35:16]Method is POST - this is cgi request [22:35:16]url: /json_proto [22:35:16]query_string will be loaded in cgi processing [22:35:16]execute_cgi json_proto POST (null) [22:35:16]execute_cgi path=json_proto method=POST [22:35:16]POST find Content-Length [22:35:16]Host: 172.17.59.68:8080 [22:35:16]Content-Length: 677 [22:35:16]Content-Type: application/json [22:35:16] [22:35:16]POST finish read [22:35:16]Found Content-Length = 677 [22:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [22:35:16]execute_script... [22:35: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)320112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "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" ] } } [22:35:16]POST & json_proto [22:35:16]process_json_proto [22:35:16]json parsed OK: [22:35:16]protocol is kg_v1.0 [22:35:16]action value=close_receipt [22:35:16]process_action close_receipt [22:35:16]cmd_close_receipt [22:35:16]MH_GetDate [22:35:16]Write to MH i2c: F0 00 00 8D 38 B4 [22:35:16]Write i2c OK [22:35:16]MH_I2C_Read... [22:35:16]Read from MH i2c: F0 [22:35:16]MH_I2C_Read... [22:35:16]Read from MH i2c: F0 09 00 [22:35:16]MH_I2C_Read... [22:35:16]Read from MH i2c: F0 09 00 8D 38 00 33 5D 73 66 BC EC 60 65 93 [22:35:16]GetLastDocTimeStamp 1718836216 [22:35:16]current date 1718836531 [22:35:16]FM_GetShiftState [22:35:16]SAM_PROTO_GetShiftState [22:35:16]wFMCommunicate request_size=4 [22:35:16]MH_SAM_APDU [22:35:16]CAPDU: 80 13 01 00 [22:35:16]Write to MH i2c: E2 08 00 8E 38 80 13 01 00 00 00 00 00 43 [22:35:16]Write i2c OK [22:35:16]MH_I2C_Read... [22:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:16]Read from MH i2c: E2 [22:35:16]MH_I2C_Read... [22:35:16]Read from MH i2c: E2 0E 00 [22:35:16]MH_I2C_Read... [22:35:16]Read from MH i2c: E2 0E 00 8E 38 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8D [22:35:16]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:35:16]wFMCommunicate OK [22:35:16]SAM_PROTO_GetShiftState done [22:35:16]FM_GetShiftState done [22:35:16]opened in 1718760753 [22:35:16]opened+sec_in_day 1718847153 [22:35:16]quantity*price = 35059 [22:35:16]sum+1 = 35060 [22:35:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 270 19.06.2024 22:35 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111521 ФПД: 188069354616720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T223531&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111521&fm=188069354616720&tin=02508201610067®Number=0000000000092771&sum=35000 [22:35:17]StoreToDocumentArchive [22:35:17]shift 388 fd 111521 [22:35:17]save to /storage/0388/doc_00111521 [22:35:17]save last doc name /storage/0388/doc_00111521 to /storage/kkm_last_doc_name [22:35:17]save OK [22:35:17]Clear old archive folders... [22:35:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:35:17]tlvbuf is 00F3BAA0 [22:35:17]SAM_PROTO_ClearQueue [22:35:17]wFMCommunicate request_size=4 [22:35:17]MH_SAM_APDU [22:35:17]CAPDU: 80 09 00 00 [22:35:17]Write to MH i2c: E2 08 00 9B 38 80 09 00 00 00 00 00 00 45 [22:35:17]Write i2c OK [22:35:17]MH_I2C_Read... [22:35:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:17]Read from MH i2c: E2 [22:35:17]MH_I2C_Read... [22:35:17]Read from MH i2c: E2 03 00 [22:35:17]MH_I2C_Read... [22:35:17]Read from MH i2c: E2 03 00 9B 38 00 90 00 47 [22:35:17]RAPDU: 90 00 [22:35:17]wFMCommunicate OK [22:35:17]SAM_PROTO_ClearQueue done [22:35:17]KKMCreateOFDPacket [22:35:17]OFDProtocolAddRootSTLVToBuf [22:35:17]FM_MakeSignedData [22:35:17]FM_MakeSignedData [22:35:17]SAM_PROTO_SignData [22:35:17]wFMCommunicate request_size=4 [22:35:17]MH_SAM_APDU [22:35:17]CAPDU: 80 0D 01 02 [22:35:17]Write to MH i2c: E2 08 00 9C 38 80 0D 01 02 00 00 00 00 4D [22:35:17]Write i2c OK [22:35:17]MH_I2C_Read... [22:35:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:17]Read from MH i2c: E2 [22:35:17]MH_I2C_Read... [22:35:17]Read from MH i2c: E2 03 00 [22:35:17]MH_I2C_Read... [22:35:17]Read from MH i2c: E2 03 00 9C 38 00 90 00 48 [22:35:17]RAPDU: 90 00 [22:35:17]wFMCommunicate OK [22:35:17]wFMCommunicate request_size=255 [22:35:17]MH_SAM_APDU [22:35: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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 0E 01 00 00 F4 03 04 00 33 5D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B3 01 00 35 04 06 00 AB [22:35:17]Write to MH i2c: E2 02 01 9D 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 0E 01 00 00 F4 03 04 00 33 5D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B3 01 00 35 04 06 00 AB 00 00 DC [22:35:17]Write i2c OK [22:35:17]MH_I2C_Read... [22:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:18]Read from MH i2c: E2 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 03 00 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 03 00 9D 38 00 90 00 49 [22:35:18]RAPDU: 90 00 [22:35:18]wFMCommunicate OK [22:35:18]wFMCommunicate request_size=10 [22:35:18]MH_SAM_APDU [22:35:18]CAPDU: 80 0D 02 02 05 0C 4F 13 37 90 [22:35:18]Write to MH i2c: E2 0D 00 9E 38 80 0D 02 02 05 00 0C 4F 13 37 90 00 00 8F [22:35:18]Write i2c OK [22:35:18]MH_I2C_Read... [22:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:18]Read from MH i2c: E2 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 03 00 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 03 00 9E 38 00 90 00 4A [22:35:18]RAPDU: 90 00 [22:35:18]wFMCommunicate OK [22:35:18]wFMCommunicate request_size=4 [22:35:18]MH_SAM_APDU [22:35:18]CAPDU: 80 0D 03 02 [22:35:18]Write to MH i2c: E2 08 00 9F 38 80 0D 03 02 00 00 00 00 52 [22:35:18]Write i2c OK [22:35:18]MH_I2C_Read... [22:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:18]Read from MH i2c: E2 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 0B 00 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 0B 00 9F 38 00 08 EB 70 62 E1 2F 33 18 90 00 73 [22:35:18]RAPDU: 08 EB 70 62 E1 2F 33 18 90 00 [22:35:18]wFMCommunicate OK [22:35:18]SAM_PROTO_SignData done [22:35:18]FM_MakeSignedData done [22:35:18]CreateOFDProtocolMessage [22:35:18]wFMCommunicate request_size=4 [22:35:18]MH_SAM_APDU [22:35:18]CAPDU: 80 11 00 00 [22:35:18]Write to MH i2c: E2 08 00 A0 38 80 11 00 00 00 00 00 00 52 [22:35:18]Write i2c OK [22:35:18]MH_I2C_Read... [22:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:18]Read from MH i2c: E2 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 17 00 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 17 00 A0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A4 [22:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:35:18]wFMCommunicate OK [22:35:18]CreateOFDProtocolMessage done [22:35:18]OFDSenderStorePacket 111521 [22:35:18]StoreOFDPacket docnum=111521 [22:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 72 07 01 9A 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 0E 01 00 00 F4 03 04 00 33 5D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B3 01 00 35 04 06 00 AB 0C 4F 13 37 90 08 EB 70 62 E1 2F 33 18 [22:35:18]CheckFolder [22:35:18]dirname=/storage/ofd_packets [22:35:18]CheckFolder done [22:35:18]ProducePacketName [22:35:18]name=ofd_packets/00111521 [22:35:18]NVStorageSaveData ofd_packets/00111521 [22:35:18]File name is /storage/ofd_packets/00111521 [22:35:18]Write 301 bytes [22:35:18]NVStorageSaveData done [22:35:18]OFDSenderStorePacket done [22:35:18]KKMCreateOFDPacket done [22:35:18]NVStorageSaveData kkm_last_timestamp [22:35:18]File name is /storage/kkm_last_timestamp [22:35:18]Write 4 bytes [22:35:18]NVStorageSaveData done [22:35:18]ExternCall_PrintAddStr [22:35:18]wPrintStart [22:35:18]Write to MH i2c: 01 00 00 A1 38 D9 [22:35:18]Write i2c OK [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: 01 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: 01 07 00 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: 01 07 00 A1 38 00 00 00 00 00 FF 0F EE [22:35:18]RasterBufferAndPrint [22:35:18]line Счет N : (1)320112 [22:35:18]line ИНН: 02508201610067 [22:35:18]line Контрольно-Кассовый Чек [22:35:18]line ПРОДАЖА [22:35:18]line ТРК (МРК, ГНК) : 11 [22:35:18]line Товар: 2710124130 [22:35:18]line Аи-92-К-5 [22:35:18]line 5.280 * 66.40 [22:35:18]line = 350.59 [22:35:18]line НДС 12% НСП 1% [22:35:18]line > о реализуемом товаре [22:35:18]line ОКРУГЛЕНИЕ: -0.59 [22:35:18]line ИТОГО: 350.00 [22:35:18]line Внесено: 350.00 [22:35:18]line СДАЧА: 0.00 [22:35:18]line НСП 1% : 3.10 [22:35:18]line НДС 12% : 37.23 [22:35:18]line Наличными: 350.00 [22:35:18]line Безнал.: 0.00 [22:35:18]line Место: АЗС № 65 "Партнер Нефть" [22:35:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:35:18]line СНО: Общий режим [22:35:18]line Чек 270 19.06.2024 22:35 [22:35:18]line Смена: 388 ФФД: 1.0 [22:35:18]line ЗНМ: 0300000198 [22:35:18]line РНМ: 0000000000092771 [22:35:18]line Версия ККМ: 001 [22:35:18]line ФМ: 0000000000875083 [22:35:18]line ФД: 111521 [22:35:18]line ФПД: 188069354616720 [22:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T223531&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111521&fm=188069354616720&tin=02508201610067®Number=0000000000092771&sum=35000 [22:35:18]OFD Sender: Processing packet 111521 [packets to send 38, broken 37] [22:35:18]ProducePacketName [22:35:18]name=ofd_packets/00111521 [22:35:18]OFD Sender: To server: pG, [22:35:18]CommunicateWithHost lk.salyk.kg:30040 [22:35:18]ConnectInit lk.salyk.kg [22:35:18]written 0, free lines is 4095 [22:35:18]Connected sock=10 [22:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 72 07 01 9A 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 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 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 0E 01 00 00 F4 03 04 00 33 5D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B3 01 00 35 04 06 00 AB 0C 4F 13 37 90 08 EB 70 62 E1 2F 33 18 [22:35:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 82 64 47 00 BD E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A1 B3 01 00 F4 03 04 00 8F F4 72 66 B6 04 01 00 00 59 9A 7F 67 F0 76 69 F6 [22:35:18]CommunicateWithHost err = 0 [22:35:18]CheckOFDResponse [22:35:18]1017 (14) - 77093643461234 [22:35:18]1041 (16) - 0000000000875083 [22:35:18]1040 (4) - 111521 [22:35:18]1012 (4) - 19.06.2024 15:09 [22:35:18]1206 (1) - 0 [22:35:18]OFD Sender: Remove packet 111521 [22:35:18]ProducePacketName [22:35:18]name=ofd_packets/00111521 [22:35:18]NVStorageDeleteData [22:35:18]Write to MH i2c: 01 00 00 CC 38 04 [22:35:18]Write i2c OK [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: 01 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: 01 07 00 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: 01 07 00 CC 38 00 00 00 00 00 D1 0C E8 [22:35:18]RasterBufferAndPrint [22:35:18]line [22:35:18]line [22:35:18]line [22:35:18]line [22:35:18]line [22:35:18]written 0, free lines is 3286 [22:35:19]MH_Cut [22:35:19]Write to MH i2c: D1 01 00 D3 38 01 DD [22:35:19]Write i2c OK [22:35:19]MH_I2C_Read... [22:35:19]Read from MH i2c: D1 [22:35:19]MH_I2C_Read... [22:35:19]Read from MH i2c: D1 01 00 [22:35:19]MH_I2C_Read... [22:35:19]Read from MH i2c: D1 01 00 D3 38 00 DC [22:35:19]Write to MH i2c: 01 00 00 D4 38 0C [22:35:19]Write i2c OK [22:35:19]MH_I2C_Read... [22:35:19]OFD Sender: No OFD packet to send [22:35:19]*** Cut start [22:35:19]*** Partial cut [22:35:19]*** CUTSNS_PIN = 1 [22:35:19]*** CUTSNS_PIN = 0 [22:35:19]*** Brake cut motor [22:35:20]Read from MH i2c: 01 [22:35:20]MH_I2C_Read... [22:35:20]*** Stop cut motor [22:35:20]*** Cut end [22:35:20]Read from MH i2c: 01 07 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 D4 38 00 00 00 00 00 FF 0F 21 [22:35:20]process_action close_receipt done [22:35:20]requested_data is exist [22:35:20]produce_requested_data [22:35:20]requested_item fm.sn is exist - process it [22:35:20]wFMCommunicate request_size=4 [22:35:20]MH_SAM_APDU [22:35:20]CAPDU: 80 11 00 00 [22:35:20]Write to MH i2c: E2 08 00 D5 38 80 11 00 00 00 00 00 00 87 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 17 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 17 00 D5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D9 [22:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:35:20]wFMCommunicate OK [22:35:20]requested_item fd.num is exist - process it [22:35:20]SAM_PROTO_GetFieldsCounters [22:35:20]wFMCommunicate request_size=4 [22:35:20]MH_SAM_APDU [22:35:20]CAPDU: 80 13 00 00 [22:35:20]Write to MH i2c: E2 08 00 D6 38 80 13 00 00 00 00 00 00 8A [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 62 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 62 00 D6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B3 01 00 0E 04 04 00 84 01 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 B2 [22:35: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A1 B3 01 00 0E 04 04 00 84 01 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 [22:35:20]wFMCommunicate OK [22:35:20]SAM_PROTO_GetFieldsCounters done [22:35:20]requested_item shift.num is exist - process it [22:35:20]requested_item shift.opened is exist - process it [22:35:20]req_shift_opened [22:35:20]FM_GetShiftState [22:35:20]SAM_PROTO_GetShiftState [22:35:20]wFMCommunicate request_size=4 [22:35:20]MH_SAM_APDU [22:35:20]CAPDU: 80 13 01 00 [22:35:20]Write to MH i2c: E2 08 00 D7 38 80 13 01 00 00 00 00 00 8C [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 0E 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 0E 00 D7 38 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D6 [22:35:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:35:20]wFMCommunicate OK [22:35:20]SAM_PROTO_GetShiftState done [22:35:20]FM_GetShiftState done [22:35:20]req_shift_opened done [22:35:20]requested_item shift.open_date is exist - process it [22:35:20]req_shift_open_date [22:35:20]req_shift_open_date done [22:35:20]produce_requested_data done [22:35:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111521,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:35:20]process_action_free close_receipt [22:35:20]json_value_free [22:35:20]json_value_free done [22:35:20]process_json_proto returns [22:35:20]Send response to host [22:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111521,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:35:20]free response buf [22:35:20]execute_script done [22:35:20]execute_script returns [22:35:20]free content buf [22:35:20]Sock 9.Close socket [22:35:20]Sock 9.Thread stoped [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:52]accept exits with 7 [22:40:52]New connection [22:40:52]New thread 3067465060 created [22:40:52]Thread 3067321700 joined [22:40:52]Waiting for new connection... [22:40:52] Sock 7.Parse request [22:40:52]Sock 7.Check first char [22:40:52]Sock 7.First char is OK [22:40:52]request: POST /json_proto HTTP/1.0 [22:40:52]Method: POST [22:40:52]URL: /json_proto [22:40:52]Method is POST - this is cgi request [22:40:52]url: /json_proto [22:40:52]query_string will be loaded in cgi processing [22:40:52]execute_cgi json_proto POST (null) [22:40:52]execute_cgi path=json_proto method=POST [22:40:52]POST find Content-Length [22:40:52]Host: 172.17.59.68:8080 [22:40:52]Content-Length: 682 [22:40:52]Content-Type: application/json [22:40:52] [22:40:52]POST finish read [22:40:52]Found Content-Length = 682 [22:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [22:40:52]execute_script... [22:40: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)320113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "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" ] } } [22:40:52]POST & json_proto [22:40:52]process_json_proto [22:40:52]json parsed OK: [22:40:52]protocol is kg_v1.0 [22:40:52]action value=close_receipt [22:40:52]process_action close_receipt [22:40:52]cmd_close_receipt [22:40:52]MH_GetDate [22:40:52]Write to MH i2c: F0 00 00 D8 38 FF [22:40:52]Write i2c OK [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: F0 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: F0 09 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: F0 09 00 D8 38 00 83 5E 73 66 BC EC 60 65 2F [22:40:52]GetLastDocTimeStamp 1718836531 [22:40:52]current date 1718836867 [22:40:52]FM_GetShiftState [22:40:52]SAM_PROTO_GetShiftState [22:40:52]wFMCommunicate request_size=4 [22:40:52]MH_SAM_APDU [22:40:52]CAPDU: 80 13 01 00 [22:40:52]Write to MH i2c: E2 08 00 D9 38 80 13 01 00 00 00 00 00 8E [22:40:52]Write i2c OK [22:40:52]MH_I2C_Read... [22:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:52]Read from MH i2c: E2 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 0E 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 0E 00 D9 38 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D8 [22:40:52]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:40:52]wFMCommunicate OK [22:40:52]SAM_PROTO_GetShiftState done [22:40:52]FM_GetShiftState done [22:40:52]opened in 1718760753 [22:40:52]opened+sec_in_day 1718847153 [22:40:52]quantity*price = 150064 [22:40:52]sum+1 = 150065 [22:40:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 271 19.06.2024 22:41 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111522 ФПД: 55994556370826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224107&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111522&fm=55994556370826&tin=02508201610067®Number=0000000000092771&sum=150000 [22:40:53]StoreToDocumentArchive [22:40:53]shift 388 fd 111522 [22:40:53]save to /storage/0388/doc_00111522 [22:40:53]save last doc name /storage/0388/doc_00111522 to /storage/kkm_last_doc_name [22:40:53]save OK [22:40:53]Clear old archive folders... [22:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:53]tlvbuf is 00ED6D40 [22:40:53]SAM_PROTO_ClearQueue [22:40:53]wFMCommunicate request_size=4 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 09 00 00 [22:40:53]Write to MH i2c: E2 08 00 E6 38 80 09 00 00 00 00 00 00 90 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 E6 38 00 90 00 92 [22:40:53]RAPDU: 90 00 [22:40:53]wFMCommunicate OK [22:40:53]SAM_PROTO_ClearQueue done [22:40:53]KKMCreateOFDPacket [22:40:53]OFDProtocolAddRootSTLVToBuf [22:40:53]FM_MakeSignedData [22:40:53]FM_MakeSignedData [22:40:53]SAM_PROTO_SignData [22:40:53]wFMCommunicate request_size=4 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 0D 01 02 [22:40:53]Write to MH i2c: E2 08 00 E7 38 80 0D 01 02 00 00 00 00 98 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:53]Read from MH i2c: E2 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 [22:40:53]MH_I2C_Read... [22:40:53]Read from MH i2c: E2 03 00 E7 38 00 90 00 93 [22:40:53]RAPDU: 90 00 [22:40:53]wFMCommunicate OK [22:40:53]wFMCommunicate request_size=255 [22:40:53]MH_SAM_APDU [22:40: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 83 5E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B3 01 00 35 04 06 00 32 [22:40:53]Write to MH i2c: E2 02 01 E8 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 83 5E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B3 01 00 35 04 06 00 32 00 00 C7 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 E8 38 00 90 00 94 [22:40:54]RAPDU: 90 00 [22:40:54]wFMCommunicate OK [22:40:54]wFMCommunicate request_size=10 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 0D 02 02 05 ED 3F A4 4F 8A [22:40:54]Write to MH i2c: E2 0D 00 E9 38 80 0D 02 02 05 00 ED 3F A4 4F 8A 00 00 4E [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 E9 38 00 90 00 95 [22:40:54]RAPDU: 90 00 [22:40:54]wFMCommunicate OK [22:40:54]wFMCommunicate request_size=4 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 0D 03 02 [22:40:54]Write to MH i2c: E2 08 00 EA 38 80 0D 03 02 00 00 00 00 9D [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 0B 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 0B 00 EA 38 00 E4 48 82 05 2E D1 53 FF 90 00 A2 [22:40:54]RAPDU: E4 48 82 05 2E D1 53 FF 90 00 [22:40:54]wFMCommunicate OK [22:40:54]SAM_PROTO_SignData done [22:40:54]FM_MakeSignedData done [22:40:54]CreateOFDProtocolMessage [22:40:54]wFMCommunicate request_size=4 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 11 00 00 [22:40:54]Write to MH i2c: E2 08 00 EB 38 80 11 00 00 00 00 00 00 9D [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 17 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 17 00 EB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EF [22:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:40:54]wFMCommunicate OK [22:40:54]CreateOFDProtocolMessage done [22:40:54]OFDSenderStorePacket 111522 [22:40:54]StoreOFDPacket docnum=111522 [22:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 F3 07 01 52 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 83 5E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B3 01 00 35 04 06 00 32 ED 3F A4 4F 8A E4 48 82 05 2E D1 53 FF [22:40:54]CheckFolder [22:40:54]dirname=/storage/ofd_packets [22:40:54]CheckFolder done [22:40:54]ProducePacketName [22:40:54]name=ofd_packets/00111522 [22:40:54]NVStorageSaveData ofd_packets/00111522 [22:40:54]File name is /storage/ofd_packets/00111522 [22:40:54]Write 301 bytes [22:40:54]NVStorageSaveData done [22:40:54]OFDSenderStorePacket done [22:40:54]KKMCreateOFDPacket done [22:40:54]NVStorageSaveData kkm_last_timestamp [22:40:54]File name is /storage/kkm_last_timestamp [22:40:54]Write 4 bytes [22:40:54]NVStorageSaveData done [22:40:54]ExternCall_PrintAddStr [22:40:54]wPrintStart [22:40:54]Write to MH i2c: 01 00 00 EC 38 24 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 07 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 07 00 EC 38 00 00 00 00 00 FF 0F 39 [22:40:54]RasterBufferAndPrint [22:40:54]line Счет N : (1)320113 [22:40:54]line ИНН: 02508201610067 [22:40:54]line Контрольно-Кассовый Чек [22:40:54]line ПРОДАЖА [22:40:54]line ТРК (МРК, ГНК) : 11 [22:40:54]line Товар: 2710124130 [22:40:54]line Аи-92-К-5 [22:40:54]line 22.600 * 66.40 [22:40:54]line = 1500.64 [22:40:54]line НДС 12% НСП 1% [22:40:54]line > о реализуемом товаре [22:40:54]line ОКРУГЛЕНИЕ: -0.64 [22:40:54]line ИТОГО: 1500.00 [22:40:54]line Внесено: 1500.00 [22:40:54]line СДАЧА: 0.00 [22:40:54]line НСП 1% : 13.28 [22:40:54]line НДС 12% : 159.36 [22:40:54]line Наличными: 1500.00 [22:40:54]line Безнал.: 0.00 [22:40:54]line Место: АЗС № 65 "Партнер Нефть" [22:40:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:40:54]line СНО: Общий режим [22:40:54]line Чек 271 19.06.2024 22:41 [22:40:54]line Смена: 388 ФФД: 1.0 [22:40:54]line ЗНМ: 0300000198 [22:40:54]line РНМ: 0000000000092771 [22:40:54]line Версия ККМ: 001 [22:40:54]line ФМ: 0000000000875083 [22:40:54]line ФД: 111522 [22:40:54]line ФПД: 55994556370826 [22:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224107&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111522&fm=55994556370826&tin=02508201610067®Number=0000000000092771&sum=150000 [22:40:54]OFD Sender: Processing packet 111522 [packets to send 38, broken 37] [22:40:54]ProducePacketName [22:40:54]name=ofd_packets/00111522 [22:40:54]OFD Sender: To server: pG, [22:40:54]CommunicateWithHost lk.salyk.kg:30040 [22:40:54]ConnectInit lk.salyk.kg [22:40:54]written 0, free lines is 4095 [22:40:54]Connected sock=10 [22:40:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 75 F3 07 01 52 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 83 5E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B3 01 00 35 04 06 00 32 ED 3F A4 4F 8A E4 48 82 05 2E D1 53 FF [22:40:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 45 82 47 00 98 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A2 B3 01 00 F4 03 04 00 DF F5 72 66 B6 04 01 00 00 97 E1 F0 E2 29 7A E5 29 [22:40:54]CommunicateWithHost err = 0 [22:40:54]CheckOFDResponse [22:40:54]1017 (14) - 77093643461234 [22:40:54]1041 (16) - 0000000000875083 [22:40:54]1040 (4) - 111522 [22:40:54]1012 (4) - 19.06.2024 15:14 [22:40:54]1206 (1) - 0 [22:40:54]OFD Sender: Remove packet 111522 [22:40:54]ProducePacketName [22:40:54]name=ofd_packets/00111522 [22:40:54]NVStorageDeleteData [22:40:55]Write to MH i2c: 01 00 00 17 39 50 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 07 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 07 00 17 39 00 00 00 00 00 D3 0C 36 [22:40:55]RasterBufferAndPrint [22:40:55]line [22:40:55]line [22:40:55]line [22:40:55]line [22:40:55]line [22:40:55]written 0, free lines is 3290 [22:40:55]MH_Cut [22:40:55]Write to MH i2c: D1 01 00 1E 39 01 29 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: D1 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: D1 01 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: D1 01 00 1E 39 00 28 [22:40:55]Write to MH i2c: 01 00 00 1F 39 58 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]OFD Sender: No OFD packet to send [22:40:55]*** Cut start [22:40:55]*** Partial cut [22:40:55]*** CUTSNS_PIN = 1 [22:40:55]*** CUTSNS_PIN = 0 [22:40:56]*** Brake cut motor [22:40:56]Read from MH i2c: 01 [22:40:56]MH_I2C_Read... [22:40:56]*** Stop cut motor [22:40:56]*** Cut end [22:40:56]Read from MH i2c: 01 07 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 07 00 1F 39 00 00 00 00 00 FF 0F 6D [22:40:56]process_action close_receipt done [22:40:56]requested_data is exist [22:40:56]produce_requested_data [22:40:56]requested_item fm.sn is exist - process it [22:40:56]wFMCommunicate request_size=4 [22:40:56]MH_SAM_APDU [22:40:56]CAPDU: 80 11 00 00 [22:40:56]Write to MH i2c: E2 08 00 20 39 80 11 00 00 00 00 00 00 D3 [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:56]Read from MH i2c: E2 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 17 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 17 00 20 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 25 [22:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:40:56]wFMCommunicate OK [22:40:56]requested_item fd.num is exist - process it [22:40:56]SAM_PROTO_GetFieldsCounters [22:40:56]wFMCommunicate request_size=4 [22:40:56]MH_SAM_APDU [22:40:56]CAPDU: 80 13 00 00 [22:40:56]Write to MH i2c: E2 08 00 21 39 80 13 00 00 00 00 00 00 D6 [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:56]Read from MH i2c: E2 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 62 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 62 00 21 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B3 01 00 0E 04 04 00 84 01 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 02 [22:40: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A2 B3 01 00 0E 04 04 00 84 01 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 [22:40:56]wFMCommunicate OK [22:40:56]SAM_PROTO_GetFieldsCounters done [22:40:56]requested_item shift.num is exist - process it [22:40:56]requested_item shift.opened is exist - process it [22:40:56]req_shift_opened [22:40:56]FM_GetShiftState [22:40:56]SAM_PROTO_GetShiftState [22:40:56]wFMCommunicate request_size=4 [22:40:56]MH_SAM_APDU [22:40:56]CAPDU: 80 13 01 00 [22:40:56]Write to MH i2c: E2 08 00 22 39 80 13 01 00 00 00 00 00 D8 [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:56]Read from MH i2c: E2 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 0E 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 0E 00 22 39 00 09 00 01 31 35 72 66 00 00 00 00 90 00 22 [22:40:56]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:40:56]wFMCommunicate OK [22:40:56]SAM_PROTO_GetShiftState done [22:40:56]FM_GetShiftState done [22:40:56]req_shift_opened done [22:40:56]requested_item shift.open_date is exist - process it [22:40:56]req_shift_open_date [22:40:56]req_shift_open_date done [22:40:56]produce_requested_data done [22:40:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111522,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:40:56]process_action_free close_receipt [22:40:56]json_value_free [22:40:56]json_value_free done [22:40:56]process_json_proto returns [22:40:56]Send response to host [22:40:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111522,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:40:56]free response buf [22:40:56]execute_script done [22:40:56]execute_script returns [22:40:56]free content buf [22:40:56]Sock 7.Close socket [22:40:56]Sock 7.Thread stoped [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:20]accept exits with 9 [22:42:20]New connection [22:42:20]New thread 3067321700 created [22:42:20]Thread 3067465060 joined [22:42:20]Waiting for new connection... [22:42:20] Sock 9.Parse request [22:42:20]Sock 9.Check first char [22:42:20]Sock 9.First char is OK [22:42:20]request: POST /json_proto HTTP/1.0 [22:42:20]Method: POST [22:42:20]URL: /json_proto [22:42:20]Method is POST - this is cgi request [22:42:20]url: /json_proto [22:42:20]query_string will be loaded in cgi processing [22:42:20]execute_cgi json_proto POST (null) [22:42:20]execute_cgi path=json_proto method=POST [22:42:20]POST find Content-Length [22:42:20]Host: 172.17.59.68:8080 [22:42:20]Content-Length: 678 [22:42:20]Content-Type: application/json [22:42:20] [22:42:20]POST finish read [22:42:20]Found Content-Length = 678 [22:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [22:42:20]execute_script... [22:42: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)320114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [22:42:20]POST & json_proto [22:42:20]process_json_proto [22:42:20]json parsed OK: [22:42:20]protocol is kg_v1.0 [22:42:20]action value=close_receipt [22:42:20]process_action close_receipt [22:42:20]cmd_close_receipt [22:42:20]MH_GetDate [22:42:20]Write to MH i2c: F0 00 00 23 39 4B [22:42:20]Write i2c OK [22:42:20]MH_I2C_Read... [22:42:20]Read from MH i2c: F0 [22:42:20]MH_I2C_Read... [22:42:20]Read from MH i2c: F0 09 00 [22:42:20]MH_I2C_Read... [22:42:20]Read from MH i2c: F0 09 00 23 39 00 DB 5E 73 66 BC EC 60 65 D3 [22:42:20]GetLastDocTimeStamp 1718836867 [22:42:20]current date 1718836955 [22:42:20]FM_GetShiftState [22:42:20]SAM_PROTO_GetShiftState [22:42:20]wFMCommunicate request_size=4 [22:42:20]MH_SAM_APDU [22:42:20]CAPDU: 80 13 01 00 [22:42:20]Write to MH i2c: E2 08 00 24 39 80 13 01 00 00 00 00 00 DA [22:42:20]Write i2c OK [22:42:20]MH_I2C_Read... [22:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:20]Read from MH i2c: E2 [22:42:20]MH_I2C_Read... [22:42:20]Read from MH i2c: E2 0E 00 [22:42:20]MH_I2C_Read... [22:42:20]Read from MH i2c: E2 0E 00 24 39 00 09 00 01 31 35 72 66 00 00 00 00 90 00 24 [22:42:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:42:20]wFMCommunicate OK [22:42:20]SAM_PROTO_GetShiftState done [22:42:20]FM_GetShiftState done [22:42:20]opened in 1718760753 [22:42:20]opened+sec_in_day 1718847153 [22:42:20]quantity*price = 70052 [22:42:20]sum+1 = 70053 [22:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 272 19.06.2024 22:42 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111523 ФПД: 58199521030993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224235&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111523&fm=58199521030993&tin=02508201610067®Number=0000000000092771&sum=70000 [22:42:22]StoreToDocumentArchive [22:42:22]shift 388 fd 111523 [22:42:22]save to /storage/0388/doc_00111523 [22:42:22]save last doc name /storage/0388/doc_00111523 to /storage/kkm_last_doc_name [22:42:22]save OK [22:42:22]Clear old archive folders... [22:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:42:22]tlvbuf is B6FD2950 [22:42:22]SAM_PROTO_ClearQueue [22:42:22]wFMCommunicate request_size=4 [22:42:22]MH_SAM_APDU [22:42:22]CAPDU: 80 09 00 00 [22:42:22]Write to MH i2c: E2 08 00 31 39 80 09 00 00 00 00 00 00 DC [22:42:22]Write i2c OK [22:42:22]MH_I2C_Read... [22:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:22]Read from MH i2c: E2 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 03 00 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 03 00 31 39 00 90 00 DE [22:42:22]RAPDU: 90 00 [22:42:22]wFMCommunicate OK [22:42:22]SAM_PROTO_ClearQueue done [22:42:22]KKMCreateOFDPacket [22:42:22]OFDProtocolAddRootSTLVToBuf [22:42:22]FM_MakeSignedData [22:42:22]FM_MakeSignedData [22:42:22]SAM_PROTO_SignData [22:42:22]wFMCommunicate request_size=4 [22:42:22]MH_SAM_APDU [22:42:22]CAPDU: 80 0D 01 02 [22:42:22]Write to MH i2c: E2 08 00 32 39 80 0D 01 02 00 00 00 00 E4 [22:42:22]Write i2c OK [22:42:22]MH_I2C_Read... [22:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:22]Read from MH i2c: E2 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 03 00 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 03 00 32 39 00 90 00 DF [22:42:22]RAPDU: 90 00 [22:42:22]wFMCommunicate OK [22:42:22]wFMCommunicate request_size=255 [22:42:22]MH_SAM_APDU [22:42: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 DB 5E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B3 01 00 35 04 06 00 34 [22:42:22]Write to MH i2c: E2 02 01 33 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 DB 5E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B3 01 00 35 04 06 00 34 00 00 DD [22:42:22]Write i2c OK [22:42:22]MH_I2C_Read... [22:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:22]Read from MH i2c: E2 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 03 00 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 03 00 33 39 00 90 00 E0 [22:42:22]RAPDU: 90 00 [22:42:22]wFMCommunicate OK [22:42:22]wFMCommunicate request_size=10 [22:42:22]MH_SAM_APDU [22:42:22]CAPDU: 80 0D 02 02 05 EE A1 C6 F3 51 [22:42:22]Write to MH i2c: E2 0D 00 34 39 80 0D 02 02 05 00 EE A1 C6 F3 51 00 00 8A [22:42:22]Write i2c OK [22:42:22]MH_I2C_Read... [22:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:22]Read from MH i2c: E2 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 03 00 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 03 00 34 39 00 90 00 E1 [22:42:22]RAPDU: 90 00 [22:42:22]wFMCommunicate OK [22:42:22]wFMCommunicate request_size=4 [22:42:22]MH_SAM_APDU [22:42:22]CAPDU: 80 0D 03 02 [22:42:22]Write to MH i2c: E2 08 00 35 39 80 0D 03 02 00 00 00 00 E9 [22:42:22]Write i2c OK [22:42:22]MH_I2C_Read... [22:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:22]Read from MH i2c: E2 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 0B 00 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 0B 00 35 39 00 EA 5D 64 65 ED 12 6F 19 90 00 81 [22:42:22]RAPDU: EA 5D 64 65 ED 12 6F 19 90 00 [22:42:22]wFMCommunicate OK [22:42:22]SAM_PROTO_SignData done [22:42:22]FM_MakeSignedData done [22:42:22]CreateOFDProtocolMessage [22:42:22]wFMCommunicate request_size=4 [22:42:22]MH_SAM_APDU [22:42:22]CAPDU: 80 11 00 00 [22:42:22]Write to MH i2c: E2 08 00 36 39 80 11 00 00 00 00 00 00 E9 [22:42:22]Write i2c OK [22:42:22]MH_I2C_Read... [22:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:22]Read from MH i2c: E2 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 17 00 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: E2 17 00 36 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3B [22:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:42:22]wFMCommunicate OK [22:42:22]CreateOFDProtocolMessage done [22:42:22]OFDSenderStorePacket 111523 [22:42:22]StoreOFDPacket docnum=111523 [22:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A 7E 07 01 94 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 DB 5E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B3 01 00 35 04 06 00 34 EE A1 C6 F3 51 EA 5D 64 65 ED 12 6F 19 [22:42:22]CheckFolder [22:42:22]dirname=/storage/ofd_packets [22:42:22]CheckFolder done [22:42:22]ProducePacketName [22:42:22]name=ofd_packets/00111523 [22:42:22]NVStorageSaveData ofd_packets/00111523 [22:42:22]File name is /storage/ofd_packets/00111523 [22:42:22]Write 301 bytes [22:42:22]NVStorageSaveData done [22:42:22]OFDSenderStorePacket done [22:42:22]KKMCreateOFDPacket done [22:42:22]NVStorageSaveData kkm_last_timestamp [22:42:22]File name is /storage/kkm_last_timestamp [22:42:22]Write 4 bytes [22:42:22]NVStorageSaveData done [22:42:22]ExternCall_PrintAddStr [22:42:22]wPrintStart [22:42:22]Write to MH i2c: 01 00 00 37 39 70 [22:42:22]Write i2c OK [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: 01 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: 01 07 00 [22:42:22]MH_I2C_Read... [22:42:22]Read from MH i2c: 01 07 00 37 39 00 00 00 00 00 FF 0F 85 [22:42:22]RasterBufferAndPrint [22:42:22]line Счет N : (1)320114 [22:42:22]line ИНН: 02508201610067 [22:42:22]line Контрольно-Кассовый Чек [22:42:22]line ПРОДАЖА [22:42:22]line ТРК (МРК, ГНК) : 11 [22:42:22]line Товар: 2710124130 [22:42:22]line Аи-92-К-5 [22:42:22]line 10.550 * 66.40 [22:42:22]line = 700.52 [22:42:22]line НДС 12% НСП 1% [22:42:22]line > о реализуемом товаре [22:42:22]line ОКРУГЛЕНИЕ: -0.52 [22:42:22]line ИТОГО: 700.00 [22:42:22]line Внесено: 700.00 [22:42:22]line СДАЧА: 0.00 [22:42:22]line НСП 1% : 6.20 [22:42:22]line НДС 12% : 74.39 [22:42:22]line Наличными: 700.00 [22:42:22]line Безнал.: 0.00 [22:42:22]line Место: АЗС № 65 "Партнер Нефть" [22:42:22]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:42:22]line СНО: Общий режим [22:42:22]line Чек 272 19.06.2024 22:42 [22:42:22]line Смена: 388 ФФД: 1.0 [22:42:22]line ЗНМ: 0300000198 [22:42:22]line РНМ: 0000000000092771 [22:42:22]line Версия ККМ: 001 [22:42:22]line ФМ: 0000000000875083 [22:42:22]line ФД: 111523 [22:42:22]line ФПД: 58199521030993 [22:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224235&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111523&fm=58199521030993&tin=02508201610067®Number=0000000000092771&sum=70000 [22:42:22]OFD Sender: Processing packet 111523 [packets to send 38, broken 37] [22:42:22]ProducePacketName [22:42:22]name=ofd_packets/00111523 [22:42:22]OFD Sender: To server: pG, [22:42:22]CommunicateWithHost lk.salyk.kg:30040 [22:42:22]ConnectInit lk.salyk.kg [22:42:22]written 0, free lines is 4095 [22:42:22]Connected sock=10 [22:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 4A 7E 07 01 94 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 DB 5E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B3 01 00 35 04 06 00 34 EE A1 C6 F3 51 EA 5D 64 65 ED 12 6F 19 [22:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 72 32 47 00 C4 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A3 B3 01 00 F4 03 04 00 38 F6 72 66 B6 04 01 00 00 4E 28 D7 1A 50 A4 63 EE [22:42:23]CommunicateWithHost err = 0 [22:42:23]CheckOFDResponse [22:42:23]1017 (14) - 77093643461234 [22:42:23]1041 (16) - 0000000000875083 [22:42:23]1040 (4) - 111523 [22:42:23]1012 (4) - 19.06.2024 15:16 [22:42:23]1206 (1) - 0 [22:42:23]OFD Sender: Remove packet 111523 [22:42:23]ProducePacketName [22:42:23]name=ofd_packets/00111523 [22:42:23]NVStorageDeleteData [22:42:23]Write to MH i2c: 01 00 00 62 39 9B [22:42:23]Write i2c OK [22:42:23]MH_I2C_Read... [22:42:23]Read from MH i2c: 01 [22:42:23]MH_I2C_Read... [22:42:23]Read from MH i2c: 01 07 00 [22:42:23]MH_I2C_Read... [22:42:23]Read from MH i2c: 01 07 00 62 39 00 00 00 00 00 CC 0C 7A [22:42:23]RasterBufferAndPrint [22:42:23]line [22:42:23]line [22:42:23]line [22:42:23]line [22:42:23]line [22:42:23]written 0, free lines is 3282 [22:42:23]MH_Cut [22:42:23]Write to MH i2c: D1 01 00 69 39 01 74 [22:42:23]Write i2c OK [22:42:23]MH_I2C_Read... [22:42:23]Read from MH i2c: D1 [22:42:23]MH_I2C_Read... [22:42:23]Read from MH i2c: D1 01 00 [22:42:23]MH_I2C_Read... [22:42:23]Read from MH i2c: D1 01 00 69 39 00 73 [22:42:23]Write to MH i2c: 01 00 00 6A 39 A3 [22:42:23]Write i2c OK [22:42:23]MH_I2C_Read... [22:42:23]OFD Sender: No OFD packet to send [22:42:24]*** Cut start [22:42:24]*** Partial cut [22:42:24]*** CUTSNS_PIN = 1 [22:42:24]*** CUTSNS_PIN = 0 [22:42:24]*** Brake cut motor [22:42:24]Read from MH i2c: 01 [22:42:24]MH_I2C_Read... [22:42:24]*** Stop cut motor [22:42:24]*** Cut end [22:42:24]Read from MH i2c: 01 07 00 [22:42:24]MH_I2C_Read... [22:42:24]Read from MH i2c: 01 07 00 6A 39 00 00 00 00 00 FF 0F B8 [22:42:24]process_action close_receipt done [22:42:24]requested_data is exist [22:42:24]produce_requested_data [22:42:24]requested_item fm.sn is exist - process it [22:42:24]wFMCommunicate request_size=4 [22:42:24]MH_SAM_APDU [22:42:24]CAPDU: 80 11 00 00 [22:42:24]Write to MH i2c: E2 08 00 6B 39 80 11 00 00 00 00 00 00 1E [22:42:24]Write i2c OK [22:42:24]MH_I2C_Read... [22:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:24]Read from MH i2c: E2 [22:42:24]MH_I2C_Read... [22:42:24]Read from MH i2c: E2 17 00 [22:42:24]MH_I2C_Read... [22:42:24]Read from MH i2c: E2 17 00 6B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 70 [22:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:42:24]wFMCommunicate OK [22:42:24]requested_item fd.num is exist - process it [22:42:24]SAM_PROTO_GetFieldsCounters [22:42:24]wFMCommunicate request_size=4 [22:42:24]MH_SAM_APDU [22:42:24]CAPDU: 80 13 00 00 [22:42:24]Write to MH i2c: E2 08 00 6C 39 80 13 00 00 00 00 00 00 21 [22:42:24]Write i2c OK [22:42:24]MH_I2C_Read... [22:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:24]Read from MH i2c: E2 [22:42:24]MH_I2C_Read... [22:42:24]Read from MH i2c: E2 62 00 [22:42:24]MH_I2C_Read... [22:42:24]Read from MH i2c: E2 62 00 6C 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B3 01 00 0E 04 04 00 84 01 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 51 [22:42: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A3 B3 01 00 0E 04 04 00 84 01 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 [22:42:24]wFMCommunicate OK [22:42:24]SAM_PROTO_GetFieldsCounters done [22:42:24]requested_item shift.num is exist - process it [22:42:24]requested_item shift.opened is exist - process it [22:42:24]req_shift_opened [22:42:24]FM_GetShiftState [22:42:24]SAM_PROTO_GetShiftState [22:42:24]wFMCommunicate request_size=4 [22:42:24]MH_SAM_APDU [22:42:24]CAPDU: 80 13 01 00 [22:42:24]Write to MH i2c: E2 08 00 6D 39 80 13 01 00 00 00 00 00 23 [22:42:24]Write i2c OK [22:42:24]MH_I2C_Read... [22:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:24]Read from MH i2c: E2 [22:42:24]MH_I2C_Read... [22:42:24]Read from MH i2c: E2 0E 00 [22:42:24]MH_I2C_Read... [22:42:24]Read from MH i2c: E2 0E 00 6D 39 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6D [22:42:24]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:42:24]wFMCommunicate OK [22:42:24]SAM_PROTO_GetShiftState done [22:42:24]FM_GetShiftState done [22:42:24]req_shift_opened done [22:42:24]requested_item shift.open_date is exist - process it [22:42:24]req_shift_open_date [22:42:24]req_shift_open_date done [22:42:24]produce_requested_data done [22:42:24]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111523,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:42:24]process_action_free close_receipt [22:42:24]json_value_free [22:42:24]json_value_free done [22:42:24]process_json_proto returns [22:42:24]Send response to host [22:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111523,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:42:24]free response buf [22:42:24]execute_script done [22:42:24]execute_script returns [22:42:24]free content buf [22:42:24]Sock 9.Close socket [22:42:24]Sock 9.Thread stoped [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:07]accept exits with 7 [22:45:07]New connection [22:45:07]New thread 3067465060 created [22:45:07]Thread 3067321700 joined [22:45:07]Waiting for new connection... [22:45:07] Sock 7.Parse request [22:45:07]Sock 7.Check first char [22:45:07]Sock 7.First char is OK [22:45:07]request: POST /json_proto HTTP/1.0 [22:45:07]Method: POST [22:45:07]URL: /json_proto [22:45:07]Method is POST - this is cgi request [22:45:07]url: /json_proto [22:45:07]query_string will be loaded in cgi processing [22:45:07]execute_cgi json_proto POST (null) [22:45:07]execute_cgi path=json_proto method=POST [22:45:07]POST find Content-Length [22:45:07]Host: 172.17.59.68:8080 [22:45:07]Content-Length: 677 [22:45:07]Content-Type: application/json [22:45:07] [22:45:07]POST finish read [22:45:07]Found Content-Length = 677 [22:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.640, "sum" : 175.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 175.00, "total" : 175.00, "payments": [ { "type": 0, "sum" : 175.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:07]execute_script... [22:45:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.640, "sum" : 175.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 175.00, "total" : 175.00, "payments": [ { "type": 0, "sum" : 175.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:45:07]POST & json_proto [22:45:07]process_json_proto [22:45:07]json parsed OK: [22:45:07]protocol is kg_v1.0 [22:45:07]action value=close_receipt [22:45:07]process_action close_receipt [22:45:07]cmd_close_receipt [22:45:07]MH_GetDate [22:45:07]Write to MH i2c: F0 00 00 6E 39 96 [22:45:07]Write i2c OK [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: F0 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: F0 09 00 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: F0 09 00 6E 39 00 81 5F 73 66 BC EC 60 65 C5 [22:45:07]GetLastDocTimeStamp 1718836955 [22:45:07]current date 1718837121 [22:45:07]FM_GetShiftState [22:45:07]SAM_PROTO_GetShiftState [22:45:07]wFMCommunicate request_size=4 [22:45:07]MH_SAM_APDU [22:45:07]CAPDU: 80 13 01 00 [22:45:07]Write to MH i2c: E2 08 00 6F 39 80 13 01 00 00 00 00 00 25 [22:45:07]Write i2c OK [22:45:07]MH_I2C_Read... [22:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:07]Read from MH i2c: E2 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: E2 0E 00 [22:45:07]MH_I2C_Read... [22:45:07]Read from MH i2c: E2 0E 00 6F 39 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6F [22:45:07]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:45:07]wFMCommunicate OK [22:45:07]SAM_PROTO_GetShiftState done [22:45:07]FM_GetShiftState done [22:45:07]opened in 1718760753 [22:45:07]opened+sec_in_day 1718847153 [22:45:07]quantity*price = 17529 [22:45:07]sum+1 = 17531 [22:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 175.00 Внесено: 175.00 СДАЧА: 0.00 НСП 1% : 1.55 НДС 12% : 18.62 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 273 19.06.2024 22:45 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111524 ФПД: 229253060790676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224522&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111524&fm=229253060790676&tin=02508201610067®Number=0000000000092771&sum=17500 [22:45:08]StoreToDocumentArchive [22:45:08]shift 388 fd 111524 [22:45:08]save to /storage/0388/doc_00111524 [22:45:08]save last doc name /storage/0388/doc_00111524 to /storage/kkm_last_doc_name [22:45:08]save OK [22:45:08]Clear old archive folders... [22:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:08]tlvbuf is B6E258F0 [22:45:08]SAM_PROTO_ClearQueue [22:45:08]wFMCommunicate request_size=4 [22:45:08]MH_SAM_APDU [22:45:08]CAPDU: 80 09 00 00 [22:45:08]Write to MH i2c: E2 08 00 7C 39 80 09 00 00 00 00 00 00 27 [22:45:08]Write i2c OK [22:45:08]MH_I2C_Read... [22:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:08]Read from MH i2c: E2 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 03 00 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 03 00 7C 39 00 90 00 29 [22:45:08]RAPDU: 90 00 [22:45:08]wFMCommunicate OK [22:45:08]SAM_PROTO_ClearQueue done [22:45:08]KKMCreateOFDPacket [22:45:08]OFDProtocolAddRootSTLVToBuf [22:45:08]FM_MakeSignedData [22:45:08]FM_MakeSignedData [22:45:08]SAM_PROTO_SignData [22:45:08]wFMCommunicate request_size=4 [22:45:08]MH_SAM_APDU [22:45:08]CAPDU: 80 0D 01 02 [22:45:08]Write to MH i2c: E2 08 00 7D 39 80 0D 01 02 00 00 00 00 2F [22:45:08]Write i2c OK [22:45:08]MH_I2C_Read... [22:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:08]Read from MH i2c: E2 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 03 00 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 03 00 7D 39 00 90 00 2A [22:45:08]RAPDU: 90 00 [22:45:08]wFMCommunicate OK [22:45:08]wFMCommunicate request_size=255 [22:45:08]MH_SAM_APDU [22:45:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 07 00 00 00 00 07 04 06 00 5C 44 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 82 5F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B3 01 00 35 04 06 00 D0 [22:45:08]Write to MH i2c: E2 02 01 7E 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 50 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 07 00 00 00 00 07 04 06 00 5C 44 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 82 5F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B3 01 00 35 04 06 00 D0 00 00 FB [22:45:08]Write i2c OK [22:45:08]MH_I2C_Read... [22:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:08]Read from MH i2c: E2 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 03 00 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 03 00 7E 39 00 90 00 2B [22:45:08]RAPDU: 90 00 [22:45:08]wFMCommunicate OK [22:45:08]wFMCommunicate request_size=10 [22:45:08]MH_SAM_APDU [22:45:08]CAPDU: 80 0D 02 02 05 81 23 40 89 94 [22:45:08]Write to MH i2c: E2 0D 00 7F 39 80 0D 02 02 05 00 81 23 40 89 94 00 00 3D [22:45:08]Write i2c OK [22:45:08]MH_I2C_Read... [22:45:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:08]Read from MH i2c: E2 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 03 00 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 03 00 7F 39 00 90 00 2C [22:45:08]RAPDU: 90 00 [22:45:08]wFMCommunicate OK [22:45:08]wFMCommunicate request_size=4 [22:45:08]MH_SAM_APDU [22:45:08]CAPDU: 80 0D 03 02 [22:45:08]Write to MH i2c: E2 08 00 80 39 80 0D 03 02 00 00 00 00 34 [22:45:08]Write i2c OK [22:45:08]MH_I2C_Read... [22:45:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:08]Read from MH i2c: E2 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 0B 00 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 0B 00 80 39 00 79 BB 80 F3 3F 0F 88 70 90 00 22 [22:45:08]RAPDU: 79 BB 80 F3 3F 0F 88 70 90 00 [22:45:08]wFMCommunicate OK [22:45:08]SAM_PROTO_SignData done [22:45:08]FM_MakeSignedData done [22:45:08]CreateOFDProtocolMessage [22:45:08]wFMCommunicate request_size=4 [22:45:08]MH_SAM_APDU [22:45:08]CAPDU: 80 11 00 00 [22:45:08]Write to MH i2c: E2 08 00 81 39 80 11 00 00 00 00 00 00 34 [22:45:08]Write i2c OK [22:45:08]MH_I2C_Read... [22:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:08]Read from MH i2c: E2 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 17 00 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: E2 17 00 81 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 86 [22:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:45:08]wFMCommunicate OK [22:45:08]CreateOFDProtocolMessage done [22:45:08]OFDSenderStorePacket 111524 [22:45:08]StoreOFDPacket docnum=111524 [22:45:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 88 07 01 16 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 50 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 07 00 00 00 00 07 04 06 00 5C 44 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 82 5F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B3 01 00 35 04 06 00 D0 81 23 40 89 94 79 BB 80 F3 3F 0F 88 70 [22:45:08]CheckFolder [22:45:08]dirname=/storage/ofd_packets [22:45:08]CheckFolder done [22:45:08]ProducePacketName [22:45:08]name=ofd_packets/00111524 [22:45:08]NVStorageSaveData ofd_packets/00111524 [22:45:08]File name is /storage/ofd_packets/00111524 [22:45:08]Write 301 bytes [22:45:08]NVStorageSaveData done [22:45:08]OFDSenderStorePacket done [22:45:08]KKMCreateOFDPacket done [22:45:08]NVStorageSaveData kkm_last_timestamp [22:45:08]File name is /storage/kkm_last_timestamp [22:45:08]Write 4 bytes [22:45:08]NVStorageSaveData done [22:45:08]ExternCall_PrintAddStr [22:45:08]wPrintStart [22:45:08]Write to MH i2c: 01 00 00 82 39 BB [22:45:08]Write i2c OK [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: 01 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: 01 07 00 [22:45:08]MH_I2C_Read... [22:45:08]Read from MH i2c: 01 07 00 82 39 00 00 00 00 00 FF 0F D0 [22:45:08]RasterBufferAndPrint [22:45:08]line Счет N : (1)320115 [22:45:08]line ИНН: 02508201610067 [22:45:08]line Контрольно-Кассовый Чек [22:45:08]line ПРОДАЖА [22:45:08]line ТРК (МРК, ГНК) : 11 [22:45:08]line Товар: 2710124130 [22:45:08]line Аи-92-К-5 [22:45:08]line 2.640 * 66.40 [22:45:08]line = 175.30 [22:45:08]line НДС 12% НСП 1% [22:45:08]line > о реализуемом товаре [22:45:08]line ОКРУГЛЕНИЕ: -0.30 [22:45:08]line ИТОГО: 175.00 [22:45:08]line Внесено: 175.00 [22:45:08]line СДАЧА: 0.00 [22:45:08]line НСП 1% : 1.55 [22:45:08]line НДС 12% : 18.62 [22:45:08]line Наличными: 175.00 [22:45:08]line Безнал.: 0.00 [22:45:08]line Место: АЗС № 65 "Партнер Нефть" [22:45:08]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:45:08]line СНО: Общий режим [22:45:08]line Чек 273 19.06.2024 22:45 [22:45:08]line Смена: 388 ФФД: 1.0 [22:45:08]line ЗНМ: 0300000198 [22:45:08]line РНМ: 0000000000092771 [22:45:08]line Версия ККМ: 001 [22:45:08]line ФМ: 0000000000875083 [22:45:08]line ФД: 111524 [22:45:08]line ФПД: 229253060790676 [22:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T224522&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111524&fm=229253060790676&tin=02508201610067®Number=0000000000092771&sum=17500 [22:45:09]OFD Sender: Processing packet 111524 [packets to send 38, broken 37] [22:45:09]ProducePacketName [22:45:09]name=ofd_packets/00111524 [22:45:09]OFD Sender: To server: pG, [22:45:09]CommunicateWithHost lk.salyk.kg:30040 [22:45:09]ConnectInit lk.salyk.kg [22:45:09]written 0, free lines is 4095 [22:45:09]Connected sock=10 [22:45:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 E5 88 07 01 16 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 50 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 07 00 00 00 00 07 04 06 00 5C 44 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 82 5F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A4 B3 01 00 35 04 06 00 D0 81 23 40 89 94 79 BB 80 F3 3F 0F 88 70 [22:45:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3D F0 47 00 B4 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 35 30 38 33 10 04 04 00 A4 B3 01 00 F4 03 04 00 DE F6 72 66 B6 04 01 00 00 D3 AD 04 C9 54 E5 26 EF [22:45:09]CommunicateWithHost err = 0 [22:45:09]CheckOFDResponse [22:45:09]1017 (14) - 77093643461234 [22:45:09]1041 (16) - 0000000000875083 [22:45:09]1040 (4) - 111524 [22:45:09]1012 (4) - 19.06.2024 15:18 [22:45:09]1206 (1) - 0 [22:45:09]OFD Sender: Remove packet 111524 [22:45:09]ProducePacketName [22:45:09]name=ofd_packets/00111524 [22:45:09]NVStorageDeleteData [22:45:09]Write to MH i2c: 01 00 00 AD 39 E6 [22:45:09]Write i2c OK [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: 01 [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: 01 07 00 [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: 01 07 00 AD 39 00 00 00 00 00 D0 0C C9 [22:45:09]RasterBufferAndPrint [22:45:09]line [22:45:09]line [22:45:09]line [22:45:09]line [22:45:09]line [22:45:09]written 0, free lines is 3287 [22:45:09]MH_Cut [22:45:09]Write to MH i2c: D1 01 00 B4 39 01 BF [22:45:09]Write i2c OK [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: D1 [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: D1 01 00 [22:45:09]MH_I2C_Read... [22:45:09]Read from MH i2c: D1 01 00 B4 39 00 BE [22:45:09]Write to MH i2c: 01 00 00 B5 39 EE [22:45:09]Write i2c OK [22:45:09]MH_I2C_Read... [22:45:09]OFD Sender: No OFD packet to send [22:45:10]*** Cut start [22:45:10]*** Partial cut [22:45:10]*** CUTSNS_PIN = 1 [22:45:10]*** CUTSNS_PIN = 0 [22:45:10]*** Brake cut motor [22:45:10]Read from MH i2c: 01 [22:45:10]MH_I2C_Read... [22:45:10]*** Stop cut motor [22:45:10]*** Cut end [22:45:10]Read from MH i2c: 01 07 00 [22:45:10]MH_I2C_Read... [22:45:10]Read from MH i2c: 01 07 00 B5 39 00 00 00 00 00 FF 0F 03 [22:45:10]process_action close_receipt done [22:45:10]requested_data is exist [22:45:10]produce_requested_data [22:45:10]requested_item fm.sn is exist - process it [22:45:10]wFMCommunicate request_size=4 [22:45:10]MH_SAM_APDU [22:45:10]CAPDU: 80 11 00 00 [22:45:10]Write to MH i2c: E2 08 00 B6 39 80 11 00 00 00 00 00 00 69 [22:45:10]Write i2c OK [22:45:10]MH_I2C_Read... [22:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:11]Read from MH i2c: E2 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 17 00 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 17 00 B6 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BB [22:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:45:11]wFMCommunicate OK [22:45:11]requested_item fd.num is exist - process it [22:45:11]SAM_PROTO_GetFieldsCounters [22:45:11]wFMCommunicate request_size=4 [22:45:11]MH_SAM_APDU [22:45:11]CAPDU: 80 13 00 00 [22:45:11]Write to MH i2c: E2 08 00 B7 39 80 13 00 00 00 00 00 00 6C [22:45:11]Write i2c OK [22:45:11]MH_I2C_Read... [22:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:11]Read from MH i2c: E2 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 62 00 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 62 00 B7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B3 01 00 0E 04 04 00 84 01 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 A0 [22:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B3 01 00 0E 04 04 00 84 01 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 [22:45:11]wFMCommunicate OK [22:45:11]SAM_PROTO_GetFieldsCounters done [22:45:11]requested_item shift.num is exist - process it [22:45:11]requested_item shift.opened is exist - process it [22:45:11]req_shift_opened [22:45:11]FM_GetShiftState [22:45:11]SAM_PROTO_GetShiftState [22:45:11]wFMCommunicate request_size=4 [22:45:11]MH_SAM_APDU [22:45:11]CAPDU: 80 13 01 00 [22:45:11]Write to MH i2c: E2 08 00 B8 39 80 13 01 00 00 00 00 00 6E [22:45:11]Write i2c OK [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 [22:45:11]MH_I2C_Read... [22:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:11]Read from MH i2c: E2 0E 00 [22:45:11]MH_I2C_Read... [22:45:11]Read from MH i2c: E2 0E 00 B8 39 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B8 [22:45:11]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:45:11]wFMCommunicate OK [22:45:11]SAM_PROTO_GetShiftState done [22:45:11]FM_GetShiftState done [22:45:11]req_shift_opened done [22:45:11]requested_item shift.open_date is exist - process it [22:45:11]req_shift_open_date [22:45:11]req_shift_open_date done [22:45:11]produce_requested_data done [22:45:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111524,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:45:11]process_action_free close_receipt [22:45:11]json_value_free [22:45:11]json_value_free done [22:45:11]process_json_proto returns [22:45:11]Send response to host [22:45:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111524,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:45:11]free response buf [22:45:11]execute_script done [22:45:11]execute_script returns [22:45:11]free content buf [22:45:11]Sock 7.Close socket [22:45:11]Sock 7.Thread stoped [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:35]accept exits with 9 [22:55:35]New connection [22:55:35]New thread 3067321700 created [22:55:35]Thread 3067465060 joined [22:55:35]Waiting for new connection... [22:55:35] Sock 9.Parse request [22:55:35]Sock 9.Check first char [22:55:35]Sock 9.First char is OK [22:55:35]request: POST /json_proto HTTP/1.0 [22:55:35]Method: POST [22:55:35]URL: /json_proto [22:55:35]Method is POST - this is cgi request [22:55:35]url: /json_proto [22:55:35]query_string will be loaded in cgi processing [22:55:35]execute_cgi json_proto POST (null) [22:55:35]execute_cgi path=json_proto method=POST [22:55:35]POST find Content-Length [22:55:35]Host: 172.17.59.68:8080 [22:55:35]Content-Length: 1195 [22:55:35]Content-Type: application/json [22:55:35] [22:55:35]POST finish read [22:55:35]Found Content-Length = 1195 [22:55:35]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320116\u000A19.06.2024 21:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\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" ] } } [22:55:35]execute_script... [22:55:35]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320116\u000A19.06.2024 21:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\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" ] } } [22:55:35]POST & json_proto [22:55:35]process_json_proto [22:55:35]json parsed OK: [22:55:35]protocol is kg_v1.0 [22:55:35]action value=print_text [22:55:35]process_action print_text [22:55:35]cmd_print_text [22:55:35]ExternCall_PrintAddStr [22:55:35]wPrintStart [22:55:35]Write to MH i2c: 01 00 00 B9 39 F2 [22:55:35]Write i2c OK [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: 01 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: 01 07 00 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: 01 07 00 B9 39 00 00 00 00 00 FF 0F 07 [22:55:35]RasterBufferAndPrint [22:55:35]line *****ТОВАРНЫЙ ЧЕК***** [22:55:35]line АЗС 65 [22:55:35]line Партнер нефть [22:55:35]line 02508201610067 [22:55:35]line Кассир : Амантуров Р. [22:55:35]line Счет N : (1)320116 [22:55:35]line 19.06.2024 21:24 [22:55:35]line ПРОДАЖА [22:55:35]line ТРК (МРК, ГНК): 11 [22:55:35]line Вид ГСМ : 2710124130 [22:55:35]line Аи-92-К-5 [22:55:35]line 11.000 x 66.40 [22:55:35]line ИТОГ: 730.40 [22:55:35]line Тип оплаты: Технологический отпуск: [22:55:35]line ______________________ [22:55:35]line (подпись) [22:55:35]written 0, free lines is 4095 [22:55:35]Write to MH i2c: 01 00 00 CC 39 05 [22:55:35]Write i2c OK [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: 01 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: 01 07 00 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: 01 07 00 CC 39 00 00 00 00 00 28 0E 42 [22:55:35]RasterBufferAndPrint [22:55:35]line [22:55:35]line [22:55:35]line [22:55:35]line [22:55:35]line [22:55:35]written 0, free lines is 3626 [22:55:35]MH_Cut [22:55:35]Write to MH i2c: D1 01 00 D3 39 01 DE [22:55:35]Write i2c OK [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: D1 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: D1 01 00 [22:55:35]MH_I2C_Read... [22:55:35]Read from MH i2c: D1 01 00 D3 39 00 DD [22:55:35]Write to MH i2c: 01 00 00 D4 39 0D [22:55:35]Write i2c OK [22:55:35]MH_I2C_Read... [22:55:36]*** Cut start [22:55:36]*** Partial cut [22:55:36]*** CUTSNS_PIN = 1 [22:55:36]*** CUTSNS_PIN = 0 [22:55:36]*** Brake cut motor [22:55:36]Read from MH i2c: 01 [22:55:36]MH_I2C_Read... [22:55:36]Read from MH i2c: 01 07 00 [22:55:36]MH_I2C_Read... [22:55:36]*** Stop cut motor [22:55:36]*** Cut end [22:55:36]Read from MH i2c: 01 07 00 D4 39 00 00 00 00 00 FF 0F 22 [22:55:36]process_action print_text done [22:55:36]requested_data is exist [22:55:36]produce_requested_data [22:55:36]requested_item fm.sn is exist - process it [22:55:36]wFMCommunicate request_size=4 [22:55:36]MH_SAM_APDU [22:55:36]CAPDU: 80 11 00 00 [22:55:36]Write to MH i2c: E2 08 00 D5 39 80 11 00 00 00 00 00 00 88 [22:55:36]Write i2c OK [22:55:36]MH_I2C_Read... [22:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:36]Read from MH i2c: E2 [22:55:36]MH_I2C_Read... [22:55:36]Read from MH i2c: E2 17 00 [22:55:36]MH_I2C_Read... [22:55:36]Read from MH i2c: E2 17 00 D5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DA [22:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:55:36]wFMCommunicate OK [22:55:36]requested_item fd.num is exist - process it [22:55:36]SAM_PROTO_GetFieldsCounters [22:55:36]wFMCommunicate request_size=4 [22:55:36]MH_SAM_APDU [22:55:36]CAPDU: 80 13 00 00 [22:55:36]Write to MH i2c: E2 08 00 D6 39 80 13 00 00 00 00 00 00 8B [22:55:36]Write i2c OK [22:55:36]MH_I2C_Read... [22:55:37]Read from MH i2c: E2 [22:55:37]MH_I2C_Read... [22:55:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:37]Read from MH i2c: E2 62 00 [22:55:37]MH_I2C_Read... [22:55:37]Read from MH i2c: E2 62 00 D6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B3 01 00 0E 04 04 00 84 01 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 BF [22:55: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A4 B3 01 00 0E 04 04 00 84 01 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 [22:55:37]wFMCommunicate OK [22:55:37]SAM_PROTO_GetFieldsCounters done [22:55:37]requested_item shift.num is exist - process it [22:55:37]requested_item shift.opened is exist - process it [22:55:37]req_shift_opened [22:55:37]FM_GetShiftState [22:55:37]SAM_PROTO_GetShiftState [22:55:37]wFMCommunicate request_size=4 [22:55:37]MH_SAM_APDU [22:55:37]CAPDU: 80 13 01 00 [22:55:37]Write to MH i2c: E2 08 00 D7 39 80 13 01 00 00 00 00 00 8D [22:55:37]Write i2c OK [22:55:37]MH_I2C_Read... [22:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:37]Read from MH i2c: E2 [22:55:37]MH_I2C_Read... [22:55:37]Read from MH i2c: E2 0E 00 [22:55:37]MH_I2C_Read... [22:55:37]Read from MH i2c: E2 0E 00 D7 39 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D7 [22:55:37]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:55:37]wFMCommunicate OK [22:55:37]SAM_PROTO_GetShiftState done [22:55:37]FM_GetShiftState done [22:55:37]req_shift_opened done [22:55:37]requested_item shift.open_date is exist - process it [22:55:37]req_shift_open_date [22:55:37]req_shift_open_date done [22:55:37]produce_requested_data done [22:55:37]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111524,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:55:37]process_action_free print_text [22:55:37]json_value_free [22:55:37]json_value_free done [22:55:37]process_json_proto returns [22:55:37]Send response to host [22:55:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111524,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:55:37]free response buf [22:55:37]execute_script done [22:55:37]execute_script returns [22:55:37]free content buf [22:55:37]Sock 9.Close socket [22:55:37]Sock 9.Thread stoped [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:07]accept exits with 7 [22:59:07]New connection [22:59:07]New thread 3067465060 created [22:59:07]Thread 3067321700 joined [22:59:07]Waiting for new connection... [22:59:07] Sock 7.Parse request [22:59:07]Sock 7.Check first char [22:59:07]Sock 7.First char is OK [22:59:07]request: POST /json_proto HTTP/1.0 [22:59:07]Method: POST [22:59:07]URL: /json_proto [22:59:07]Method is POST - this is cgi request [22:59:07]url: /json_proto [22:59:07]query_string will be loaded in cgi processing [22:59:07]execute_cgi json_proto POST (null) [22:59:07]execute_cgi path=json_proto method=POST [22:59:07]POST find Content-Length [22:59:07]Host: 172.17.59.68:8080 [22:59:07]Content-Length: 682 [22:59:07]Content-Type: application/json [22:59:07] [22:59:07]POST finish read [22:59:07]Found Content-Length = 682 [22:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 36.900, "sum" : 2450.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2450.00, "payments": [ { "type": 0, "sum" : 2450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:07]execute_script... [22:59: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)320117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 36.900, "sum" : 2450.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2450.00, "payments": [ { "type": 0, "sum" : 2450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:07]POST & json_proto [22:59:07]process_json_proto [22:59:07]json parsed OK: [22:59:07]protocol is kg_v1.0 [22:59:07]action value=close_receipt [22:59:07]process_action close_receipt [22:59:07]cmd_close_receipt [22:59:07]MH_GetDate [22:59:07]Write to MH i2c: F0 00 00 D8 39 00 [22:59:07]Write i2c OK [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: F0 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: F0 09 00 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: F0 09 00 D8 39 00 CA 62 73 66 BC EC 60 65 7B [22:59:07]GetLastDocTimeStamp 1718837122 [22:59:07]current date 1718837962 [22:59:07]FM_GetShiftState [22:59:07]SAM_PROTO_GetShiftState [22:59:07]wFMCommunicate request_size=4 [22:59:07]MH_SAM_APDU [22:59:07]CAPDU: 80 13 01 00 [22:59:07]Write to MH i2c: E2 08 00 D9 39 80 13 01 00 00 00 00 00 8F [22:59:07]Write i2c OK [22:59:07]MH_I2C_Read... [22:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:07]Read from MH i2c: E2 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: E2 0E 00 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: E2 0E 00 D9 39 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D9 [22:59:07]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:59:07]wFMCommunicate OK [22:59:07]SAM_PROTO_GetShiftState done [22:59:07]FM_GetShiftState done [22:59:07]opened in 1718760753 [22:59:07]opened+sec_in_day 1718847153 [22:59:07]quantity*price = 245016 [22:59:07]sum+1 = 245017 [22:59:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2450.00 Внесено: 2800.00 СДАЧА: 350.00 НСП 1% : 21.68 НДС 12% : 260.19 Наличными: 2450.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 274 19.06.2024 22:59 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111525 ФПД: 3433860707645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T225922&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111525&fm=3433860707645&tin=02508201610067®Number=0000000000092771&sum=245000 [22:59:08]StoreToDocumentArchive [22:59:08]shift 388 fd 111525 [22:59:08]save to /storage/0388/doc_00111525 [22:59:08]save last doc name /storage/0388/doc_00111525 to /storage/kkm_last_doc_name [22:59:08]save OK [22:59:08]Clear old archive folders... [22:59:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:59:08]tlvbuf is B6F57C40 [22:59:08]SAM_PROTO_ClearQueue [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 09 00 00 [22:59:08]Write to MH i2c: E2 08 00 E6 39 80 09 00 00 00 00 00 00 91 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 E6 39 00 90 00 93 [22:59:08]RAPDU: 90 00 [22:59:08]wFMCommunicate OK [22:59:08]SAM_PROTO_ClearQueue done [22:59:08]KKMCreateOFDPacket [22:59:08]OFDProtocolAddRootSTLVToBuf [22:59:08]FM_MakeSignedData [22:59:08]FM_MakeSignedData [22:59:08]SAM_PROTO_SignData [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 0D 01 02 [22:59:08]Write to MH i2c: E2 08 00 E7 39 80 0D 01 02 00 00 00 00 99 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 E7 39 00 90 00 94 [22:59:08]RAPDU: 90 00 [22:59:08]wFMCommunicate OK [22:59:08]wFMCommunicate request_size=255 [22:59:08]MH_SAM_APDU [22:59: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 24 90 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 65 00 00 00 00 07 04 06 00 08 BD 03 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 CA 62 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B3 01 00 35 04 06 00 03 [22:59:08]Write to MH i2c: E2 02 01 E8 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 24 90 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 65 00 00 00 00 07 04 06 00 08 BD 03 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 CA 62 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B3 01 00 35 04 06 00 03 00 00 49 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 03 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 03 00 E8 39 00 90 00 95 [22:59:09]RAPDU: 90 00 [22:59:09]wFMCommunicate OK [22:59:09]wFMCommunicate request_size=10 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 0D 02 02 05 1F 82 0C 35 3D [22:59:09]Write to MH i2c: E2 0D 00 E9 39 80 0D 02 02 05 00 1F 82 0C 35 3D 00 00 C5 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 03 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 03 00 E9 39 00 90 00 96 [22:59:09]RAPDU: 90 00 [22:59:09]wFMCommunicate OK [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 0D 03 02 [22:59:09]Write to MH i2c: E2 08 00 EA 39 80 0D 03 02 00 00 00 00 9E [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0B 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 0B 00 EA 39 00 29 D8 D5 C2 42 FD 5B F8 90 00 C9 [22:59:09]RAPDU: 29 D8 D5 C2 42 FD 5B F8 90 00 [22:59:09]wFMCommunicate OK [22:59:09]SAM_PROTO_SignData done [22:59:09]FM_MakeSignedData done [22:59:09]CreateOFDProtocolMessage [22:59:09]wFMCommunicate request_size=4 [22:59:09]MH_SAM_APDU [22:59:09]CAPDU: 80 11 00 00 [22:59:09]Write to MH i2c: E2 08 00 EB 39 80 11 00 00 00 00 00 00 9E [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:09]Read from MH i2c: E2 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 17 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: E2 17 00 EB 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F0 [22:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:59:09]wFMCommunicate OK [22:59:09]CreateOFDProtocolMessage done [22:59:09]OFDSenderStorePacket 111525 [22:59:09]StoreOFDPacket docnum=111525 [22:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 9A 07 01 6F 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 24 90 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 65 00 00 00 00 07 04 06 00 08 BD 03 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 CA 62 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B3 01 00 35 04 06 00 03 1F 82 0C 35 3D 29 D8 D5 C2 42 FD 5B F8 [22:59:09]CheckFolder [22:59:09]dirname=/storage/ofd_packets [22:59:09]CheckFolder done [22:59:09]ProducePacketName [22:59:09]name=ofd_packets/00111525 [22:59:09]NVStorageSaveData ofd_packets/00111525 [22:59:09]File name is /storage/ofd_packets/00111525 [22:59:09]Write 301 bytes [22:59:09]NVStorageSaveData done [22:59:09]OFDSenderStorePacket done [22:59:09]KKMCreateOFDPacket done [22:59:09]NVStorageSaveData kkm_last_timestamp [22:59:09]File name is /storage/kkm_last_timestamp [22:59:09]Write 4 bytes [22:59:09]NVStorageSaveData done [22:59:09]ExternCall_PrintAddStr [22:59:09]wPrintStart [22:59:09]Write to MH i2c: 01 00 00 EC 39 25 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 07 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 07 00 EC 39 00 00 00 00 00 FF 0F 3A [22:59:09]RasterBufferAndPrint [22:59:09]line Счет N : (1)320117 [22:59:09]line ИНН: 02508201610067 [22:59:09]line Контрольно-Кассовый Чек [22:59:09]line ПРОДАЖА [22:59:09]line ТРК (МРК, ГНК) : 11 [22:59:09]line Товар: 2710124130 [22:59:09]line Аи-92-К-5 [22:59:09]line 36.900 * 66.40 [22:59:09]line = 2450.16 [22:59:09]line НДС 12% НСП 1% [22:59:09]line > о реализуемом товаре [22:59:09]line ОКРУГЛЕНИЕ: -0.16 [22:59:09]line ИТОГО: 2450.00 [22:59:09]line Внесено: 2800.00 [22:59:09]line СДАЧА: 350.00 [22:59:09]line НСП 1% : 21.68 [22:59:09]line НДС 12% : 260.19 [22:59:09]line Наличными: 2450.00 [22:59:09]line Безнал.: 0.00 [22:59:09]line Место: АЗС № 65 "Партнер Нефть" [22:59:09]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [22:59:09]line СНО: Общий режим [22:59:09]line Чек 274 19.06.2024 22:59 [22:59:09]line Смена: 388 ФФД: 1.0 [22:59:09]line ЗНМ: 0300000198 [22:59:09]line РНМ: 0000000000092771 [22:59:09]line Версия ККМ: 001 [22:59:09]line ФМ: 0000000000875083 [22:59:09]line ФД: 111525 [22:59:09]line ФПД: 3433860707645 [22:59:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T225922&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111525&fm=3433860707645&tin=02508201610067®Number=0000000000092771&sum=245000 [22:59:09]OFD Sender: Processing packet 111525 [packets to send 38, broken 37] [22:59:09]ProducePacketName [22:59:09]name=ofd_packets/00111525 [22:59:09]OFD Sender: To server: pG, [22:59:09]CommunicateWithHost lk.salyk.kg:30040 [22:59:09]ConnectInit lk.salyk.kg [22:59:09]written 0, free lines is 4095 [22:59:10]Write to MH i2c: 01 00 00 17 3A 51 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 07 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: 01 07 00 17 3A 00 00 00 00 00 D8 0C 3C [22:59:10]RasterBufferAndPrint [22:59:10]line [22:59:10]line [22:59:10]line [22:59:10]line [22:59:10]line [22:59:10]written 0, free lines is 3293 [22:59:10]MH_Cut [22:59:10]Write to MH i2c: D1 01 00 1E 3A 01 2A [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: D1 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: D1 01 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: D1 01 00 1E 3A 00 29 [22:59:10]Write to MH i2c: 01 00 00 1F 3A 59 [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** Cut start [22:59:10]*** Partial cut [22:59:10]*** CUTSNS_PIN = 1 [22:59:10]*** CUTSNS_PIN = 0 [22:59:11]*** Brake cut motor [22:59:11]Read from MH i2c: 01 [22:59:11]MH_I2C_Read... [22:59:11]*** Stop cut motor [22:59:11]Read from MH i2c: 01 07 00 [22:59:11]MH_I2C_Read... [22:59:11]*** Cut end [22:59:11]Read from MH i2c: 01 07 00 1F 3A 00 00 00 00 00 FF 0F 6E [22:59:11]process_action close_receipt done [22:59:11]requested_data is exist [22:59:11]produce_requested_data [22:59:11]requested_item fm.sn is exist - process it [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 11 00 00 [22:59:11]Write to MH i2c: E2 08 00 20 3A 80 11 00 00 00 00 00 00 D4 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 17 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 17 00 20 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 26 [22:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [22:59:11]wFMCommunicate OK [22:59:11]requested_item fd.num is exist - process it [22:59:11]SAM_PROTO_GetFieldsCounters [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 13 00 00 [22:59:11]Write to MH i2c: E2 08 00 21 3A 80 13 00 00 00 00 00 00 D7 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 62 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 62 00 21 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B3 01 00 0E 04 04 00 84 01 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 0F [22:59: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B3 01 00 0E 04 04 00 84 01 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 [22:59:11]wFMCommunicate OK [22:59:11]SAM_PROTO_GetFieldsCounters done [22:59:11]requested_item shift.num is exist - process it [22:59:11]requested_item shift.opened is exist - process it [22:59:11]req_shift_opened [22:59:11]FM_GetShiftState [22:59:11]SAM_PROTO_GetShiftState [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 13 01 00 [22:59:11]Write to MH i2c: E2 08 00 22 3A 80 13 01 00 00 00 00 00 D9 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 0E 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 0E 00 22 3A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 23 [22:59:11]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [22:59:11]wFMCommunicate OK [22:59:11]SAM_PROTO_GetShiftState done [22:59:11]FM_GetShiftState done [22:59:11]req_shift_opened done [22:59:11]requested_item shift.open_date is exist - process it [22:59:11]req_shift_open_date [22:59:11]req_shift_open_date done [22:59:11]produce_requested_data done [22:59:11]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111525,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [22:59:11]process_action_free close_receipt [22:59:11]json_value_free [22:59:11]json_value_free done [22:59:11]process_json_proto returns [22:59:11]Send response to host [22:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111525,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [22:59:11]free response buf [22:59:11]execute_script done [22:59:11]execute_script returns [22:59:11]free content buf [22:59:11]Sock 7.Close socket [22:59:11]Sock 7.Thread stoped [23:01:23]ConnectInit Can't connect to host [23:01:23]CommunicateWithHost connect error [23:01:23]CommunicateWithHost err = -1 [23:01:23]OFD Sender: Server communicate error [23:01:28]OFD Sender: Processing packet 111525 [packets to send 38, broken 37] [23:01:28]ProducePacketName [23:01:28]name=ofd_packets/00111525 [23:01:28]OFD Sender: To server: pG, [23:01:28]CommunicateWithHost lk.salyk.kg:30040 [23:01:28]ConnectInit lk.salyk.kg [23:01:28]Connected sock=7 [23:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 D3 9A 07 01 6F 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 24 90 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 18 BD 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 BD 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 65 00 00 00 00 07 04 06 00 08 BD 03 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 CA 62 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A5 B3 01 00 35 04 06 00 03 1F 82 0C 35 3D 29 D8 D5 C2 42 FD 5B F8 [23:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EF 93 47 00 B6 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 35 30 38 33 10 04 04 00 A5 B3 01 00 F4 03 04 00 B1 FA 72 66 B6 04 01 00 00 36 59 F0 33 C7 1D 14 8B [23:01:28]CommunicateWithHost err = 0 [23:01:28]CheckOFDResponse [23:01:28]1017 (14) - 77093643461234 [23:01:28]1041 (16) - 0000000000875083 [23:01:28]1040 (4) - 111525 [23:01:28]1012 (4) - 19.06.2024 15:35 [23:01:28]1206 (1) - 0 [23:01:28]OFD Sender: Remove packet 111525 [23:01:28]ProducePacketName [23:01:28]name=ofd_packets/00111525 [23:01:28]NVStorageDeleteData [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:51]accept exits with 9 [23:02:51]New connection [23:02:51]New thread 3067321700 created [23:02:51]Thread 3067465060 joined [23:02:51]Waiting for new connection... [23:02:51] Sock 9.Parse request [23:02:51]Sock 9.Check first char [23:02:51]Sock 9.First char is OK [23:02:51]request: POST /json_proto HTTP/1.0 [23:02:51]Method: POST [23:02:51]URL: /json_proto [23:02:51]Method is POST - this is cgi request [23:02:51]url: /json_proto [23:02:51]query_string will be loaded in cgi processing [23:02:51]execute_cgi json_proto POST (null) [23:02:51]execute_cgi path=json_proto method=POST [23:02:51]POST find Content-Length [23:02:51]Host: 172.17.59.68:8080 [23:02:51]Content-Length: 1192 [23:02:51]Content-Type: application/json [23:02:51] [23:02:51]POST finish read [23:02:51]Found Content-Length = 1192 [23:02:51]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320118\u000A19.06.2024 21:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 11.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 801.90\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" ] } } [23:02:51]execute_script... [23:02:51]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320118\u000A19.06.2024 21:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 11.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 801.90\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" ] } } [23:02:51]POST & json_proto [23:02:51]process_json_proto [23:02:51]json parsed OK: [23:02:51]protocol is kg_v1.0 [23:02:51]action value=print_text [23:02:51]process_action print_text [23:02:51]cmd_print_text [23:02:51]ExternCall_PrintAddStr [23:02:51]wPrintStart [23:02:51]Write to MH i2c: 01 00 00 23 3A 5D [23:02:51]Write i2c OK [23:02:51]MH_I2C_Read... [23:02:51]Read from MH i2c: 01 [23:02:51]MH_I2C_Read... [23:02:51]Read from MH i2c: 01 07 00 [23:02:51]MH_I2C_Read... [23:02:51]Read from MH i2c: 01 07 00 23 3A 00 00 00 00 00 FF 0F 72 [23:02:51]RasterBufferAndPrint [23:02:51]line *****ТОВАРНЫЙ ЧЕК***** [23:02:51]line АЗС 65 [23:02:51]line Партнер нефть [23:02:51]line 02508201610067 [23:02:51]line Кассир : Амантуров Р. [23:02:51]line Счет N : (1)320118 [23:02:51]line 19.06.2024 21:31 [23:02:51]line ПРОДАЖА [23:02:51]line ТРК (МРК, ГНК): 22 [23:02:51]line Вид ГСМ : 2710194210 [23:02:51]line ДТ-К-5 [23:02:51]line 11.000 x 72.90 [23:02:51]line ИТОГ: 801.90 [23:02:51]line Тип оплаты: Технологический отпуск: [23:02:51]line ______________________ [23:02:51]line (подпись) [23:02:51]written 0, free lines is 4095 [23:02:52]Write to MH i2c: 01 00 00 36 3A 70 [23:02:52]Write i2c OK [23:02:52]MH_I2C_Read... [23:02:52]Read from MH i2c: 01 [23:02:52]MH_I2C_Read... [23:02:52]Read from MH i2c: 01 07 00 [23:02:52]MH_I2C_Read... [23:02:52]Read from MH i2c: 01 07 00 36 3A 00 00 00 00 00 28 0E AD [23:02:52]RasterBufferAndPrint [23:02:52]line [23:02:52]line [23:02:52]line [23:02:52]line [23:02:52]line [23:02:52]written 0, free lines is 3625 [23:02:52]MH_Cut [23:02:52]Write to MH i2c: D1 01 00 3D 3A 01 49 [23:02:52]Write i2c OK [23:02:52]MH_I2C_Read... [23:02:52]Read from MH i2c: D1 [23:02:52]MH_I2C_Read... [23:02:52]Read from MH i2c: D1 01 00 [23:02:52]MH_I2C_Read... [23:02:52]Read from MH i2c: D1 01 00 3D 3A 00 48 [23:02:52]Write to MH i2c: 01 00 00 3E 3A 78 [23:02:52]Write i2c OK [23:02:52]MH_I2C_Read... [23:02:52]*** Cut start [23:02:52]*** Partial cut [23:02:52]*** CUTSNS_PIN = 1 [23:02:52]*** CUTSNS_PIN = 0 [23:02:52]*** Brake cut motor [23:02:53]Read from MH i2c: 01 [23:02:53]MH_I2C_Read... [23:02:53]*** Stop cut motor [23:02:53]*** Cut end [23:02:53]Read from MH i2c: 01 07 00 [23:02:53]MH_I2C_Read... [23:02:53]Read from MH i2c: 01 07 00 3E 3A 00 00 00 00 00 FF 0F 8D [23:02:53]process_action print_text done [23:02:53]requested_data is exist [23:02:53]produce_requested_data [23:02:53]requested_item fm.sn is exist - process it [23:02:53]wFMCommunicate request_size=4 [23:02:53]MH_SAM_APDU [23:02:53]CAPDU: 80 11 00 00 [23:02:53]Write to MH i2c: E2 08 00 3F 3A 80 11 00 00 00 00 00 00 F3 [23:02:53]Write i2c OK [23:02:53]MH_I2C_Read... [23:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:53]Read from MH i2c: E2 [23:02:53]MH_I2C_Read... [23:02:53]Read from MH i2c: E2 17 00 [23:02:53]MH_I2C_Read... [23:02:53]Read from MH i2c: E2 17 00 3F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 45 [23:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:02:53]wFMCommunicate OK [23:02:53]requested_item fd.num is exist - process it [23:02:53]SAM_PROTO_GetFieldsCounters [23:02:53]wFMCommunicate request_size=4 [23:02:53]MH_SAM_APDU [23:02:53]CAPDU: 80 13 00 00 [23:02:53]Write to MH i2c: E2 08 00 40 3A 80 13 00 00 00 00 00 00 F6 [23:02:53]Write i2c OK [23:02:53]MH_I2C_Read... [23:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:53]Read from MH i2c: E2 [23:02:53]MH_I2C_Read... [23:02:53]Read from MH i2c: E2 62 00 [23:02:53]MH_I2C_Read... [23:02:53]Read from MH i2c: E2 62 00 40 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B3 01 00 0E 04 04 00 84 01 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 2E [23:02: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A5 B3 01 00 0E 04 04 00 84 01 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 [23:02:53]wFMCommunicate OK [23:02:53]SAM_PROTO_GetFieldsCounters done [23:02:53]requested_item shift.num is exist - process it [23:02:53]requested_item shift.opened is exist - process it [23:02:53]req_shift_opened [23:02:53]FM_GetShiftState [23:02:53]SAM_PROTO_GetShiftState [23:02:53]wFMCommunicate request_size=4 [23:02:53]MH_SAM_APDU [23:02:53]CAPDU: 80 13 01 00 [23:02:53]Write to MH i2c: E2 08 00 41 3A 80 13 01 00 00 00 00 00 F8 [23:02:53]Write i2c OK [23:02:53]MH_I2C_Read... [23:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:53]Read from MH i2c: E2 [23:02:53]MH_I2C_Read... [23:02:53]Read from MH i2c: E2 0E 00 [23:02:53]MH_I2C_Read... [23:02:53]Read from MH i2c: E2 0E 00 41 3A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 42 [23:02:53]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:02:53]wFMCommunicate OK [23:02:53]SAM_PROTO_GetShiftState done [23:02:53]FM_GetShiftState done [23:02:53]req_shift_opened done [23:02:53]requested_item shift.open_date is exist - process it [23:02:53]req_shift_open_date [23:02:53]req_shift_open_date done [23:02:53]produce_requested_data done [23:02:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111525,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:02:53]process_action_free print_text [23:02:53]json_value_free [23:02:53]json_value_free done [23:02:53]process_json_proto returns [23:02:53]Send response to host [23:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111525,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:02:53]free response buf [23:02:53]execute_script done [23:02:53]execute_script returns [23:02:53]free content buf [23:02:53]Sock 9.Close socket [23:02:53]Sock 9.Thread stoped [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:45]accept exits with 7 [23:04:45]New connection [23:04:45]New thread 3067465060 created [23:04:45]Thread 3067321700 joined [23:04:45]Waiting for new connection... [23:04:45] Sock 7.Parse request [23:04:45]Sock 7.Check first char [23:04:45]Sock 7.First char is OK [23:04:45]request: POST /json_proto HTTP/1.0 [23:04:45]Method: POST [23:04:45]URL: /json_proto [23:04:45]Method is POST - this is cgi request [23:04:45]url: /json_proto [23:04:45]query_string will be loaded in cgi processing [23:04:45]execute_cgi json_proto POST (null) [23:04:45]execute_cgi path=json_proto method=POST [23:04:45]POST find Content-Length [23:04:45]Host: 172.17.59.68:8080 [23:04:45]Content-Length: 677 [23:04:45]Content-Type: application/json [23:04:45] [23:04:45]POST finish read [23:04:45]Found Content-Length = 677 [23:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:45]execute_script... [23:04: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)320119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:45]POST & json_proto [23:04:45]process_json_proto [23:04:45]json parsed OK: [23:04:45]protocol is kg_v1.0 [23:04:45]action value=close_receipt [23:04:45]process_action close_receipt [23:04:45]cmd_close_receipt [23:04:45]MH_GetDate [23:04:45]Write to MH i2c: F0 00 00 42 3A 6B [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 09 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: F0 09 00 42 3A 00 1C 64 73 66 BC EC 60 65 3A [23:04:45]GetLastDocTimeStamp 1718837962 [23:04:45]current date 1718838300 [23:04:45]FM_GetShiftState [23:04:45]SAM_PROTO_GetShiftState [23:04:45]wFMCommunicate request_size=4 [23:04:45]MH_SAM_APDU [23:04:45]CAPDU: 80 13 01 00 [23:04:45]Write to MH i2c: E2 08 00 43 3A 80 13 01 00 00 00 00 00 FA [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:45]Read from MH i2c: E2 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: E2 0E 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: E2 0E 00 43 3A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 44 [23:04:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:04:45]wFMCommunicate OK [23:04:45]SAM_PROTO_GetShiftState done [23:04:45]FM_GetShiftState done [23:04:45]opened in 1718760753 [23:04:45]opened+sec_in_day 1718847153 [23:04:45]quantity*price = 50065 [23:04:45]sum+1 = 50067 [23:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 275 19.06.2024 23:05 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111526 ФПД: 131292489731812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T230501&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111526&fm=131292489731812&tin=02508201610067®Number=0000000000092771&sum=50000 [23:04:46]StoreToDocumentArchive [23:04:46]shift 388 fd 111526 [23:04:46]save to /storage/0388/doc_00111526 [23:04:46]save last doc name /storage/0388/doc_00111526 to /storage/kkm_last_doc_name [23:04:46]save OK [23:04:46]Clear old archive folders... [23:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:46]tlvbuf is 00F3C0A0 [23:04:46]SAM_PROTO_ClearQueue [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 09 00 00 [23:04:46]Write to MH i2c: E2 08 00 50 3A 80 09 00 00 00 00 00 00 FC [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 50 3A 00 90 00 FE [23:04:46]RAPDU: 90 00 [23:04:46]wFMCommunicate OK [23:04:46]SAM_PROTO_ClearQueue done [23:04:46]KKMCreateOFDPacket [23:04:46]OFDProtocolAddRootSTLVToBuf [23:04:46]FM_MakeSignedData [23:04:46]FM_MakeSignedData [23:04:46]SAM_PROTO_SignData [23:04:46]wFMCommunicate request_size=4 [23:04:46]MH_SAM_APDU [23:04:46]CAPDU: 80 0D 01 02 [23:04:46]Write to MH i2c: E2 08 00 51 3A 80 0D 01 02 00 00 00 00 04 [23:04:46]Write i2c OK [23:04:46]MH_I2C_Read... [23:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:46]Read from MH i2c: E2 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 [23:04:46]MH_I2C_Read... [23:04:46]Read from MH i2c: E2 03 00 51 3A 00 90 00 FF [23:04:46]RAPDU: 90 00 [23:04:46]wFMCommunicate OK [23:04:46]wFMCommunicate request_size=255 [23:04:46]MH_SAM_APDU [23:04: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 1D 64 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B3 01 00 35 04 06 00 77 [23:04:46]Write to MH i2c: E2 02 01 52 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 1D 64 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B3 01 00 35 04 06 00 77 00 00 7C [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 52 3A 00 90 00 00 [23:04:47]RAPDU: 90 00 [23:04:47]wFMCommunicate OK [23:04:47]wFMCommunicate request_size=10 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 0D 02 02 05 68 EA 36 4E E4 [23:04:47]Write to MH i2c: E2 0D 00 53 3A 80 0D 02 02 05 00 68 EA 36 4E E4 00 00 CB [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 03 00 53 3A 00 90 00 01 [23:04:47]RAPDU: 90 00 [23:04:47]wFMCommunicate OK [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 0D 03 02 [23:04:47]Write to MH i2c: E2 08 00 54 3A 80 0D 03 02 00 00 00 00 09 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 0B 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 0B 00 54 3A 00 66 B7 38 C0 67 94 B2 A7 90 00 73 [23:04:47]RAPDU: 66 B7 38 C0 67 94 B2 A7 90 00 [23:04:47]wFMCommunicate OK [23:04:47]SAM_PROTO_SignData done [23:04:47]FM_MakeSignedData done [23:04:47]CreateOFDProtocolMessage [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 11 00 00 [23:04:47]Write to MH i2c: E2 08 00 55 3A 80 11 00 00 00 00 00 00 09 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 17 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 17 00 55 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5B [23:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:04:47]wFMCommunicate OK [23:04:47]CreateOFDProtocolMessage done [23:04:47]OFDSenderStorePacket 111526 [23:04:47]StoreOFDPacket docnum=111526 [23:04:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 F4 07 01 A3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 1D 64 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B3 01 00 35 04 06 00 77 68 EA 36 4E E4 66 B7 38 C0 67 94 B2 A7 [23:04:47]CheckFolder [23:04:47]dirname=/storage/ofd_packets [23:04:47]CheckFolder done [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00111526 [23:04:47]NVStorageSaveData ofd_packets/00111526 [23:04:47]File name is /storage/ofd_packets/00111526 [23:04:47]Write 301 bytes [23:04:47]NVStorageSaveData done [23:04:47]OFDSenderStorePacket done [23:04:47]KKMCreateOFDPacket done [23:04:47]NVStorageSaveData kkm_last_timestamp [23:04:47]File name is /storage/kkm_last_timestamp [23:04:47]Write 4 bytes [23:04:47]NVStorageSaveData done [23:04:47]ExternCall_PrintAddStr [23:04:47]wPrintStart [23:04:47]Write to MH i2c: 01 00 00 56 3A 90 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 56 3A 00 00 00 00 00 FF 0F A5 [23:04:47]RasterBufferAndPrint [23:04:47]line Счет N : (1)320119 [23:04:47]line ИНН: 02508201610067 [23:04:47]line Контрольно-Кассовый Чек [23:04:47]line ПРОДАЖА [23:04:47]line ТРК (МРК, ГНК) : 11 [23:04:47]line Товар: 2710124130 [23:04:47]line Аи-92-К-5 [23:04:47]line 7.540 * 66.40 [23:04:47]line = 500.66 [23:04:47]line НДС 12% НСП 1% [23:04:47]line > о реализуемом товаре [23:04:47]line ОКРУГЛЕНИЕ: -0.66 [23:04:47]line ИТОГО: 500.00 [23:04:47]line Внесено: 500.00 [23:04:47]line СДАЧА: 0.00 [23:04:47]line НСП 1% : 4.43 [23:04:47]line НДС 12% : 53.17 [23:04:47]line Наличными: 500.00 [23:04:47]line Безнал.: 0.00 [23:04:47]line Место: АЗС № 65 "Партнер Нефть" [23:04:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:04:47]line СНО: Общий режим [23:04:47]line Чек 275 19.06.2024 23:05 [23:04:47]line Смена: 388 ФФД: 1.0 [23:04:47]line ЗНМ: 0300000198 [23:04:47]line РНМ: 0000000000092771 [23:04:47]line Версия ККМ: 001 [23:04:47]line ФМ: 0000000000875083 [23:04:47]line ФД: 111526 [23:04:47]line ФПД: 131292489731812 [23:04:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T230501&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111526&fm=131292489731812&tin=02508201610067®Number=0000000000092771&sum=50000 [23:04:47]OFD Sender: Processing packet 111526 [packets to send 38, broken 37] [23:04:47]ProducePacketName [23:04:47]name=ofd_packets/00111526 [23:04:47]OFD Sender: To server: pG, [23:04:47]CommunicateWithHost lk.salyk.kg:30040 [23:04:47]ConnectInit lk.salyk.kg [23:04:47]written 0, free lines is 4095 [23:04:47]Connected sock=9 [23:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 63 F4 07 01 A3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 1D 64 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B3 01 00 35 04 06 00 77 68 EA 36 4E E4 66 B7 38 C0 67 94 B2 A7 [23:04:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 47 4A 47 00 98 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A6 B3 01 00 F4 03 04 00 79 FB 72 66 B6 04 01 00 00 EE BA 23 6B 75 F4 15 9D [23:04:48]CommunicateWithHost err = 0 [23:04:48]CheckOFDResponse [23:04:48]1017 (14) - 77093643461234 [23:04:48]1041 (16) - 0000000000875083 [23:04:48]1040 (4) - 111526 [23:04:48]1012 (4) - 19.06.2024 15:38 [23:04:48]1206 (1) - 0 [23:04:48]OFD Sender: Remove packet 111526 [23:04:48]ProducePacketName [23:04:48]name=ofd_packets/00111526 [23:04:48]NVStorageDeleteData [23:04:48]Write to MH i2c: 01 00 00 81 3A BB [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 07 00 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: 01 07 00 81 3A 00 00 00 00 00 CC 0C 9A [23:04:48]RasterBufferAndPrint [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]line [23:04:48]written 0, free lines is 3282 [23:04:48]MH_Cut [23:04:48]Write to MH i2c: D1 01 00 88 3A 01 94 [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 01 00 [23:04:48]MH_I2C_Read... [23:04:48]Read from MH i2c: D1 01 00 88 3A 00 93 [23:04:48]Write to MH i2c: 01 00 00 89 3A C3 [23:04:48]Write i2c OK [23:04:48]MH_I2C_Read... [23:04:48]OFD Sender: No OFD packet to send [23:04:48]*** Cut start [23:04:48]*** Partial cut [23:04:48]*** CUTSNS_PIN = 1 [23:04:49]*** CUTSNS_PIN = 0 [23:04:49]*** Brake cut motor [23:04:49]Read from MH i2c: 01 [23:04:49]MH_I2C_Read... [23:04:49]*** Stop cut motor [23:04:49]*** Cut end [23:04:49]Read from MH i2c: 01 07 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: 01 07 00 89 3A 00 00 00 00 00 FF 0F D8 [23:04:49]process_action close_receipt done [23:04:49]requested_data is exist [23:04:49]produce_requested_data [23:04:49]requested_item fm.sn is exist - process it [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 11 00 00 [23:04:49]Write to MH i2c: E2 08 00 8A 3A 80 11 00 00 00 00 00 00 3E [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 17 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 17 00 8A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 90 [23:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:04:49]wFMCommunicate OK [23:04:49]requested_item fd.num is exist - process it [23:04:49]SAM_PROTO_GetFieldsCounters [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 13 00 00 [23:04:49]Write to MH i2c: E2 08 00 8B 3A 80 13 00 00 00 00 00 00 41 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 62 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 62 00 8B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B3 01 00 0E 04 04 00 84 01 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 7D [23:04: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B3 01 00 0E 04 04 00 84 01 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 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_GetFieldsCounters done [23:04:49]requested_item shift.num is exist - process it [23:04:49]requested_item shift.opened is exist - process it [23:04:49]req_shift_opened [23:04:49]FM_GetShiftState [23:04:49]SAM_PROTO_GetShiftState [23:04:49]wFMCommunicate request_size=4 [23:04:49]MH_SAM_APDU [23:04:49]CAPDU: 80 13 01 00 [23:04:49]Write to MH i2c: E2 08 00 8C 3A 80 13 01 00 00 00 00 00 43 [23:04:49]Write i2c OK [23:04:49]MH_I2C_Read... [23:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:49]Read from MH i2c: E2 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 0E 00 [23:04:49]MH_I2C_Read... [23:04:49]Read from MH i2c: E2 0E 00 8C 3A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8D [23:04:49]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:04:49]wFMCommunicate OK [23:04:49]SAM_PROTO_GetShiftState done [23:04:49]FM_GetShiftState done [23:04:49]req_shift_opened done [23:04:49]requested_item shift.open_date is exist - process it [23:04:49]req_shift_open_date [23:04:49]req_shift_open_date done [23:04:49]produce_requested_data done [23:04:49]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111526,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:04:49]process_action_free close_receipt [23:04:49]json_value_free [23:04:49]json_value_free done [23:04:49]process_json_proto returns [23:04:49]Send response to host [23:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111526,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:04:49]free response buf [23:04:49]execute_script done [23:04:49]execute_script returns [23:04:49]free content buf [23:04:49]Sock 7.Close socket [23:04:49]Sock 7.Thread stoped [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [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:13]accept exits with 10 [23:08:13]New connection [23:08:13]New thread 3067321700 created [23:08:13]Thread 3067465060 joined [23:08:13]Waiting for new connection... [23:08:13] Sock 10.Parse request [23:08:13]Sock 10.Check first char [23:08:13]Sock 10.First char is OK [23:08:13]request: POST /json_proto HTTP/1.0 [23:08:13]Method: POST [23:08:13]URL: /json_proto [23:08:13]Method is POST - this is cgi request [23:08:13]url: /json_proto [23:08:13]query_string will be loaded in cgi processing [23:08:13]execute_cgi json_proto POST (null) [23:08:13]execute_cgi path=json_proto method=POST [23:08:13]POST find Content-Length [23:08:13]Host: 172.17.59.68:8080 [23:08:13]Content-Length: 1192 [23:08:13]Content-Type: application/json [23:08:13] [23:08:13]POST finish read [23:08:13]Found Content-Length = 1192 [23:08:13]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320120\u000A19.06.2024 21:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 11.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 801.90\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" ] } } [23:08:13]execute_script... [23:08:13]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320120\u000A19.06.2024 21:36\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 11.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 801.90\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" ] } } [23:08:13]POST & json_proto [23:08:13]process_json_proto [23:08:13]json parsed OK: [23:08:13]protocol is kg_v1.0 [23:08:13]action value=print_text [23:08:13]process_action print_text [23:08:13]cmd_print_text [23:08:13]ExternCall_PrintAddStr [23:08:13]wPrintStart [23:08:13]Write to MH i2c: 01 00 00 8D 3A C7 [23:08:13]Write i2c OK [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: 01 [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: 01 07 00 [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: 01 07 00 8D 3A 00 00 00 00 00 FF 0F DC [23:08:14]RasterBufferAndPrint [23:08:14]line *****ТОВАРНЫЙ ЧЕК***** [23:08:14]line АЗС 65 [23:08:14]line Партнер нефть [23:08:14]line 02508201610067 [23:08:14]line Кассир : Амантуров Р. [23:08:14]line Счет N : (1)320120 [23:08:14]line 19.06.2024 21:36 [23:08:14]line ПРОДАЖА [23:08:14]line ТРК (МРК, ГНК): 22 [23:08:14]line Вид ГСМ : 2710194210 [23:08:14]line ДТ-К-5 [23:08:14]line 11.000 x 72.90 [23:08:14]line ИТОГ: 801.90 [23:08:14]line Тип оплаты: Технологический отпуск: [23:08:14]line ______________________ [23:08:14]line (подпись) [23:08:14]written 0, free lines is 4095 [23:08:14]Write to MH i2c: 01 00 00 A0 3A DA [23:08:14]Write i2c OK [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: 01 [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: 01 07 00 [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: 01 07 00 A0 3A 00 00 00 00 00 28 0E 17 [23:08:14]RasterBufferAndPrint [23:08:14]line [23:08:14]line [23:08:14]line [23:08:14]line [23:08:14]line [23:08:14]written 0, free lines is 3625 [23:08:14]MH_Cut [23:08:14]Write to MH i2c: D1 01 00 A7 3A 01 B3 [23:08:14]Write i2c OK [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: D1 [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: D1 01 00 [23:08:14]MH_I2C_Read... [23:08:14]Read from MH i2c: D1 01 00 A7 3A 00 B2 [23:08:14]Write to MH i2c: 01 00 00 A8 3A E2 [23:08:14]Write i2c OK [23:08:14]MH_I2C_Read... [23:08:14]*** Cut start [23:08:14]*** Partial cut [23:08:14]*** CUTSNS_PIN = 1 [23:08:14]*** CUTSNS_PIN = 0 [23:08:14]*** Brake cut motor [23:08:15]Read from MH i2c: 01 [23:08:15]MH_I2C_Read... [23:08:15]*** Stop cut motor [23:08:15]*** Cut end [23:08:15]Read from MH i2c: 01 07 00 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: 01 07 00 A8 3A 00 00 00 00 00 FF 0F F7 [23:08:15]process_action print_text done [23:08:15]requested_data is exist [23:08:15]produce_requested_data [23:08:15]requested_item fm.sn is exist - process it [23:08:15]wFMCommunicate request_size=4 [23:08:15]MH_SAM_APDU [23:08:15]CAPDU: 80 11 00 00 [23:08:15]Write to MH i2c: E2 08 00 A9 3A 80 11 00 00 00 00 00 00 5D [23:08:15]Write i2c OK [23:08:15]MH_I2C_Read... [23:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:15]Read from MH i2c: E2 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: E2 17 00 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: E2 17 00 A9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 AF [23:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:08:15]wFMCommunicate OK [23:08:15]requested_item fd.num is exist - process it [23:08:15]SAM_PROTO_GetFieldsCounters [23:08:15]wFMCommunicate request_size=4 [23:08:15]MH_SAM_APDU [23:08:15]CAPDU: 80 13 00 00 [23:08:15]Write to MH i2c: E2 08 00 AA 3A 80 13 00 00 00 00 00 00 60 [23:08:15]Write i2c OK [23:08:15]MH_I2C_Read... [23:08:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:15]Read from MH i2c: E2 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: E2 62 00 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: E2 62 00 AA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B3 01 00 0E 04 04 00 84 01 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 9C [23:08: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A6 B3 01 00 0E 04 04 00 84 01 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 [23:08:15]wFMCommunicate OK [23:08:15]SAM_PROTO_GetFieldsCounters done [23:08:15]requested_item shift.num is exist - process it [23:08:15]requested_item shift.opened is exist - process it [23:08:15]req_shift_opened [23:08:15]FM_GetShiftState [23:08:15]SAM_PROTO_GetShiftState [23:08:15]wFMCommunicate request_size=4 [23:08:15]MH_SAM_APDU [23:08:15]CAPDU: 80 13 01 00 [23:08:15]Write to MH i2c: E2 08 00 AB 3A 80 13 01 00 00 00 00 00 62 [23:08:15]Write i2c OK [23:08:15]MH_I2C_Read... [23:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:15]Read from MH i2c: E2 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: E2 0E 00 [23:08:15]MH_I2C_Read... [23:08:15]Read from MH i2c: E2 0E 00 AB 3A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AC [23:08:15]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:08:15]wFMCommunicate OK [23:08:15]SAM_PROTO_GetShiftState done [23:08:15]FM_GetShiftState done [23:08:15]req_shift_opened done [23:08:15]requested_item shift.open_date is exist - process it [23:08:15]req_shift_open_date [23:08:15]req_shift_open_date done [23:08:15]produce_requested_data done [23:08:15]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111526,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:08:15]process_action_free print_text [23:08:15]json_value_free [23:08:15]json_value_free done [23:08:15]process_json_proto returns [23:08:15]Send response to host [23:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111526,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:08:15]free response buf [23:08:15]execute_script done [23:08:15]execute_script returns [23:08:15]free content buf [23:08:15]Sock 10.Close socket [23:08:15]Sock 10.Thread stoped [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:52]accept exits with 7 [23:08:52]New connection [23:08:52]New thread 3067465060 created [23:08:52]Thread 3067321700 joined [23:08:52]Waiting for new connection... [23:08:52] Sock 7.Parse request [23:08:52]Sock 7.Check first char [23:08:52]Sock 7.First char is OK [23:08:52]request: POST /json_proto HTTP/1.0 [23:08:52]Method: POST [23:08:52]URL: /json_proto [23:08:52]Method is POST - this is cgi request [23:08:52]url: /json_proto [23:08:52]query_string will be loaded in cgi processing [23:08:52]execute_cgi json_proto POST (null) [23:08:52]execute_cgi path=json_proto method=POST [23:08:52]POST find Content-Length [23:08:52]Host: 172.17.59.68:8080 [23:08:52]Content-Length: 682 [23:08:52]Content-Type: application/json [23:08:52] [23:08:52]POST finish read [23:08:52]Found Content-Length = 682 [23:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:08:52]execute_script... [23:08: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)320121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:08:52]POST & json_proto [23:08:52]process_json_proto [23:08:52]json parsed OK: [23:08:52]protocol is kg_v1.0 [23:08:52]action value=close_receipt [23:08:52]process_action close_receipt [23:08:52]cmd_close_receipt [23:08:52]MH_GetDate [23:08:52]Write to MH i2c: F0 00 00 AC 3A D5 [23:08:52]Write i2c OK [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: F0 [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: F0 09 00 [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: F0 09 00 AC 3A 00 14 65 73 66 BC EC 60 65 9D [23:08:52]GetLastDocTimeStamp 1718838301 [23:08:52]current date 1718838548 [23:08:52]FM_GetShiftState [23:08:52]SAM_PROTO_GetShiftState [23:08:52]wFMCommunicate request_size=4 [23:08:52]MH_SAM_APDU [23:08:52]CAPDU: 80 13 01 00 [23:08:52]Write to MH i2c: E2 08 00 AD 3A 80 13 01 00 00 00 00 00 64 [23:08:52]Write i2c OK [23:08:52]MH_I2C_Read... [23:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:52]Read from MH i2c: E2 [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: E2 0E 00 [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: E2 0E 00 AD 3A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AE [23:08:52]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:08:52]wFMCommunicate OK [23:08:52]SAM_PROTO_GetShiftState done [23:08:52]FM_GetShiftState done [23:08:52]opened in 1718760753 [23:08:52]opened+sec_in_day 1718847153 [23:08:52]quantity*price = 100064 [23:08:52]sum+1 = 100066 [23:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 276 19.06.2024 23:09 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111527 ФПД: 246678636265220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T230908&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111527&fm=246678636265220&tin=02508201610067®Number=0000000000092771&sum=100000 [23:08:54]StoreToDocumentArchive [23:08:54]shift 388 fd 111527 [23:08:54]save to /storage/0388/doc_00111527 [23:08:54]save last doc name /storage/0388/doc_00111527 to /storage/kkm_last_doc_name [23:08:54]save OK [23:08:54]Clear old archive folders... [23:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:54]tlvbuf is B6F57790 [23:08:54]SAM_PROTO_ClearQueue [23:08:54]wFMCommunicate request_size=4 [23:08:54]MH_SAM_APDU [23:08:54]CAPDU: 80 09 00 00 [23:08:54]Write to MH i2c: E2 08 00 BA 3A 80 09 00 00 00 00 00 00 66 [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:54]Read from MH i2c: E2 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 03 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 03 00 BA 3A 00 90 00 68 [23:08:54]RAPDU: 90 00 [23:08:54]wFMCommunicate OK [23:08:54]SAM_PROTO_ClearQueue done [23:08:54]KKMCreateOFDPacket [23:08:54]OFDProtocolAddRootSTLVToBuf [23:08:54]FM_MakeSignedData [23:08:54]FM_MakeSignedData [23:08:54]SAM_PROTO_SignData [23:08:54]wFMCommunicate request_size=4 [23:08:54]MH_SAM_APDU [23:08:54]CAPDU: 80 0D 01 02 [23:08:54]Write to MH i2c: E2 08 00 BB 3A 80 0D 01 02 00 00 00 00 6E [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:54]Read from MH i2c: E2 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 03 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 03 00 BB 3A 00 90 00 69 [23:08:54]RAPDU: 90 00 [23:08:54]wFMCommunicate OK [23:08:54]wFMCommunicate request_size=255 [23:08:54]MH_SAM_APDU [23:08:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 14 65 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B3 01 00 35 04 06 00 E0 [23:08:54]Write to MH i2c: E2 02 01 BC 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 14 65 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B3 01 00 35 04 06 00 E0 00 00 99 [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:54]Read from MH i2c: E2 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 03 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 03 00 BC 3A 00 90 00 6A [23:08:54]RAPDU: 90 00 [23:08:54]wFMCommunicate OK [23:08:54]wFMCommunicate request_size=10 [23:08:54]MH_SAM_APDU [23:08:54]CAPDU: 80 0D 02 02 05 5A 58 7C FF 04 [23:08:54]Write to MH i2c: E2 0D 00 BD 3A 80 0D 02 02 05 00 5A 58 7C FF 04 00 00 AC [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:54]Read from MH i2c: E2 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 03 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 03 00 BD 3A 00 90 00 6B [23:08:54]RAPDU: 90 00 [23:08:54]wFMCommunicate OK [23:08:54]wFMCommunicate request_size=4 [23:08:54]MH_SAM_APDU [23:08:54]CAPDU: 80 0D 03 02 [23:08:54]Write to MH i2c: E2 08 00 BE 3A 80 0D 03 02 00 00 00 00 73 [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:54]Read from MH i2c: E2 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 0B 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 0B 00 BE 3A 00 83 6F 2B 47 D0 84 B0 7C 90 00 58 [23:08:54]RAPDU: 83 6F 2B 47 D0 84 B0 7C 90 00 [23:08:54]wFMCommunicate OK [23:08:54]SAM_PROTO_SignData done [23:08:54]FM_MakeSignedData done [23:08:54]CreateOFDProtocolMessage [23:08:54]wFMCommunicate request_size=4 [23:08:54]MH_SAM_APDU [23:08:54]CAPDU: 80 11 00 00 [23:08:54]Write to MH i2c: E2 08 00 BF 3A 80 11 00 00 00 00 00 00 73 [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:54]Read from MH i2c: E2 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 17 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: E2 17 00 BF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C5 [23:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:08:54]wFMCommunicate OK [23:08:54]CreateOFDProtocolMessage done [23:08:54]OFDSenderStorePacket 111527 [23:08:54]StoreOFDPacket docnum=111527 [23:08:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 42 58 07 01 C3 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 14 65 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B3 01 00 35 04 06 00 E0 5A 58 7C FF 04 83 6F 2B 47 D0 84 B0 7C [23:08:54]CheckFolder [23:08:54]dirname=/storage/ofd_packets [23:08:54]CheckFolder done [23:08:54]ProducePacketName [23:08:54]name=ofd_packets/00111527 [23:08:54]NVStorageSaveData ofd_packets/00111527 [23:08:54]File name is /storage/ofd_packets/00111527 [23:08:54]Write 301 bytes [23:08:54]NVStorageSaveData done [23:08:54]OFDSenderStorePacket done [23:08:54]KKMCreateOFDPacket done [23:08:54]NVStorageSaveData kkm_last_timestamp [23:08:54]File name is /storage/kkm_last_timestamp [23:08:54]Write 4 bytes [23:08:54]NVStorageSaveData done [23:08:54]ExternCall_PrintAddStr [23:08:54]wPrintStart [23:08:54]Write to MH i2c: 01 00 00 C0 3A FA [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: 01 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: 01 07 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: 01 07 00 C0 3A 00 00 00 00 00 FF 0F 0F [23:08:54]RasterBufferAndPrint [23:08:54]line Счет N : (1)320121 [23:08:54]line ИНН: 02508201610067 [23:08:54]line Контрольно-Кассовый Чек [23:08:54]line ПРОДАЖА [23:08:54]line ТРК (МРК, ГНК) : 11 [23:08:54]line Товар: 2710124130 [23:08:54]line Аи-92-К-5 [23:08:54]line 15.070 * 66.40 [23:08:54]line = 1000.65 [23:08:54]line НДС 12% НСП 1% [23:08:54]line > о реализуемом товаре [23:08:54]line ОКРУГЛЕНИЕ: -0.65 [23:08:54]line ИТОГО: 1000.00 [23:08:54]line Внесено: 1000.00 [23:08:54]line СДАЧА: 0.00 [23:08:54]line НСП 1% : 8.85 [23:08:54]line НДС 12% : 106.26 [23:08:54]line Наличными: 1000.00 [23:08:54]line Безнал.: 0.00 [23:08:54]line Место: АЗС № 65 "Партнер Нефть" [23:08:54]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:08:54]line СНО: Общий режим [23:08:54]line Чек 276 19.06.2024 23:09 [23:08:54]line Смена: 388 ФФД: 1.0 [23:08:54]line ЗНМ: 0300000198 [23:08:54]line РНМ: 0000000000092771 [23:08:54]line Версия ККМ: 001 [23:08:54]line ФМ: 0000000000875083 [23:08:54]line ФД: 111527 [23:08:54]line ФПД: 246678636265220 [23:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T230908&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111527&fm=246678636265220&tin=02508201610067®Number=0000000000092771&sum=100000 [23:08:54]OFD Sender: Processing packet 111527 [packets to send 38, broken 37] [23:08:54]ProducePacketName [23:08:54]name=ofd_packets/00111527 [23:08:54]OFD Sender: To server: pG, [23:08:54]CommunicateWithHost lk.salyk.kg:30040 [23:08:54]ConnectInit lk.salyk.kg [23:08:54]written 0, free lines is 4095 [23:08:54]Connected sock=9 [23:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 42 58 07 01 C3 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 14 65 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A7 B3 01 00 35 04 06 00 E0 5A 58 7C FF 04 83 6F 2B 47 D0 84 B0 7C [23:08:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 AB 33 47 00 45 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 35 30 38 33 10 04 04 00 A7 B3 01 00 F4 03 04 00 70 FC 72 66 B6 04 01 00 00 7D 7C A7 6A 00 52 86 8C [23:08:55]CommunicateWithHost err = 0 [23:08:55]CheckOFDResponse [23:08:55]1017 (14) - 77093643461234 [23:08:55]1041 (16) - 0000000000875083 [23:08:55]1040 (4) - 111527 [23:08:55]1012 (4) - 19.06.2024 15:42 [23:08:55]1206 (1) - 0 [23:08:55]OFD Sender: Remove packet 111527 [23:08:55]ProducePacketName [23:08:55]name=ofd_packets/00111527 [23:08:55]NVStorageDeleteData [23:08:55]Write to MH i2c: 01 00 00 EB 3A 25 [23:08:55]Write i2c OK [23:08:55]MH_I2C_Read... [23:08:55]Read from MH i2c: 01 [23:08:55]MH_I2C_Read... [23:08:55]Read from MH i2c: 01 07 00 [23:08:55]MH_I2C_Read... [23:08:55]Read from MH i2c: 01 07 00 EB 3A 00 00 00 00 00 D5 0C 0D [23:08:55]RasterBufferAndPrint [23:08:55]line [23:08:55]line [23:08:55]line [23:08:55]line [23:08:55]line [23:08:55]written 0, free lines is 3294 [23:08:55]MH_Cut [23:08:55]Write to MH i2c: D1 01 00 F2 3A 01 FE [23:08:55]Write i2c OK [23:08:55]MH_I2C_Read... [23:08:55]Read from MH i2c: D1 [23:08:55]MH_I2C_Read... [23:08:55]Read from MH i2c: D1 01 00 [23:08:55]MH_I2C_Read... [23:08:55]Read from MH i2c: D1 01 00 F2 3A 00 FD [23:08:55]Write to MH i2c: 01 00 00 F3 3A 2D [23:08:55]Write i2c OK [23:08:55]MH_I2C_Read... [23:08:55]OFD Sender: No OFD packet to send [23:08:56]*** Cut start [23:08:56]*** Partial cut [23:08:56]*** CUTSNS_PIN = 1 [23:08:56]*** CUTSNS_PIN = 0 [23:08:56]*** Brake cut motor [23:08:56]Read from MH i2c: 01 [23:08:56]MH_I2C_Read... [23:08:56]*** Stop cut motor [23:08:56]*** Cut end [23:08:56]Read from MH i2c: 01 07 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: 01 07 00 F3 3A 00 00 00 00 00 FF 0F 42 [23:08:56]process_action close_receipt done [23:08:56]requested_data is exist [23:08:56]produce_requested_data [23:08:56]requested_item fm.sn is exist - process it [23:08:56]wFMCommunicate request_size=4 [23:08:56]MH_SAM_APDU [23:08:56]CAPDU: 80 11 00 00 [23:08:56]Write to MH i2c: E2 08 00 F4 3A 80 11 00 00 00 00 00 00 A8 [23:08:56]Write i2c OK [23:08:56]MH_I2C_Read... [23:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:56]Read from MH i2c: E2 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 17 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 17 00 F4 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FA [23:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:08:56]wFMCommunicate OK [23:08:56]requested_item fd.num is exist - process it [23:08:56]SAM_PROTO_GetFieldsCounters [23:08:56]wFMCommunicate request_size=4 [23:08:56]MH_SAM_APDU [23:08:56]CAPDU: 80 13 00 00 [23:08:56]Write to MH i2c: E2 08 00 F5 3A 80 13 00 00 00 00 00 00 AB [23:08:56]Write i2c OK [23:08:56]MH_I2C_Read... [23:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:56]Read from MH i2c: E2 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 62 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 62 00 F5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B3 01 00 0E 04 04 00 84 01 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 EB [23:08: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A7 B3 01 00 0E 04 04 00 84 01 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 [23:08:56]wFMCommunicate OK [23:08:56]SAM_PROTO_GetFieldsCounters done [23:08:56]requested_item shift.num is exist - process it [23:08:56]requested_item shift.opened is exist - process it [23:08:56]req_shift_opened [23:08:56]FM_GetShiftState [23:08:56]SAM_PROTO_GetShiftState [23:08:56]wFMCommunicate request_size=4 [23:08:56]MH_SAM_APDU [23:08:56]CAPDU: 80 13 01 00 [23:08:56]Write to MH i2c: E2 08 00 F6 3A 80 13 01 00 00 00 00 00 AD [23:08:56]Write i2c OK [23:08:56]MH_I2C_Read... [23:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:56]Read from MH i2c: E2 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 0E 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 0E 00 F6 3A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F7 [23:08:56]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:08:56]wFMCommunicate OK [23:08:56]SAM_PROTO_GetShiftState done [23:08:56]FM_GetShiftState done [23:08:56]req_shift_opened done [23:08:56]requested_item shift.open_date is exist - process it [23:08:56]req_shift_open_date [23:08:56]req_shift_open_date done [23:08:56]produce_requested_data done [23:08:56]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111527,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:08:56]process_action_free close_receipt [23:08:56]json_value_free [23:08:56]json_value_free done [23:08:56]process_json_proto returns [23:08:56]Send response to host [23:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111527,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:08:56]free response buf [23:08:56]execute_script done [23:08:56]execute_script returns [23:08:56]free content buf [23:08:56]Sock 7.Close socket [23:08:56]Sock 7.Thread stoped [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:28]accept exits with 10 [23:09:28]New connection [23:09:28]New thread 3067321700 created [23:09:28]Thread 3067465060 joined [23:09:28]Waiting for new connection... [23:09:28] Sock 10.Parse request [23:09:28]Sock 10.Check first char [23:09:28]Sock 10.First char is OK [23:09:28]request: POST /json_proto HTTP/1.0 [23:09:28]Method: POST [23:09:28]URL: /json_proto [23:09:28]Method is POST - this is cgi request [23:09:28]url: /json_proto [23:09:28]query_string will be loaded in cgi processing [23:09:28]execute_cgi json_proto POST (null) [23:09:28]execute_cgi path=json_proto method=POST [23:09:28]POST find Content-Length [23:09:28]Host: 172.17.59.68:8080 [23:09:28]Content-Length: 677 [23:09:28]Content-Type: application/json [23:09:28] [23:09:28]POST finish read [23:09:28]Found Content-Length = 677 [23:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.600, "sum" : 172.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 172.00, "total" : 172.00, "payments": [ { "type": 0, "sum" : 172.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:28]execute_script... [23:09: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)320122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 2.600, "sum" : 172.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 172.00, "total" : 172.00, "payments": [ { "type": 0, "sum" : 172.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:09:28]POST & json_proto [23:09:28]process_json_proto [23:09:28]json parsed OK: [23:09:28]protocol is kg_v1.0 [23:09:28]action value=close_receipt [23:09:28]process_action close_receipt [23:09:28]cmd_close_receipt [23:09:28]MH_GetDate [23:09:28]Write to MH i2c: F0 00 00 F7 3A 20 [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: F0 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: F0 09 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: F0 09 00 F7 3A 00 37 65 73 66 BC EC 60 65 0B [23:09:28]GetLastDocTimeStamp 1718838548 [23:09:28]current date 1718838583 [23:09:28]FM_GetShiftState [23:09:28]SAM_PROTO_GetShiftState [23:09:28]wFMCommunicate request_size=4 [23:09:28]MH_SAM_APDU [23:09:28]CAPDU: 80 13 01 00 [23:09:28]Write to MH i2c: E2 08 00 F8 3A 80 13 01 00 00 00 00 00 AF [23:09:28]Write i2c OK [23:09:28]MH_I2C_Read... [23:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:28]Read from MH i2c: E2 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 0E 00 [23:09:28]MH_I2C_Read... [23:09:28]Read from MH i2c: E2 0E 00 F8 3A 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F9 [23:09:28]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:09:28]wFMCommunicate OK [23:09:28]SAM_PROTO_GetShiftState done [23:09:28]FM_GetShiftState done [23:09:28]opened in 1718760753 [23:09:28]opened+sec_in_day 1718847153 [23:09:28]quantity*price = 17264 [23:09:28]sum+1 = 17265 [23:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 172.00 Внесено: 172.00 СДАЧА: 0.00 НСП 1% : 1.53 НДС 12% : 18.33 Наличными: 172.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 277 19.06.2024 23:09 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111528 ФПД: 274119122306097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T230943&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111528&fm=274119122306097&tin=02508201610067®Number=0000000000092771&sum=17200 [23:09:29]StoreToDocumentArchive [23:09:29]shift 388 fd 111528 [23:09:29]save to /storage/0388/doc_00111528 [23:09:29]save last doc name /storage/0388/doc_00111528 to /storage/kkm_last_doc_name [23:09:29]save OK [23:09:29]Clear old archive folders... [23:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:09:29]tlvbuf is 00F30180 [23:09:29]SAM_PROTO_ClearQueue [23:09:29]wFMCommunicate request_size=4 [23:09:29]MH_SAM_APDU [23:09:29]CAPDU: 80 09 00 00 [23:09:29]Write to MH i2c: E2 08 00 05 3B 80 09 00 00 00 00 00 00 B2 [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:09:29]Read from MH i2c: E2 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 03 00 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 03 00 05 3B 00 90 00 B4 [23:09:29]RAPDU: 90 00 [23:09:29]wFMCommunicate OK [23:09:29]SAM_PROTO_ClearQueue done [23:09:29]KKMCreateOFDPacket [23:09:29]OFDProtocolAddRootSTLVToBuf [23:09:29]FM_MakeSignedData [23:09:29]FM_MakeSignedData [23:09:29]SAM_PROTO_SignData [23:09:29]wFMCommunicate request_size=4 [23:09:29]MH_SAM_APDU [23:09:29]CAPDU: 80 0D 01 02 [23:09:29]Write to MH i2c: E2 08 00 06 3B 80 0D 01 02 00 00 00 00 BA [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 [23:09:29]MH_I2C_Read... [23:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:09:29]Read from MH i2c: E2 03 00 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 03 00 06 3B 00 90 00 B5 [23:09:29]RAPDU: 90 00 [23:09:29]wFMCommunicate OK [23:09:29]wFMCommunicate request_size=255 [23:09:29]MH_SAM_APDU [23:09: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 28 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 30 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 37 65 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B3 01 00 35 04 06 00 F9 [23:09:29]Write to MH i2c: E2 02 01 07 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 28 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 30 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 37 65 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B3 01 00 35 04 06 00 F9 00 00 C6 [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:29]Read from MH i2c: E2 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 03 00 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 03 00 07 3B 00 90 00 B6 [23:09:29]RAPDU: 90 00 [23:09:29]wFMCommunicate OK [23:09:29]wFMCommunicate request_size=10 [23:09:29]MH_SAM_APDU [23:09:29]CAPDU: 80 0D 02 02 05 4F 54 E9 44 31 [23:09:29]Write to MH i2c: E2 0D 00 08 3B 80 0D 02 02 05 00 4F 54 E9 44 31 00 00 C8 [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:09:29]Read from MH i2c: E2 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 03 00 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 03 00 08 3B 00 90 00 B7 [23:09:29]RAPDU: 90 00 [23:09:29]wFMCommunicate OK [23:09:29]wFMCommunicate request_size=4 [23:09:29]MH_SAM_APDU [23:09:29]CAPDU: 80 0D 03 02 [23:09:29]Write to MH i2c: E2 08 00 09 3B 80 0D 03 02 00 00 00 00 BF [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:09:29]Read from MH i2c: E2 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 0B 00 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 0B 00 09 3B 00 8E 70 17 55 AC D4 9A B2 90 00 F6 [23:09:29]RAPDU: 8E 70 17 55 AC D4 9A B2 90 00 [23:09:29]wFMCommunicate OK [23:09:29]SAM_PROTO_SignData done [23:09:29]FM_MakeSignedData done [23:09:29]CreateOFDProtocolMessage [23:09:29]wFMCommunicate request_size=4 [23:09:29]MH_SAM_APDU [23:09:29]CAPDU: 80 11 00 00 [23:09:29]Write to MH i2c: E2 08 00 0A 3B 80 11 00 00 00 00 00 00 BF [23:09:29]Write i2c OK [23:09:29]MH_I2C_Read... [23:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:29]Read from MH i2c: E2 [23:09:29]MH_I2C_Read... [23:09:29]Read from MH i2c: E2 17 00 [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: E2 17 00 0A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 11 [23:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:09:30]wFMCommunicate OK [23:09:30]CreateOFDProtocolMessage done [23:09:30]OFDSenderStorePacket 111528 [23:09:30]StoreOFDPacket docnum=111528 [23:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 94 87 07 01 FD 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 28 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 30 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 37 65 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B3 01 00 35 04 06 00 F9 4F 54 E9 44 31 8E 70 17 55 AC D4 9A B2 [23:09:30]CheckFolder [23:09:30]dirname=/storage/ofd_packets [23:09:30]CheckFolder done [23:09:30]ProducePacketName [23:09:30]name=ofd_packets/00111528 [23:09:30]NVStorageSaveData ofd_packets/00111528 [23:09:30]File name is /storage/ofd_packets/00111528 [23:09:30]Write 301 bytes [23:09:30]NVStorageSaveData done [23:09:30]OFDSenderStorePacket done [23:09:30]KKMCreateOFDPacket done [23:09:30]NVStorageSaveData kkm_last_timestamp [23:09:30]File name is /storage/kkm_last_timestamp [23:09:30]Write 4 bytes [23:09:30]NVStorageSaveData done [23:09:30]ExternCall_PrintAddStr [23:09:30]wPrintStart [23:09:30]Write to MH i2c: 01 00 00 0B 3B 46 [23:09:30]Write i2c OK [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: 01 [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: 01 07 00 [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: 01 07 00 0B 3B 00 00 00 00 00 FF 0F 5B [23:09:30]RasterBufferAndPrint [23:09:30]line Счет N : (1)320122 [23:09:30]line ИНН: 02508201610067 [23:09:30]line Контрольно-Кассовый Чек [23:09:30]line ПРОДАЖА [23:09:30]line ТРК (МРК, ГНК) : 11 [23:09:30]line Товар: 2710124130 [23:09:30]line Аи-92-К-5 [23:09:30]line 2.600 * 66.40 [23:09:30]line = 172.64 [23:09:30]line НДС 12% НСП 1% [23:09:30]line > о реализуемом товаре [23:09:30]line ОКРУГЛЕНИЕ: -0.64 [23:09:30]line ИТОГО: 172.00 [23:09:30]line Внесено: 172.00 [23:09:30]line СДАЧА: 0.00 [23:09:30]line НСП 1% : 1.53 [23:09:30]line НДС 12% : 18.33 [23:09:30]line Наличными: 172.00 [23:09:30]line Безнал.: 0.00 [23:09:30]line Место: АЗС № 65 "Партнер Нефть" [23:09:30]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:09:30]line СНО: Общий режим [23:09:30]line Чек 277 19.06.2024 23:09 [23:09:30]line Смена: 388 ФФД: 1.0 [23:09:30]line ЗНМ: 0300000198 [23:09:30]line РНМ: 0000000000092771 [23:09:30]line Версия ККМ: 001 [23:09:30]line ФМ: 0000000000875083 [23:09:30]line ФД: 111528 [23:09:30]line ФПД: 274119122306097 [23:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T230943&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111528&fm=274119122306097&tin=02508201610067®Number=0000000000092771&sum=17200 [23:09:30]written 0, free lines is 4095 [23:09:30]OFD Sender: Processing packet 111528 [packets to send 38, broken 37] [23:09:30]ProducePacketName [23:09:30]name=ofd_packets/00111528 [23:09:30]OFD Sender: To server: pG, [23:09:30]CommunicateWithHost lk.salyk.kg:30040 [23:09:30]ConnectInit lk.salyk.kg [23:09:30]Connected sock=9 [23:09:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 94 87 07 01 FD 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 28 0A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 70 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 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 30 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 37 65 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B3 01 00 35 04 06 00 F9 4F 54 E9 44 31 8E 70 17 55 AC D4 9A B2 [23:09:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B2 32 47 00 DA FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A8 B3 01 00 F4 03 04 00 93 FC 72 66 B6 04 01 00 00 BE 32 E3 FB A3 F1 42 AA [23:09:30]CommunicateWithHost err = 0 [23:09:30]CheckOFDResponse [23:09:30]1017 (14) - 77093643461234 [23:09:30]1041 (16) - 0000000000875083 [23:09:30]1040 (4) - 111528 [23:09:30]1012 (4) - 19.06.2024 15:43 [23:09:30]1206 (1) - 0 [23:09:30]OFD Sender: Remove packet 111528 [23:09:30]ProducePacketName [23:09:30]name=ofd_packets/00111528 [23:09:30]NVStorageDeleteData [23:09:30]Write to MH i2c: 01 00 00 36 3B 71 [23:09:30]Write i2c OK [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: 01 [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: 01 07 00 [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: 01 07 00 36 3B 00 00 00 00 00 DD 0C 61 [23:09:30]RasterBufferAndPrint [23:09:30]line [23:09:30]line [23:09:30]line [23:09:30]line [23:09:30]line [23:09:30]written 0, free lines is 3300 [23:09:30]MH_Cut [23:09:30]Write to MH i2c: D1 01 00 3D 3B 01 4A [23:09:30]Write i2c OK [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: D1 [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: D1 01 00 [23:09:30]MH_I2C_Read... [23:09:30]Read from MH i2c: D1 01 00 3D 3B 00 49 [23:09:30]Write to MH i2c: 01 00 00 3E 3B 79 [23:09:30]Write i2c OK [23:09:30]MH_I2C_Read... [23:09:30]OFD Sender: No OFD packet to send [23:09:31]*** Cut start [23:09:31]*** Partial cut [23:09:31]*** CUTSNS_PIN = 1 [23:09:31]*** CUTSNS_PIN = 0 [23:09:31]*** Brake cut motor [23:09:31]Read from MH i2c: 01 [23:09:31]MH_I2C_Read... [23:09:31]*** Stop cut motor [23:09:31]*** Cut end [23:09:31]Read from MH i2c: 01 07 00 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: 01 07 00 3E 3B 00 00 00 00 00 FF 0F 8E [23:09:31]process_action close_receipt done [23:09:31]requested_data is exist [23:09:31]produce_requested_data [23:09:31]requested_item fm.sn is exist - process it [23:09:31]wFMCommunicate request_size=4 [23:09:31]MH_SAM_APDU [23:09:31]CAPDU: 80 11 00 00 [23:09:31]Write to MH i2c: E2 08 00 3F 3B 80 11 00 00 00 00 00 00 F4 [23:09:31]Write i2c OK [23:09:31]MH_I2C_Read... [23:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:09:31]Read from MH i2c: E2 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: E2 17 00 [23:09:31]MH_I2C_Read... [23:09:31]Read from MH i2c: E2 17 00 3F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 46 [23:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:09:31]wFMCommunicate OK [23:09:31]requested_item fd.num is exist - process it [23:09:31]SAM_PROTO_GetFieldsCounters [23:09:31]wFMCommunicate request_size=4 [23:09:31]MH_SAM_APDU [23:09:31]CAPDU: 80 13 00 00 [23:09:31]Write to MH i2c: E2 08 00 40 3B 80 13 00 00 00 00 00 00 F7 [23:09:31]Write i2c OK [23:09:31]MH_I2C_Read... [23:09:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:09:32]Read from MH i2c: E2 [23:09:32]MH_I2C_Read... [23:09:32]Read from MH i2c: E2 62 00 [23:09:32]MH_I2C_Read... [23:09:32]Read from MH i2c: E2 62 00 40 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B3 01 00 0E 04 04 00 84 01 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 3B [23:09: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B3 01 00 0E 04 04 00 84 01 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 [23:09:32]wFMCommunicate OK [23:09:32]SAM_PROTO_GetFieldsCounters done [23:09:32]requested_item shift.num is exist - process it [23:09:32]requested_item shift.opened is exist - process it [23:09:32]req_shift_opened [23:09:32]FM_GetShiftState [23:09:32]SAM_PROTO_GetShiftState [23:09:32]wFMCommunicate request_size=4 [23:09:32]MH_SAM_APDU [23:09:32]CAPDU: 80 13 01 00 [23:09:32]Write to MH i2c: E2 08 00 41 3B 80 13 01 00 00 00 00 00 F9 [23:09:32]Write i2c OK [23:09:32]MH_I2C_Read... [23:09:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:09:32]Read from MH i2c: E2 [23:09:32]MH_I2C_Read... [23:09:32]Read from MH i2c: E2 0E 00 [23:09:32]MH_I2C_Read... [23:09:32]Read from MH i2c: E2 0E 00 41 3B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 43 [23:09:32]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:09:32]wFMCommunicate OK [23:09:32]SAM_PROTO_GetShiftState done [23:09:32]FM_GetShiftState done [23:09:32]req_shift_opened done [23:09:32]requested_item shift.open_date is exist - process it [23:09:32]req_shift_open_date [23:09:32]req_shift_open_date done [23:09:32]produce_requested_data done [23:09:32]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111528,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:09:32]process_action_free close_receipt [23:09:32]json_value_free [23:09:32]json_value_free done [23:09:32]process_json_proto returns [23:09:32]Send response to host [23:09:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111528,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:09:32]free response buf [23:09:32]execute_script done [23:09:32]execute_script returns [23:09:32]free content buf [23:09:32]Sock 10.Close socket [23:09:32]Sock 10.Thread stoped [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:21]accept exits with 7 [23:15:21]New connection [23:15:21]New thread 3067465060 created [23:15:21]Thread 3067321700 joined [23:15:21]Waiting for new connection... [23:15:21] Sock 7.Parse request [23:15:21]Sock 7.Check first char [23:15:21]Sock 7.First char is OK [23:15:21]request: POST /json_proto HTTP/1.0 [23:15:21]Method: POST [23:15:21]URL: /json_proto [23:15:21]Method is POST - this is cgi request [23:15:21]url: /json_proto [23:15:21]query_string will be loaded in cgi processing [23:15:21]execute_cgi json_proto POST (null) [23:15:21]execute_cgi path=json_proto method=POST [23:15:21]POST find Content-Length [23:15:21]Host: 172.17.59.68:8080 [23:15:21]Content-Length: 1195 [23:15:21]Content-Type: application/json [23:15:21] [23:15:21]POST finish read [23:15:21]Found Content-Length = 1195 [23:15:21]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320123\u000A19.06.2024 21:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\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" ] } } [23:15:21]execute_script... [23:15:21]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320123\u000A19.06.2024 21:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 11.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 730.40\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" ] } } [23:15:21]POST & json_proto [23:15:21]process_json_proto [23:15:21]json parsed OK: [23:15:21]protocol is kg_v1.0 [23:15:21]action value=print_text [23:15:21]process_action print_text [23:15:21]cmd_print_text [23:15:21]ExternCall_PrintAddStr [23:15:21]wPrintStart [23:15:21]Write to MH i2c: 01 00 00 42 3B 7D [23:15:21]Write i2c OK [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 07 00 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 07 00 42 3B 00 00 00 00 00 FF 0F 92 [23:15:21]RasterBufferAndPrint [23:15:21]line *****ТОВАРНЫЙ ЧЕК***** [23:15:21]line АЗС 65 [23:15:21]line Партнер нефть [23:15:21]line 02508201610067 [23:15:21]line Кассир : Амантуров Р. [23:15:21]line Счет N : (1)320123 [23:15:21]line 19.06.2024 21:43 [23:15:21]line ПРОДАЖА [23:15:21]line ТРК (МРК, ГНК): 11 [23:15:21]line Вид ГСМ : 2710124130 [23:15:21]line Аи-92-К-5 [23:15:21]line 11.000 x 66.40 [23:15:21]line ИТОГ: 730.40 [23:15:21]line Тип оплаты: Технологический отпуск: [23:15:21]line ______________________ [23:15:21]line (подпись) [23:15:21]written 0, free lines is 4095 [23:15:21]Write to MH i2c: 01 00 00 55 3B 90 [23:15:21]Write i2c OK [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 07 00 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: 01 07 00 55 3B 00 00 00 00 00 28 0E CD [23:15:21]RasterBufferAndPrint [23:15:21]line [23:15:21]line [23:15:21]line [23:15:21]line [23:15:21]line [23:15:21]written 0, free lines is 3626 [23:15:21]MH_Cut [23:15:21]Write to MH i2c: D1 01 00 5C 3B 01 69 [23:15:21]Write i2c OK [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: D1 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: D1 01 00 [23:15:21]MH_I2C_Read... [23:15:21]Read from MH i2c: D1 01 00 5C 3B 00 68 [23:15:21]Write to MH i2c: 01 00 00 5D 3B 98 [23:15:21]Write i2c OK [23:15:21]MH_I2C_Read... [23:15:22]*** Cut start [23:15:22]*** Partial cut [23:15:22]*** CUTSNS_PIN = 1 [23:15:22]*** CUTSNS_PIN = 0 [23:15:22]*** Brake cut motor [23:15:22]Read from MH i2c: 01 [23:15:22]MH_I2C_Read... [23:15:22]*** Stop cut motor [23:15:22]*** Cut end [23:15:22]Read from MH i2c: 01 07 00 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: 01 07 00 5D 3B 00 00 00 00 00 FF 0F AD [23:15:22]process_action print_text done [23:15:22]requested_data is exist [23:15:22]produce_requested_data [23:15:22]requested_item fm.sn is exist - process it [23:15:22]wFMCommunicate request_size=4 [23:15:22]MH_SAM_APDU [23:15:22]CAPDU: 80 11 00 00 [23:15:22]Write to MH i2c: E2 08 00 5E 3B 80 11 00 00 00 00 00 00 13 [23:15:22]Write i2c OK [23:15:22]MH_I2C_Read... [23:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:22]Read from MH i2c: E2 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: E2 17 00 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: E2 17 00 5E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [23:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:15:22]wFMCommunicate OK [23:15:22]requested_item fd.num is exist - process it [23:15:22]SAM_PROTO_GetFieldsCounters [23:15:22]wFMCommunicate request_size=4 [23:15:22]MH_SAM_APDU [23:15:22]CAPDU: 80 13 00 00 [23:15:22]Write to MH i2c: E2 08 00 5F 3B 80 13 00 00 00 00 00 00 16 [23:15:22]Write i2c OK [23:15:22]MH_I2C_Read... [23:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:22]Read from MH i2c: E2 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: E2 62 00 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: E2 62 00 5F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B3 01 00 0E 04 04 00 84 01 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 5A [23:15: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A8 B3 01 00 0E 04 04 00 84 01 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 [23:15:22]wFMCommunicate OK [23:15:22]SAM_PROTO_GetFieldsCounters done [23:15:22]requested_item shift.num is exist - process it [23:15:22]requested_item shift.opened is exist - process it [23:15:22]req_shift_opened [23:15:22]FM_GetShiftState [23:15:22]SAM_PROTO_GetShiftState [23:15:22]wFMCommunicate request_size=4 [23:15:22]MH_SAM_APDU [23:15:22]CAPDU: 80 13 01 00 [23:15:22]Write to MH i2c: E2 08 00 60 3B 80 13 01 00 00 00 00 00 18 [23:15:22]Write i2c OK [23:15:22]MH_I2C_Read... [23:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:22]Read from MH i2c: E2 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: E2 0E 00 [23:15:22]MH_I2C_Read... [23:15:22]Read from MH i2c: E2 0E 00 60 3B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 62 [23:15:22]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:15:22]wFMCommunicate OK [23:15:22]SAM_PROTO_GetShiftState done [23:15:22]FM_GetShiftState done [23:15:22]req_shift_opened done [23:15:22]requested_item shift.open_date is exist - process it [23:15:22]req_shift_open_date [23:15:22]req_shift_open_date done [23:15:22]produce_requested_data done [23:15:22]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111528,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:15:22]process_action_free print_text [23:15:22]json_value_free [23:15:22]json_value_free done [23:15:22]process_json_proto returns [23:15:22]Send response to host [23:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111528,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:15:22]free response buf [23:15:22]execute_script done [23:15:22]execute_script returns [23:15:22]free content buf [23:15:22]Sock 7.Close socket [23:15:22]Sock 7.Thread stoped [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:50]accept exits with 9 [23:19:50]New connection [23:19:50]New thread 3067321700 created [23:19:50]Thread 3067465060 joined [23:19:50]Waiting for new connection... [23:19:50] Sock 9.Parse request [23:19:50]Sock 9.Check first char [23:19:50]Sock 9.First char is OK [23:19:50]request: POST /json_proto HTTP/1.0 [23:19:50]Method: POST [23:19:50]URL: /json_proto [23:19:50]Method is POST - this is cgi request [23:19:50]url: /json_proto [23:19:50]query_string will be loaded in cgi processing [23:19:50]execute_cgi json_proto POST (null) [23:19:50]execute_cgi path=json_proto method=POST [23:19:50]POST find Content-Length [23:19:50]Host: 172.17.59.68:8080 [23:19:50]Content-Length: 682 [23:19:50]Content-Type: application/json [23:19:50] [23:19:50]POST finish read [23:19:50]Found Content-Length = 682 [23:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:50]execute_script... [23:19: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)320124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:50]POST & json_proto [23:19:50]process_json_proto [23:19:50]json parsed OK: [23:19:50]protocol is kg_v1.0 [23:19:50]action value=close_receipt [23:19:50]process_action close_receipt [23:19:50]cmd_close_receipt [23:19:50]MH_GetDate [23:19:50]Write to MH i2c: F0 00 00 61 3B 8B [23:19:50]Write i2c OK [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: F0 [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: F0 09 00 [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: F0 09 00 61 3B 00 A5 67 73 66 BC EC 60 65 E6 [23:19:50]GetLastDocTimeStamp 1718838583 [23:19:50]current date 1718839205 [23:19:50]FM_GetShiftState [23:19:50]SAM_PROTO_GetShiftState [23:19:50]wFMCommunicate request_size=4 [23:19:50]MH_SAM_APDU [23:19:50]CAPDU: 80 13 01 00 [23:19:50]Write to MH i2c: E2 08 00 62 3B 80 13 01 00 00 00 00 00 1A [23:19:50]Write i2c OK [23:19:50]MH_I2C_Read... [23:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:50]Read from MH i2c: E2 [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: E2 0E 00 [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: E2 0E 00 62 3B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 64 [23:19:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:19:50]wFMCommunicate OK [23:19:50]SAM_PROTO_GetShiftState done [23:19:50]FM_GetShiftState done [23:19:50]opened in 1718760753 [23:19:50]opened+sec_in_day 1718847153 [23:19:50]quantity*price = 100064 [23:19:50]sum+1 = 100066 [23:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 278 19.06.2024 23:20 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111529 ФПД: 95636038376807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T232005&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111529&fm=95636038376807&tin=02508201610067®Number=0000000000092771&sum=100000 [23:19:51]StoreToDocumentArchive [23:19:51]shift 388 fd 111529 [23:19:51]save to /storage/0388/doc_00111529 [23:19:51]save last doc name /storage/0388/doc_00111529 to /storage/kkm_last_doc_name [23:19:51]save OK [23:19:51]Clear old archive folders... [23:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:51]tlvbuf is 00F007B0 [23:19:51]SAM_PROTO_ClearQueue [23:19:51]wFMCommunicate request_size=4 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 09 00 00 [23:19:51]Write to MH i2c: E2 08 00 6F 3B 80 09 00 00 00 00 00 00 1C [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 6F 3B 00 90 00 1E [23:19:51]RAPDU: 90 00 [23:19:51]wFMCommunicate OK [23:19:51]SAM_PROTO_ClearQueue done [23:19:51]KKMCreateOFDPacket [23:19:51]OFDProtocolAddRootSTLVToBuf [23:19:51]FM_MakeSignedData [23:19:51]FM_MakeSignedData [23:19:51]SAM_PROTO_SignData [23:19:51]wFMCommunicate request_size=4 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 0D 01 02 [23:19:51]Write to MH i2c: E2 08 00 70 3B 80 0D 01 02 00 00 00 00 24 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 70 3B 00 90 00 1F [23:19:51]RAPDU: 90 00 [23:19:51]wFMCommunicate OK [23:19:51]wFMCommunicate request_size=255 [23:19:51]MH_SAM_APDU [23:19: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 A5 67 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B3 01 00 35 04 06 00 56 [23:19:51]Write to MH i2c: E2 02 01 71 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 A5 67 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B3 01 00 35 04 06 00 56 00 00 5C [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 71 3B 00 90 00 20 [23:19:51]RAPDU: 90 00 [23:19:51]wFMCommunicate OK [23:19:51]wFMCommunicate request_size=10 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 0D 02 02 05 FB 00 18 5D 67 [23:19:51]Write to MH i2c: E2 0D 00 72 3B 80 0D 02 02 05 00 FB 00 18 5D 67 00 00 08 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 72 3B 00 90 00 21 [23:19:51]RAPDU: 90 00 [23:19:51]wFMCommunicate OK [23:19:51]wFMCommunicate request_size=4 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 0D 03 02 [23:19:51]Write to MH i2c: E2 08 00 73 3B 80 0D 03 02 00 00 00 00 29 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 0B 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 0B 00 73 3B 00 C0 E7 83 47 96 F7 D3 39 90 00 34 [23:19:51]RAPDU: C0 E7 83 47 96 F7 D3 39 90 00 [23:19:51]wFMCommunicate OK [23:19:51]SAM_PROTO_SignData done [23:19:51]FM_MakeSignedData done [23:19:51]CreateOFDProtocolMessage [23:19:51]wFMCommunicate request_size=4 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 11 00 00 [23:19:51]Write to MH i2c: E2 08 00 74 3B 80 11 00 00 00 00 00 00 29 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 17 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 17 00 74 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7B [23:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:19:51]wFMCommunicate OK [23:19:51]CreateOFDProtocolMessage done [23:19:51]OFDSenderStorePacket 111529 [23:19:51]StoreOFDPacket docnum=111529 [23:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 AA 07 01 76 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 A5 67 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B3 01 00 35 04 06 00 56 FB 00 18 5D 67 C0 E7 83 47 96 F7 D3 39 [23:19:51]CheckFolder [23:19:51]dirname=/storage/ofd_packets [23:19:51]CheckFolder done [23:19:51]ProducePacketName [23:19:51]name=ofd_packets/00111529 [23:19:51]NVStorageSaveData ofd_packets/00111529 [23:19:51]File name is /storage/ofd_packets/00111529 [23:19:51]Write 301 bytes [23:19:51]NVStorageSaveData done [23:19:51]OFDSenderStorePacket done [23:19:51]KKMCreateOFDPacket done [23:19:51]NVStorageSaveData kkm_last_timestamp [23:19:51]File name is /storage/kkm_last_timestamp [23:19:51]Write 4 bytes [23:19:51]NVStorageSaveData done [23:19:51]ExternCall_PrintAddStr [23:19:51]wPrintStart [23:19:51]Write to MH i2c: 01 00 00 75 3B B0 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: 01 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: 01 07 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: 01 07 00 75 3B 00 00 00 00 00 FF 0F C5 [23:19:51]RasterBufferAndPrint [23:19:51]line Счет N : (1)320124 [23:19:51]line ИНН: 02508201610067 [23:19:51]line Контрольно-Кассовый Чек [23:19:51]line ПРОДАЖА [23:19:51]line ТРК (МРК, ГНК) : 11 [23:19:51]line Товар: 2710124130 [23:19:51]line Аи-92-К-5 [23:19:51]line 15.070 * 66.40 [23:19:51]line = 1000.65 [23:19:51]line НДС 12% НСП 1% [23:19:51]line > о реализуемом товаре [23:19:51]line ОКРУГЛЕНИЕ: -0.65 [23:19:51]line ИТОГО: 1000.00 [23:19:51]line Внесено: 1000.00 [23:19:51]line СДАЧА: 0.00 [23:19:51]line НСП 1% : 8.85 [23:19:51]line НДС 12% : 106.26 [23:19:51]line Наличными: 1000.00 [23:19:51]line Безнал.: 0.00 [23:19:51]line Место: АЗС № 65 "Партнер Нефть" [23:19:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:19:51]line СНО: Общий режим [23:19:51]line Чек 278 19.06.2024 23:20 [23:19:51]line Смена: 388 ФФД: 1.0 [23:19:51]line ЗНМ: 0300000198 [23:19:51]line РНМ: 0000000000092771 [23:19:51]line Версия ККМ: 001 [23:19:51]line ФМ: 0000000000875083 [23:19:51]line ФД: 111529 [23:19:51]line ФПД: 95636038376807 [23:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T232005&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111529&fm=95636038376807&tin=02508201610067®Number=0000000000092771&sum=100000 [23:19:52]OFD Sender: Processing packet 111529 [packets to send 38, broken 37] [23:19:52]ProducePacketName [23:19:52]name=ofd_packets/00111529 [23:19:52]OFD Sender: To server: pG, [23:19:52]CommunicateWithHost lk.salyk.kg:30040 [23:19:52]ConnectInit lk.salyk.kg [23:19:52]written 0, free lines is 4095 [23:19:52]Connected sock=10 [23:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 86 AA 07 01 76 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 A5 67 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B3 01 00 35 04 06 00 56 FB 00 18 5D 67 C0 E7 83 47 96 F7 D3 39 [23:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EB DC 47 00 00 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 A9 B3 01 00 F4 03 04 00 01 FF 72 66 B6 04 01 00 00 5A 1C 7C A8 07 1E 9D 1C [23:19:52]CommunicateWithHost err = 0 [23:19:52]CheckOFDResponse [23:19:52]1017 (14) - 77093643461234 [23:19:52]1041 (16) - 0000000000875083 [23:19:52]1040 (4) - 111529 [23:19:52]1012 (4) - 19.06.2024 15:53 [23:19:52]1206 (1) - 0 [23:19:52]OFD Sender: Remove packet 111529 [23:19:52]ProducePacketName [23:19:52]name=ofd_packets/00111529 [23:19:52]NVStorageDeleteData [23:19:52]Write to MH i2c: 01 00 00 A0 3B DB [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 A0 3B 00 00 00 00 00 D2 0C C0 [23:19:52]RasterBufferAndPrint [23:19:52]line [23:19:52]line [23:19:52]line [23:19:52]line [23:19:52]line [23:19:52]written 0, free lines is 3288 [23:19:52]MH_Cut [23:19:52]Write to MH i2c: D1 01 00 A7 3B 01 B4 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: D1 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: D1 01 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: D1 01 00 A7 3B 00 B3 [23:19:52]Write to MH i2c: 01 00 00 A8 3B E3 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:53]OFD Sender: No OFD packet to send [23:19:53]*** Cut start [23:19:53]*** Partial cut [23:19:53]*** CUTSNS_PIN = 1 [23:19:53]*** CUTSNS_PIN = 0 [23:19:53]*** Brake cut motor [23:19:54]Read from MH i2c: 01 [23:19:54]MH_I2C_Read... [23:19:54]*** Stop cut motor [23:19:54]*** Cut end [23:19:54]Read from MH i2c: 01 07 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: 01 07 00 A8 3B 00 00 00 00 00 FF 0F F8 [23:19:54]process_action close_receipt done [23:19:54]requested_data is exist [23:19:54]produce_requested_data [23:19:54]requested_item fm.sn is exist - process it [23:19:54]wFMCommunicate request_size=4 [23:19:54]MH_SAM_APDU [23:19:54]CAPDU: 80 11 00 00 [23:19:54]Write to MH i2c: E2 08 00 A9 3B 80 11 00 00 00 00 00 00 5E [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:54]Read from MH i2c: E2 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 17 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 17 00 A9 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [23:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:19:54]wFMCommunicate OK [23:19:54]requested_item fd.num is exist - process it [23:19:54]SAM_PROTO_GetFieldsCounters [23:19:54]wFMCommunicate request_size=4 [23:19:54]MH_SAM_APDU [23:19:54]CAPDU: 80 13 00 00 [23:19:54]Write to MH i2c: E2 08 00 AA 3B 80 13 00 00 00 00 00 00 61 [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:54]Read from MH i2c: E2 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 62 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 62 00 AA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B3 01 00 0E 04 04 00 84 01 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 A9 [23:19: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 A9 B3 01 00 0E 04 04 00 84 01 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 [23:19:54]wFMCommunicate OK [23:19:54]SAM_PROTO_GetFieldsCounters done [23:19:54]requested_item shift.num is exist - process it [23:19:54]requested_item shift.opened is exist - process it [23:19:54]req_shift_opened [23:19:54]FM_GetShiftState [23:19:54]SAM_PROTO_GetShiftState [23:19:54]wFMCommunicate request_size=4 [23:19:54]MH_SAM_APDU [23:19:54]CAPDU: 80 13 01 00 [23:19:54]Write to MH i2c: E2 08 00 AB 3B 80 13 01 00 00 00 00 00 63 [23:19:54]Write i2c OK [23:19:54]MH_I2C_Read... [23:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:54]Read from MH i2c: E2 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 0E 00 [23:19:54]MH_I2C_Read... [23:19:54]Read from MH i2c: E2 0E 00 AB 3B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AD [23:19:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:19:54]wFMCommunicate OK [23:19:54]SAM_PROTO_GetShiftState done [23:19:54]FM_GetShiftState done [23:19:54]req_shift_opened done [23:19:54]requested_item shift.open_date is exist - process it [23:19:54]req_shift_open_date [23:19:54]req_shift_open_date done [23:19:54]produce_requested_data done [23:19:54]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111529,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:19:54]process_action_free close_receipt [23:19:54]json_value_free [23:19:54]json_value_free done [23:19:54]process_json_proto returns [23:19:54]Send response to host [23:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111529,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:19:54]free response buf [23:19:54]execute_script done [23:19:54]execute_script returns [23:19:54]free content buf [23:19:54]Sock 9.Close socket [23:19:54]Sock 9.Thread stoped [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:15]accept exits with 7 [23:21:15]New connection [23:21:15]New thread 3067465060 created [23:21:15]Thread 3067321700 joined [23:21:15]Waiting for new connection... [23:21:15] Sock 7.Parse request [23:21:15]Sock 7.Check first char [23:21:15]Sock 7.First char is OK [23:21:15]request: POST /json_proto HTTP/1.0 [23:21:15]Method: POST [23:21:15]URL: /json_proto [23:21:15]Method is POST - this is cgi request [23:21:15]url: /json_proto [23:21:15]query_string will be loaded in cgi processing [23:21:15]execute_cgi json_proto POST (null) [23:21:15]execute_cgi path=json_proto method=POST [23:21:15]POST find Content-Length [23:21:15]Host: 172.17.59.68:8080 [23:21:15]Content-Length: 677 [23:21:15]Content-Type: application/json [23:21:15] [23:21:15]POST finish read [23:21:15]Found Content-Length = 677 [23:21:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.290, "sum" : 550.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:15]execute_script... [23:21: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)320125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 8.290, "sum" : 550.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:15]POST & json_proto [23:21:15]process_json_proto [23:21:15]json parsed OK: [23:21:15]protocol is kg_v1.0 [23:21:15]action value=close_receipt [23:21:15]process_action close_receipt [23:21:15]cmd_close_receipt [23:21:15]MH_GetDate [23:21:15]Write to MH i2c: F0 00 00 AC 3B D6 [23:21:15]Write i2c OK [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: F0 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: F0 09 00 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: F0 09 00 AC 3B 00 FB 67 73 66 BC EC 60 65 87 [23:21:15]GetLastDocTimeStamp 1718839205 [23:21:15]current date 1718839291 [23:21:15]FM_GetShiftState [23:21:15]SAM_PROTO_GetShiftState [23:21:15]wFMCommunicate request_size=4 [23:21:15]MH_SAM_APDU [23:21:15]CAPDU: 80 13 01 00 [23:21:15]Write to MH i2c: E2 08 00 AD 3B 80 13 01 00 00 00 00 00 65 [23:21:15]Write i2c OK [23:21:15]MH_I2C_Read... [23:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:15]Read from MH i2c: E2 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: E2 0E 00 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: E2 0E 00 AD 3B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AF [23:21:15]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:21:15]wFMCommunicate OK [23:21:15]SAM_PROTO_GetShiftState done [23:21:15]FM_GetShiftState done [23:21:15]opened in 1718760753 [23:21:15]opened+sec_in_day 1718847153 [23:21:15]quantity*price = 55045 [23:21:15]sum+1 = 55047 [23:21:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.46 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 279 19.06.2024 23:21 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111530 ФПД: 64545312688527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T232131&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111530&fm=64545312688527&tin=02508201610067®Number=0000000000092771&sum=55000 [23:21:17]StoreToDocumentArchive [23:21:17]shift 388 fd 111530 [23:21:17]save to /storage/0388/doc_00111530 [23:21:17]save last doc name /storage/0388/doc_00111530 to /storage/kkm_last_doc_name [23:21:17]save OK [23:21:17]Clear old archive folders... [23:21:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:21:17]tlvbuf is 00F1EAA0 [23:21:17]SAM_PROTO_ClearQueue [23:21:17]wFMCommunicate request_size=4 [23:21:17]MH_SAM_APDU [23:21:17]CAPDU: 80 09 00 00 [23:21:17]Write to MH i2c: E2 08 00 BA 3B 80 09 00 00 00 00 00 00 67 [23:21:17]Write i2c OK [23:21:17]MH_I2C_Read... [23:21:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:17]Read from MH i2c: E2 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 03 00 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 03 00 BA 3B 00 90 00 69 [23:21:17]RAPDU: 90 00 [23:21:17]wFMCommunicate OK [23:21:17]SAM_PROTO_ClearQueue done [23:21:17]KKMCreateOFDPacket [23:21:17]OFDProtocolAddRootSTLVToBuf [23:21:17]FM_MakeSignedData [23:21:17]FM_MakeSignedData [23:21:17]SAM_PROTO_SignData [23:21:17]wFMCommunicate request_size=4 [23:21:17]MH_SAM_APDU [23:21:17]CAPDU: 80 0D 01 02 [23:21:17]Write to MH i2c: E2 08 00 BB 3B 80 0D 01 02 00 00 00 00 6F [23:21:17]Write i2c OK [23:21:17]MH_I2C_Read... [23:21:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:17]Read from MH i2c: E2 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 03 00 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 03 00 BB 3B 00 90 00 6A [23:21:17]RAPDU: 90 00 [23:21:17]wFMCommunicate OK [23:21:17]wFMCommunicate request_size=255 [23:21:17]MH_SAM_APDU [23:21: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 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FB 67 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B3 01 00 35 04 06 00 3A [23:21:17]Write to MH i2c: E2 02 01 BC 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 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FB 67 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B3 01 00 35 04 06 00 3A 00 00 81 [23:21:17]Write i2c OK [23:21:17]MH_I2C_Read... [23:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:17]Read from MH i2c: E2 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 03 00 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 03 00 BC 3B 00 90 00 6B [23:21:17]RAPDU: 90 00 [23:21:17]wFMCommunicate OK [23:21:17]wFMCommunicate request_size=10 [23:21:17]MH_SAM_APDU [23:21:17]CAPDU: 80 0D 02 02 05 B4 20 6F 49 8F [23:21:17]Write to MH i2c: E2 0D 00 BD 3B 80 0D 02 02 05 00 B4 20 6F 49 8F 00 00 97 [23:21:17]Write i2c OK [23:21:17]MH_I2C_Read... [23:21:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:17]Read from MH i2c: E2 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 03 00 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 03 00 BD 3B 00 90 00 6C [23:21:17]RAPDU: 90 00 [23:21:17]wFMCommunicate OK [23:21:17]wFMCommunicate request_size=4 [23:21:17]MH_SAM_APDU [23:21:17]CAPDU: 80 0D 03 02 [23:21:17]Write to MH i2c: E2 08 00 BE 3B 80 0D 03 02 00 00 00 00 74 [23:21:17]Write i2c OK [23:21:17]MH_I2C_Read... [23:21:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:17]Read from MH i2c: E2 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 0B 00 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 0B 00 BE 3B 00 09 02 03 C1 AF F8 31 F5 90 00 11 [23:21:17]RAPDU: 09 02 03 C1 AF F8 31 F5 90 00 [23:21:17]wFMCommunicate OK [23:21:17]SAM_PROTO_SignData done [23:21:17]FM_MakeSignedData done [23:21:17]CreateOFDProtocolMessage [23:21:17]wFMCommunicate request_size=4 [23:21:17]MH_SAM_APDU [23:21:17]CAPDU: 80 11 00 00 [23:21:17]Write to MH i2c: E2 08 00 BF 3B 80 11 00 00 00 00 00 00 74 [23:21:17]Write i2c OK [23:21:17]MH_I2C_Read... [23:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:17]Read from MH i2c: E2 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 17 00 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: E2 17 00 BF 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [23:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:21:17]wFMCommunicate OK [23:21:17]CreateOFDProtocolMessage done [23:21:17]OFDSenderStorePacket 111530 [23:21:17]StoreOFDPacket docnum=111530 [23:21:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 46 3A 07 01 AB 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FB 67 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B3 01 00 35 04 06 00 3A B4 20 6F 49 8F 09 02 03 C1 AF F8 31 F5 [23:21:17]CheckFolder [23:21:17]dirname=/storage/ofd_packets [23:21:17]CheckFolder done [23:21:17]ProducePacketName [23:21:17]name=ofd_packets/00111530 [23:21:17]NVStorageSaveData ofd_packets/00111530 [23:21:17]File name is /storage/ofd_packets/00111530 [23:21:17]Write 301 bytes [23:21:17]NVStorageSaveData done [23:21:17]OFDSenderStorePacket done [23:21:17]KKMCreateOFDPacket done [23:21:17]NVStorageSaveData kkm_last_timestamp [23:21:17]File name is /storage/kkm_last_timestamp [23:21:17]Write 4 bytes [23:21:17]NVStorageSaveData done [23:21:17]ExternCall_PrintAddStr [23:21:17]wPrintStart [23:21:17]Write to MH i2c: 01 00 00 C0 3B FB [23:21:17]Write i2c OK [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: 01 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: 01 07 00 [23:21:17]MH_I2C_Read... [23:21:17]Read from MH i2c: 01 07 00 C0 3B 00 00 00 00 00 FF 0F 10 [23:21:17]RasterBufferAndPrint [23:21:17]line Счет N : (1)320125 [23:21:17]line ИНН: 02508201610067 [23:21:17]line Контрольно-Кассовый Чек [23:21:17]line ПРОДАЖА [23:21:17]line ТРК (МРК, ГНК) : 11 [23:21:17]line Товар: 2710124130 [23:21:17]line Аи-92-К-5 [23:21:17]line 8.290 * 66.40 [23:21:17]line = 550.46 [23:21:17]line НДС 12% НСП 1% [23:21:17]line > о реализуемом товаре [23:21:17]line ОКРУГЛЕНИЕ: -0.46 [23:21:17]line ИТОГО: 550.00 [23:21:17]line Внесено: 550.00 [23:21:17]line СДАЧА: 0.00 [23:21:17]line НСП 1% : 4.87 [23:21:17]line НДС 12% : 58.46 [23:21:17]line Наличными: 550.00 [23:21:17]line Безнал.: 0.00 [23:21:17]line Место: АЗС № 65 "Партнер Нефть" [23:21:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:21:17]line СНО: Общий режим [23:21:17]line Чек 279 19.06.2024 23:21 [23:21:17]line Смена: 388 ФФД: 1.0 [23:21:17]line ЗНМ: 0300000198 [23:21:17]line РНМ: 0000000000092771 [23:21:17]line Версия ККМ: 001 [23:21:17]line ФМ: 0000000000875083 [23:21:17]line ФД: 111530 [23:21:17]line ФПД: 64545312688527 [23:21:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T232131&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111530&fm=64545312688527&tin=02508201610067®Number=0000000000092771&sum=55000 [23:21:17]OFD Sender: Processing packet 111530 [packets to send 38, broken 37] [23:21:17]ProducePacketName [23:21:17]name=ofd_packets/00111530 [23:21:17]OFD Sender: To server: pG, [23:21:17]CommunicateWithHost lk.salyk.kg:30040 [23:21:17]ConnectInit lk.salyk.kg [23:21:17]written 0, free lines is 4095 [23:21:18]Connected sock=10 [23:21:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 46 3A 07 01 AB 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 20 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 06 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 FB 67 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AA B3 01 00 35 04 06 00 3A B4 20 6F 49 8F 09 02 03 C1 AF F8 31 F5 [23:21:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5A 54 47 00 60 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 35 30 38 33 10 04 04 00 AA B3 01 00 F4 03 04 00 57 FF 72 66 B6 04 01 00 00 71 E6 BC FD C3 FC 3E 8D [23:21:18]CommunicateWithHost err = 0 [23:21:18]CheckOFDResponse [23:21:18]1017 (14) - 77093643461234 [23:21:18]1041 (16) - 0000000000875083 [23:21:18]1040 (4) - 111530 [23:21:18]1012 (4) - 19.06.2024 15:55 [23:21:18]1206 (1) - 0 [23:21:18]OFD Sender: Remove packet 111530 [23:21:18]ProducePacketName [23:21:18]name=ofd_packets/00111530 [23:21:18]NVStorageDeleteData [23:21:18]Write to MH i2c: 01 00 00 EB 3B 26 [23:21:18]Write i2c OK [23:21:18]MH_I2C_Read... [23:21:18]Read from MH i2c: 01 [23:21:18]MH_I2C_Read... [23:21:18]Read from MH i2c: 01 07 00 [23:21:18]MH_I2C_Read... [23:21:18]Read from MH i2c: 01 07 00 EB 3B 00 00 00 00 00 CF 0C 08 [23:21:18]RasterBufferAndPrint [23:21:18]line [23:21:18]line [23:21:18]line [23:21:18]line [23:21:18]line [23:21:18]written 0, free lines is 3287 [23:21:18]MH_Cut [23:21:18]Write to MH i2c: D1 01 00 F2 3B 01 FF [23:21:18]Write i2c OK [23:21:18]MH_I2C_Read... [23:21:18]Read from MH i2c: D1 [23:21:18]MH_I2C_Read... [23:21:18]Read from MH i2c: D1 01 00 [23:21:18]MH_I2C_Read... [23:21:18]Read from MH i2c: D1 01 00 F2 3B 00 FE [23:21:18]Write to MH i2c: 01 00 00 F3 3B 2E [23:21:18]Write i2c OK [23:21:18]MH_I2C_Read... [23:21:18]OFD Sender: No OFD packet to send [23:21:19]*** Cut start [23:21:19]*** Partial cut [23:21:19]*** CUTSNS_PIN = 1 [23:21:19]*** CUTSNS_PIN = 0 [23:21:19]*** Brake cut motor [23:21:19]Read from MH i2c: 01 [23:21:19]MH_I2C_Read... [23:21:19]*** Stop cut motor [23:21:19]*** Cut end [23:21:19]Read from MH i2c: 01 07 00 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: 01 07 00 F3 3B 00 00 00 00 00 FF 0F 43 [23:21:19]process_action close_receipt done [23:21:19]requested_data is exist [23:21:19]produce_requested_data [23:21:19]requested_item fm.sn is exist - process it [23:21:19]wFMCommunicate request_size=4 [23:21:19]MH_SAM_APDU [23:21:19]CAPDU: 80 11 00 00 [23:21:19]Write to MH i2c: E2 08 00 F4 3B 80 11 00 00 00 00 00 00 A9 [23:21:19]Write i2c OK [23:21:19]MH_I2C_Read... [23:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:19]Read from MH i2c: E2 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: E2 17 00 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: E2 17 00 F4 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [23:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:21:19]wFMCommunicate OK [23:21:19]requested_item fd.num is exist - process it [23:21:19]SAM_PROTO_GetFieldsCounters [23:21:19]wFMCommunicate request_size=4 [23:21:19]MH_SAM_APDU [23:21:19]CAPDU: 80 13 00 00 [23:21:19]Write to MH i2c: E2 08 00 F5 3B 80 13 00 00 00 00 00 00 AC [23:21:19]Write i2c OK [23:21:19]MH_I2C_Read... [23:21:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:19]Read from MH i2c: E2 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: E2 62 00 [23:21:19]MH_I2C_Read... [23:21:19]Read from MH i2c: E2 62 00 F5 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B3 01 00 0E 04 04 00 84 01 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 F8 [23:21:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AA B3 01 00 0E 04 04 00 84 01 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 [23:21:20]wFMCommunicate OK [23:21:20]SAM_PROTO_GetFieldsCounters done [23:21:20]requested_item shift.num is exist - process it [23:21:20]requested_item shift.opened is exist - process it [23:21:20]req_shift_opened [23:21:20]FM_GetShiftState [23:21:20]SAM_PROTO_GetShiftState [23:21:20]wFMCommunicate request_size=4 [23:21:20]MH_SAM_APDU [23:21:20]CAPDU: 80 13 01 00 [23:21:20]Write to MH i2c: E2 08 00 F6 3B 80 13 01 00 00 00 00 00 AE [23:21:20]Write i2c OK [23:21:20]MH_I2C_Read... [23:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:20]Read from MH i2c: E2 [23:21:20]MH_I2C_Read... [23:21:20]Read from MH i2c: E2 0E 00 [23:21:20]MH_I2C_Read... [23:21:20]Read from MH i2c: E2 0E 00 F6 3B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F8 [23:21:20]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:21:20]wFMCommunicate OK [23:21:20]SAM_PROTO_GetShiftState done [23:21:20]FM_GetShiftState done [23:21:20]req_shift_opened done [23:21:20]requested_item shift.open_date is exist - process it [23:21:20]req_shift_open_date [23:21:20]req_shift_open_date done [23:21:20]produce_requested_data done [23:21:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111530,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:21:20]process_action_free close_receipt [23:21:20]json_value_free [23:21:20]json_value_free done [23:21:20]process_json_proto returns [23:21:20]Send response to host [23:21:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111530,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:21:20]free response buf [23:21:20]execute_script done [23:21:20]execute_script returns [23:21:20]free content buf [23:21:20]Sock 7.Close socket [23:21:20]Sock 7.Thread stoped [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:55]accept exits with 9 [23:26:55]New connection [23:26:55]New thread 3067321700 created [23:26:55]Thread 3067465060 joined [23:26:55]Waiting for new connection... [23:26:55] Sock 9.Parse request [23:26:55]Sock 9.Check first char [23:26:55]Sock 9.First char is OK [23:26:55]request: POST /json_proto HTTP/1.0 [23:26:55]Method: POST [23:26:55]URL: /json_proto [23:26:55]Method is POST - this is cgi request [23:26:55]url: /json_proto [23:26:55]query_string will be loaded in cgi processing [23:26:55]execute_cgi json_proto POST (null) [23:26:55]execute_cgi path=json_proto method=POST [23:26:55]POST find Content-Length [23:26:55]Host: 172.17.59.68:8080 [23:26:55]Content-Length: 674 [23:26:55]Content-Type: application/json [23:26:55] [23:26:55]POST finish read [23:26:55]Found Content-Length = 674 [23:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:26:55]execute_script... [23:26:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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:26:55]POST & json_proto [23:26:55]process_json_proto [23:26:55]json parsed OK: [23:26:55]protocol is kg_v1.0 [23:26:55]action value=close_receipt [23:26:55]process_action close_receipt [23:26:55]cmd_close_receipt [23:26:55]MH_GetDate [23:26:55]Write to MH i2c: F0 00 00 F7 3B 21 [23:26:55]Write i2c OK [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: F0 [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: F0 09 00 [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: F0 09 00 F7 3B 00 4F 69 73 66 BC EC 60 65 28 [23:26:55]GetLastDocTimeStamp 1718839291 [23:26:55]current date 1718839631 [23:26:55]FM_GetShiftState [23:26:55]SAM_PROTO_GetShiftState [23:26:55]wFMCommunicate request_size=4 [23:26:55]MH_SAM_APDU [23:26:55]CAPDU: 80 13 01 00 [23:26:55]Write to MH i2c: E2 08 00 F8 3B 80 13 01 00 00 00 00 00 B0 [23:26:55]Write i2c OK [23:26:55]MH_I2C_Read... [23:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:55]Read from MH i2c: E2 [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: E2 0E 00 [23:26:55]MH_I2C_Read... [23:26:55]Read from MH i2c: E2 0E 00 F8 3B 00 09 00 01 31 35 72 66 00 00 00 00 90 00 FA [23:26:55]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:26:55]wFMCommunicate OK [23:26:55]SAM_PROTO_GetShiftState done [23:26:55]FM_GetShiftState done [23:26:55]opened in 1718760753 [23:26:55]opened+sec_in_day 1718847153 [23:26:55]quantity*price = 20047 [23:26:55]sum+1 = 20049 [23:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 280 19.06.2024 23:27 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111531 ФПД: 115502070050232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T232711&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111531&fm=115502070050232&tin=02508201610067®Number=0000000000092771&sum=20000 [23:26:56]StoreToDocumentArchive [23:26:56]shift 388 fd 111531 [23:26:56]save to /storage/0388/doc_00111531 [23:26:56]save last doc name /storage/0388/doc_00111531 to /storage/kkm_last_doc_name [23:26:56]save OK [23:26:56]Clear old archive folders... [23:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:26:56]tlvbuf is 00F00850 [23:26:56]SAM_PROTO_ClearQueue [23:26:56]wFMCommunicate request_size=4 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 09 00 00 [23:26:56]Write to MH i2c: E2 08 00 05 3C 80 09 00 00 00 00 00 00 B3 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 05 3C 00 90 00 B5 [23:26:56]RAPDU: 90 00 [23:26:56]wFMCommunicate OK [23:26:56]SAM_PROTO_ClearQueue done [23:26:56]KKMCreateOFDPacket [23:26:56]OFDProtocolAddRootSTLVToBuf [23:26:56]FM_MakeSignedData [23:26:56]FM_MakeSignedData [23:26:56]SAM_PROTO_SignData [23:26:56]wFMCommunicate request_size=4 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 0D 01 02 [23:26:56]Write to MH i2c: E2 08 00 06 3C 80 0D 01 02 00 00 00 00 BB [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 06 3C 00 90 00 B6 [23:26:56]RAPDU: 90 00 [23:26:56]wFMCommunicate OK [23:26:56]wFMCommunicate request_size=255 [23:26:56]MH_SAM_APDU [23:26: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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4F 69 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B3 01 00 35 04 06 00 69 0C 6B DB [23:26:56]Write to MH i2c: E2 02 01 07 3C 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4F 69 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B3 01 00 35 04 06 00 69 0C 6B DB 00 00 43 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 07 3C 00 90 00 B7 [23:26:56]RAPDU: 90 00 [23:26:56]wFMCommunicate OK [23:26:56]wFMCommunicate request_size=7 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 0D 02 02 02 2D B8 [23:26:56]Write to MH i2c: E2 0A 00 08 3C 80 0D 02 02 02 00 2D B8 00 00 A7 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 03 00 08 3C 00 90 00 B8 [23:26:56]RAPDU: 90 00 [23:26:56]wFMCommunicate OK [23:26:56]wFMCommunicate request_size=4 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 0D 03 02 [23:26:56]Write to MH i2c: E2 08 00 09 3C 80 0D 03 02 00 00 00 00 C0 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 0B 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 0B 00 09 3C 00 75 CB 55 FC 21 22 10 77 90 00 1C [23:26:56]RAPDU: 75 CB 55 FC 21 22 10 77 90 00 [23:26:56]wFMCommunicate OK [23:26:56]SAM_PROTO_SignData done [23:26:56]FM_MakeSignedData done [23:26:56]CreateOFDProtocolMessage [23:26:56]wFMCommunicate request_size=4 [23:26:56]MH_SAM_APDU [23:26:56]CAPDU: 80 11 00 00 [23:26:56]Write to MH i2c: E2 08 00 0A 3C 80 11 00 00 00 00 00 00 C0 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:56]Read from MH i2c: E2 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 17 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: E2 17 00 0A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [23:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:26:56]wFMCommunicate OK [23:26:56]CreateOFDProtocolMessage done [23:26:56]OFDSenderStorePacket 111531 [23:26:56]StoreOFDPacket docnum=111531 [23:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E9 EE 04 01 A1 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4F 69 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B3 01 00 35 04 06 00 69 0C 6B DB 2D B8 75 CB 55 FC 21 22 10 77 [23:26:56]CheckFolder [23:26:56]dirname=/storage/ofd_packets [23:26:56]CheckFolder done [23:26:56]ProducePacketName [23:26:56]name=ofd_packets/00111531 [23:26:56]NVStorageSaveData ofd_packets/00111531 [23:26:56]File name is /storage/ofd_packets/00111531 [23:26:56]Write 298 bytes [23:26:56]NVStorageSaveData done [23:26:56]OFDSenderStorePacket done [23:26:56]KKMCreateOFDPacket done [23:26:56]NVStorageSaveData kkm_last_timestamp [23:26:56]File name is /storage/kkm_last_timestamp [23:26:56]Write 4 bytes [23:26:56]NVStorageSaveData done [23:26:56]ExternCall_PrintAddStr [23:26:56]wPrintStart [23:26:56]Write to MH i2c: 01 00 00 0B 3C 47 [23:26:56]Write i2c OK [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: 01 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: 01 07 00 [23:26:56]MH_I2C_Read... [23:26:56]Read from MH i2c: 01 07 00 0B 3C 00 00 00 00 00 FF 0F 5C [23:26:56]RasterBufferAndPrint [23:26:56]line Счет N : (1)320126 [23:26:56]line ИНН: 02508201610067 [23:26:56]line Контрольно-Кассовый Чек [23:26:56]line ПРОДАЖА [23:26:56]line ТРК (МРК, ГНК) : 22 [23:26:56]line Товар: 2710194210 [23:26:56]line ДТ-К-5 [23:26:56]line 2.750 * 72.90 [23:26:56]line = 200.48 [23:26:56]line НДС 12% НСП 1% [23:26:56]line > о реализуемом товаре [23:26:56]line ОКРУГЛЕНИЕ: -0.48 [23:26:56]line ИТОГО: 200.00 [23:26:56]line Внесено: 200.00 [23:26:56]line СДАЧА: 0.00 [23:26:56]line НСП 1% : 1.77 [23:26:56]line НДС 12% : 21.29 [23:26:56]line Наличными: 200.00 [23:26:56]line Безнал.: 0.00 [23:26:56]line Место: АЗС № 65 "Партнер Нефть" [23:26:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:26:56]line СНО: Общий режим [23:26:56]line Чек 280 19.06.2024 23:27 [23:26:56]line Смена: 388 ФФД: 1.0 [23:26:56]line ЗНМ: 0300000198 [23:26:56]line РНМ: 0000000000092771 [23:26:56]line Версия ККМ: 001 [23:26:56]line ФМ: 0000000000875083 [23:26:56]line ФД: 111531 [23:26:57]line ФПД: 115502070050232 [23:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T232711&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111531&fm=115502070050232&tin=02508201610067®Number=0000000000092771&sum=20000 [23:26:57]OFD Sender: Processing packet 111531 [packets to send 38, broken 37] [23:26:57]ProducePacketName [23:26:57]name=ofd_packets/00111531 [23:26:57]OFD Sender: To server: pG, [23:26:57]CommunicateWithHost lk.salyk.kg:30040 [23:26:57]ConnectInit lk.salyk.kg [23:26:57]written 0, free lines is 4095 [23:26:57]Connected sock=10 [23:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 E9 EE 04 01 A1 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4F 69 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B3 01 00 35 04 06 00 69 0C 6B DB 2D B8 75 CB 55 FC 21 22 10 77 [23:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 54 0F 47 00 22 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AB B3 01 00 F4 03 04 00 AA 00 73 66 B6 04 01 00 00 FA 92 F9 BE 54 17 B2 EC [23:26:57]CommunicateWithHost err = 0 [23:26:57]CheckOFDResponse [23:26:57]1017 (14) - 77093643461234 [23:26:57]1041 (16) - 0000000000875083 [23:26:57]1040 (4) - 111531 [23:26:57]1012 (4) - 19.06.2024 16:00 [23:26:57]1206 (1) - 0 [23:26:57]OFD Sender: Remove packet 111531 [23:26:57]ProducePacketName [23:26:57]name=ofd_packets/00111531 [23:26:57]NVStorageDeleteData [23:26:57]Write to MH i2c: 01 00 00 36 3C 72 [23:26:57]Write i2c OK [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: 01 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: 01 07 00 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: 01 07 00 36 3C 00 00 00 00 00 DC 0C 61 [23:26:57]RasterBufferAndPrint [23:26:57]line [23:26:57]line [23:26:57]line [23:26:57]line [23:26:57]line [23:26:57]written 0, free lines is 3298 [23:26:57]MH_Cut [23:26:57]Write to MH i2c: D1 01 00 3D 3C 01 4B [23:26:57]Write i2c OK [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: D1 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: D1 01 00 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: D1 01 00 3D 3C 00 4A [23:26:57]Write to MH i2c: 01 00 00 3E 3C 7A [23:26:57]Write i2c OK [23:26:57]MH_I2C_Read... [23:26:58]OFD Sender: No OFD packet to send [23:26:58]*** Cut start [23:26:58]*** Partial cut [23:26:58]*** CUTSNS_PIN = 1 [23:26:58]*** CUTSNS_PIN = 0 [23:26:58]*** Brake cut motor [23:26:59]Read from MH i2c: 01 [23:26:59]MH_I2C_Read... [23:26:59]*** Stop cut motor [23:26:59]*** Cut end [23:26:59]Read from MH i2c: 01 07 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: 01 07 00 3E 3C 00 00 00 00 00 FF 0F 8F [23:26:59]process_action close_receipt done [23:26:59]requested_data is exist [23:26:59]produce_requested_data [23:26:59]requested_item fm.sn is exist - process it [23:26:59]wFMCommunicate request_size=4 [23:26:59]MH_SAM_APDU [23:26:59]CAPDU: 80 11 00 00 [23:26:59]Write to MH i2c: E2 08 00 3F 3C 80 11 00 00 00 00 00 00 F5 [23:26:59]Write i2c OK [23:26:59]MH_I2C_Read... [23:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:59]Read from MH i2c: E2 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 17 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 17 00 3F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [23:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:26:59]wFMCommunicate OK [23:26:59]requested_item fd.num is exist - process it [23:26:59]SAM_PROTO_GetFieldsCounters [23:26:59]wFMCommunicate request_size=4 [23:26:59]MH_SAM_APDU [23:26:59]CAPDU: 80 13 00 00 [23:26:59]Write to MH i2c: E2 08 00 40 3C 80 13 00 00 00 00 00 00 F8 [23:26:59]Write i2c OK [23:26:59]MH_I2C_Read... [23:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:26:59]Read from MH i2c: E2 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 62 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 62 00 40 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B3 01 00 0E 04 04 00 84 01 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 48 [23:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AB B3 01 00 0E 04 04 00 84 01 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 [23:26:59]wFMCommunicate OK [23:26:59]SAM_PROTO_GetFieldsCounters done [23:26:59]requested_item shift.num is exist - process it [23:26:59]requested_item shift.opened is exist - process it [23:26:59]req_shift_opened [23:26:59]FM_GetShiftState [23:26:59]SAM_PROTO_GetShiftState [23:26:59]wFMCommunicate request_size=4 [23:26:59]MH_SAM_APDU [23:26:59]CAPDU: 80 13 01 00 [23:26:59]Write to MH i2c: E2 08 00 41 3C 80 13 01 00 00 00 00 00 FA [23:26:59]Write i2c OK [23:26:59]MH_I2C_Read... [23:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:59]Read from MH i2c: E2 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 0E 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 0E 00 41 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 44 [23:26:59]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:26:59]wFMCommunicate OK [23:26:59]SAM_PROTO_GetShiftState done [23:26:59]FM_GetShiftState done [23:26:59]req_shift_opened done [23:26:59]requested_item shift.open_date is exist - process it [23:26:59]req_shift_open_date [23:26:59]req_shift_open_date done [23:26:59]produce_requested_data done [23:26:59]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111531,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:26:59]process_action_free close_receipt [23:26:59]json_value_free [23:26:59]json_value_free done [23:26:59]process_json_proto returns [23:26:59]Send response to host [23:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111531,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:26:59]free response buf [23:26:59]execute_script done [23:26:59]execute_script returns [23:26:59]free content buf [23:26:59]Sock 9.Close socket [23:26:59]Sock 9.Thread stoped [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:34]accept exits with 7 [23:27:34]New connection [23:27:34]New thread 3067465060 created [23:27:34]Thread 3067321700 joined [23:27:34]Waiting for new connection... [23:27:34] Sock 7.Parse request [23:27:34]Sock 7.Check first char [23:27:34]Sock 7.First char is OK [23:27:34]request: POST /json_proto HTTP/1.0 [23:27:34]Method: POST [23:27:34]URL: /json_proto [23:27:34]Method is POST - this is cgi request [23:27:34]url: /json_proto [23:27:34]query_string will be loaded in cgi processing [23:27:34]execute_cgi json_proto POST (null) [23:27:34]execute_cgi path=json_proto method=POST [23:27:34]POST find Content-Length [23:27:34]Host: 172.17.59.68:8080 [23:27:34]Content-Length: 677 [23:27:34]Content-Type: application/json [23:27:34] [23:27:34]POST finish read [23:27:34]Found Content-Length = 677 [23:27:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:34]execute_script... [23:27:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:27:34]POST & json_proto [23:27:34]process_json_proto [23:27:34]json parsed OK: [23:27:34]protocol is kg_v1.0 [23:27:34]action value=close_receipt [23:27:34]process_action close_receipt [23:27:34]cmd_close_receipt [23:27:34]MH_GetDate [23:27:34]Write to MH i2c: F0 00 00 42 3C 6D [23:27:34]Write i2c OK [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: F0 [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: F0 09 00 [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: F0 09 00 42 3C 00 76 69 73 66 BC EC 60 65 9B [23:27:34]GetLastDocTimeStamp 1718839631 [23:27:34]current date 1718839670 [23:27:34]FM_GetShiftState [23:27:34]SAM_PROTO_GetShiftState [23:27:34]wFMCommunicate request_size=4 [23:27:34]MH_SAM_APDU [23:27:34]CAPDU: 80 13 01 00 [23:27:34]Write to MH i2c: E2 08 00 43 3C 80 13 01 00 00 00 00 00 FC [23:27:34]Write i2c OK [23:27:34]MH_I2C_Read... [23:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:34]Read from MH i2c: E2 [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: E2 0E 00 [23:27:34]MH_I2C_Read... [23:27:34]Read from MH i2c: E2 0E 00 43 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 46 [23:27:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:27:34]wFMCommunicate OK [23:27:34]SAM_PROTO_GetShiftState done [23:27:34]FM_GetShiftState done [23:27:34]opened in 1718760753 [23:27:34]opened+sec_in_day 1718847153 [23:27:34]quantity*price = 50065 [23:27:34]sum+1 = 50067 [23:27:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 281 19.06.2024 23:27 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111532 ФПД: 247576884627751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T232750&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111532&fm=247576884627751&tin=02508201610067®Number=0000000000092771&sum=50000 [23:27:36]StoreToDocumentArchive [23:27:36]shift 388 fd 111532 [23:27:36]save to /storage/0388/doc_00111532 [23:27:36]save last doc name /storage/0388/doc_00111532 to /storage/kkm_last_doc_name [23:27:36]save OK [23:27:36]Clear old archive folders... [23:27:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:27:36]tlvbuf is 00F505A0 [23:27:36]SAM_PROTO_ClearQueue [23:27:36]wFMCommunicate request_size=4 [23:27:36]MH_SAM_APDU [23:27:36]CAPDU: 80 09 00 00 [23:27:36]Write to MH i2c: E2 08 00 50 3C 80 09 00 00 00 00 00 00 FE [23:27:36]Write i2c OK [23:27:36]MH_I2C_Read... [23:27:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:36]Read from MH i2c: E2 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 03 00 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 03 00 50 3C 00 90 00 00 [23:27:36]RAPDU: 90 00 [23:27:36]wFMCommunicate OK [23:27:36]SAM_PROTO_ClearQueue done [23:27:36]KKMCreateOFDPacket [23:27:36]OFDProtocolAddRootSTLVToBuf [23:27:36]FM_MakeSignedData [23:27:36]FM_MakeSignedData [23:27:36]SAM_PROTO_SignData [23:27:36]wFMCommunicate request_size=4 [23:27:36]MH_SAM_APDU [23:27:36]CAPDU: 80 0D 01 02 [23:27:36]Write to MH i2c: E2 08 00 51 3C 80 0D 01 02 00 00 00 00 06 [23:27:36]Write i2c OK [23:27:36]MH_I2C_Read... [23:27:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:36]Read from MH i2c: E2 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 03 00 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 03 00 51 3C 00 90 00 01 [23:27:36]RAPDU: 90 00 [23:27:36]wFMCommunicate OK [23:27:36]wFMCommunicate request_size=255 [23:27:36]MH_SAM_APDU [23:27: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 76 69 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B3 01 00 35 04 06 00 E1 [23:27:36]Write to MH i2c: E2 02 01 52 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 76 69 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B3 01 00 35 04 06 00 E1 00 00 52 [23:27:36]Write i2c OK [23:27:36]MH_I2C_Read... [23:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:36]Read from MH i2c: E2 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 03 00 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 03 00 52 3C 00 90 00 02 [23:27:36]RAPDU: 90 00 [23:27:36]wFMCommunicate OK [23:27:36]wFMCommunicate request_size=10 [23:27:36]MH_SAM_APDU [23:27:36]CAPDU: 80 0D 02 02 05 2B 7C 43 49 27 [23:27:36]Write to MH i2c: E2 0D 00 53 3C 80 0D 02 02 05 00 2B 7C 43 49 27 00 00 6D [23:27:36]Write i2c OK [23:27:36]MH_I2C_Read... [23:27:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:36]Read from MH i2c: E2 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 03 00 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 03 00 53 3C 00 90 00 03 [23:27:36]RAPDU: 90 00 [23:27:36]wFMCommunicate OK [23:27:36]wFMCommunicate request_size=4 [23:27:36]MH_SAM_APDU [23:27:36]CAPDU: 80 0D 03 02 [23:27:36]Write to MH i2c: E2 08 00 54 3C 80 0D 03 02 00 00 00 00 0B [23:27:36]Write i2c OK [23:27:36]MH_I2C_Read... [23:27:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:36]Read from MH i2c: E2 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 0B 00 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 0B 00 54 3C 00 CE 83 6E 43 E4 6D 09 20 90 00 88 [23:27:36]RAPDU: CE 83 6E 43 E4 6D 09 20 90 00 [23:27:36]wFMCommunicate OK [23:27:36]SAM_PROTO_SignData done [23:27:36]FM_MakeSignedData done [23:27:36]CreateOFDProtocolMessage [23:27:36]wFMCommunicate request_size=4 [23:27:36]MH_SAM_APDU [23:27:36]CAPDU: 80 11 00 00 [23:27:36]Write to MH i2c: E2 08 00 55 3C 80 11 00 00 00 00 00 00 0B [23:27:36]Write i2c OK [23:27:36]MH_I2C_Read... [23:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:36]Read from MH i2c: E2 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 17 00 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: E2 17 00 55 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [23:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:27:36]wFMCommunicate OK [23:27:36]CreateOFDProtocolMessage done [23:27:36]OFDSenderStorePacket 111532 [23:27:36]StoreOFDPacket docnum=111532 [23:27:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2F 50 07 01 DF 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 76 69 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B3 01 00 35 04 06 00 E1 2B 7C 43 49 27 CE 83 6E 43 E4 6D 09 20 [23:27:36]CheckFolder [23:27:36]dirname=/storage/ofd_packets [23:27:36]CheckFolder done [23:27:36]ProducePacketName [23:27:36]name=ofd_packets/00111532 [23:27:36]NVStorageSaveData ofd_packets/00111532 [23:27:36]File name is /storage/ofd_packets/00111532 [23:27:36]Write 301 bytes [23:27:36]NVStorageSaveData done [23:27:36]OFDSenderStorePacket done [23:27:36]KKMCreateOFDPacket done [23:27:36]NVStorageSaveData kkm_last_timestamp [23:27:36]File name is /storage/kkm_last_timestamp [23:27:36]Write 4 bytes [23:27:36]NVStorageSaveData done [23:27:36]ExternCall_PrintAddStr [23:27:36]wPrintStart [23:27:36]Write to MH i2c: 01 00 00 56 3C 92 [23:27:36]Write i2c OK [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: 01 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: 01 07 00 [23:27:36]MH_I2C_Read... [23:27:36]Read from MH i2c: 01 07 00 56 3C 00 00 00 00 00 FF 0F A7 [23:27:36]RasterBufferAndPrint [23:27:36]line Счет N : (1)320127 [23:27:36]line ИНН: 02508201610067 [23:27:36]line Контрольно-Кассовый Чек [23:27:36]line ПРОДАЖА [23:27:36]line ТРК (МРК, ГНК) : 11 [23:27:36]line Товар: 2710124130 [23:27:36]line Аи-92-К-5 [23:27:36]line 7.540 * 66.40 [23:27:36]line = 500.66 [23:27:36]line НДС 12% НСП 1% [23:27:36]line > о реализуемом товаре [23:27:36]line ОКРУГЛЕНИЕ: -0.66 [23:27:36]line ИТОГО: 500.00 [23:27:36]line Внесено: 500.00 [23:27:36]line СДАЧА: 0.00 [23:27:36]line НСП 1% : 4.43 [23:27:36]line НДС 12% : 53.17 [23:27:36]line Наличными: 500.00 [23:27:36]line Безнал.: 0.00 [23:27:36]line Место: АЗС № 65 "Партнер Нефть" [23:27:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:27:36]line СНО: Общий режим [23:27:36]line Чек 281 19.06.2024 23:27 [23:27:36]line Смена: 388 ФФД: 1.0 [23:27:36]line ЗНМ: 0300000198 [23:27:36]line РНМ: 0000000000092771 [23:27:36]line Версия ККМ: 001 [23:27:36]line ФМ: 0000000000875083 [23:27:36]line ФД: 111532 [23:27:36]line ФПД: 247576884627751 [23:27:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T232750&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111532&fm=247576884627751&tin=02508201610067®Number=0000000000092771&sum=50000 [23:27:36]OFD Sender: Processing packet 111532 [packets to send 38, broken 37] [23:27:36]ProducePacketName [23:27:36]name=ofd_packets/00111532 [23:27:36]OFD Sender: To server: pG, [23:27:36]CommunicateWithHost lk.salyk.kg:30040 [23:27:36]ConnectInit lk.salyk.kg [23:27:36]written 0, free lines is 4095 [23:27:37]Connected sock=10 [23:27:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 2F 50 07 01 DF 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 76 69 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B3 01 00 35 04 06 00 E1 2B 7C 43 49 27 CE 83 6E 43 E4 6D 09 20 [23:27:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 2F 88 47 00 6A 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AC B3 01 00 F4 03 04 00 D2 00 73 66 B6 04 01 00 00 8A F6 07 15 BE AF E1 9E [23:27:37]CommunicateWithHost err = 0 [23:27:37]CheckOFDResponse [23:27:37]1017 (14) - 77093643461234 [23:27:37]1041 (16) - 0000000000875083 [23:27:37]1040 (4) - 111532 [23:27:37]1012 (4) - 19.06.2024 16:01 [23:27:37]1206 (1) - 0 [23:27:37]OFD Sender: Remove packet 111532 [23:27:37]ProducePacketName [23:27:37]name=ofd_packets/00111532 [23:27:37]NVStorageDeleteData [23:27:37]Write to MH i2c: 01 00 00 81 3C BD [23:27:37]Write i2c OK [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: 01 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: 01 07 00 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: 01 07 00 81 3C 00 00 00 00 00 CB 0C 9B [23:27:37]RasterBufferAndPrint [23:27:37]line [23:27:37]line [23:27:37]line [23:27:37]line [23:27:37]line [23:27:37]written 0, free lines is 3282 [23:27:37]MH_Cut [23:27:37]Write to MH i2c: D1 01 00 88 3C 01 96 [23:27:37]Write i2c OK [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: D1 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: D1 01 00 [23:27:37]MH_I2C_Read... [23:27:37]Read from MH i2c: D1 01 00 88 3C 00 95 [23:27:37]Write to MH i2c: 01 00 00 89 3C C5 [23:27:37]Write i2c OK [23:27:37]MH_I2C_Read... [23:27:37]OFD Sender: No OFD packet to send [23:27:38]*** Cut start [23:27:38]*** Partial cut [23:27:38]*** CUTSNS_PIN = 1 [23:27:38]*** CUTSNS_PIN = 0 [23:27:38]*** Brake cut motor [23:27:38]Read from MH i2c: 01 [23:27:38]MH_I2C_Read... [23:27:38]*** Stop cut motor [23:27:38]*** Cut end [23:27:38]Read from MH i2c: 01 07 00 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: 01 07 00 89 3C 00 00 00 00 00 FF 0F DA [23:27:38]process_action close_receipt done [23:27:38]requested_data is exist [23:27:38]produce_requested_data [23:27:38]requested_item fm.sn is exist - process it [23:27:38]wFMCommunicate request_size=4 [23:27:38]MH_SAM_APDU [23:27:38]CAPDU: 80 11 00 00 [23:27:38]Write to MH i2c: E2 08 00 8A 3C 80 11 00 00 00 00 00 00 40 [23:27:38]Write i2c OK [23:27:38]MH_I2C_Read... [23:27:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:38]Read from MH i2c: E2 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: E2 17 00 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: E2 17 00 8A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [23:27:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:27:38]wFMCommunicate OK [23:27:38]requested_item fd.num is exist - process it [23:27:38]SAM_PROTO_GetFieldsCounters [23:27:38]wFMCommunicate request_size=4 [23:27:38]MH_SAM_APDU [23:27:38]CAPDU: 80 13 00 00 [23:27:38]Write to MH i2c: E2 08 00 8B 3C 80 13 00 00 00 00 00 00 43 [23:27:38]Write i2c OK [23:27:38]MH_I2C_Read... [23:27:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:38]Read from MH i2c: E2 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: E2 62 00 [23:27:38]MH_I2C_Read... [23:27:38]Read from MH i2c: E2 62 00 8B 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B3 01 00 0E 04 04 00 84 01 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 97 [23:27:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B3 01 00 0E 04 04 00 84 01 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 [23:27:38]wFMCommunicate OK [23:27:38]SAM_PROTO_GetFieldsCounters done [23:27:38]requested_item shift.num is exist - process it [23:27:38]requested_item shift.opened is exist - process it [23:27:38]req_shift_opened [23:27:38]FM_GetShiftState [23:27:38]SAM_PROTO_GetShiftState [23:27:38]wFMCommunicate request_size=4 [23:27:38]MH_SAM_APDU [23:27:38]CAPDU: 80 13 01 00 [23:27:38]Write to MH i2c: E2 08 00 8C 3C 80 13 01 00 00 00 00 00 45 [23:27:38]Write i2c OK [23:27:38]MH_I2C_Read... [23:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:39]Read from MH i2c: E2 [23:27:39]MH_I2C_Read... [23:27:39]Read from MH i2c: E2 0E 00 [23:27:39]MH_I2C_Read... [23:27:39]Read from MH i2c: E2 0E 00 8C 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8F [23:27:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:27:39]wFMCommunicate OK [23:27:39]SAM_PROTO_GetShiftState done [23:27:39]FM_GetShiftState done [23:27:39]req_shift_opened done [23:27:39]requested_item shift.open_date is exist - process it [23:27:39]req_shift_open_date [23:27:39]req_shift_open_date done [23:27:39]produce_requested_data done [23:27:39]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111532,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:27:39]process_action_free close_receipt [23:27:39]json_value_free [23:27:39]json_value_free done [23:27:39]process_json_proto returns [23:27:39]Send response to host [23:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111532,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:27:39]free response buf [23:27:39]execute_script done [23:27:39]execute_script returns [23:27:39]free content buf [23:27:39]Sock 7.Close socket [23:27:39]Sock 7.Thread stoped [23:27:42]OFD Sender: No OFD packet to send [23:27:47]OFD Sender: No OFD packet to send [23:27:52]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:04]accept exits with 9 [23:29:04]New connection [23:29:04]New thread 3067321700 created [23:29:04]Thread 3067465060 joined [23:29:04]Waiting for new connection... [23:29:04] Sock 9.Parse request [23:29:04]Sock 9.Check first char [23:29:04]Sock 9.First char is OK [23:29:04]request: POST /json_proto HTTP/1.0 [23:29:04]Method: POST [23:29:04]URL: /json_proto [23:29:04]Method is POST - this is cgi request [23:29:04]url: /json_proto [23:29:04]query_string will be loaded in cgi processing [23:29:04]execute_cgi json_proto POST (null) [23:29:04]execute_cgi path=json_proto method=POST [23:29:04]POST find Content-Length [23:29:04]Host: 172.17.59.68:8080 [23:29:04]Content-Length: 1199 [23:29:04]Content-Type: application/json [23:29:04] [23:29:04]POST finish read [23:29:04]Found Content-Length = 1199 [23:29:04]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320128\u000A19.06.2024 21:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889908;3889907\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:04]execute_script... [23:29:04]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320128\u000A19.06.2024 21:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889908;3889907\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:04]POST & json_proto [23:29:04]process_json_proto [23:29:04]json parsed OK: [23:29:04]protocol is kg_v1.0 [23:29:04]action value=print_text [23:29:04]process_action print_text [23:29:04]cmd_print_text [23:29:04]ExternCall_PrintAddStr [23:29:04]wPrintStart [23:29:04]Write to MH i2c: 01 00 00 8D 3C C9 [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 07 00 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 07 00 8D 3C 00 00 00 00 00 FF 0F DE [23:29:04]RasterBufferAndPrint [23:29:04]line *****ТОВАРНЫЙ ЧЕК***** [23:29:04]line АЗС 65 [23:29:04]line Партнер нефть [23:29:04]line 02508201610067 [23:29:04]line Кассир : Амантуров Р. [23:29:04]line Счет N : (1)320128 [23:29:04]line 19.06.2024 21:57 [23:29:04]line ПРОДАЖА [23:29:04]line ТРК (МРК, ГНК): 11 [23:29:04]line Вид ГСМ : 2710124130 [23:29:04]line Аи-92-К-5 [23:29:04]line 20.000 x 66.40 [23:29:04]line ИТОГ: 1328.00 [23:29:04]line Тип оплаты: Талоны: Партнер нефть [23:29:04]line 3889908;3889907 [23:29:04]line ______________________ [23:29:04]line (подпись) [23:29:04]written 0, free lines is 4095 [23:29:04]Write to MH i2c: 01 00 00 A1 3C DD [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 07 00 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: 01 07 00 A1 3C 00 00 00 00 00 16 0E 08 [23:29:04]RasterBufferAndPrint [23:29:04]line [23:29:04]line [23:29:04]line [23:29:04]line [23:29:04]line [23:29:04]written 0, free lines is 3608 [23:29:04]MH_Cut [23:29:04]Write to MH i2c: D1 01 00 A8 3C 01 B6 [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: D1 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: D1 01 00 [23:29:04]MH_I2C_Read... [23:29:04]Read from MH i2c: D1 01 00 A8 3C 00 B5 [23:29:04]Write to MH i2c: 01 00 00 A9 3C E5 [23:29:04]Write i2c OK [23:29:04]MH_I2C_Read... [23:29:04]*** Cut start [23:29:04]*** Partial cut [23:29:04]*** CUTSNS_PIN = 1 [23:29:04]*** CUTSNS_PIN = 0 [23:29:05]*** Brake cut motor [23:29:05]Read from MH i2c: 01 [23:29:05]MH_I2C_Read... [23:29:05]*** Stop cut motor [23:29:05]*** Cut end [23:29:05]Read from MH i2c: 01 07 00 [23:29:05]MH_I2C_Read... [23:29:05]Read from MH i2c: 01 07 00 A9 3C 00 00 00 00 00 FF 0F FA [23:29:05]process_action print_text done [23:29:05]requested_data is exist [23:29:05]produce_requested_data [23:29:05]requested_item fm.sn is exist - process it [23:29:05]wFMCommunicate request_size=4 [23:29:05]MH_SAM_APDU [23:29:05]CAPDU: 80 11 00 00 [23:29:05]Write to MH i2c: E2 08 00 AA 3C 80 11 00 00 00 00 00 00 60 [23:29:05]Write i2c OK [23:29:05]MH_I2C_Read... [23:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:05]Read from MH i2c: E2 [23:29:05]MH_I2C_Read... [23:29:05]Read from MH i2c: E2 17 00 [23:29:05]MH_I2C_Read... [23:29:05]Read from MH i2c: E2 17 00 AA 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B2 [23:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:29:05]wFMCommunicate OK [23:29:05]requested_item fd.num is exist - process it [23:29:05]SAM_PROTO_GetFieldsCounters [23:29:05]wFMCommunicate request_size=4 [23:29:05]MH_SAM_APDU [23:29:05]CAPDU: 80 13 00 00 [23:29:05]Write to MH i2c: E2 08 00 AB 3C 80 13 00 00 00 00 00 00 63 [23:29:05]Write i2c OK [23:29:05]MH_I2C_Read... [23:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:05]Read from MH i2c: E2 [23:29:05]MH_I2C_Read... [23:29:05]Read from MH i2c: E2 62 00 [23:29:05]MH_I2C_Read... [23:29:05]Read from MH i2c: E2 62 00 AB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B3 01 00 0E 04 04 00 84 01 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 B7 [23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B3 01 00 0E 04 04 00 84 01 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 [23:29:05]wFMCommunicate OK [23:29:05]SAM_PROTO_GetFieldsCounters done [23:29:05]requested_item shift.num is exist - process it [23:29:05]requested_item shift.opened is exist - process it [23:29:05]req_shift_opened [23:29:05]FM_GetShiftState [23:29:05]SAM_PROTO_GetShiftState [23:29:05]wFMCommunicate request_size=4 [23:29:05]MH_SAM_APDU [23:29:05]CAPDU: 80 13 01 00 [23:29:05]Write to MH i2c: E2 08 00 AC 3C 80 13 01 00 00 00 00 00 65 [23:29:05]Write i2c OK [23:29:05]MH_I2C_Read... [23:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:05]Read from MH i2c: E2 [23:29:05]MH_I2C_Read... [23:29:05]Read from MH i2c: E2 0E 00 [23:29:05]MH_I2C_Read... [23:29:05]Read from MH i2c: E2 0E 00 AC 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 AF [23:29:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:29:05]wFMCommunicate OK [23:29:05]SAM_PROTO_GetShiftState done [23:29:05]FM_GetShiftState done [23:29:05]req_shift_opened done [23:29:05]requested_item shift.open_date is exist - process it [23:29:05]req_shift_open_date [23:29:05]req_shift_open_date done [23:29:05]produce_requested_data done [23:29:05]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111532,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:29:05]process_action_free print_text [23:29:05]json_value_free [23:29:05]json_value_free done [23:29:05]process_json_proto returns [23:29:05]Send response to host [23:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111532,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:29:05]free response buf [23:29:05]execute_script done [23:29:05]execute_script returns [23:29:05]free content buf [23:29:05]Sock 9.Close socket [23:29:05]Sock 9.Thread stoped [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]accept exits with 7 [23:30:12]New connection [23:30:12]New thread 3067465060 created [23:30:12]Thread 3067321700 joined [23:30:12]Waiting for new connection... [23:30:12] Sock 7.Parse request [23:30:12]Sock 7.Check first char [23:30:12]Sock 7.First char is OK [23:30:12]request: POST /json_proto HTTP/1.0 [23:30:12]Method: POST [23:30:12]URL: /json_proto [23:30:12]Method is POST - this is cgi request [23:30:12]url: /json_proto [23:30:12]query_string will be loaded in cgi processing [23:30:12]execute_cgi json_proto POST (null) [23:30:12]execute_cgi path=json_proto method=POST [23:30:12]POST find Content-Length [23:30:12]Host: 172.17.59.68:8080 [23:30:12]Content-Length: 1199 [23:30:12]Content-Type: application/json [23:30:12] [23:30:12]POST finish read [23:30:12]Found Content-Length = 1199 [23:30:12]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320129\u000A19.06.2024 21:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889906;3889905\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:12]execute_script... [23:30:12]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320129\u000A19.06.2024 21:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1328.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889906;3889905\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:12]POST & json_proto [23:30:12]process_json_proto [23:30:12]json parsed OK: [23:30:12]protocol is kg_v1.0 [23:30:12]action value=print_text [23:30:12]process_action print_text [23:30:12]cmd_print_text [23:30:12]ExternCall_PrintAddStr [23:30:12]wPrintStart [23:30:12]Write to MH i2c: 01 00 00 AD 3C E9 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 AD 3C 00 00 00 00 00 FF 0F FE [23:30:12]RasterBufferAndPrint [23:30:12]line *****ТОВАРНЫЙ ЧЕК***** [23:30:12]line АЗС 65 [23:30:12]line Партнер нефть [23:30:12]line 02508201610067 [23:30:12]line Кассир : Амантуров Р. [23:30:12]line Счет N : (1)320129 [23:30:12]line 19.06.2024 21:58 [23:30:12]line ПРОДАЖА [23:30:12]line ТРК (МРК, ГНК): 11 [23:30:12]line Вид ГСМ : 2710124130 [23:30:12]line Аи-92-К-5 [23:30:12]line 20.000 x 66.40 [23:30:12]line ИТОГ: 1328.00 [23:30:12]line Тип оплаты: Талоны: Партнер нефть [23:30:12]line 3889906;3889905 [23:30:12]line ______________________ [23:30:12]line (подпись) [23:30:12]written 0, free lines is 4095 [23:30:12]Write to MH i2c: 01 00 00 C1 3C FD [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: 01 07 00 C1 3C 00 00 00 00 00 16 0E 28 [23:30:12]RasterBufferAndPrint [23:30:12]line [23:30:12]line [23:30:12]line [23:30:12]line [23:30:12]line [23:30:12]written 0, free lines is 3608 [23:30:12]MH_Cut [23:30:12]Write to MH i2c: D1 01 00 C8 3C 01 D6 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: D1 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: D1 01 00 [23:30:12]MH_I2C_Read... [23:30:12]Read from MH i2c: D1 01 00 C8 3C 00 D5 [23:30:12]Write to MH i2c: 01 00 00 C9 3C 05 [23:30:12]Write i2c OK [23:30:12]MH_I2C_Read... [23:30:12]OFD Sender: No OFD packet to send [23:30:13]*** Cut start [23:30:13]*** Partial cut [23:30:13]*** CUTSNS_PIN = 1 [23:30:13]*** CUTSNS_PIN = 0 [23:30:13]*** Brake cut motor [23:30:13]Read from MH i2c: 01 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: 01 07 00 [23:30:13]MH_I2C_Read... [23:30:13]*** Stop cut motor [23:30:13]*** Cut end [23:30:13]Read from MH i2c: 01 07 00 C9 3C 00 00 00 00 00 FF 0F 1A [23:30:13]process_action print_text done [23:30:13]requested_data is exist [23:30:13]produce_requested_data [23:30:13]requested_item fm.sn is exist - process it [23:30:13]wFMCommunicate request_size=4 [23:30:13]MH_SAM_APDU [23:30:13]CAPDU: 80 11 00 00 [23:30:13]Write to MH i2c: E2 08 00 CA 3C 80 11 00 00 00 00 00 00 80 [23:30:13]Write i2c OK [23:30:13]MH_I2C_Read... [23:30:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:13]Read from MH i2c: E2 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 17 00 [23:30:13]MH_I2C_Read... [23:30:13]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 35 30 38 33 90 00 D2 [23:30:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:30:13]wFMCommunicate OK [23:30:13]requested_item fd.num is exist - process it [23:30:13]SAM_PROTO_GetFieldsCounters [23:30:13]wFMCommunicate request_size=4 [23:30:13]MH_SAM_APDU [23:30:13]CAPDU: 80 13 00 00 [23:30:13]Write to MH i2c: E2 08 00 CB 3C 80 13 00 00 00 00 00 00 83 [23:30:13]Write i2c OK [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 [23:30:13]MH_I2C_Read... [23:30:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:13]Read from MH i2c: E2 62 00 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 62 00 CB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [23: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B3 01 00 0E 04 04 00 84 01 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 [23:30:13]wFMCommunicate OK [23:30:13]SAM_PROTO_GetFieldsCounters done [23:30:13]requested_item shift.num is exist - process it [23:30:13]requested_item shift.opened is exist - process it [23:30:13]req_shift_opened [23:30:13]FM_GetShiftState [23:30:13]SAM_PROTO_GetShiftState [23:30:13]wFMCommunicate request_size=4 [23:30:13]MH_SAM_APDU [23:30:13]CAPDU: 80 13 01 00 [23:30:13]Write to MH i2c: E2 08 00 CC 3C 80 13 01 00 00 00 00 00 85 [23:30:13]Write i2c OK [23:30:13]MH_I2C_Read... [23:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:13]Read from MH i2c: E2 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 0E 00 [23:30:13]MH_I2C_Read... [23:30:13]Read from MH i2c: E2 0E 00 CC 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 CF [23:30:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:30:13]wFMCommunicate OK [23:30:13]SAM_PROTO_GetShiftState done [23:30:13]FM_GetShiftState done [23:30:13]req_shift_opened done [23:30:13]requested_item shift.open_date is exist - process it [23:30:13]req_shift_open_date [23:30:13]req_shift_open_date done [23:30:13]produce_requested_data done [23:30:13]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111532,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:30:13]process_action_free print_text [23:30:13]json_value_free [23:30:13]json_value_free done [23:30:13]process_json_proto returns [23:30:13]Send response to host [23:30:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111532,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:30:13]free response buf [23:30:13]execute_script done [23:30:13]execute_script returns [23:30:13]free content buf [23:30:13]Sock 7.Close socket [23:30:13]Sock 7.Thread stoped [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:53]accept exits with 9 [23:30:53]New connection [23:30:53]New thread 3067321700 created [23:30:53]Thread 3067465060 joined [23:30:53]Waiting for new connection... [23:30:53] Sock 9.Parse request [23:30:53]Sock 9.Check first char [23:30:53]Sock 9.First char is OK [23:30:53]request: POST /json_proto HTTP/1.0 [23:30:53]Method: POST [23:30:53]URL: /json_proto [23:30:53]Method is POST - this is cgi request [23:30:53]url: /json_proto [23:30:53]query_string will be loaded in cgi processing [23:30:53]execute_cgi json_proto POST (null) [23:30:53]execute_cgi path=json_proto method=POST [23:30:53]POST find Content-Length [23:30:53]Host: 172.17.59.68:8080 [23:30:53]Content-Length: 1190 [23:30:53]Content-Type: application/json [23:30:53] [23:30:53]POST finish read [23:30:53]Found Content-Length = 1190 [23:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320130\u000A19.06.2024 21:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889909\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:53]execute_script... [23:30:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320130\u000A19.06.2024 21:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 664.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3889909\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:53]POST & json_proto [23:30:53]process_json_proto [23:30:53]json parsed OK: [23:30:53]protocol is kg_v1.0 [23:30:53]action value=print_text [23:30:53]process_action print_text [23:30:53]cmd_print_text [23:30:53]ExternCall_PrintAddStr [23:30:53]wPrintStart [23:30:53]Write to MH i2c: 01 00 00 CD 3C 09 [23:30:53]Write i2c OK [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: 01 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: 01 07 00 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: 01 07 00 CD 3C 00 00 00 00 00 FF 0F 1E [23:30:53]RasterBufferAndPrint [23:30:53]line *****ТОВАРНЫЙ ЧЕК***** [23:30:53]line АЗС 65 [23:30:53]line Партнер нефть [23:30:53]line 02508201610067 [23:30:53]line Кассир : Амантуров Р. [23:30:53]line Счет N : (1)320130 [23:30:53]line 19.06.2024 21:59 [23:30:53]line ПРОДАЖА [23:30:53]line ТРК (МРК, ГНК): 11 [23:30:53]line Вид ГСМ : 2710124130 [23:30:53]line Аи-92-К-5 [23:30:53]line 10.000 x 66.40 [23:30:53]line ИТОГ: 664.00 [23:30:53]line Тип оплаты: Талоны: Партнер нефть [23:30:53]line 3889909 [23:30:53]line ______________________ [23:30:53]line (подпись) [23:30:53]written 0, free lines is 4095 [23:30:53]Write to MH i2c: 01 00 00 E1 3C 1D [23:30:53]Write i2c OK [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: 01 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: 01 07 00 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: 01 07 00 E1 3C 00 00 00 00 00 11 0E 43 [23:30:53]RasterBufferAndPrint [23:30:53]line [23:30:53]line [23:30:53]line [23:30:53]line [23:30:53]line [23:30:53]written 0, free lines is 3602 [23:30:53]MH_Cut [23:30:53]Write to MH i2c: D1 01 00 E8 3C 01 F6 [23:30:53]Write i2c OK [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: D1 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: D1 01 00 [23:30:53]MH_I2C_Read... [23:30:53]Read from MH i2c: D1 01 00 E8 3C 00 F5 [23:30:53]Write to MH i2c: 01 00 00 E9 3C 25 [23:30:53]Write i2c OK [23:30:53]MH_I2C_Read... [23:30:54]*** Cut start [23:30:54]*** Partial cut [23:30:54]*** CUTSNS_PIN = 1 [23:30:54]*** CUTSNS_PIN = 0 [23:30:54]*** Brake cut motor [23:30:54]Read from MH i2c: 01 [23:30:54]MH_I2C_Read... [23:30:54]*** Stop cut motor [23:30:54]*** Cut end [23:30:54]Read from MH i2c: 01 07 00 [23:30:54]MH_I2C_Read... [23:30:54]Read from MH i2c: 01 07 00 E9 3C 00 00 00 00 00 FF 0F 3A [23:30:54]process_action print_text done [23:30:54]requested_data is exist [23:30:54]produce_requested_data [23:30:54]requested_item fm.sn is exist - process it [23:30:54]wFMCommunicate request_size=4 [23:30:54]MH_SAM_APDU [23:30:54]CAPDU: 80 11 00 00 [23:30:54]Write to MH i2c: E2 08 00 EA 3C 80 11 00 00 00 00 00 00 A0 [23:30:54]Write i2c OK [23:30:54]MH_I2C_Read... [23:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:54]Read from MH i2c: E2 [23:30:54]MH_I2C_Read... [23:30:54]Read from MH i2c: E2 17 00 [23:30:54]MH_I2C_Read... [23:30:54]Read from MH i2c: E2 17 00 EA 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F2 [23:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:30:54]wFMCommunicate OK [23:30:54]requested_item fd.num is exist - process it [23:30:54]SAM_PROTO_GetFieldsCounters [23:30:54]wFMCommunicate request_size=4 [23:30:54]MH_SAM_APDU [23:30:54]CAPDU: 80 13 00 00 [23:30:54]Write to MH i2c: E2 08 00 EB 3C 80 13 00 00 00 00 00 00 A3 [23:30:54]Write i2c OK [23:30:54]MH_I2C_Read... [23:30:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:55]Read from MH i2c: E2 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 62 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 62 00 EB 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B3 01 00 0E 04 04 00 84 01 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 F7 [23:30:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AC B3 01 00 0E 04 04 00 84 01 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 [23:30:55]wFMCommunicate OK [23:30:55]SAM_PROTO_GetFieldsCounters done [23:30:55]requested_item shift.num is exist - process it [23:30:55]requested_item shift.opened is exist - process it [23:30:55]req_shift_opened [23:30:55]FM_GetShiftState [23:30:55]SAM_PROTO_GetShiftState [23:30:55]wFMCommunicate request_size=4 [23:30:55]MH_SAM_APDU [23:30:55]CAPDU: 80 13 01 00 [23:30:55]Write to MH i2c: E2 08 00 EC 3C 80 13 01 00 00 00 00 00 A5 [23:30:55]Write i2c OK [23:30:55]MH_I2C_Read... [23:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:55]Read from MH i2c: E2 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 0E 00 [23:30:55]MH_I2C_Read... [23:30:55]Read from MH i2c: E2 0E 00 EC 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 EF [23:30:55]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:30:55]wFMCommunicate OK [23:30:55]SAM_PROTO_GetShiftState done [23:30:55]FM_GetShiftState done [23:30:55]req_shift_opened done [23:30:55]requested_item shift.open_date is exist - process it [23:30:55]req_shift_open_date [23:30:55]req_shift_open_date done [23:30:55]produce_requested_data done [23:30:55]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111532,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:30:55]process_action_free print_text [23:30:55]json_value_free [23:30:55]json_value_free done [23:30:55]process_json_proto returns [23:30:55]Send response to host [23:30:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111532,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:30:55]free response buf [23:30:55]execute_script done [23:30:55]execute_script returns [23:30:55]free content buf [23:30:55]Sock 9.Close socket [23:30:55]Sock 9.Thread stoped [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:02]accept exits with 7 [23:33:02]New connection [23:33:02]New thread 3067465060 created [23:33:02]Thread 3067321700 joined [23:33:02]Waiting for new connection... [23:33:02] Sock 7.Parse request [23:33:02]Sock 7.Check first char [23:33:02]Sock 7.First char is OK [23:33:02]request: POST /json_proto HTTP/1.0 [23:33:02]Method: POST [23:33:02]URL: /json_proto [23:33:02]Method is POST - this is cgi request [23:33:02]url: /json_proto [23:33:02]query_string will be loaded in cgi processing [23:33:02]execute_cgi json_proto POST (null) [23:33:02]execute_cgi path=json_proto method=POST [23:33:02]POST find Content-Length [23:33:02]Host: 172.17.59.68:8080 [23:33:02]Content-Length: 682 [23:33:02]Content-Type: application/json [23:33:02] [23:33:02]POST finish read [23:33:02]Found Content-Length = 682 [23:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:02]execute_script... [23:33:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:02]POST & json_proto [23:33:02]process_json_proto [23:33:02]json parsed OK: [23:33:02]protocol is kg_v1.0 [23:33:02]action value=close_receipt [23:33:02]process_action close_receipt [23:33:02]cmd_close_receipt [23:33:02]MH_GetDate [23:33:02]Write to MH i2c: F0 00 00 ED 3C 18 [23:33:02]Write i2c OK [23:33:02]MH_I2C_Read... [23:33:02]Read from MH i2c: F0 [23:33:02]MH_I2C_Read... [23:33:02]Read from MH i2c: F0 09 00 [23:33:02]MH_I2C_Read... [23:33:02]Read from MH i2c: F0 09 00 ED 3C 00 BE 6A 73 66 BC EC 60 65 8F [23:33:02]GetLastDocTimeStamp 1718839670 [23:33:02]current date 1718839998 [23:33:02]FM_GetShiftState [23:33:02]SAM_PROTO_GetShiftState [23:33:02]wFMCommunicate request_size=4 [23:33:02]MH_SAM_APDU [23:33:02]CAPDU: 80 13 01 00 [23:33:02]Write to MH i2c: E2 08 00 EE 3C 80 13 01 00 00 00 00 00 A7 [23:33:02]Write i2c OK [23:33:02]MH_I2C_Read... [23:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:02]Read from MH i2c: E2 [23:33:02]MH_I2C_Read... [23:33:02]Read from MH i2c: E2 0E 00 [23:33:02]MH_I2C_Read... [23:33:02]Read from MH i2c: E2 0E 00 EE 3C 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F1 [23:33:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:33:02]wFMCommunicate OK [23:33:02]SAM_PROTO_GetShiftState done [23:33:02]FM_GetShiftState done [23:33:02]opened in 1718760753 [23:33:02]opened+sec_in_day 1718847153 [23:33:02]quantity*price = 100060 [23:33:02]sum+1 = 100062 [23:33:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 282 19.06.2024 23:33 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111533 ФПД: 96153486000607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T233318&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111533&fm=96153486000607&tin=02508201610067®Number=0000000000092771&sum=100000 [23:33:03]StoreToDocumentArchive [23:33:03]shift 388 fd 111533 [23:33:03]save to /storage/0388/doc_00111533 [23:33:03]save last doc name /storage/0388/doc_00111533 to /storage/kkm_last_doc_name [23:33:03]save OK [23:33:03]Clear old archive folders... [23:33:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:33:03]tlvbuf is 00F1E9F0 [23:33:03]SAM_PROTO_ClearQueue [23:33:03]wFMCommunicate request_size=4 [23:33:03]MH_SAM_APDU [23:33:03]CAPDU: 80 09 00 00 [23:33:03]Write to MH i2c: E2 08 00 FB 3C 80 09 00 00 00 00 00 00 A9 [23:33:03]Write i2c OK [23:33:03]MH_I2C_Read... [23:33:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:03]Read from MH i2c: E2 [23:33:03]MH_I2C_Read... [23:33:03]Read from MH i2c: E2 03 00 [23:33:03]MH_I2C_Read... [23:33:03]Read from MH i2c: E2 03 00 FB 3C 00 90 00 AB [23:33:03]RAPDU: 90 00 [23:33:03]wFMCommunicate OK [23:33:03]SAM_PROTO_ClearQueue done [23:33:03]KKMCreateOFDPacket [23:33:03]OFDProtocolAddRootSTLVToBuf [23:33:03]FM_MakeSignedData [23:33:03]FM_MakeSignedData [23:33:03]SAM_PROTO_SignData [23:33:03]wFMCommunicate request_size=4 [23:33:03]MH_SAM_APDU [23:33:03]CAPDU: 80 0D 01 02 [23:33:03]Write to MH i2c: E2 08 00 FC 3C 80 0D 01 02 00 00 00 00 B1 [23:33:03]Write i2c OK [23:33:03]MH_I2C_Read... [23:33:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:03]Read from MH i2c: E2 [23:33:03]MH_I2C_Read... [23:33:03]Read from MH i2c: E2 03 00 [23:33:03]MH_I2C_Read... [23:33:03]Read from MH i2c: E2 03 00 FC 3C 00 90 00 AC [23:33:03]RAPDU: 90 00 [23:33:03]wFMCommunicate OK [23:33:03]wFMCommunicate request_size=255 [23:33:03]MH_SAM_APDU [23:33:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 BE 6A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B3 01 00 35 04 06 00 57 [23:33:03]Write to MH i2c: E2 02 01 FD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 BE 6A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B3 01 00 35 04 06 00 57 00 00 FF [23:33:03]Write i2c OK [23:33:03]MH_I2C_Read... [23:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:04]Read from MH i2c: E2 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 03 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 03 00 FD 3C 00 90 00 AD [23:33:04]RAPDU: 90 00 [23:33:04]wFMCommunicate OK [23:33:04]wFMCommunicate request_size=10 [23:33:04]MH_SAM_APDU [23:33:04]CAPDU: 80 0D 02 02 05 73 7A 60 81 DF [23:33:04]Write to MH i2c: E2 0D 00 FE 3C 80 0D 02 02 05 00 73 7A 60 81 DF 00 00 6B [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:04]Read from MH i2c: E2 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 03 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 03 00 FE 3C 00 90 00 AE [23:33:04]RAPDU: 90 00 [23:33:04]wFMCommunicate OK [23:33:04]wFMCommunicate request_size=4 [23:33:04]MH_SAM_APDU [23:33:04]CAPDU: 80 0D 03 02 [23:33:04]Write to MH i2c: E2 08 00 FF 3C 80 0D 03 02 00 00 00 00 B6 [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:04]Read from MH i2c: E2 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 0B 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 0B 00 FF 3C 00 4A 02 7F 59 5E D4 94 34 90 00 D5 [23:33:04]RAPDU: 4A 02 7F 59 5E D4 94 34 90 00 [23:33:04]wFMCommunicate OK [23:33:04]SAM_PROTO_SignData done [23:33:04]FM_MakeSignedData done [23:33:04]CreateOFDProtocolMessage [23:33:04]wFMCommunicate request_size=4 [23:33:04]MH_SAM_APDU [23:33:04]CAPDU: 80 11 00 00 [23:33:04]Write to MH i2c: E2 08 00 00 3D 80 11 00 00 00 00 00 00 B7 [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:04]Read from MH i2c: E2 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 17 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 17 00 00 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 09 [23:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:33:04]wFMCommunicate OK [23:33:04]CreateOFDProtocolMessage done [23:33:04]OFDSenderStorePacket 111533 [23:33:04]StoreOFDPacket docnum=111533 [23:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B 82 07 01 C9 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 BE 6A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B3 01 00 35 04 06 00 57 73 7A 60 81 DF 4A 02 7F 59 5E D4 94 34 [23:33:04]CheckFolder [23:33:04]dirname=/storage/ofd_packets [23:33:04]CheckFolder done [23:33:04]ProducePacketName [23:33:04]name=ofd_packets/00111533 [23:33:04]NVStorageSaveData ofd_packets/00111533 [23:33:04]File name is /storage/ofd_packets/00111533 [23:33:04]Write 301 bytes [23:33:04]NVStorageSaveData done [23:33:04]OFDSenderStorePacket done [23:33:04]KKMCreateOFDPacket done [23:33:04]NVStorageSaveData kkm_last_timestamp [23:33:04]File name is /storage/kkm_last_timestamp [23:33:04]Write 4 bytes [23:33:04]NVStorageSaveData done [23:33:04]OFD Sender: Processing packet 111533 [packets to send 38, broken 37] [23:33:04]ProducePacketName [23:33:04]name=ofd_packets/00111533 [23:33:04]OFD Sender: To server: pG, [23:33:04]CommunicateWithHost lk.salyk.kg:30040 [23:33:04]ConnectInit lk.salyk.kg [23:33:04]ExternCall_PrintAddStr [23:33:04]wPrintStart [23:33:04]Write to MH i2c: 01 00 00 01 3D 3E [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: 01 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: 01 07 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: 01 07 00 01 3D 00 00 00 00 00 FF 0F 53 [23:33:04]RasterBufferAndPrint [23:33:04]line Счет N : (1)320131 [23:33:04]line ИНН: 02508201610067 [23:33:04]line Контрольно-Кассовый Чек [23:33:04]line ПРОДАЖА [23:33:04]line ТРК (МРК, ГНК) : 12 [23:33:04]line Товар: 2710124500 [23:33:04]line Аи-95-К-5 [23:33:04]line 13.540 * 73.90 [23:33:04]line = 1000.61 [23:33:04]line НДС 12% НСП 1% [23:33:04]line > о реализуемом товаре [23:33:04]line ОКРУГЛЕНИЕ: -0.61 [23:33:04]line ИТОГО: 1000.00 [23:33:04]line Внесено: 1000.00 [23:33:04]line СДАЧА: 0.00 [23:33:04]line НСП 1% : 8.85 [23:33:04]line НДС 12% : 106.26 [23:33:04]line Наличными: 1000.00 [23:33:04]line Безнал.: 0.00 [23:33:04]line Место: АЗС № 65 "Партнер Нефть" [23:33:04]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:33:04]line СНО: Общий режим [23:33:04]line Чек 282 19.06.2024 23:33 [23:33:04]line Смена: 388 ФФД: 1.0 [23:33:04]line ЗНМ: 0300000198 [23:33:04]line РНМ: 0000000000092771 [23:33:04]line Версия ККМ: 001 [23:33:04]line ФМ: 0000000000875083 [23:33:04]line ФД: 111533 [23:33:04]line ФПД: 96153486000607 [23:33:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T233318&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111533&fm=96153486000607&tin=02508201610067®Number=0000000000092771&sum=100000 [23:33:04]Connected sock=11 [23:33:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6B 82 07 01 C9 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 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 01 00 00 F4 03 04 00 BE 6A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AD B3 01 00 35 04 06 00 57 73 7A 60 81 DF 4A 02 7F 59 5E D4 94 34 [23:33:04]written 0, free lines is 4095 [23:33:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 EE 40 47 00 D0 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 35 30 38 33 10 04 04 00 AD B3 01 00 F4 03 04 00 19 02 73 66 B6 04 01 00 00 52 00 76 6C CC 21 5B 2C [23:33:04]CommunicateWithHost err = 0 [23:33:04]CheckOFDResponse [23:33:04]1017 (14) - 77093643461234 [23:33:04]1041 (16) - 0000000000875083 [23:33:04]1040 (4) - 111533 [23:33:04]1012 (4) - 19.06.2024 16:06 [23:33:04]1206 (1) - 0 [23:33:04]OFD Sender: Remove packet 111533 [23:33:04]ProducePacketName [23:33:04]name=ofd_packets/00111533 [23:33:04]NVStorageDeleteData [23:33:04]Write to MH i2c: 01 00 00 2C 3D 69 [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: 01 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: 01 07 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: 01 07 00 2C 3D 00 00 00 00 00 CD 0C 49 [23:33:04]RasterBufferAndPrint [23:33:04]line [23:33:04]line [23:33:04]line [23:33:04]line [23:33:04]line [23:33:04]written 0, free lines is 3283 [23:33:05]MH_Cut [23:33:05]Write to MH i2c: D1 01 00 33 3D 01 42 [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: D1 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: D1 01 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: D1 01 00 33 3D 00 41 [23:33:05]Write to MH i2c: 01 00 00 34 3D 71 [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]OFD Sender: No OFD packet to send [23:33:05]*** Cut start [23:33:05]*** Partial cut [23:33:05]*** CUTSNS_PIN = 1 [23:33:05]*** CUTSNS_PIN = 0 [23:33:05]*** Brake cut motor [23:33:06]Read from MH i2c: 01 [23:33:06]MH_I2C_Read... [23:33:06]*** Stop cut motor [23:33:06]*** Cut end [23:33:06]Read from MH i2c: 01 07 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 07 00 34 3D 00 00 00 00 00 FF 0F 86 [23:33:06]process_action close_receipt done [23:33:06]requested_data is exist [23:33:06]produce_requested_data [23:33:06]requested_item fm.sn is exist - process it [23:33:06]wFMCommunicate request_size=4 [23:33:06]MH_SAM_APDU [23:33:06]CAPDU: 80 11 00 00 [23:33:06]Write to MH i2c: E2 08 00 35 3D 80 11 00 00 00 00 00 00 EC [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:06]Read from MH i2c: E2 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 17 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 17 00 35 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 3E [23:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:33:06]wFMCommunicate OK [23:33:06]requested_item fd.num is exist - process it [23:33:06]SAM_PROTO_GetFieldsCounters [23:33:06]wFMCommunicate request_size=4 [23:33:06]MH_SAM_APDU [23:33:06]CAPDU: 80 13 00 00 [23:33:06]Write to MH i2c: E2 08 00 36 3D 80 13 00 00 00 00 00 00 EF [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:06]Read from MH i2c: E2 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 62 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 62 00 36 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B3 01 00 0E 04 04 00 84 01 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 47 [23:33: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AD B3 01 00 0E 04 04 00 84 01 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 [23:33:06]wFMCommunicate OK [23:33:06]SAM_PROTO_GetFieldsCounters done [23:33:06]requested_item shift.num is exist - process it [23:33:06]requested_item shift.opened is exist - process it [23:33:06]req_shift_opened [23:33:06]FM_GetShiftState [23:33:06]SAM_PROTO_GetShiftState [23:33:06]wFMCommunicate request_size=4 [23:33:06]MH_SAM_APDU [23:33:06]CAPDU: 80 13 01 00 [23:33:06]Write to MH i2c: E2 08 00 37 3D 80 13 01 00 00 00 00 00 F1 [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:06]Read from MH i2c: E2 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 0E 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: E2 0E 00 37 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3B [23:33:06]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:33:06]wFMCommunicate OK [23:33:06]SAM_PROTO_GetShiftState done [23:33:06]FM_GetShiftState done [23:33:06]req_shift_opened done [23:33:06]requested_item shift.open_date is exist - process it [23:33:06]req_shift_open_date [23:33:06]req_shift_open_date done [23:33:06]produce_requested_data done [23:33:06]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111533,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:33:06]process_action_free close_receipt [23:33:06]json_value_free [23:33:06]json_value_free done [23:33:06]process_json_proto returns [23:33:06]Send response to host [23:33:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111533,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:33:06]free response buf [23:33:06]execute_script done [23:33:06]execute_script returns [23:33:06]free content buf [23:33:06]Sock 7.Close socket [23:33:06]Sock 7.Thread stoped [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:23]accept exits with 9 [23:38:23]New connection [23:38:23]New thread 3067321700 created [23:38:23]Thread 3067465060 joined [23:38:23]Waiting for new connection... [23:38:23] Sock 9.Parse request [23:38:23]Sock 9.Check first char [23:38:23]Sock 9.First char is OK [23:38:23]request: POST /json_proto HTTP/1.0 [23:38:23]Method: POST [23:38:23]URL: /json_proto [23:38:23]Method is POST - this is cgi request [23:38:23]url: /json_proto [23:38:23]query_string will be loaded in cgi processing [23:38:23]execute_cgi json_proto POST (null) [23:38:23]execute_cgi path=json_proto method=POST [23:38:23]POST find Content-Length [23:38:23]Host: 172.17.59.68:8080 [23:38:23]Content-Length: 677 [23:38:23]Content-Type: application/json [23:38:23] [23:38:23]POST finish read [23:38:23]Found Content-Length = 677 [23:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:23]execute_script... [23:38:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:38:23]POST & json_proto [23:38:23]process_json_proto [23:38:23]json parsed OK: [23:38:23]protocol is kg_v1.0 [23:38:23]action value=close_receipt [23:38:23]process_action close_receipt [23:38:23]cmd_close_receipt [23:38:23]MH_GetDate [23:38:23]Write to MH i2c: F0 00 00 38 3D 64 [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: F0 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: F0 09 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: F0 09 00 38 3D 00 FF 6B 73 66 BC EC 60 65 1D [23:38:23]GetLastDocTimeStamp 1718839998 [23:38:23]current date 1718840319 [23:38:23]FM_GetShiftState [23:38:23]SAM_PROTO_GetShiftState [23:38:23]wFMCommunicate request_size=4 [23:38:23]MH_SAM_APDU [23:38:23]CAPDU: 80 13 01 00 [23:38:23]Write to MH i2c: E2 08 00 39 3D 80 13 01 00 00 00 00 00 F3 [23:38:23]Write i2c OK [23:38:23]MH_I2C_Read... [23:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:23]Read from MH i2c: E2 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 0E 00 [23:38:23]MH_I2C_Read... [23:38:23]Read from MH i2c: E2 0E 00 39 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3D [23:38:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:38:23]wFMCommunicate OK [23:38:23]SAM_PROTO_GetShiftState done [23:38:23]FM_GetShiftState done [23:38:23]opened in 1718760753 [23:38:23]opened+sec_in_day 1718847153 [23:38:23]quantity*price = 50065 [23:38:23]sum+1 = 50067 [23:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 283 19.06.2024 23:38 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111534 ФПД: 25102942474997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T233839&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111534&fm=25102942474997&tin=02508201610067®Number=0000000000092771&sum=50000 [23:38:24]StoreToDocumentArchive [23:38:24]shift 388 fd 111534 [23:38:24]save to /storage/0388/doc_00111534 [23:38:24]save last doc name /storage/0388/doc_00111534 to /storage/kkm_last_doc_name [23:38:24]save OK [23:38:24]Clear old archive folders... [23:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:38:24]tlvbuf is B6F578A0 [23:38:24]SAM_PROTO_ClearQueue [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 09 00 00 [23:38:24]Write to MH i2c: E2 08 00 46 3D 80 09 00 00 00 00 00 00 F5 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 46 3D 00 90 00 F7 [23:38:24]RAPDU: 90 00 [23:38:24]wFMCommunicate OK [23:38:24]SAM_PROTO_ClearQueue done [23:38:24]KKMCreateOFDPacket [23:38:24]OFDProtocolAddRootSTLVToBuf [23:38:24]FM_MakeSignedData [23:38:24]FM_MakeSignedData [23:38:24]SAM_PROTO_SignData [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 0D 01 02 [23:38:24]Write to MH i2c: E2 08 00 47 3D 80 0D 01 02 00 00 00 00 FD [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 47 3D 00 90 00 F8 [23:38:24]RAPDU: 90 00 [23:38:24]wFMCommunicate OK [23:38:24]wFMCommunicate request_size=255 [23:38:24]MH_SAM_APDU [23:38: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 FF 6B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B3 01 00 35 04 06 00 16 [23:38:24]Write to MH i2c: E2 02 01 48 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 FF 6B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B3 01 00 35 04 06 00 16 00 00 0D [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 48 3D 00 90 00 F9 [23:38:24]RAPDU: 90 00 [23:38:24]wFMCommunicate OK [23:38:24]wFMCommunicate request_size=10 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 0D 02 02 05 D4 BB F8 12 F5 [23:38:24]Write to MH i2c: E2 0D 00 49 3D 80 0D 02 02 05 00 D4 BB F8 12 F5 00 00 98 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 03 00 49 3D 00 90 00 FA [23:38:24]RAPDU: 90 00 [23:38:24]wFMCommunicate OK [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 0D 03 02 [23:38:24]Write to MH i2c: E2 08 00 4A 3D 80 0D 03 02 00 00 00 00 02 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 0B 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 0B 00 4A 3D 00 29 0E E4 AC FB 74 EE AF 90 00 D6 [23:38:24]RAPDU: 29 0E E4 AC FB 74 EE AF 90 00 [23:38:24]wFMCommunicate OK [23:38:24]SAM_PROTO_SignData done [23:38:24]FM_MakeSignedData done [23:38:24]CreateOFDProtocolMessage [23:38:24]wFMCommunicate request_size=4 [23:38:24]MH_SAM_APDU [23:38:24]CAPDU: 80 11 00 00 [23:38:24]Write to MH i2c: E2 08 00 4B 3D 80 11 00 00 00 00 00 00 02 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:24]Read from MH i2c: E2 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 17 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: E2 17 00 4B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 54 [23:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:38:24]wFMCommunicate OK [23:38:24]CreateOFDProtocolMessage done [23:38:24]OFDSenderStorePacket 111534 [23:38:24]StoreOFDPacket docnum=111534 [23:38:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 F5 07 01 47 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 FF 6B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B3 01 00 35 04 06 00 16 D4 BB F8 12 F5 29 0E E4 AC FB 74 EE AF [23:38:24]CheckFolder [23:38:24]dirname=/storage/ofd_packets [23:38:24]CheckFolder done [23:38:24]ProducePacketName [23:38:24]name=ofd_packets/00111534 [23:38:24]NVStorageSaveData ofd_packets/00111534 [23:38:24]File name is /storage/ofd_packets/00111534 [23:38:24]Write 301 bytes [23:38:24]NVStorageSaveData done [23:38:24]OFDSenderStorePacket done [23:38:24]KKMCreateOFDPacket done [23:38:24]NVStorageSaveData kkm_last_timestamp [23:38:24]File name is /storage/kkm_last_timestamp [23:38:24]Write 4 bytes [23:38:24]NVStorageSaveData done [23:38:24]ExternCall_PrintAddStr [23:38:24]wPrintStart [23:38:24]Write to MH i2c: 01 00 00 4C 3D 89 [23:38:24]Write i2c OK [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: 01 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: 01 07 00 [23:38:24]MH_I2C_Read... [23:38:24]Read from MH i2c: 01 07 00 4C 3D 00 00 00 00 00 FF 0F 9E [23:38:24]RasterBufferAndPrint [23:38:24]line Счет N : (1)320132 [23:38:24]line ИНН: 02508201610067 [23:38:24]line Контрольно-Кассовый Чек [23:38:24]line ПРОДАЖА [23:38:24]line ТРК (МРК, ГНК) : 11 [23:38:24]line Товар: 2710124130 [23:38:24]line Аи-92-К-5 [23:38:24]line 7.540 * 66.40 [23:38:24]line = 500.66 [23:38:24]line НДС 12% НСП 1% [23:38:24]line > о реализуемом товаре [23:38:24]line ОКРУГЛЕНИЕ: -0.66 [23:38:24]line ИТОГО: 500.00 [23:38:24]line Внесено: 500.00 [23:38:24]line СДАЧА: 0.00 [23:38:24]line НСП 1% : 4.43 [23:38:24]line НДС 12% : 53.17 [23:38:24]line Наличными: 500.00 [23:38:24]line Безнал.: 0.00 [23:38:24]line Место: АЗС № 65 "Партнер Нефть" [23:38:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:38:24]line СНО: Общий режим [23:38:24]line Чек 283 19.06.2024 23:38 [23:38:24]line Смена: 388 ФФД: 1.0 [23:38:24]line ЗНМ: 0300000198 [23:38:24]line РНМ: 0000000000092771 [23:38:24]line Версия ККМ: 001 [23:38:24]line ФМ: 0000000000875083 [23:38:24]line ФД: 111534 [23:38:24]line ФПД: 25102942474997 [23:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T233839&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111534&fm=25102942474997&tin=02508201610067®Number=0000000000092771&sum=50000 [23:38:25]OFD Sender: Processing packet 111534 [packets to send 38, broken 37] [23:38:25]ProducePacketName [23:38:25]name=ofd_packets/00111534 [23:38:25]OFD Sender: To server: pG, [23:38:25]CommunicateWithHost lk.salyk.kg:30040 [23:38:25]ConnectInit lk.salyk.kg [23:38:25]written 0, free lines is 4095 [23:38:25]Connected sock=10 [23:38:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 15 F5 07 01 47 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 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 FF 6B 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AE B3 01 00 35 04 06 00 16 D4 BB F8 12 F5 29 0E E4 AC FB 74 EE AF [23:38:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 76 DB 47 00 F2 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 35 30 38 33 10 04 04 00 AE B3 01 00 F4 03 04 00 5A 03 73 66 B6 04 01 00 00 FE 9A 1E F6 DF F7 72 A1 [23:38:25]CommunicateWithHost err = 0 [23:38:25]CheckOFDResponse [23:38:25]1017 (14) - 77093643461234 [23:38:25]1041 (16) - 0000000000875083 [23:38:25]1040 (4) - 111534 [23:38:25]1012 (4) - 19.06.2024 16:12 [23:38:25]1206 (1) - 0 [23:38:25]OFD Sender: Remove packet 111534 [23:38:25]ProducePacketName [23:38:25]name=ofd_packets/00111534 [23:38:25]NVStorageDeleteData [23:38:25]Write to MH i2c: 01 00 00 77 3D B4 [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 07 00 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: 01 07 00 77 3D 00 00 00 00 00 CD 0C 94 [23:38:25]RasterBufferAndPrint [23:38:25]line [23:38:25]line [23:38:25]line [23:38:25]line [23:38:25]line [23:38:25]written 0, free lines is 3283 [23:38:25]MH_Cut [23:38:25]Write to MH i2c: D1 01 00 7E 3D 01 8D [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: D1 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: D1 01 00 [23:38:25]MH_I2C_Read... [23:38:25]Read from MH i2c: D1 01 00 7E 3D 00 8C [23:38:25]Write to MH i2c: 01 00 00 7F 3D BC [23:38:25]Write i2c OK [23:38:25]MH_I2C_Read... [23:38:25]OFD Sender: No OFD packet to send [23:38:26]*** Cut start [23:38:26]*** Partial cut [23:38:26]*** CUTSNS_PIN = 1 [23:38:26]*** CUTSNS_PIN = 0 [23:38:26]*** Brake cut motor [23:38:26]Read from MH i2c: 01 [23:38:26]MH_I2C_Read... [23:38:26]*** Stop cut motor [23:38:26]*** Cut end [23:38:26]Read from MH i2c: 01 07 00 [23:38:26]MH_I2C_Read... [23:38:26]Read from MH i2c: 01 07 00 7F 3D 00 00 00 00 00 FF 0F D1 [23:38:26]process_action close_receipt done [23:38:26]requested_data is exist [23:38:26]produce_requested_data [23:38:26]requested_item fm.sn is exist - process it [23:38:26]wFMCommunicate request_size=4 [23:38:26]MH_SAM_APDU [23:38:26]CAPDU: 80 11 00 00 [23:38:26]Write to MH i2c: E2 08 00 80 3D 80 11 00 00 00 00 00 00 37 [23:38:26]Write i2c OK [23:38:26]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 17 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 17 00 80 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 89 [23:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:38:27]wFMCommunicate OK [23:38:27]requested_item fd.num is exist - process it [23:38:27]SAM_PROTO_GetFieldsCounters [23:38:27]wFMCommunicate request_size=4 [23:38:27]MH_SAM_APDU [23:38:27]CAPDU: 80 13 00 00 [23:38:27]Write to MH i2c: E2 08 00 81 3D 80 13 00 00 00 00 00 00 3A [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 62 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 62 00 81 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B3 01 00 0E 04 04 00 84 01 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 96 [23:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B3 01 00 0E 04 04 00 84 01 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 [23:38:27]wFMCommunicate OK [23:38:27]SAM_PROTO_GetFieldsCounters done [23:38:27]requested_item shift.num is exist - process it [23:38:27]requested_item shift.opened is exist - process it [23:38:27]req_shift_opened [23:38:27]FM_GetShiftState [23:38:27]SAM_PROTO_GetShiftState [23:38:27]wFMCommunicate request_size=4 [23:38:27]MH_SAM_APDU [23:38:27]CAPDU: 80 13 01 00 [23:38:27]Write to MH i2c: E2 08 00 82 3D 80 13 01 00 00 00 00 00 3C [23:38:27]Write i2c OK [23:38:27]MH_I2C_Read... [23:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:38:27]Read from MH i2c: E2 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 0E 00 [23:38:27]MH_I2C_Read... [23:38:27]Read from MH i2c: E2 0E 00 82 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 86 [23:38:27]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:38:27]wFMCommunicate OK [23:38:27]SAM_PROTO_GetShiftState done [23:38:27]FM_GetShiftState done [23:38:27]req_shift_opened done [23:38:27]requested_item shift.open_date is exist - process it [23:38:27]req_shift_open_date [23:38:27]req_shift_open_date done [23:38:27]produce_requested_data done [23:38:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111534,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:38:27]process_action_free close_receipt [23:38:27]json_value_free [23:38:27]json_value_free done [23:38:27]process_json_proto returns [23:38:27]Send response to host [23:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111534,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:38:27]free response buf [23:38:27]execute_script done [23:38:27]execute_script returns [23:38:27]free content buf [23:38:27]Sock 9.Close socket [23:38:27]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]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:46]accept exits with 7 [23:43:46]New connection [23:43:46]New thread 3067465060 created [23:43:46]Thread 3067321700 joined [23:43:46]Waiting for new connection... [23:43:46] Sock 7.Parse request [23:43:46]Sock 7.Check first char [23:43:46]Sock 7.First char is OK [23:43:46]request: POST /json_proto HTTP/1.0 [23:43:46]Method: POST [23:43:46]URL: /json_proto [23:43:46]Method is POST - this is cgi request [23:43:46]url: /json_proto [23:43:46]query_string will be loaded in cgi processing [23:43:46]execute_cgi json_proto POST (null) [23:43:46]execute_cgi path=json_proto method=POST [23:43:46]POST find Content-Length [23:43:46]Host: 172.17.59.68:8080 [23:43:46]Content-Length: 1198 [23:43:46]Content-Type: application/json [23:43:46] [23:43:46]POST finish read [23:43:46]Found Content-Length = 1198 [23:43:46]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320133\u000A19.06.2024 22:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.930 x 72.90\u000A\u0418\u0422\u041E\u0413: 2254.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43412\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:46]execute_script... [23:43:46]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 65\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. \u000A\u0421\u0447\u0435\u0442 N : (1)320133\u000A19.06.2024 22:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 30.930 x 72.90\u000A\u0418\u0422\u041E\u0413: 2254.80\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43412\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:46]POST & json_proto [23:43:46]process_json_proto [23:43:46]json parsed OK: [23:43:46]protocol is kg_v1.0 [23:43:46]action value=print_text [23:43:46]process_action print_text [23:43:46]cmd_print_text [23:43:46]ExternCall_PrintAddStr [23:43:46]wPrintStart [23:43:46]Write to MH i2c: 01 00 00 83 3D C0 [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 83 3D 00 00 00 00 00 FF 0F D5 [23:43:46]RasterBufferAndPrint [23:43:46]line *****ТОВАРНЫЙ ЧЕК***** [23:43:46]line АЗС 65 [23:43:46]line Партнер нефть [23:43:46]line 02508201610067 [23:43:46]line Кассир : Амантуров Р. [23:43:46]line Счет N : (1)320133 [23:43:46]line 19.06.2024 22:12 [23:43:46]line ПРОДАЖА [23:43:46]line ТРК (МРК, ГНК): 22 [23:43:46]line Вид ГСМ : 2710194210 [23:43:46]line ДТ-К-5 [23:43:46]line 30.930 x 72.90 [23:43:46]line ИТОГ: 2254.80 [23:43:46]line Тип оплаты: Талоны: Топливная Карта [23:43:46]line 43412 [23:43:46]line ______________________ [23:43:46]line (подпись) [23:43:46]written 0, free lines is 4095 [23:43:46]Write to MH i2c: 01 00 00 97 3D D4 [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 97 3D 00 00 00 00 00 0F 0E F8 [23:43:46]RasterBufferAndPrint [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]written 0, free lines is 3600 [23:43:46]MH_Cut [23:43:46]Write to MH i2c: D1 01 00 9E 3D 01 AD [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 01 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 01 00 9E 3D 00 AC [23:43:46]Write to MH i2c: 01 00 00 9F 3D DC [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:47]*** Cut start [23:43:47]*** Partial cut [23:43:47]*** CUTSNS_PIN = 1 [23:43:47]*** CUTSNS_PIN = 0 [23:43:47]*** Brake cut motor [23:43:47]Read from MH i2c: 01 [23:43:47]MH_I2C_Read... [23:43:47]*** Stop cut motor [23:43:47]*** Cut end [23:43:47]Read from MH i2c: 01 07 00 [23:43:47]MH_I2C_Read... [23:43:47]Read from MH i2c: 01 07 00 9F 3D 00 00 00 00 00 FF 0F F1 [23:43:47]process_action print_text done [23:43:47]requested_data is exist [23:43:47]produce_requested_data [23:43:47]requested_item fm.sn is exist - process it [23:43:47]wFMCommunicate request_size=4 [23:43:47]MH_SAM_APDU [23:43:47]CAPDU: 80 11 00 00 [23:43:47]Write to MH i2c: E2 08 00 A0 3D 80 11 00 00 00 00 00 00 57 [23:43:47]Write i2c OK [23:43:47]MH_I2C_Read... [23:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:47]Read from MH i2c: E2 [23:43:47]MH_I2C_Read... [23:43:47]Read from MH i2c: E2 17 00 [23:43:47]MH_I2C_Read... [23:43:47]Read from MH i2c: E2 17 00 A0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A9 [23:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:43:47]wFMCommunicate OK [23:43:47]requested_item fd.num is exist - process it [23:43:47]SAM_PROTO_GetFieldsCounters [23:43:47]wFMCommunicate request_size=4 [23:43:47]MH_SAM_APDU [23:43:47]CAPDU: 80 13 00 00 [23:43:47]Write to MH i2c: E2 08 00 A1 3D 80 13 00 00 00 00 00 00 5A [23:43:47]Write i2c OK [23:43:47]MH_I2C_Read... [23:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:47]Read from MH i2c: E2 [23:43:47]MH_I2C_Read... [23:43:47]Read from MH i2c: E2 62 00 [23:43:47]MH_I2C_Read... [23:43:47]Read from MH i2c: E2 62 00 A1 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B3 01 00 0E 04 04 00 84 01 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 B6 [23:43: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AE B3 01 00 0E 04 04 00 84 01 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 [23:43:47]wFMCommunicate OK [23:43:47]SAM_PROTO_GetFieldsCounters done [23:43:47]requested_item shift.num is exist - process it [23:43:47]requested_item shift.opened is exist - process it [23:43:47]req_shift_opened [23:43:47]FM_GetShiftState [23:43:47]SAM_PROTO_GetShiftState [23:43:47]wFMCommunicate request_size=4 [23:43:47]MH_SAM_APDU [23:43:47]CAPDU: 80 13 01 00 [23:43:47]Write to MH i2c: E2 08 00 A2 3D 80 13 01 00 00 00 00 00 5C [23:43:47]Write i2c OK [23:43:47]MH_I2C_Read... [23:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:48]Read from MH i2c: E2 [23:43:48]MH_I2C_Read... [23:43:48]Read from MH i2c: E2 0E 00 [23:43:48]MH_I2C_Read... [23:43:48]Read from MH i2c: E2 0E 00 A2 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A6 [23:43:48]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:43:48]wFMCommunicate OK [23:43:48]SAM_PROTO_GetShiftState done [23:43:48]FM_GetShiftState done [23:43:48]req_shift_opened done [23:43:48]requested_item shift.open_date is exist - process it [23:43:48]req_shift_open_date [23:43:48]req_shift_open_date done [23:43:48]produce_requested_data done [23:43:48]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111534,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:43:48]process_action_free print_text [23:43:48]json_value_free [23:43:48]json_value_free done [23:43:48]process_json_proto returns [23:43:48]Send response to host [23:43:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111534,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:43:48]free response buf [23:43:48]execute_script done [23:43:48]execute_script returns [23:43:48]free content buf [23:43:48]Sock 7.Close socket [23:43:48]Sock 7.Thread stoped [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:05]accept exits with 10 [23:44:05]New connection [23:44:05]New thread 3067321700 created [23:44:05]Thread 3067465060 joined [23:44:05]Waiting for new connection... [23:44:05] Sock 10.Parse request [23:44:05]Sock 10.Check first char [23:44:05]Sock 10.First char is OK [23:44:05]request: POST /json_proto HTTP/1.0 [23:44:05]Method: POST [23:44:05]URL: /json_proto [23:44:05]Method is POST - this is cgi request [23:44:05]url: /json_proto [23:44:05]query_string will be loaded in cgi processing [23:44:05]execute_cgi json_proto POST (null) [23:44:05]execute_cgi path=json_proto method=POST [23:44:05]POST find Content-Length [23:44:05]Host: 172.17.59.68:8080 [23:44:05]Content-Length: 677 [23:44:05]Content-Type: application/json [23:44:05] [23:44:05]POST finish read [23:44:05]Found Content-Length = 677 [23:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:05]execute_script... [23:44:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:05]POST & json_proto [23:44:05]process_json_proto [23:44:05]json parsed OK: [23:44:05]protocol is kg_v1.0 [23:44:05]action value=close_receipt [23:44:05]process_action close_receipt [23:44:05]cmd_close_receipt [23:44:05]MH_GetDate [23:44:05]Write to MH i2c: F0 00 00 A3 3D CF [23:44:05]Write i2c OK [23:44:05]MH_I2C_Read... [23:44:05]Read from MH i2c: F0 [23:44:05]MH_I2C_Read... [23:44:05]Read from MH i2c: F0 09 00 [23:44:05]MH_I2C_Read... [23:44:05]Read from MH i2c: F0 09 00 A3 3D 00 55 6D 73 66 BC EC 60 65 E0 [23:44:05]GetLastDocTimeStamp 1718840319 [23:44:05]current date 1718840661 [23:44:05]FM_GetShiftState [23:44:05]SAM_PROTO_GetShiftState [23:44:05]wFMCommunicate request_size=4 [23:44:05]MH_SAM_APDU [23:44:05]CAPDU: 80 13 01 00 [23:44:05]Write to MH i2c: E2 08 00 A4 3D 80 13 01 00 00 00 00 00 5E [23:44:05]Write i2c OK [23:44:05]MH_I2C_Read... [23:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:05]Read from MH i2c: E2 [23:44:05]MH_I2C_Read... [23:44:05]Read from MH i2c: E2 0E 00 [23:44:05]MH_I2C_Read... [23:44:05]Read from MH i2c: E2 0E 00 A4 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 A8 [23:44:05]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:44:05]wFMCommunicate OK [23:44:05]SAM_PROTO_GetShiftState done [23:44:05]FM_GetShiftState done [23:44:05]opened in 1718760753 [23:44:05]opened+sec_in_day 1718847153 [23:44:05]quantity*price = 50065 [23:44:05]sum+1 = 50067 [23:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 284 19.06.2024 23:44 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111535 ФПД: 239980503188515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T234421&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111535&fm=239980503188515&tin=02508201610067®Number=0000000000092771&sum=50000 [23:44:06]StoreToDocumentArchive [23:44:06]shift 388 fd 111535 [23:44:06]save to /storage/0388/doc_00111535 [23:44:06]save last doc name /storage/0388/doc_00111535 to /storage/kkm_last_doc_name [23:44:06]save OK [23:44:06]Clear old archive folders... [23:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:44:06]tlvbuf is B6E254E0 [23:44:06]SAM_PROTO_ClearQueue [23:44:06]wFMCommunicate request_size=4 [23:44:06]MH_SAM_APDU [23:44:06]CAPDU: 80 09 00 00 [23:44:06]Write to MH i2c: E2 08 00 B1 3D 80 09 00 00 00 00 00 00 60 [23:44:06]Write i2c OK [23:44:06]MH_I2C_Read... [23:44:06]Read from MH i2c: E2 [23:44:06]MH_I2C_Read... [23:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:06]Read from MH i2c: E2 03 00 [23:44:06]MH_I2C_Read... [23:44:06]Read from MH i2c: E2 03 00 B1 3D 00 90 00 62 [23:44:06]RAPDU: 90 00 [23:44:06]wFMCommunicate OK [23:44:06]SAM_PROTO_ClearQueue done [23:44:06]KKMCreateOFDPacket [23:44:06]OFDProtocolAddRootSTLVToBuf [23:44:06]FM_MakeSignedData [23:44:06]FM_MakeSignedData [23:44:06]SAM_PROTO_SignData [23:44:06]wFMCommunicate request_size=4 [23:44:06]MH_SAM_APDU [23:44:06]CAPDU: 80 0D 01 02 [23:44:06]Write to MH i2c: E2 08 00 B2 3D 80 0D 01 02 00 00 00 00 68 [23:44:06]Write i2c OK [23:44:06]MH_I2C_Read... [23:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:06]Read from MH i2c: E2 [23:44:06]MH_I2C_Read... [23:44:06]Read from MH i2c: E2 03 00 [23:44:06]MH_I2C_Read... [23:44:06]Read from MH i2c: E2 03 00 B2 3D 00 90 00 63 [23:44:06]RAPDU: 90 00 [23:44:06]wFMCommunicate OK [23:44:06]wFMCommunicate request_size=255 [23:44:06]MH_SAM_APDU [23:44: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 55 6D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B3 01 00 35 04 06 00 DA [23:44:06]Write to MH i2c: E2 02 01 B3 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 55 6D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B3 01 00 35 04 06 00 DA 00 00 96 [23:44:06]Write i2c OK [23:44:06]MH_I2C_Read... [23:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:06]Read from MH i2c: E2 [23:44:06]MH_I2C_Read... [23:44:06]Read from MH i2c: E2 03 00 [23:44:06]MH_I2C_Read... [23:44:06]Read from MH i2c: E2 03 00 B3 3D 00 90 00 64 [23:44:06]RAPDU: 90 00 [23:44:06]wFMCommunicate OK [23:44:06]wFMCommunicate request_size=10 [23:44:06]MH_SAM_APDU [23:44:06]CAPDU: 80 0D 02 02 05 42 D0 A5 44 23 [23:44:06]Write to MH i2c: E2 0D 00 B4 3D 80 0D 02 02 05 00 42 D0 A5 44 23 00 00 93 [23:44:06]Write i2c OK [23:44:06]MH_I2C_Read... [23:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:06]Read from MH i2c: E2 [23:44:06]MH_I2C_Read... [23:44:06]Read from MH i2c: E2 03 00 [23:44:06]MH_I2C_Read... [23:44:06]Read from MH i2c: E2 03 00 B4 3D 00 90 00 65 [23:44:06]RAPDU: 90 00 [23:44:06]wFMCommunicate OK [23:44:06]wFMCommunicate request_size=4 [23:44:06]MH_SAM_APDU [23:44:06]CAPDU: 80 0D 03 02 [23:44:06]Write to MH i2c: E2 08 00 B5 3D 80 0D 03 02 00 00 00 00 6D [23:44:06]Write i2c OK [23:44:06]MH_I2C_Read... [23:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:07]Read from MH i2c: E2 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: E2 0B 00 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: E2 0B 00 B5 3D 00 59 D2 68 38 8A FE BA FE 90 00 79 [23:44:07]RAPDU: 59 D2 68 38 8A FE BA FE 90 00 [23:44:07]wFMCommunicate OK [23:44:07]SAM_PROTO_SignData done [23:44:07]FM_MakeSignedData done [23:44:07]CreateOFDProtocolMessage [23:44:07]wFMCommunicate request_size=4 [23:44:07]MH_SAM_APDU [23:44:07]CAPDU: 80 11 00 00 [23:44:07]Write to MH i2c: E2 08 00 B6 3D 80 11 00 00 00 00 00 00 6D [23:44:07]Write i2c OK [23:44:07]MH_I2C_Read... [23:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:07]Read from MH i2c: E2 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: E2 17 00 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: E2 17 00 B6 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 BF [23:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:44:07]wFMCommunicate OK [23:44:07]CreateOFDProtocolMessage done [23:44:07]OFDSenderStorePacket 111535 [23:44:07]StoreOFDPacket docnum=111535 [23:44:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0A 7A 07 01 6C 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 55 6D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B3 01 00 35 04 06 00 DA 42 D0 A5 44 23 59 D2 68 38 8A FE BA FE [23:44:07]CheckFolder [23:44:07]dirname=/storage/ofd_packets [23:44:07]CheckFolder done [23:44:07]ProducePacketName [23:44:07]name=ofd_packets/00111535 [23:44:07]NVStorageSaveData ofd_packets/00111535 [23:44:07]File name is /storage/ofd_packets/00111535 [23:44:07]Write 301 bytes [23:44:07]NVStorageSaveData done [23:44:07]OFDSenderStorePacket done [23:44:07]KKMCreateOFDPacket done [23:44:07]NVStorageSaveData kkm_last_timestamp [23:44:07]File name is /storage/kkm_last_timestamp [23:44:07]Write 4 bytes [23:44:07]NVStorageSaveData done [23:44:07]ExternCall_PrintAddStr [23:44:07]wPrintStart [23:44:07]Write to MH i2c: 01 00 00 B7 3D F4 [23:44:07]Write i2c OK [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: 01 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: 01 07 00 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: 01 07 00 B7 3D 00 00 00 00 00 FF 0F 09 [23:44:07]RasterBufferAndPrint [23:44:07]line Счет N : (1)320134 [23:44:07]line ИНН: 02508201610067 [23:44:07]line Контрольно-Кассовый Чек [23:44:07]line ПРОДАЖА [23:44:07]line ТРК (МРК, ГНК) : 11 [23:44:07]line Товар: 2710124130 [23:44:07]line Аи-92-К-5 [23:44:07]line 7.540 * 66.40 [23:44:07]line = 500.66 [23:44:07]line НДС 12% НСП 1% [23:44:07]line > о реализуемом товаре [23:44:07]line ОКРУГЛЕНИЕ: -0.66 [23:44:07]line ИТОГО: 500.00 [23:44:07]line Внесено: 500.00 [23:44:07]line СДАЧА: 0.00 [23:44:07]line НСП 1% : 4.43 [23:44:07]line НДС 12% : 53.17 [23:44:07]line Наличными: 500.00 [23:44:07]line Безнал.: 0.00 [23:44:07]line Место: АЗС № 65 "Партнер Нефть" [23:44:07]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:44:07]line СНО: Общий режим [23:44:07]line Чек 284 19.06.2024 23:44 [23:44:07]line Смена: 388 ФФД: 1.0 [23:44:07]line ЗНМ: 0300000198 [23:44:07]line РНМ: 0000000000092771 [23:44:07]line Версия ККМ: 001 [23:44:07]line ФМ: 0000000000875083 [23:44:07]line ФД: 111535 [23:44:07]line ФПД: 239980503188515 [23:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T234421&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111535&fm=239980503188515&tin=02508201610067®Number=0000000000092771&sum=50000 [23:44:07]OFD Sender: Processing packet 111535 [packets to send 38, broken 37] [23:44:07]ProducePacketName [23:44:07]name=ofd_packets/00111535 [23:44:07]OFD Sender: To server: pG, [23:44:07]CommunicateWithHost lk.salyk.kg:30040 [23:44:07]ConnectInit lk.salyk.kg [23:44:07]written 0, free lines is 4095 [23:44:07]Connected sock=11 [23:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 0A 7A 07 01 6C 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 55 6D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 AF B3 01 00 35 04 06 00 DA 42 D0 A5 44 23 59 D2 68 38 8A FE BA FE [23:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 53 9D 47 00 AA 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 35 30 38 33 10 04 04 00 AF B3 01 00 F4 03 04 00 B0 04 73 66 B6 04 01 00 00 D2 C2 63 0B 99 33 37 96 [23:44:07]CommunicateWithHost err = 0 [23:44:07]CheckOFDResponse [23:44:07]1017 (14) - 77093643461234 [23:44:07]1041 (16) - 0000000000875083 [23:44:07]1040 (4) - 111535 [23:44:07]1012 (4) - 19.06.2024 16:17 [23:44:07]1206 (1) - 0 [23:44:07]OFD Sender: Remove packet 111535 [23:44:07]ProducePacketName [23:44:07]name=ofd_packets/00111535 [23:44:07]NVStorageDeleteData [23:44:07]Write to MH i2c: 01 00 00 E2 3D 1F [23:44:07]Write i2c OK [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: 01 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: 01 07 00 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: 01 07 00 E2 3D 00 00 00 00 00 CD 0C FF [23:44:07]RasterBufferAndPrint [23:44:07]line [23:44:07]line [23:44:07]line [23:44:07]line [23:44:07]line [23:44:07]written 0, free lines is 3283 [23:44:07]MH_Cut [23:44:07]Write to MH i2c: D1 01 00 E9 3D 01 F8 [23:44:07]Write i2c OK [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: D1 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: D1 01 00 [23:44:07]MH_I2C_Read... [23:44:07]Read from MH i2c: D1 01 00 E9 3D 00 F7 [23:44:07]Write to MH i2c: 01 00 00 EA 3D 27 [23:44:07]Write i2c OK [23:44:07]MH_I2C_Read... [23:44:08]OFD Sender: No OFD packet to send [23:44:08]*** Cut start [23:44:08]*** Partial cut [23:44:08]*** CUTSNS_PIN = 1 [23:44:08]*** CUTSNS_PIN = 0 [23:44:08]*** Brake cut motor [23:44:09]Read from MH i2c: 01 [23:44:09]MH_I2C_Read... [23:44:09]*** Stop cut motor [23:44:09]*** Cut end [23:44:09]Read from MH i2c: 01 07 00 [23:44:09]MH_I2C_Read... [23:44:09]Read from MH i2c: 01 07 00 EA 3D 00 00 00 00 00 FF 0F 3C [23:44:09]process_action close_receipt done [23:44:09]requested_data is exist [23:44:09]produce_requested_data [23:44:09]requested_item fm.sn is exist - process it [23:44:09]wFMCommunicate request_size=4 [23:44:09]MH_SAM_APDU [23:44:09]CAPDU: 80 11 00 00 [23:44:09]Write to MH i2c: E2 08 00 EB 3D 80 11 00 00 00 00 00 00 A2 [23:44:09]Write i2c OK [23:44:09]MH_I2C_Read... [23:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:09]Read from MH i2c: E2 [23:44:09]MH_I2C_Read... [23:44:09]Read from MH i2c: E2 17 00 [23:44:09]MH_I2C_Read... [23:44:09]Read from MH i2c: E2 17 00 EB 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F4 [23:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:44:09]wFMCommunicate OK [23:44:09]requested_item fd.num is exist - process it [23:44:09]SAM_PROTO_GetFieldsCounters [23:44:09]wFMCommunicate request_size=4 [23:44:09]MH_SAM_APDU [23:44:09]CAPDU: 80 13 00 00 [23:44:09]Write to MH i2c: E2 08 00 EC 3D 80 13 00 00 00 00 00 00 A5 [23:44:09]Write i2c OK [23:44:09]MH_I2C_Read... [23:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:09]Read from MH i2c: E2 [23:44:09]MH_I2C_Read... [23:44:09]Read from MH i2c: E2 62 00 [23:44:09]MH_I2C_Read... [23:44:09]Read from MH i2c: E2 62 00 EC 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B3 01 00 0E 04 04 00 84 01 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 05 [23:44: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 AF B3 01 00 0E 04 04 00 84 01 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 [23:44:09]wFMCommunicate OK [23:44:09]SAM_PROTO_GetFieldsCounters done [23:44:09]requested_item shift.num is exist - process it [23:44:09]requested_item shift.opened is exist - process it [23:44:09]req_shift_opened [23:44:09]FM_GetShiftState [23:44:09]SAM_PROTO_GetShiftState [23:44:09]wFMCommunicate request_size=4 [23:44:09]MH_SAM_APDU [23:44:09]CAPDU: 80 13 01 00 [23:44:09]Write to MH i2c: E2 08 00 ED 3D 80 13 01 00 00 00 00 00 A7 [23:44:09]Write i2c OK [23:44:09]MH_I2C_Read... [23:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:09]Read from MH i2c: E2 [23:44:09]MH_I2C_Read... [23:44:09]Read from MH i2c: E2 0E 00 [23:44:09]MH_I2C_Read... [23:44:09]Read from MH i2c: E2 0E 00 ED 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F1 [23:44:09]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:44:09]wFMCommunicate OK [23:44:09]SAM_PROTO_GetShiftState done [23:44:09]FM_GetShiftState done [23:44:09]req_shift_opened done [23:44:09]requested_item shift.open_date is exist - process it [23:44:09]req_shift_open_date [23:44:09]req_shift_open_date done [23:44:09]produce_requested_data done [23:44:09]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111535,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:44:09]process_action_free close_receipt [23:44:09]json_value_free [23:44:09]json_value_free done [23:44:09]process_json_proto returns [23:44:09]Send response to host [23:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111535,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:44:09]free response buf [23:44:09]execute_script done [23:44:09]execute_script returns [23:44:09]free content buf [23:44:09]Sock 10.Close socket [23:44:09]Sock 10.Thread stoped [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:25]accept exits with 7 [23:46:25]New connection [23:46:25]New thread 3067465060 created [23:46:25]Thread 3067321700 joined [23:46:25]Waiting for new connection... [23:46:25] Sock 7.Parse request [23:46:25]Sock 7.Check first char [23:46:25]Sock 7.First char is OK [23:46:25]request: POST /json_proto HTTP/1.0 [23:46:25]Method: POST [23:46:25]URL: /json_proto [23:46:25]Method is POST - this is cgi request [23:46:25]url: /json_proto [23:46:25]query_string will be loaded in cgi processing [23:46:25]execute_cgi json_proto POST (null) [23:46:25]execute_cgi path=json_proto method=POST [23:46:25]POST find Content-Length [23:46:25]Host: 172.17.59.68:8080 [23:46:25]Content-Length: 679 [23:46:25]Content-Type: application/json [23:46:25] [23:46:25]POST finish read [23:46:25]Found Content-Length = 679 [23:46:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.080, "sum" : 802.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 802.00, "payments": [ { "type": 0, "sum" : 802.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:25]execute_script... [23:46: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)320135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 12.080, "sum" : 802.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 802.00, "payments": [ { "type": 0, "sum" : 802.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:46:25]POST & json_proto [23:46:25]process_json_proto [23:46:25]json parsed OK: [23:46:25]protocol is kg_v1.0 [23:46:25]action value=close_receipt [23:46:25]process_action close_receipt [23:46:25]cmd_close_receipt [23:46:25]MH_GetDate [23:46:25]Write to MH i2c: F0 00 00 EE 3D 1A [23:46:25]Write i2c OK [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: F0 [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: F0 09 00 [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: F0 09 00 EE 3D 00 E1 6D 73 66 BC EC 60 65 B7 [23:46:25]GetLastDocTimeStamp 1718840661 [23:46:25]current date 1718840801 [23:46:25]FM_GetShiftState [23:46:25]SAM_PROTO_GetShiftState [23:46:25]wFMCommunicate request_size=4 [23:46:25]MH_SAM_APDU [23:46:25]CAPDU: 80 13 01 00 [23:46:25]Write to MH i2c: E2 08 00 EF 3D 80 13 01 00 00 00 00 00 A9 [23:46:25]Write i2c OK [23:46:25]MH_I2C_Read... [23:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:25]Read from MH i2c: E2 [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: E2 0E 00 [23:46:25]MH_I2C_Read... [23:46:25]Read from MH i2c: E2 0E 00 EF 3D 00 09 00 01 31 35 72 66 00 00 00 00 90 00 F3 [23:46:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:46:25]wFMCommunicate OK [23:46:25]SAM_PROTO_GetShiftState done [23:46:25]FM_GetShiftState done [23:46:25]opened in 1718760753 [23:46:25]opened+sec_in_day 1718847153 [23:46:25]quantity*price = 80211 [23:46:25]sum+1 = 80212 [23:46:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 802.00 Внесено: 1000.00 СДАЧА: 198.00 НСП 1% : 7.10 НДС 12% : 85.18 Наличными: 802.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 285 19.06.2024 23:46 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111536 ФПД: 217499062759804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T234641&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111536&fm=217499062759804&tin=02508201610067®Number=0000000000092771&sum=80200 [23:46:26]StoreToDocumentArchive [23:46:26]shift 388 fd 111536 [23:46:26]save to /storage/0388/doc_00111536 [23:46:26]save last doc name /storage/0388/doc_00111536 to /storage/kkm_last_doc_name [23:46:26]save OK [23:46:26]Clear old archive folders... [23:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:26]tlvbuf is 00F50800 [23:46:26]SAM_PROTO_ClearQueue [23:46:26]wFMCommunicate request_size=4 [23:46:26]MH_SAM_APDU [23:46:26]CAPDU: 80 09 00 00 [23:46:26]Write to MH i2c: E2 08 00 FC 3D 80 09 00 00 00 00 00 00 AB [23:46:26]Write i2c OK [23:46:26]MH_I2C_Read... [23:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:26]Read from MH i2c: E2 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 03 00 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 03 00 FC 3D 00 90 00 AD [23:46:26]RAPDU: 90 00 [23:46:26]wFMCommunicate OK [23:46:26]SAM_PROTO_ClearQueue done [23:46:26]KKMCreateOFDPacket [23:46:26]OFDProtocolAddRootSTLVToBuf [23:46:26]FM_MakeSignedData [23:46:26]FM_MakeSignedData [23:46:26]SAM_PROTO_SignData [23:46:26]wFMCommunicate request_size=4 [23:46:26]MH_SAM_APDU [23:46:26]CAPDU: 80 0D 01 02 [23:46:26]Write to MH i2c: E2 08 00 FD 3D 80 0D 01 02 00 00 00 00 B3 [23:46:26]Write i2c OK [23:46:26]MH_I2C_Read... [23:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:26]Read from MH i2c: E2 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 03 00 [23:46:26]MH_I2C_Read... [23:46:26]Read from MH i2c: E2 03 00 FD 3D 00 90 00 AE [23:46:26]RAPDU: 90 00 [23:46:26]wFMCommunicate OK [23:46:26]wFMCommunicate request_size=255 [23:46:26]MH_SAM_APDU [23:46: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 30 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 53 39 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 39 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 21 00 00 00 00 07 04 06 00 48 39 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 01 00 00 F4 03 04 00 E1 6D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B3 01 00 35 04 06 00 C5 [23:46:26]Write to MH i2c: E2 02 01 FE 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 30 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 53 39 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 39 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 21 00 00 00 00 07 04 06 00 48 39 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 01 00 00 F4 03 04 00 E1 6D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B3 01 00 35 04 06 00 C5 00 00 D8 [23:46:26]Write i2c OK [23:46:26]MH_I2C_Read... [23:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:27]Read from MH i2c: E2 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: E2 03 00 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: E2 03 00 FE 3D 00 90 00 AF [23:46:27]RAPDU: 90 00 [23:46:27]wFMCommunicate OK [23:46:27]wFMCommunicate request_size=10 [23:46:27]MH_SAM_APDU [23:46:27]CAPDU: 80 0D 02 02 05 D0 72 5F F1 7C [23:46:27]Write to MH i2c: E2 0D 00 FF 3D 80 0D 02 02 05 00 D0 72 5F F1 7C 00 00 CE [23:46:27]Write i2c OK [23:46:27]MH_I2C_Read... [23:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:27]Read from MH i2c: E2 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: E2 03 00 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: E2 03 00 FF 3D 00 90 00 B0 [23:46:27]RAPDU: 90 00 [23:46:27]wFMCommunicate OK [23:46:27]wFMCommunicate request_size=4 [23:46:27]MH_SAM_APDU [23:46:27]CAPDU: 80 0D 03 02 [23:46:27]Write to MH i2c: E2 08 00 00 3E 80 0D 03 02 00 00 00 00 B9 [23:46:27]Write i2c OK [23:46:27]MH_I2C_Read... [23:46:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:27]Read from MH i2c: E2 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: E2 0B 00 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: E2 0B 00 00 3E 00 94 D4 C2 3A EF A6 6A 59 90 00 76 [23:46:27]RAPDU: 94 D4 C2 3A EF A6 6A 59 90 00 [23:46:27]wFMCommunicate OK [23:46:27]SAM_PROTO_SignData done [23:46:27]FM_MakeSignedData done [23:46:27]CreateOFDProtocolMessage [23:46:27]wFMCommunicate request_size=4 [23:46:27]MH_SAM_APDU [23:46:27]CAPDU: 80 11 00 00 [23:46:27]Write to MH i2c: E2 08 00 01 3E 80 11 00 00 00 00 00 00 B9 [23:46:27]Write i2c OK [23:46:27]MH_I2C_Read... [23:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:27]Read from MH i2c: E2 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: E2 17 00 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: E2 17 00 01 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 0B [23:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:46:27]wFMCommunicate OK [23:46:27]CreateOFDProtocolMessage done [23:46:27]OFDSenderStorePacket 111536 [23:46:27]StoreOFDPacket docnum=111536 [23:46:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 F2 07 01 55 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 30 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 53 39 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 39 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 21 00 00 00 00 07 04 06 00 48 39 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 01 00 00 F4 03 04 00 E1 6D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B3 01 00 35 04 06 00 C5 D0 72 5F F1 7C 94 D4 C2 3A EF A6 6A 59 [23:46:27]CheckFolder [23:46:27]dirname=/storage/ofd_packets [23:46:27]CheckFolder done [23:46:27]ProducePacketName [23:46:27]name=ofd_packets/00111536 [23:46:27]NVStorageSaveData ofd_packets/00111536 [23:46:27]File name is /storage/ofd_packets/00111536 [23:46:27]Write 301 bytes [23:46:27]NVStorageSaveData done [23:46:27]OFDSenderStorePacket done [23:46:27]KKMCreateOFDPacket done [23:46:27]NVStorageSaveData kkm_last_timestamp [23:46:27]File name is /storage/kkm_last_timestamp [23:46:27]Write 4 bytes [23:46:27]NVStorageSaveData done [23:46:27]OFD Sender: Processing packet 111536 [packets to send 38, broken 37] [23:46:27]ProducePacketName [23:46:27]name=ofd_packets/00111536 [23:46:27]OFD Sender: To server: pG, [23:46:27]CommunicateWithHost lk.salyk.kg:30040 [23:46:27]ConnectInit lk.salyk.kg [23:46:27]ExternCall_PrintAddStr [23:46:27]wPrintStart [23:46:27]Write to MH i2c: 01 00 00 02 3E 40 [23:46:27]Write i2c OK [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: 01 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: 01 07 00 [23:46:27]MH_I2C_Read... [23:46:27]Read from MH i2c: 01 07 00 02 3E 00 00 00 00 00 FF 0F 55 [23:46:27]RasterBufferAndPrint [23:46:27]line Счет N : (1)320135 [23:46:27]line ИНН: 02508201610067 [23:46:27]line Контрольно-Кассовый Чек [23:46:27]line ПРОДАЖА [23:46:27]line ТРК (МРК, ГНК) : 11 [23:46:27]line Товар: 2710124130 [23:46:27]line Аи-92-К-5 [23:46:27]line 12.080 * 66.40 [23:46:27]line = 802.11 [23:46:27]line НДС 12% НСП 1% [23:46:27]line > о реализуемом товаре [23:46:27]line ОКРУГЛЕНИЕ: -0.11 [23:46:27]line ИТОГО: 802.00 [23:46:27]line Внесено: 1000.00 [23:46:27]line СДАЧА: 198.00 [23:46:27]line НСП 1% : 7.10 [23:46:27]line НДС 12% : 85.18 [23:46:27]line Наличными: 802.00 [23:46:27]line Безнал.: 0.00 [23:46:27]line Место: АЗС № 65 "Партнер Нефть" [23:46:27]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:46:27]line СНО: Общий режим [23:46:27]line Чек 285 19.06.2024 23:46 [23:46:27]line Смена: 388 ФФД: 1.0 [23:46:27]line ЗНМ: 0300000198 [23:46:27]line РНМ: 0000000000092771 [23:46:27]line Версия ККМ: 001 [23:46:27]line ФМ: 0000000000875083 [23:46:27]line ФД: 111536 [23:46:27]line ФПД: 217499062759804 [23:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T234641&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111536&fm=217499062759804&tin=02508201610067®Number=0000000000092771&sum=80200 [23:46:27]Connected sock=11 [23:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 47 F2 07 01 55 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 30 2F 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 53 39 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 39 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 21 00 00 00 00 07 04 06 00 48 39 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 01 00 00 F4 03 04 00 E1 6D 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B0 B3 01 00 35 04 06 00 C5 D0 72 5F F1 7C 94 D4 C2 3A EF A6 6A 59 [23:46:27]written 0, free lines is 4095 [23:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 7C F3 47 00 71 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 35 30 38 33 10 04 04 00 B0 B3 01 00 F4 03 04 00 3C 05 73 66 B6 04 01 00 00 43 62 90 58 6C 8C E7 4B [23:46:27]CommunicateWithHost err = 0 [23:46:27]CheckOFDResponse [23:46:27]1017 (14) - 77093643461234 [23:46:27]1041 (16) - 0000000000875083 [23:46:27]1040 (4) - 111536 [23:46:27]1012 (4) - 19.06.2024 16:20 [23:46:27]1206 (1) - 0 [23:46:27]OFD Sender: Remove packet 111536 [23:46:27]ProducePacketName [23:46:27]name=ofd_packets/00111536 [23:46:27]NVStorageDeleteData [23:46:28]Write to MH i2c: 01 00 00 2D 3E 6B [23:46:28]Write i2c OK [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: 01 [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: 01 07 00 [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: 01 07 00 2D 3E 00 00 00 00 00 D8 0C 56 [23:46:28]RasterBufferAndPrint [23:46:28]line [23:46:28]line [23:46:28]line [23:46:28]line [23:46:28]line [23:46:28]written 0, free lines is 3296 [23:46:28]MH_Cut [23:46:28]Write to MH i2c: D1 01 00 34 3E 01 44 [23:46:28]Write i2c OK [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: D1 [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: D1 01 00 [23:46:28]MH_I2C_Read... [23:46:28]Read from MH i2c: D1 01 00 34 3E 00 43 [23:46:28]Write to MH i2c: 01 00 00 35 3E 73 [23:46:28]Write i2c OK [23:46:28]MH_I2C_Read... [23:46:28]OFD Sender: No OFD packet to send [23:46:28]*** Cut start [23:46:28]*** Partial cut [23:46:28]*** CUTSNS_PIN = 1 [23:46:28]*** CUTSNS_PIN = 0 [23:46:29]*** Brake cut motor [23:46:29]Read from MH i2c: 01 [23:46:29]MH_I2C_Read... [23:46:29]*** Stop cut motor [23:46:29]*** Cut end [23:46:29]Read from MH i2c: 01 07 00 [23:46:29]MH_I2C_Read... [23:46:29]Read from MH i2c: 01 07 00 35 3E 00 00 00 00 00 FF 0F 88 [23:46:29]process_action close_receipt done [23:46:29]requested_data is exist [23:46:29]produce_requested_data [23:46:29]requested_item fm.sn is exist - process it [23:46:29]wFMCommunicate request_size=4 [23:46:29]MH_SAM_APDU [23:46:29]CAPDU: 80 11 00 00 [23:46:29]Write to MH i2c: E2 08 00 36 3E 80 11 00 00 00 00 00 00 EE [23:46:29]Write i2c OK [23:46:29]MH_I2C_Read... [23:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:29]Read from MH i2c: E2 [23:46:29]MH_I2C_Read... [23:46:29]Read from MH i2c: E2 17 00 [23:46:29]MH_I2C_Read... [23:46:29]Read from MH i2c: E2 17 00 36 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 40 [23:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:46:29]wFMCommunicate OK [23:46:29]requested_item fd.num is exist - process it [23:46:29]SAM_PROTO_GetFieldsCounters [23:46:29]wFMCommunicate request_size=4 [23:46:29]MH_SAM_APDU [23:46:29]CAPDU: 80 13 00 00 [23:46:29]Write to MH i2c: E2 08 00 37 3E 80 13 00 00 00 00 00 00 F1 [23:46:29]Write i2c OK [23:46:29]MH_I2C_Read... [23:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:29]Read from MH i2c: E2 [23:46:29]MH_I2C_Read... [23:46:29]Read from MH i2c: E2 62 00 [23:46:29]MH_I2C_Read... [23:46:29]Read from MH i2c: E2 62 00 37 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B3 01 00 0E 04 04 00 84 01 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 55 [23:46: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B0 B3 01 00 0E 04 04 00 84 01 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 [23:46:29]wFMCommunicate OK [23:46:29]SAM_PROTO_GetFieldsCounters done [23:46:29]requested_item shift.num is exist - process it [23:46:29]requested_item shift.opened is exist - process it [23:46:29]req_shift_opened [23:46:29]FM_GetShiftState [23:46:29]SAM_PROTO_GetShiftState [23:46:29]wFMCommunicate request_size=4 [23:46:29]MH_SAM_APDU [23:46:29]CAPDU: 80 13 01 00 [23:46:29]Write to MH i2c: E2 08 00 38 3E 80 13 01 00 00 00 00 00 F3 [23:46:29]Write i2c OK [23:46:29]MH_I2C_Read... [23:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:29]Read from MH i2c: E2 [23:46:29]MH_I2C_Read... [23:46:29]Read from MH i2c: E2 0E 00 [23:46:29]MH_I2C_Read... [23:46:29]Read from MH i2c: E2 0E 00 38 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3D [23:46:29]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:46:29]wFMCommunicate OK [23:46:29]SAM_PROTO_GetShiftState done [23:46:29]FM_GetShiftState done [23:46:29]req_shift_opened done [23:46:29]requested_item shift.open_date is exist - process it [23:46:29]req_shift_open_date [23:46:29]req_shift_open_date done [23:46:29]produce_requested_data done [23:46:29]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111536,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:46:29]process_action_free close_receipt [23:46:29]json_value_free [23:46:29]json_value_free done [23:46:29]process_json_proto returns [23:46:29]Send response to host [23:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111536,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:46:29]free response buf [23:46:29]execute_script done [23:46:29]execute_script returns [23:46:29]free content buf [23:46:29]Sock 7.Close socket [23:46:29]Sock 7.Thread stoped [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:03]OFD Sender: No OFD packet to send [23:48:08]OFD Sender: No OFD packet to send [23:48:13]OFD Sender: No OFD packet to send [23:48:18]OFD Sender: No OFD packet to send [23:48:23]OFD Sender: No OFD packet to send [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:47]accept exits with 9 [23:49:47]New connection [23:49:47]New thread 3067321700 created [23:49:47]Thread 3067465060 joined [23:49:47]Waiting for new connection... [23:49:47] Sock 9.Parse request [23:49:47]Sock 9.Check first char [23:49:47]Sock 9.First char is OK [23:49:47]request: POST /json_proto HTTP/1.0 [23:49:47]Method: POST [23:49:47]URL: /json_proto [23:49:47]Method is POST - this is cgi request [23:49:47]url: /json_proto [23:49:47]query_string will be loaded in cgi processing [23:49:47]execute_cgi json_proto POST (null) [23:49:47]execute_cgi path=json_proto method=POST [23:49:47]POST find Content-Length [23:49:47]Host: 172.17.59.68:8080 [23:49:47]Content-Length: 682 [23:49:47]Content-Type: application/json [23:49:47] [23:49:47]POST finish read [23:49:47]Found Content-Length = 682 [23:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:47]execute_script... [23:49:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:49:47]POST & json_proto [23:49:47]process_json_proto [23:49:47]json parsed OK: [23:49:47]protocol is kg_v1.0 [23:49:47]action value=close_receipt [23:49:47]process_action close_receipt [23:49:47]cmd_close_receipt [23:49:47]MH_GetDate [23:49:47]Write to MH i2c: F0 00 00 39 3E 66 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: F0 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: F0 09 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: F0 09 00 39 3E 00 AB 6E 73 66 BC EC 60 65 CE [23:49:47]GetLastDocTimeStamp 1718840801 [23:49:47]current date 1718841003 [23:49:47]FM_GetShiftState [23:49:47]SAM_PROTO_GetShiftState [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 13 01 00 [23:49:47]Write to MH i2c: E2 08 00 3A 3E 80 13 01 00 00 00 00 00 F5 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 0E 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 0E 00 3A 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 3F [23:49:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:49:47]wFMCommunicate OK [23:49:47]SAM_PROTO_GetShiftState done [23:49:47]FM_GetShiftState done [23:49:47]opened in 1718760753 [23:49:47]opened+sec_in_day 1718847153 [23:49:47]quantity*price = 100064 [23:49:47]sum+1 = 100066 [23:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 286 19.06.2024 23:50 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111537 ФПД: 45378728267101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T235003&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111537&fm=45378728267101&tin=02508201610067®Number=0000000000092771&sum=100000 [23:49:48]StoreToDocumentArchive [23:49:48]shift 388 fd 111537 [23:49:48]save to /storage/0388/doc_00111537 [23:49:48]save last doc name /storage/0388/doc_00111537 to /storage/kkm_last_doc_name [23:49:48]save OK [23:49:48]Clear old archive folders... [23:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:48]tlvbuf is 00F70DE0 [23:49:48]SAM_PROTO_ClearQueue [23:49:48]wFMCommunicate request_size=4 [23:49:48]MH_SAM_APDU [23:49:48]CAPDU: 80 09 00 00 [23:49:48]Write to MH i2c: E2 08 00 47 3E 80 09 00 00 00 00 00 00 F7 [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:48]Read from MH i2c: E2 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 03 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 03 00 47 3E 00 90 00 F9 [23:49:48]RAPDU: 90 00 [23:49:48]wFMCommunicate OK [23:49:48]SAM_PROTO_ClearQueue done [23:49:48]KKMCreateOFDPacket [23:49:48]OFDProtocolAddRootSTLVToBuf [23:49:48]FM_MakeSignedData [23:49:48]FM_MakeSignedData [23:49:48]SAM_PROTO_SignData [23:49:48]wFMCommunicate request_size=4 [23:49:48]MH_SAM_APDU [23:49:48]CAPDU: 80 0D 01 02 [23:49:48]Write to MH i2c: E2 08 00 48 3E 80 0D 01 02 00 00 00 00 FF [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:48]Read from MH i2c: E2 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 03 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 03 00 48 3E 00 90 00 FA [23:49:48]RAPDU: 90 00 [23:49:48]wFMCommunicate OK [23:49:48]wFMCommunicate request_size=255 [23:49:48]MH_SAM_APDU [23:49: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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 AB 6E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B3 01 00 35 04 06 00 29 [23:49:48]Write to MH i2c: E2 02 01 49 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 AB 6E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B3 01 00 35 04 06 00 29 00 00 27 [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:48]Read from MH i2c: E2 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 03 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 03 00 49 3E 00 90 00 FB [23:49:48]RAPDU: 90 00 [23:49:48]wFMCommunicate OK [23:49:48]wFMCommunicate request_size=10 [23:49:48]MH_SAM_APDU [23:49:48]CAPDU: 80 0D 02 02 05 45 8E FA 8D 5D [23:49:48]Write to MH i2c: E2 0D 00 4A 3E 80 0D 02 02 05 00 45 8E FA 8D 5D 00 00 C3 [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 03 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 03 00 4A 3E 00 90 00 FC [23:49:49]RAPDU: 90 00 [23:49:49]wFMCommunicate OK [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 0D 03 02 [23:49:49]Write to MH i2c: E2 08 00 4B 3E 80 0D 03 02 00 00 00 00 04 [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0B 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0B 00 4B 3E 00 F8 19 4B B0 AF 59 0C ED 90 00 12 [23:49:49]RAPDU: F8 19 4B B0 AF 59 0C ED 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_SignData done [23:49:49]FM_MakeSignedData done [23:49:49]CreateOFDProtocolMessage [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 11 00 00 [23:49:49]Write to MH i2c: E2 08 00 4C 3E 80 11 00 00 00 00 00 00 04 [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 17 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 17 00 4C 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 56 [23:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:49:49]wFMCommunicate OK [23:49:49]CreateOFDProtocolMessage done [23:49:49]OFDSenderStorePacket 111537 [23:49:49]StoreOFDPacket docnum=111537 [23:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 4E 07 01 FF 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 AB 6E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B3 01 00 35 04 06 00 29 45 8E FA 8D 5D F8 19 4B B0 AF 59 0C ED [23:49:49]CheckFolder [23:49:49]dirname=/storage/ofd_packets [23:49:49]CheckFolder done [23:49:49]ProducePacketName [23:49:49]name=ofd_packets/00111537 [23:49:49]NVStorageSaveData ofd_packets/00111537 [23:49:49]File name is /storage/ofd_packets/00111537 [23:49:49]Write 301 bytes [23:49:49]NVStorageSaveData done [23:49:49]OFDSenderStorePacket done [23:49:49]KKMCreateOFDPacket done [23:49:49]NVStorageSaveData kkm_last_timestamp [23:49:49]File name is /storage/kkm_last_timestamp [23:49:49]Write 4 bytes [23:49:49]NVStorageSaveData done [23:49:49]ExternCall_PrintAddStr [23:49:49]wPrintStart [23:49:49]Write to MH i2c: 01 00 00 4D 3E 8B [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: 01 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: 01 07 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: 01 07 00 4D 3E 00 00 00 00 00 FF 0F A0 [23:49:49]RasterBufferAndPrint [23:49:49]line Счет N : (1)320136 [23:49:49]line ИНН: 02508201610067 [23:49:49]line Контрольно-Кассовый Чек [23:49:49]line ПРОДАЖА [23:49:49]line ТРК (МРК, ГНК) : 11 [23:49:49]line Товар: 2710124130 [23:49:49]line Аи-92-К-5 [23:49:49]line 15.070 * 66.40 [23:49:49]line = 1000.65 [23:49:49]line НДС 12% НСП 1% [23:49:49]line > о реализуемом товаре [23:49:49]line ОКРУГЛЕНИЕ: -0.65 [23:49:49]line ИТОГО: 1000.00 [23:49:49]line Внесено: 1000.00 [23:49:49]line СДАЧА: 0.00 [23:49:49]line НСП 1% : 8.85 [23:49:49]line НДС 12% : 106.26 [23:49:49]line Наличными: 1000.00 [23:49:49]line Безнал.: 0.00 [23:49:49]line Место: АЗС № 65 "Партнер Нефть" [23:49:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:49:49]line СНО: Общий режим [23:49:49]line Чек 286 19.06.2024 23:50 [23:49:49]line Смена: 388 ФФД: 1.0 [23:49:49]line ЗНМ: 0300000198 [23:49:49]line РНМ: 0000000000092771 [23:49:49]line Версия ККМ: 001 [23:49:49]line ФМ: 0000000000875083 [23:49:49]line ФД: 111537 [23:49:49]line ФПД: 45378728267101 [23:49:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T235003&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111537&fm=45378728267101&tin=02508201610067®Number=0000000000092771&sum=100000 [23:49:49]OFD Sender: Processing packet 111537 [packets to send 38, broken 37] [23:49:49]ProducePacketName [23:49:49]name=ofd_packets/00111537 [23:49:49]OFD Sender: To server: pG, [23:49:49]CommunicateWithHost lk.salyk.kg:30040 [23:49:49]ConnectInit lk.salyk.kg [23:49:49]written 0, free lines is 4095 [23:49:49]Connected sock=11 [23:49:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 A4 4E 07 01 FF 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 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 AB 6E 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B1 B3 01 00 35 04 06 00 29 45 8E FA 8D 5D F8 19 4B B0 AF 59 0C ED [23:49:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 5A 4F 47 00 C7 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 35 30 38 33 10 04 04 00 B1 B3 01 00 F4 03 04 00 06 06 73 66 B6 04 01 00 00 F6 22 07 08 8C 52 1F F7 [23:49:49]CommunicateWithHost err = 0 [23:49:49]CheckOFDResponse [23:49:49]1017 (14) - 77093643461234 [23:49:49]1041 (16) - 0000000000875083 [23:49:49]1040 (4) - 111537 [23:49:49]1012 (4) - 19.06.2024 16:23 [23:49:49]1206 (1) - 0 [23:49:49]OFD Sender: Remove packet 111537 [23:49:49]ProducePacketName [23:49:49]name=ofd_packets/00111537 [23:49:49]NVStorageDeleteData [23:49:49]Write to MH i2c: 01 00 00 78 3E B6 [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: 01 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: 01 07 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: 01 07 00 78 3E 00 00 00 00 00 D4 0C 9D [23:49:49]RasterBufferAndPrint [23:49:49]line [23:49:49]line [23:49:49]line [23:49:49]line [23:49:49]line [23:49:49]written 0, free lines is 3288 [23:49:49]MH_Cut [23:49:49]Write to MH i2c: D1 01 00 7F 3E 01 8F [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: D1 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: D1 01 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: D1 01 00 7F 3E 00 8E [23:49:49]Write to MH i2c: 01 00 00 80 3E BE [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:50]OFD Sender: No OFD packet to send [23:49:50]*** Cut start [23:49:50]*** Partial cut [23:49:50]*** CUTSNS_PIN = 1 [23:49:50]*** CUTSNS_PIN = 0 [23:49:50]*** Brake cut motor [23:49:51]Read from MH i2c: 01 [23:49:51]MH_I2C_Read... [23:49:51]*** Stop cut motor [23:49:51]*** Cut end [23:49:51]Read from MH i2c: 01 07 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: 01 07 00 80 3E 00 00 00 00 00 FF 0F D3 [23:49:51]process_action close_receipt done [23:49:51]requested_data is exist [23:49:51]produce_requested_data [23:49:51]requested_item fm.sn is exist - process it [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 11 00 00 [23:49:51]Write to MH i2c: E2 08 00 81 3E 80 11 00 00 00 00 00 00 39 [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 17 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 17 00 81 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 8B [23:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:49:51]wFMCommunicate OK [23:49:51]requested_item fd.num is exist - process it [23:49:51]SAM_PROTO_GetFieldsCounters [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 13 00 00 [23:49:51]Write to MH i2c: E2 08 00 82 3E 80 13 00 00 00 00 00 00 3C [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 62 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 62 00 82 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B3 01 00 0E 04 04 00 84 01 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 A4 [23:49: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B1 B3 01 00 0E 04 04 00 84 01 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 [23:49:51]wFMCommunicate OK [23:49:51]SAM_PROTO_GetFieldsCounters done [23:49:51]requested_item shift.num is exist - process it [23:49:51]requested_item shift.opened is exist - process it [23:49:51]req_shift_opened [23:49:51]FM_GetShiftState [23:49:51]SAM_PROTO_GetShiftState [23:49:51]wFMCommunicate request_size=4 [23:49:51]MH_SAM_APDU [23:49:51]CAPDU: 80 13 01 00 [23:49:51]Write to MH i2c: E2 08 00 83 3E 80 13 01 00 00 00 00 00 3E [23:49:51]Write i2c OK [23:49:51]MH_I2C_Read... [23:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:51]Read from MH i2c: E2 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 0E 00 [23:49:51]MH_I2C_Read... [23:49:51]Read from MH i2c: E2 0E 00 83 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 88 [23:49:51]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:49:51]wFMCommunicate OK [23:49:51]SAM_PROTO_GetShiftState done [23:49:51]FM_GetShiftState done [23:49:51]req_shift_opened done [23:49:51]requested_item shift.open_date is exist - process it [23:49:51]req_shift_open_date [23:49:51]req_shift_open_date done [23:49:51]produce_requested_data done [23:49:51]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111537,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:49:51]process_action_free close_receipt [23:49:51]json_value_free [23:49:51]json_value_free done [23:49:51]process_json_proto returns [23:49:51]Send response to host [23:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111537,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:49:51]free response buf [23:49:51]execute_script done [23:49:51]execute_script returns [23:49:51]free content buf [23:49:51]Sock 9.Close socket [23:49:51]Sock 9.Thread stoped [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:21]accept exits with 7 [23:53:21]New connection [23:53:21]New thread 3067465060 created [23:53:21]Thread 3067321700 joined [23:53:21]Waiting for new connection... [23:53:21] Sock 7.Parse request [23:53:21]Sock 7.Check first char [23:53:21]Sock 7.First char is OK [23:53:21]request: POST /json_proto HTTP/1.0 [23:53:21]Method: POST [23:53:21]URL: /json_proto [23:53:21]Method is POST - this is cgi request [23:53:21]url: /json_proto [23:53:21]query_string will be loaded in cgi processing [23:53:21]execute_cgi json_proto POST (null) [23:53:21]execute_cgi path=json_proto method=POST [23:53:21]POST find Content-Length [23:53:21]Host: 172.17.59.68:8080 [23:53:21]Content-Length: 677 [23:53:21]Content-Type: application/json [23:53:21] [23:53:21]POST finish read [23:53:21]Found Content-Length = 677 [23:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.340, "sum" : 320.73, "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" ] } } [23:53:21]execute_script... [23:53: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)320137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 4.340, "sum" : 320.73, "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" ] } } [23:53:21]POST & json_proto [23:53:21]process_json_proto [23:53:21]json parsed OK: [23:53:21]protocol is kg_v1.0 [23:53:21]action value=close_receipt [23:53:21]process_action close_receipt [23:53:21]cmd_close_receipt [23:53:21]MH_GetDate [23:53:21]Write to MH i2c: F0 00 00 84 3E B1 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: F0 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: F0 09 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: F0 09 00 84 3E 00 82 6F 73 66 BC EC 60 65 F1 [23:53:21]GetLastDocTimeStamp 1718841003 [23:53:21]current date 1718841218 [23:53:21]FM_GetShiftState [23:53:21]SAM_PROTO_GetShiftState [23:53:21]wFMCommunicate request_size=4 [23:53:21]MH_SAM_APDU [23:53:21]CAPDU: 80 13 01 00 [23:53:21]Write to MH i2c: E2 08 00 85 3E 80 13 01 00 00 00 00 00 40 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:21]Read from MH i2c: E2 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 0E 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 0E 00 85 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 8A [23:53:21]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:53:21]wFMCommunicate OK [23:53:21]SAM_PROTO_GetShiftState done [23:53:21]FM_GetShiftState done [23:53:21]opened in 1718760753 [23:53:21]opened+sec_in_day 1718847153 [23:53:21]quantity*price = 32072 [23:53:21]sum+1 = 32074 [23:53:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.06 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 287 19.06.2024 23:53 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111538 ФПД: 57210083412390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T235338&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111538&fm=57210083412390&tin=02508201610067®Number=0000000000092771&sum=32000 [23:53:22]StoreToDocumentArchive [23:53:22]shift 388 fd 111538 [23:53:22]save to /storage/0388/doc_00111538 [23:53:22]save last doc name /storage/0388/doc_00111538 to /storage/kkm_last_doc_name [23:53:22]save OK [23:53:22]Clear old archive folders... [23:53:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:53:22]tlvbuf is B6F57CC0 [23:53:22]SAM_PROTO_ClearQueue [23:53:22]wFMCommunicate request_size=4 [23:53:22]MH_SAM_APDU [23:53:22]CAPDU: 80 09 00 00 [23:53:22]Write to MH i2c: E2 08 00 92 3E 80 09 00 00 00 00 00 00 42 [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 03 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 03 00 92 3E 00 90 00 44 [23:53:23]RAPDU: 90 00 [23:53:23]wFMCommunicate OK [23:53:23]SAM_PROTO_ClearQueue done [23:53:23]KKMCreateOFDPacket [23:53:23]OFDProtocolAddRootSTLVToBuf [23:53:23]FM_MakeSignedData [23:53:23]FM_MakeSignedData [23:53:23]SAM_PROTO_SignData [23:53:23]wFMCommunicate request_size=4 [23:53:23]MH_SAM_APDU [23:53:23]CAPDU: 80 0D 01 02 [23:53:23]Write to MH i2c: E2 08 00 93 3E 80 0D 01 02 00 00 00 00 4A [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 03 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 03 00 93 3E 00 90 00 45 [23:53:23]RAPDU: 90 00 [23:53:23]wFMCommunicate OK [23:53:23]wFMCommunicate request_size=255 [23:53:23]MH_SAM_APDU [23:53:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 49 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 4E 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 1F 01 00 00 F4 03 04 00 82 6F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B3 01 00 35 04 06 00 34 [23:53:23]Write to MH i2c: E2 02 01 94 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 49 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 4E 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 1F 01 00 00 F4 03 04 00 82 6F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B3 01 00 35 04 06 00 34 00 00 97 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 03 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 03 00 94 3E 00 90 00 46 [23:53:23]RAPDU: 90 00 [23:53:23]wFMCommunicate OK [23:53:23]wFMCommunicate request_size=10 [23:53:23]MH_SAM_APDU [23:53:23]CAPDU: 80 0D 02 02 05 08 42 B3 09 A6 [23:53:23]Write to MH i2c: E2 0D 00 95 3E 80 0D 02 02 05 00 08 42 B3 09 A6 00 00 03 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 03 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 03 00 95 3E 00 90 00 47 [23:53:23]RAPDU: 90 00 [23:53:23]wFMCommunicate OK [23:53:23]wFMCommunicate request_size=4 [23:53:23]MH_SAM_APDU [23:53:23]CAPDU: 80 0D 03 02 [23:53:23]Write to MH i2c: E2 08 00 96 3E 80 0D 03 02 00 00 00 00 4F [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 0B 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 0B 00 96 3E 00 F0 3F 85 98 4F 8F 5D 76 90 00 4D [23:53:23]RAPDU: F0 3F 85 98 4F 8F 5D 76 90 00 [23:53:23]wFMCommunicate OK [23:53:23]SAM_PROTO_SignData done [23:53:23]FM_MakeSignedData done [23:53:23]CreateOFDProtocolMessage [23:53:23]wFMCommunicate request_size=4 [23:53:23]MH_SAM_APDU [23:53:23]CAPDU: 80 11 00 00 [23:53:23]Write to MH i2c: E2 08 00 97 3E 80 11 00 00 00 00 00 00 4F [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 17 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 17 00 97 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A1 [23:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:53:23]wFMCommunicate OK [23:53:23]CreateOFDProtocolMessage done [23:53:23]OFDSenderStorePacket 111538 [23:53:23]StoreOFDPacket docnum=111538 [23:53:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 26 90 07 01 17 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 49 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 4E 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 1F 01 00 00 F4 03 04 00 82 6F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B3 01 00 35 04 06 00 34 08 42 B3 09 A6 F0 3F 85 98 4F 8F 5D 76 [23:53:23]CheckFolder [23:53:23]dirname=/storage/ofd_packets [23:53:23]CheckFolder done [23:53:23]ProducePacketName [23:53:23]name=ofd_packets/00111538 [23:53:23]NVStorageSaveData ofd_packets/00111538 [23:53:23]File name is /storage/ofd_packets/00111538 [23:53:23]Write 301 bytes [23:53:23]NVStorageSaveData done [23:53:23]OFDSenderStorePacket done [23:53:23]KKMCreateOFDPacket done [23:53:23]NVStorageSaveData kkm_last_timestamp [23:53:23]File name is /storage/kkm_last_timestamp [23:53:23]Write 4 bytes [23:53:23]NVStorageSaveData done [23:53:23]ExternCall_PrintAddStr [23:53:23]wPrintStart [23:53:23]Write to MH i2c: 01 00 00 98 3E D6 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 98 3E 00 00 00 00 00 FF 0F EB [23:53:23]RasterBufferAndPrint [23:53:23]line Счет N : (1)320137 [23:53:23]line ИНН: 02508201610067 [23:53:23]line Контрольно-Кассовый Чек [23:53:23]line ПРОДАЖА [23:53:23]line ТРК (МРК, ГНК) : 12 [23:53:23]line Товар: 2710124500 [23:53:23]line Аи-95-К-5 [23:53:23]line 4.340 * 73.90 [23:53:23]line = 320.73 [23:53:23]line НДС 12% НСП 1% [23:53:23]line > о реализуемом товаре [23:53:23]line ОКРУГЛЕНИЕ: -0.73 [23:53:23]line ИТОГО: 320.00 [23:53:23]line Внесено: 320.00 [23:53:23]line СДАЧА: 0.00 [23:53:23]line НСП 1% : 2.84 [23:53:23]line НДС 12% : 34.06 [23:53:23]line Наличными: 320.00 [23:53:23]line Безнал.: 0.00 [23:53:23]line Место: АЗС № 65 "Партнер Нефть" [23:53:23]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [23:53:23]line СНО: Общий режим [23:53:23]line Чек 287 19.06.2024 23:53 [23:53:23]line Смена: 388 ФФД: 1.0 [23:53:23]line ЗНМ: 0300000198 [23:53:23]line РНМ: 0000000000092771 [23:53:23]line Версия ККМ: 001 [23:53:23]line ФМ: 0000000000875083 [23:53:23]line ФД: 111538 [23:53:23]line ФПД: 57210083412390 [23:53:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240619T235338&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111538&fm=57210083412390&tin=02508201610067®Number=0000000000092771&sum=32000 [23:53:23]OFD Sender: Processing packet 111538 [packets to send 38, broken 37] [23:53:23]ProducePacketName [23:53:23]name=ofd_packets/00111538 [23:53:23]OFD Sender: To server: pG, [23:53:23]CommunicateWithHost lk.salyk.kg:30040 [23:53:23]ConnectInit lk.salyk.kg [23:53:23]written 0, free lines is 4095 [23:53:23]Connected sock=10 [23:53:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 26 90 07 01 17 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 49 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 4E 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 1F 01 00 00 F4 03 04 00 82 6F 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B2 B3 01 00 35 04 06 00 34 08 42 B3 09 A6 F0 3F 85 98 4F 8F 5D 76 [23:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 0A D6 47 00 61 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 35 30 38 33 10 04 04 00 B2 B3 01 00 F4 03 04 00 DD 06 73 66 B6 04 01 00 00 B3 37 10 FF CB 76 03 41 [23:53:24]CommunicateWithHost err = 0 [23:53:24]CheckOFDResponse [23:53:24]1017 (14) - 77093643461234 [23:53:24]1041 (16) - 0000000000875083 [23:53:24]1040 (4) - 111538 [23:53:24]1012 (4) - 19.06.2024 16:27 [23:53:24]1206 (1) - 0 [23:53:24]OFD Sender: Remove packet 111538 [23:53:24]ProducePacketName [23:53:24]name=ofd_packets/00111538 [23:53:24]NVStorageDeleteData [23:53:24]Write to MH i2c: 01 00 00 C3 3E 01 [23:53:24]Write i2c OK [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: 01 [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: 01 07 00 [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: 01 07 00 C3 3E 00 00 00 00 00 CF 0C E3 [23:53:24]RasterBufferAndPrint [23:53:24]line [23:53:24]line [23:53:24]line [23:53:24]line [23:53:24]line [23:53:24]written 0, free lines is 3287 [23:53:24]MH_Cut [23:53:24]Write to MH i2c: D1 01 00 CA 3E 01 DA [23:53:24]Write i2c OK [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: D1 [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: D1 01 00 [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: D1 01 00 CA 3E 00 D9 [23:53:24]Write to MH i2c: 01 00 00 CB 3E 09 [23:53:24]Write i2c OK [23:53:24]MH_I2C_Read... [23:53:24]OFD Sender: No OFD packet to send [23:53:25]*** Cut start [23:53:25]*** Partial cut [23:53:25]*** CUTSNS_PIN = 1 [23:53:25]*** CUTSNS_PIN = 0 [23:53:25]*** Brake cut motor [23:53:25]Read from MH i2c: 01 [23:53:25]MH_I2C_Read... [23:53:25]*** Stop cut motor [23:53:25]*** Cut end [23:53:25]Read from MH i2c: 01 07 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: 01 07 00 CB 3E 00 00 00 00 00 FF 0F 1E [23:53:25]process_action close_receipt done [23:53:25]requested_data is exist [23:53:25]produce_requested_data [23:53:25]requested_item fm.sn is exist - process it [23:53:25]wFMCommunicate request_size=4 [23:53:25]MH_SAM_APDU [23:53:25]CAPDU: 80 11 00 00 [23:53:25]Write to MH i2c: E2 08 00 CC 3E 80 11 00 00 00 00 00 00 84 [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:25]Read from MH i2c: E2 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: E2 17 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: E2 17 00 CC 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D6 [23:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [23:53:25]wFMCommunicate OK [23:53:25]requested_item fd.num is exist - process it [23:53:25]SAM_PROTO_GetFieldsCounters [23:53:25]wFMCommunicate request_size=4 [23:53:25]MH_SAM_APDU [23:53:25]CAPDU: 80 13 00 00 [23:53:25]Write to MH i2c: E2 08 00 CD 3E 80 13 00 00 00 00 00 00 87 [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:25]Read from MH i2c: E2 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: E2 62 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: E2 62 00 CD 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B3 01 00 0E 04 04 00 84 01 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 F3 [23:53: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B2 B3 01 00 0E 04 04 00 84 01 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 [23:53:25]wFMCommunicate OK [23:53:25]SAM_PROTO_GetFieldsCounters done [23:53:25]requested_item shift.num is exist - process it [23:53:25]requested_item shift.opened is exist - process it [23:53:25]req_shift_opened [23:53:25]FM_GetShiftState [23:53:25]SAM_PROTO_GetShiftState [23:53:25]wFMCommunicate request_size=4 [23:53:25]MH_SAM_APDU [23:53:25]CAPDU: 80 13 01 00 [23:53:25]Write to MH i2c: E2 08 00 CE 3E 80 13 01 00 00 00 00 00 89 [23:53:25]Write i2c OK [23:53:25]MH_I2C_Read... [23:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:25]Read from MH i2c: E2 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: E2 0E 00 [23:53:25]MH_I2C_Read... [23:53:25]Read from MH i2c: E2 0E 00 CE 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D3 [23:53:25]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [23:53:25]wFMCommunicate OK [23:53:25]SAM_PROTO_GetShiftState done [23:53:25]FM_GetShiftState done [23:53:25]req_shift_opened done [23:53:25]requested_item shift.open_date is exist - process it [23:53:25]req_shift_open_date [23:53:25]req_shift_open_date done [23:53:25]produce_requested_data done [23:53:25]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111538,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [23:53:25]process_action_free close_receipt [23:53:25]json_value_free [23:53:25]json_value_free done [23:53:25]process_json_proto returns [23:53:25]Send response to host [23:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111538,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [23:53:25]free response buf [23:53:25]execute_script done [23:53:25]execute_script returns [23:53:25]free content buf [23:53:25]Sock 7.Close socket [23:53:25]Sock 7.Thread stoped [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:03:00]OFD Sender: No OFD packet to send [00:03:05]OFD Sender: No OFD packet to send [00:03:10]OFD Sender: No OFD packet to send [00:03:15]OFD Sender: No OFD packet to send [00:03:20]OFD Sender: No OFD packet to send [00:03:25]OFD Sender: No OFD packet to send [00:03:30]OFD Sender: No OFD packet to send [00:03:35]OFD Sender: No OFD packet to send [00:03:40]OFD Sender: No OFD packet to send [00:03:45]OFD Sender: No OFD packet to send [00:03:50]OFD Sender: No OFD packet to send [00:03:55]OFD Sender: No OFD packet to send [00:04:00]OFD Sender: No OFD packet to send [00:04:05]OFD Sender: No OFD packet to send [00:04:10]OFD Sender: No OFD packet to send [00:04:15]OFD Sender: No OFD packet to send [00:04:20]OFD Sender: No OFD packet to send [00:04:25]OFD Sender: No OFD packet to send [00:04:30]OFD Sender: No OFD packet to send [00:04:35]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]OFD Sender: No OFD packet to send [00:08:10]OFD Sender: No OFD packet to send [00:08:15]OFD Sender: No OFD packet to send [00:08:19]accept exits with 9 [00:08:19]New connection [00:08:19]New thread 3067321700 created [00:08:19]Thread 3067465060 joined [00:08:19]Waiting for new connection... [00:08:19] Sock 9.Parse request [00:08:19]Sock 9.Check first char [00:08:19]Sock 9.First char is OK [00:08:19]request: POST /json_proto HTTP/1.0 [00:08:19]Method: POST [00:08:19]URL: /json_proto [00:08:19]Method is POST - this is cgi request [00:08:19]url: /json_proto [00:08:19]query_string will be loaded in cgi processing [00:08:19]execute_cgi json_proto POST (null) [00:08:19]execute_cgi path=json_proto method=POST [00:08:19]POST find Content-Length [00:08:19]Host: 172.17.59.68:8080 [00:08:19]Content-Length: 682 [00:08:19]Content-Type: application/json [00:08:19] [00:08:19]POST finish read [00:08:19]Found Content-Length = 682 [00:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:19]execute_script... [00:08: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)320138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 37.660, "sum" : 2500.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:19]POST & json_proto [00:08:19]process_json_proto [00:08:19]json parsed OK: [00:08:19]protocol is kg_v1.0 [00:08:19]action value=close_receipt [00:08:19]process_action close_receipt [00:08:19]cmd_close_receipt [00:08:19]MH_GetDate [00:08:19]Write to MH i2c: F0 00 00 CF 3E FC [00:08:19]Write i2c OK [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: F0 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: F0 09 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: F0 09 00 CF 3E 00 04 73 73 66 BC EC 60 65 C2 [00:08:19]GetLastDocTimeStamp 1718841218 [00:08:19]current date 1718842116 [00:08:19]FM_GetShiftState [00:08:19]SAM_PROTO_GetShiftState [00:08:19]wFMCommunicate request_size=4 [00:08:19]MH_SAM_APDU [00:08:19]CAPDU: 80 13 01 00 [00:08:19]Write to MH i2c: E2 08 00 D0 3E 80 13 01 00 00 00 00 00 8B [00:08:19]Write i2c OK [00:08:19]MH_I2C_Read... [00:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 0E 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 0E 00 D0 3E 00 09 00 01 31 35 72 66 00 00 00 00 90 00 D5 [00:08:19]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:08:19]wFMCommunicate OK [00:08:19]SAM_PROTO_GetShiftState done [00:08:19]FM_GetShiftState done [00:08:19]opened in 1718760753 [00:08:19]opened+sec_in_day 1718847153 [00:08:19]quantity*price = 250062 [00:08:19]sum+1 = 250063 [00:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 288 20.06.2024 00:08 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111539 ФПД: 268059118158096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T000836&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111539&fm=268059118158096&tin=02508201610067®Number=0000000000092771&sum=250000 [00:08:20]StoreToDocumentArchive [00:08:20]shift 388 fd 111539 [00:08:20]save to /storage/0388/doc_00111539 [00:08:20]save last doc name /storage/0388/doc_00111539 to /storage/kkm_last_doc_name [00:08:20]save OK [00:08:20]Clear old archive folders... [00:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:08:20]tlvbuf is 00EC1E00 [00:08:20]SAM_PROTO_ClearQueue [00:08:20]wFMCommunicate request_size=4 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 09 00 00 [00:08:20]Write to MH i2c: E2 08 00 DD 3E 80 09 00 00 00 00 00 00 8D [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 DD 3E 00 90 00 8F [00:08:20]RAPDU: 90 00 [00:08:20]wFMCommunicate OK [00:08:20]SAM_PROTO_ClearQueue done [00:08:20]KKMCreateOFDPacket [00:08:20]OFDProtocolAddRootSTLVToBuf [00:08:20]FM_MakeSignedData [00:08:20]FM_MakeSignedData [00:08:20]SAM_PROTO_SignData [00:08:20]wFMCommunicate request_size=4 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 0D 01 02 [00:08:20]Write to MH i2c: E2 08 00 DE 3E 80 0D 01 02 00 00 00 00 95 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 DE 3E 00 90 00 90 [00:08:20]RAPDU: 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=255 [00:08:20]MH_SAM_APDU [00:08: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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 04 73 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B3 01 00 35 04 06 00 F3 [00:08:20]Write to MH i2c: E2 02 01 DF 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 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 04 73 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B3 01 00 35 04 06 00 F3 00 00 DD [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 DF 3E 00 90 00 91 [00:08:21]RAPDU: 90 00 [00:08:21]wFMCommunicate OK [00:08:21]wFMCommunicate request_size=10 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 0D 02 02 05 CC 60 84 41 10 [00:08:21]Write to MH i2c: E2 0D 00 E0 3E 80 0D 02 02 05 00 CC 60 84 41 10 00 00 A3 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 03 00 E0 3E 00 90 00 92 [00:08:21]RAPDU: 90 00 [00:08:21]wFMCommunicate OK [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 0D 03 02 [00:08:21]Write to MH i2c: E2 08 00 E1 3E 80 0D 03 02 00 00 00 00 9A [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 0B 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 0B 00 E1 3E 00 AB F9 EB 8F 40 8A 2D 46 90 00 F6 [00:08:21]RAPDU: AB F9 EB 8F 40 8A 2D 46 90 00 [00:08:21]wFMCommunicate OK [00:08:21]SAM_PROTO_SignData done [00:08:21]FM_MakeSignedData done [00:08:21]CreateOFDProtocolMessage [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 11 00 00 [00:08:21]Write to MH i2c: E2 08 00 E2 3E 80 11 00 00 00 00 00 00 9A [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 17 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 17 00 E2 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 EC [00:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:08:21]wFMCommunicate OK [00:08:21]CreateOFDProtocolMessage done [00:08:21]OFDSenderStorePacket 111539 [00:08:21]StoreOFDPacket docnum=111539 [00:08:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 67 AA 07 01 6A 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 04 73 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B3 01 00 35 04 06 00 F3 CC 60 84 41 10 AB F9 EB 8F 40 8A 2D 46 [00:08:21]CheckFolder [00:08:21]dirname=/storage/ofd_packets [00:08:21]CheckFolder done [00:08:21]ProducePacketName [00:08:21]name=ofd_packets/00111539 [00:08:21]NVStorageSaveData ofd_packets/00111539 [00:08:21]File name is /storage/ofd_packets/00111539 [00:08:21]Write 301 bytes [00:08:21]NVStorageSaveData done [00:08:21]OFDSenderStorePacket done [00:08:21]KKMCreateOFDPacket done [00:08:21]NVStorageSaveData kkm_last_timestamp [00:08:21]File name is /storage/kkm_last_timestamp [00:08:21]Write 4 bytes [00:08:21]NVStorageSaveData done [00:08:21]ExternCall_PrintAddStr [00:08:21]wPrintStart [00:08:21]Write to MH i2c: 01 00 00 E3 3E 21 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: 01 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: 01 07 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: 01 07 00 E3 3E 00 00 00 00 00 FF 0F 36 [00:08:21]RasterBufferAndPrint [00:08:21]line Счет N : (1)320138 [00:08:21]line ИНН: 02508201610067 [00:08:21]line Контрольно-Кассовый Чек [00:08:21]line ПРОДАЖА [00:08:21]line ТРК (МРК, ГНК) : 11 [00:08:21]line Товар: 2710124130 [00:08:21]line Аи-92-К-5 [00:08:21]line 37.660 * 66.40 [00:08:21]line = 2500.62 [00:08:21]line НДС 12% НСП 1% [00:08:21]line > о реализуемом товаре [00:08:21]line ОКРУГЛЕНИЕ: -0.62 [00:08:21]line ИТОГО: 2500.00 [00:08:21]line Внесено: 2500.00 [00:08:21]line СДАЧА: 0.00 [00:08:21]line НСП 1% : 22.13 [00:08:21]line НДС 12% : 265.55 [00:08:21]line Наличными: 2500.00 [00:08:21]line Безнал.: 0.00 [00:08:21]line Место: АЗС № 65 "Партнер Нефть" [00:08:21]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:08:21]line СНО: Общий режим [00:08:21]line Чек 288 20.06.2024 00:08 [00:08:21]line Смена: 388 ФФД: 1.0 [00:08:21]line ЗНМ: 0300000198 [00:08:21]line РНМ: 0000000000092771 [00:08:21]line Версия ККМ: 001 [00:08:21]line ФМ: 0000000000875083 [00:08:21]line ФД: 111539 [00:08:21]line ФПД: 268059118158096 [00:08:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T000836&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111539&fm=268059118158096&tin=02508201610067®Number=0000000000092771&sum=250000 [00:08:21]OFD Sender: Processing packet 111539 [packets to send 38, broken 37] [00:08:21]ProducePacketName [00:08:21]name=ofd_packets/00111539 [00:08:21]OFD Sender: To server: pG, [00:08:21]CommunicateWithHost lk.salyk.kg:30040 [00:08:21]ConnectInit lk.salyk.kg [00:08:21]written 0, free lines is 4095 [00:08:21]Connected sock=10 [00:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 67 AA 07 01 6A 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 93 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 CE D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 04 73 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B3 B3 01 00 35 04 06 00 F3 CC 60 84 41 10 AB F9 EB 8F 40 8A 2D 46 [00:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 48 6B 47 00 F0 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 35 30 38 33 10 04 04 00 B3 B3 01 00 F4 03 04 00 5F 0A 73 66 B6 04 01 00 00 C5 76 85 26 2D 05 63 4F [00:08:21]CommunicateWithHost err = 0 [00:08:21]CheckOFDResponse [00:08:21]1017 (14) - 77093643461234 [00:08:21]1041 (16) - 0000000000875083 [00:08:21]1040 (4) - 111539 [00:08:21]1012 (4) - 19.06.2024 16:42 [00:08:21]1206 (1) - 0 [00:08:21]OFD Sender: Remove packet 111539 [00:08:21]ProducePacketName [00:08:21]name=ofd_packets/00111539 [00:08:21]NVStorageDeleteData [00:08:22]Write to MH i2c: 01 00 00 0E 3F 4D [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: 01 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: 01 07 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: 01 07 00 0E 3F 00 00 00 00 00 E0 0C 40 [00:08:22]RasterBufferAndPrint [00:08:22]line [00:08:22]line [00:08:22]line [00:08:22]line [00:08:22]line [00:08:22]written 0, free lines is 3301 [00:08:22]MH_Cut [00:08:22]Write to MH i2c: D1 01 00 15 3F 01 26 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: D1 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: D1 01 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: D1 01 00 15 3F 00 25 [00:08:22]Write to MH i2c: 01 00 00 16 3F 55 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]OFD Sender: No OFD packet to send [00:08:22]*** Cut start [00:08:22]*** Partial cut [00:08:22]*** CUTSNS_PIN = 1 [00:08:22]*** CUTSNS_PIN = 0 [00:08:23]*** Brake cut motor [00:08:23]Read from MH i2c: 01 [00:08:23]MH_I2C_Read... [00:08:23]*** Stop cut motor [00:08:23]*** Cut end [00:08:23]Read from MH i2c: 01 07 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: 01 07 00 16 3F 00 00 00 00 00 FF 0F 6A [00:08:23]process_action close_receipt done [00:08:23]requested_data is exist [00:08:23]produce_requested_data [00:08:23]requested_item fm.sn is exist - process it [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 11 00 00 [00:08:23]Write to MH i2c: E2 08 00 17 3F 80 11 00 00 00 00 00 00 D0 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 17 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 17 00 17 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 22 [00:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:08:23]wFMCommunicate OK [00:08:23]requested_item fd.num is exist - process it [00:08:23]SAM_PROTO_GetFieldsCounters [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 13 00 00 [00:08:23]Write to MH i2c: E2 08 00 18 3F 80 13 00 00 00 00 00 00 D3 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 62 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 62 00 18 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B3 01 00 0E 04 04 00 84 01 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 43 [00:08: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B3 B3 01 00 0E 04 04 00 84 01 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 [00:08:23]wFMCommunicate OK [00:08:23]SAM_PROTO_GetFieldsCounters done [00:08:23]requested_item shift.num is exist - process it [00:08:23]requested_item shift.opened is exist - process it [00:08:23]req_shift_opened [00:08:23]FM_GetShiftState [00:08:23]SAM_PROTO_GetShiftState [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 13 01 00 [00:08:23]Write to MH i2c: E2 08 00 19 3F 80 13 01 00 00 00 00 00 D5 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 0E 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 0E 00 19 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 1F [00:08:23]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:08:23]wFMCommunicate OK [00:08:23]SAM_PROTO_GetShiftState done [00:08:23]FM_GetShiftState done [00:08:23]req_shift_opened done [00:08:23]requested_item shift.open_date is exist - process it [00:08:23]req_shift_open_date [00:08:23]req_shift_open_date done [00:08:23]produce_requested_data done [00:08:23]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111539,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:08:23]process_action_free close_receipt [00:08:23]json_value_free [00:08:23]json_value_free done [00:08:23]process_json_proto returns [00:08:23]Send response to host [00:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111539,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:08:23]free response buf [00:08:23]execute_script done [00:08:23]execute_script returns [00:08:23]free content buf [00:08:23]Sock 9.Close socket [00:08:23]Sock 9.Thread stoped [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:40]accept exits with 7 [00:10:40]New connection [00:10:40]New thread 3067465060 created [00:10:40]Thread 3067321700 joined [00:10:40]Waiting for new connection... [00:10:40] Sock 7.Parse request [00:10:40]Sock 7.Check first char [00:10:40]Sock 7.First char is OK [00:10:40]request: POST /json_proto HTTP/1.0 [00:10:40]Method: POST [00:10:40]URL: /json_proto [00:10:40]Method is POST - this is cgi request [00:10:40]url: /json_proto [00:10:40]query_string will be loaded in cgi processing [00:10:40]execute_cgi json_proto POST (null) [00:10:40]execute_cgi path=json_proto method=POST [00:10:40]POST find Content-Length [00:10:40]Host: 172.17.59.68:8080 [00:10:40]Content-Length: 678 [00:10:40]Content-Type: application/json [00:10:40] [00:10:40]POST finish read [00:10:40]Found Content-Length = 678 [00:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.400, "sum" : 690.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:40]execute_script... [00:10: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)320139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.400, "sum" : 690.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:40]POST & json_proto [00:10:40]process_json_proto [00:10:40]json parsed OK: [00:10:40]protocol is kg_v1.0 [00:10:40]action value=close_receipt [00:10:40]process_action close_receipt [00:10:40]cmd_close_receipt [00:10:40]MH_GetDate [00:10:40]Write to MH i2c: F0 00 00 1A 3F 48 [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: F0 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: F0 09 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: F0 09 00 1A 3F 00 91 73 73 66 BC EC 60 65 9B [00:10:40]GetLastDocTimeStamp 1718842116 [00:10:40]current date 1718842257 [00:10:40]FM_GetShiftState [00:10:40]SAM_PROTO_GetShiftState [00:10:40]wFMCommunicate request_size=4 [00:10:40]MH_SAM_APDU [00:10:40]CAPDU: 80 13 01 00 [00:10:40]Write to MH i2c: E2 08 00 1B 3F 80 13 01 00 00 00 00 00 D7 [00:10:40]Write i2c OK [00:10:40]MH_I2C_Read... [00:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:40]Read from MH i2c: E2 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 0E 00 [00:10:40]MH_I2C_Read... [00:10:40]Read from MH i2c: E2 0E 00 1B 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 21 [00:10:40]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:10:40]wFMCommunicate OK [00:10:40]SAM_PROTO_GetShiftState done [00:10:40]FM_GetShiftState done [00:10:40]opened in 1718760753 [00:10:40]opened+sec_in_day 1718847153 [00:10:40]quantity*price = 69056 [00:10:40]sum+1 = 69057 [00:10:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.33 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 289 20.06.2024 00:10 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111540 ФПД: 89116970315190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T001057&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111540&fm=89116970315190&tin=02508201610067®Number=0000000000092771&sum=69000 [00:10:42]StoreToDocumentArchive [00:10:42]shift 388 fd 111540 [00:10:42]save to /storage/0388/doc_00111540 [00:10:42]save last doc name /storage/0388/doc_00111540 to /storage/kkm_last_doc_name [00:10:42]save OK [00:10:42]Clear old archive folders... [00:10:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:10:42]tlvbuf is 00F1EC30 [00:10:42]SAM_PROTO_ClearQueue [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 09 00 00 [00:10:42]Write to MH i2c: E2 08 00 28 3F 80 09 00 00 00 00 00 00 D9 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 03 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 03 00 28 3F 00 90 00 DB [00:10:42]RAPDU: 90 00 [00:10:42]wFMCommunicate OK [00:10:42]SAM_PROTO_ClearQueue done [00:10:42]KKMCreateOFDPacket [00:10:42]OFDProtocolAddRootSTLVToBuf [00:10:42]FM_MakeSignedData [00:10:42]FM_MakeSignedData [00:10:42]SAM_PROTO_SignData [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 0D 01 02 [00:10:42]Write to MH i2c: E2 08 00 29 3F 80 0D 01 02 00 00 00 00 E1 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 03 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 03 00 29 3F 00 90 00 DC [00:10:42]RAPDU: 90 00 [00:10:42]wFMCommunicate OK [00:10:42]wFMCommunicate request_size=255 [00:10:42]MH_SAM_APDU [00:10: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 A0 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 91 73 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B3 01 00 35 04 06 00 51 [00:10:42]Write to MH i2c: E2 02 01 2A 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 A0 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 91 73 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B3 01 00 35 04 06 00 51 00 00 19 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 03 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 03 00 2A 3F 00 90 00 DD [00:10:42]RAPDU: 90 00 [00:10:42]wFMCommunicate OK [00:10:42]wFMCommunicate request_size=10 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 0D 02 02 05 0D 29 5B ED B6 [00:10:42]Write to MH i2c: E2 0D 00 2B 3F 80 0D 02 02 05 00 0D 29 5B ED B6 00 00 22 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 03 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 03 00 2B 3F 00 90 00 DE [00:10:42]RAPDU: 90 00 [00:10:42]wFMCommunicate OK [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 0D 03 02 [00:10:42]Write to MH i2c: E2 08 00 2C 3F 80 0D 03 02 00 00 00 00 E6 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 0B 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 0B 00 2C 3F 00 02 F0 F1 3F 7B C1 29 D3 90 00 41 [00:10:42]RAPDU: 02 F0 F1 3F 7B C1 29 D3 90 00 [00:10:42]wFMCommunicate OK [00:10:42]SAM_PROTO_SignData done [00:10:42]FM_MakeSignedData done [00:10:42]CreateOFDProtocolMessage [00:10:42]wFMCommunicate request_size=4 [00:10:42]MH_SAM_APDU [00:10:42]CAPDU: 80 11 00 00 [00:10:42]Write to MH i2c: E2 08 00 2D 3F 80 11 00 00 00 00 00 00 E6 [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]OFD Sender: No OFD packet to send [00:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:42]Read from MH i2c: E2 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 17 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: E2 17 00 2D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 38 [00:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:10:42]wFMCommunicate OK [00:10:42]CreateOFDProtocolMessage done [00:10:42]OFDSenderStorePacket 111540 [00:10:42]StoreOFDPacket docnum=111540 [00:10:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 D1 07 01 0D 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 A0 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 91 73 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B3 01 00 35 04 06 00 51 0D 29 5B ED B6 02 F0 F1 3F 7B C1 29 D3 [00:10:42]CheckFolder [00:10:42]dirname=/storage/ofd_packets [00:10:42]CheckFolder done [00:10:42]ProducePacketName [00:10:42]name=ofd_packets/00111540 [00:10:42]NVStorageSaveData ofd_packets/00111540 [00:10:42]File name is /storage/ofd_packets/00111540 [00:10:42]Write 301 bytes [00:10:42]NVStorageSaveData done [00:10:42]OFDSenderStorePacket done [00:10:42]KKMCreateOFDPacket done [00:10:42]NVStorageSaveData kkm_last_timestamp [00:10:42]File name is /storage/kkm_last_timestamp [00:10:42]Write 4 bytes [00:10:42]NVStorageSaveData done [00:10:42]ExternCall_PrintAddStr [00:10:42]wPrintStart [00:10:42]Write to MH i2c: 01 00 00 2E 3F 6D [00:10:42]Write i2c OK [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: 01 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: 01 07 00 [00:10:42]MH_I2C_Read... [00:10:42]Read from MH i2c: 01 07 00 2E 3F 00 00 00 00 00 FF 0F 82 [00:10:42]RasterBufferAndPrint [00:10:42]line Счет N : (1)320139 [00:10:42]line ИНН: 02508201610067 [00:10:42]line Контрольно-Кассовый Чек [00:10:42]line ПРОДАЖА [00:10:42]line ТРК (МРК, ГНК) : 11 [00:10:42]line Товар: 2710124130 [00:10:42]line Аи-92-К-5 [00:10:42]line 10.400 * 66.40 [00:10:42]line = 690.56 [00:10:42]line НДС 12% НСП 1% [00:10:42]line > о реализуемом товаре [00:10:42]line ОКРУГЛЕНИЕ: -0.56 [00:10:42]line ИТОГО: 690.00 [00:10:42]line Внесено: 690.00 [00:10:42]line СДАЧА: 0.00 [00:10:42]line НСП 1% : 6.11 [00:10:42]line НДС 12% : 73.33 [00:10:42]line Наличными: 690.00 [00:10:42]line Безнал.: 0.00 [00:10:42]line Место: АЗС № 65 "Партнер Нефть" [00:10:42]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:10:42]line СНО: Общий режим [00:10:42]line Чек 289 20.06.2024 00:10 [00:10:42]line Смена: 388 ФФД: 1.0 [00:10:42]line ЗНМ: 0300000198 [00:10:42]line РНМ: 0000000000092771 [00:10:42]line Версия ККМ: 001 [00:10:42]line ФМ: 0000000000875083 [00:10:42]line ФД: 111540 [00:10:42]line ФПД: 89116970315190 [00:10:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T001057&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111540&fm=89116970315190&tin=02508201610067®Number=0000000000092771&sum=69000 [00:10:42]OFD Sender: Processing packet 111540 [packets to send 38, broken 37] [00:10:42]ProducePacketName [00:10:42]name=ofd_packets/00111540 [00:10:42]OFD Sender: To server: pG, [00:10:42]CommunicateWithHost lk.salyk.kg:30040 [00:10:42]ConnectInit lk.salyk.kg [00:10:42]written 0, free lines is 4095 [00:10:43]Connected sock=10 [00:10:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 89 D1 07 01 0D 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 A0 28 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 91 73 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B4 B3 01 00 35 04 06 00 51 0D 29 5B ED B6 02 F0 F1 3F 7B C1 29 D3 [00:10:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 CF 3E 47 00 1C 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 35 30 38 33 10 04 04 00 B4 B3 01 00 F4 03 04 00 EC 0A 73 66 B6 04 01 00 00 3C E6 71 7D 75 8A F4 3D [00:10:43]CommunicateWithHost err = 0 [00:10:43]CheckOFDResponse [00:10:43]1017 (14) - 77093643461234 [00:10:43]1041 (16) - 0000000000875083 [00:10:43]1040 (4) - 111540 [00:10:43]1012 (4) - 19.06.2024 16:44 [00:10:43]1206 (1) - 0 [00:10:43]OFD Sender: Remove packet 111540 [00:10:43]ProducePacketName [00:10:43]name=ofd_packets/00111540 [00:10:43]NVStorageDeleteData [00:10:43]Write to MH i2c: 01 00 00 59 3F 98 [00:10:43]Write i2c OK [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: 01 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: 01 07 00 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: 01 07 00 59 3F 00 00 00 00 00 C8 0C 73 [00:10:43]RasterBufferAndPrint [00:10:43]line [00:10:43]line [00:10:43]line [00:10:43]line [00:10:43]line [00:10:43]written 0, free lines is 3278 [00:10:43]MH_Cut [00:10:43]Write to MH i2c: D1 01 00 60 3F 01 71 [00:10:43]Write i2c OK [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: D1 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: D1 01 00 [00:10:43]MH_I2C_Read... [00:10:43]Read from MH i2c: D1 01 00 60 3F 00 70 [00:10:43]Write to MH i2c: 01 00 00 61 3F A0 [00:10:43]Write i2c OK [00:10:43]MH_I2C_Read... [00:10:43]OFD Sender: No OFD packet to send [00:10:44]*** Cut start [00:10:44]*** Partial cut [00:10:44]*** CUTSNS_PIN = 1 [00:10:44]*** CUTSNS_PIN = 0 [00:10:44]*** Brake cut motor [00:10:44]Read from MH i2c: 01 [00:10:44]MH_I2C_Read... [00:10:44]*** Stop cut motor [00:10:44]*** Cut end [00:10:44]Read from MH i2c: 01 07 00 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: 01 07 00 61 3F 00 00 00 00 00 FF 0F B5 [00:10:44]process_action close_receipt done [00:10:44]requested_data is exist [00:10:44]produce_requested_data [00:10:44]requested_item fm.sn is exist - process it [00:10:44]wFMCommunicate request_size=4 [00:10:44]MH_SAM_APDU [00:10:44]CAPDU: 80 11 00 00 [00:10:44]Write to MH i2c: E2 08 00 62 3F 80 11 00 00 00 00 00 00 1B [00:10:44]Write i2c OK [00:10:44]MH_I2C_Read... [00:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:44]Read from MH i2c: E2 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: E2 17 00 [00:10:44]MH_I2C_Read... [00:10:44]Read from MH i2c: E2 17 00 62 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 6D [00:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:10:44]wFMCommunicate OK [00:10:44]requested_item fd.num is exist - process it [00:10:44]SAM_PROTO_GetFieldsCounters [00:10:44]wFMCommunicate request_size=4 [00:10:44]MH_SAM_APDU [00:10:44]CAPDU: 80 13 00 00 [00:10:44]Write to MH i2c: E2 08 00 63 3F 80 13 00 00 00 00 00 00 1E [00:10:44]Write i2c OK [00:10:44]MH_I2C_Read... [00:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:45]Read from MH i2c: E2 [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: E2 62 00 [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: E2 62 00 63 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B3 01 00 0E 04 04 00 84 01 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 92 [00:10: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B4 B3 01 00 0E 04 04 00 84 01 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 [00:10:45]wFMCommunicate OK [00:10:45]SAM_PROTO_GetFieldsCounters done [00:10:45]requested_item shift.num is exist - process it [00:10:45]requested_item shift.opened is exist - process it [00:10:45]req_shift_opened [00:10:45]FM_GetShiftState [00:10:45]SAM_PROTO_GetShiftState [00:10:45]wFMCommunicate request_size=4 [00:10:45]MH_SAM_APDU [00:10:45]CAPDU: 80 13 01 00 [00:10:45]Write to MH i2c: E2 08 00 64 3F 80 13 01 00 00 00 00 00 20 [00:10:45]Write i2c OK [00:10:45]MH_I2C_Read... [00:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:45]Read from MH i2c: E2 [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: E2 0E 00 [00:10:45]MH_I2C_Read... [00:10:45]Read from MH i2c: E2 0E 00 64 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6A [00:10:45]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:10:45]wFMCommunicate OK [00:10:45]SAM_PROTO_GetShiftState done [00:10:45]FM_GetShiftState done [00:10:45]req_shift_opened done [00:10:45]requested_item shift.open_date is exist - process it [00:10:45]req_shift_open_date [00:10:45]req_shift_open_date done [00:10:45]produce_requested_data done [00:10:45]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111540,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:10:45]process_action_free close_receipt [00:10:45]json_value_free [00:10:45]json_value_free done [00:10:45]process_json_proto returns [00:10:45]Send response to host [00:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111540,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:10:45]free response buf [00:10:45]execute_script done [00:10:45]execute_script returns [00:10:45]free content buf [00:10:45]Sock 7.Close socket [00:10:45]Sock 7.Thread stoped [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:17]accept exits with 9 [00:13:17]New connection [00:13:17]New thread 3067321700 created [00:13:17]Thread 3067465060 joined [00:13:17]Waiting for new connection... [00:13:17] Sock 9.Parse request [00:13:17]Sock 9.Check first char [00:13:17]Sock 9.First char is OK [00:13:17]request: POST /json_proto HTTP/1.0 [00:13:17]Method: POST [00:13:17]URL: /json_proto [00:13:17]Method is POST - this is cgi request [00:13:17]url: /json_proto [00:13:17]query_string will be loaded in cgi processing [00:13:17]execute_cgi json_proto POST (null) [00:13:17]execute_cgi path=json_proto method=POST [00:13:17]POST find Content-Length [00:13:17]Host: 172.17.59.68:8080 [00:13:17]Content-Length: 682 [00:13:17]Content-Type: application/json [00:13:17] [00:13:17]POST finish read [00:13:17]Found Content-Length = 682 [00:13:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:17]execute_script... [00:13: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)320140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 22.600, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:17]POST & json_proto [00:13:17]process_json_proto [00:13:17]json parsed OK: [00:13:17]protocol is kg_v1.0 [00:13:17]action value=close_receipt [00:13:17]process_action close_receipt [00:13:17]cmd_close_receipt [00:13:17]MH_GetDate [00:13:17]Write to MH i2c: F0 00 00 65 3F 93 [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: F0 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: F0 09 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: F0 09 00 65 3F 00 2E 74 73 66 BC EC 60 65 84 [00:13:17]GetLastDocTimeStamp 1718842257 [00:13:17]current date 1718842414 [00:13:17]FM_GetShiftState [00:13:17]SAM_PROTO_GetShiftState [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 13 01 00 [00:13:17]Write to MH i2c: E2 08 00 66 3F 80 13 01 00 00 00 00 00 22 [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 0E 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 0E 00 66 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 6C [00:13:17]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:13:17]wFMCommunicate OK [00:13:17]SAM_PROTO_GetShiftState done [00:13:17]FM_GetShiftState done [00:13:17]opened in 1718760753 [00:13:17]opened+sec_in_day 1718847153 [00:13:17]quantity*price = 150064 [00:13:17]sum+1 = 150065 [00:13:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 290 20.06.2024 00:13 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111541 ФПД: 209546822701317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T001334&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111541&fm=209546822701317&tin=02508201610067®Number=0000000000092771&sum=150000 [00:13:18]StoreToDocumentArchive [00:13:18]shift 388 fd 111541 [00:13:18]save to /storage/0388/doc_00111541 [00:13:18]save last doc name /storage/0388/doc_00111541 to /storage/kkm_last_doc_name [00:13:18]save OK [00:13:18]Clear old archive folders... [00:13:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:13:18]tlvbuf is 00EC1DA0 [00:13:18]SAM_PROTO_ClearQueue [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 09 00 00 [00:13:18]Write to MH i2c: E2 08 00 73 3F 80 09 00 00 00 00 00 00 24 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 73 3F 00 90 00 26 [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]SAM_PROTO_ClearQueue done [00:13:18]KKMCreateOFDPacket [00:13:18]OFDProtocolAddRootSTLVToBuf [00:13:18]FM_MakeSignedData [00:13:18]FM_MakeSignedData [00:13:18]SAM_PROTO_SignData [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 01 02 [00:13:18]Write to MH i2c: E2 08 00 74 3F 80 0D 01 02 00 00 00 00 2C [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 74 3F 00 90 00 27 [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=255 [00:13:18]MH_SAM_APDU [00:13: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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 22 01 00 00 F4 03 04 00 2E 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B3 01 00 35 04 06 00 BE [00:13:18]Write to MH i2c: E2 02 01 75 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 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 22 01 00 00 F4 03 04 00 2E 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B3 01 00 35 04 06 00 BE 00 00 CE [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 75 3F 00 90 00 28 [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=10 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 02 02 05 94 EB EE 51 05 [00:13:18]Write to MH i2c: E2 0D 00 76 3F 80 0D 02 02 05 00 94 EB EE 51 05 00 00 FC [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 03 00 76 3F 00 90 00 29 [00:13:18]RAPDU: 90 00 [00:13:18]wFMCommunicate OK [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 0D 03 02 [00:13:18]Write to MH i2c: E2 08 00 77 3F 80 0D 03 02 00 00 00 00 31 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 0B 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 0B 00 77 3F 00 E2 B0 2D F3 4E 40 27 16 90 00 AF [00:13:18]RAPDU: E2 B0 2D F3 4E 40 27 16 90 00 [00:13:18]wFMCommunicate OK [00:13:18]SAM_PROTO_SignData done [00:13:18]FM_MakeSignedData done [00:13:18]CreateOFDProtocolMessage [00:13:18]wFMCommunicate request_size=4 [00:13:18]MH_SAM_APDU [00:13:18]CAPDU: 80 11 00 00 [00:13:18]Write to MH i2c: E2 08 00 78 3F 80 11 00 00 00 00 00 00 31 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:18]Read from MH i2c: E2 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 17 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: E2 17 00 78 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 83 [00:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:13:18]wFMCommunicate OK [00:13:18]CreateOFDProtocolMessage done [00:13:18]OFDSenderStorePacket 111541 [00:13:18]StoreOFDPacket docnum=111541 [00:13:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 C1 07 01 52 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 22 01 00 00 F4 03 04 00 2E 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B3 01 00 35 04 06 00 BE 94 EB EE 51 05 E2 B0 2D F3 4E 40 27 16 [00:13:18]CheckFolder [00:13:18]dirname=/storage/ofd_packets [00:13:18]CheckFolder done [00:13:18]ProducePacketName [00:13:18]name=ofd_packets/00111541 [00:13:18]NVStorageSaveData ofd_packets/00111541 [00:13:18]File name is /storage/ofd_packets/00111541 [00:13:18]Write 301 bytes [00:13:18]NVStorageSaveData done [00:13:18]OFDSenderStorePacket done [00:13:18]KKMCreateOFDPacket done [00:13:18]NVStorageSaveData kkm_last_timestamp [00:13:18]File name is /storage/kkm_last_timestamp [00:13:18]Write 4 bytes [00:13:18]NVStorageSaveData done [00:13:18]ExternCall_PrintAddStr [00:13:18]wPrintStart [00:13:18]Write to MH i2c: 01 00 00 79 3F B8 [00:13:18]Write i2c OK [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 07 00 [00:13:18]MH_I2C_Read... [00:13:18]Read from MH i2c: 01 07 00 79 3F 00 00 00 00 00 FF 0F CD [00:13:18]RasterBufferAndPrint [00:13:18]line Счет N : (1)320140 [00:13:18]line ИНН: 02508201610067 [00:13:18]line Контрольно-Кассовый Чек [00:13:18]line ПРОДАЖА [00:13:18]line ТРК (МРК, ГНК) : 11 [00:13:18]line Товар: 2710124130 [00:13:18]line Аи-92-К-5 [00:13:18]line 22.600 * 66.40 [00:13:18]line = 1500.64 [00:13:18]line НДС 12% НСП 1% [00:13:18]line > о реализуемом товаре [00:13:18]line ОКРУГЛЕНИЕ: -0.64 [00:13:18]line ИТОГО: 1500.00 [00:13:18]line Внесено: 1500.00 [00:13:18]line СДАЧА: 0.00 [00:13:18]line НСП 1% : 13.28 [00:13:18]line НДС 12% : 159.36 [00:13:18]line Наличными: 1500.00 [00:13:18]line Безнал.: 0.00 [00:13:18]line Место: АЗС № 65 "Партнер Нефть" [00:13:18]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:13:18]line СНО: Общий режим [00:13:18]line Чек 290 20.06.2024 00:13 [00:13:18]line Смена: 388 ФФД: 1.0 [00:13:18]line ЗНМ: 0300000198 [00:13:18]line РНМ: 0000000000092771 [00:13:18]line Версия ККМ: 001 [00:13:18]line ФМ: 0000000000875083 [00:13:18]line ФД: 111541 [00:13:18]line ФПД: 209546822701317 [00:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T001334&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111541&fm=209546822701317&tin=02508201610067®Number=0000000000092771&sum=150000 [00:13:19]OFD Sender: Processing packet 111541 [packets to send 38, broken 37] [00:13:19]ProducePacketName [00:13:19]name=ofd_packets/00111541 [00:13:19]OFD Sender: To server: pG, [00:13:19]CommunicateWithHost lk.salyk.kg:30040 [00:13:19]ConnectInit lk.salyk.kg [00:13:19]written 0, free lines is 4095 [00:13:19]Connected sock=10 [00:13:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 12 C1 07 01 52 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 58 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 30 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 40 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 22 01 00 00 F4 03 04 00 2E 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B5 B3 01 00 35 04 06 00 BE 94 EB EE 51 05 E2 B0 2D F3 4E 40 27 16 [00:13:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 4B 54 47 00 91 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 35 30 38 33 10 04 04 00 B5 B3 01 00 F4 03 04 00 88 0B 73 66 B6 04 01 00 00 D8 E3 0D 85 D1 10 66 E2 [00:13:19]CommunicateWithHost err = 0 [00:13:19]CheckOFDResponse [00:13:19]1017 (14) - 77093643461234 [00:13:19]1041 (16) - 0000000000875083 [00:13:19]1040 (4) - 111541 [00:13:19]1012 (4) - 19.06.2024 16:47 [00:13:19]1206 (1) - 0 [00:13:19]OFD Sender: Remove packet 111541 [00:13:19]ProducePacketName [00:13:19]name=ofd_packets/00111541 [00:13:19]NVStorageDeleteData [00:13:19]Write to MH i2c: 01 00 00 A4 3F E3 [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 07 00 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: 01 07 00 A4 3F 00 00 00 00 00 CD 0C C3 [00:13:19]RasterBufferAndPrint [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]line [00:13:19]written 0, free lines is 3283 [00:13:19]MH_Cut [00:13:19]Write to MH i2c: D1 01 00 AB 3F 01 BC [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 01 00 [00:13:19]MH_I2C_Read... [00:13:19]Read from MH i2c: D1 01 00 AB 3F 00 BB [00:13:19]Write to MH i2c: 01 00 00 AC 3F EB [00:13:19]Write i2c OK [00:13:19]MH_I2C_Read... [00:13:20]OFD Sender: No OFD packet to send [00:13:20]*** Cut start [00:13:20]*** Partial cut [00:13:20]*** CUTSNS_PIN = 1 [00:13:20]*** CUTSNS_PIN = 0 [00:13:20]*** Brake cut motor [00:13:20]Read from MH i2c: 01 [00:13:20]MH_I2C_Read... [00:13:20]*** Stop cut motor [00:13:21]*** Cut end [00:13:21]Read from MH i2c: 01 07 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: 01 07 00 AC 3F 00 00 00 00 00 FF 0F 00 [00:13:21]process_action close_receipt done [00:13:21]requested_data is exist [00:13:21]produce_requested_data [00:13:21]requested_item fm.sn is exist - process it [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 11 00 00 [00:13:21]Write to MH i2c: E2 08 00 AD 3F 80 11 00 00 00 00 00 00 66 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 17 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 17 00 AD 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B8 [00:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:13:21]wFMCommunicate OK [00:13:21]requested_item fd.num is exist - process it [00:13:21]SAM_PROTO_GetFieldsCounters [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 13 00 00 [00:13:21]Write to MH i2c: E2 08 00 AE 3F 80 13 00 00 00 00 00 00 69 [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 62 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 62 00 AE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B3 01 00 0E 04 04 00 84 01 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 E1 [00:13: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B5 B3 01 00 0E 04 04 00 84 01 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 [00:13:21]wFMCommunicate OK [00:13:21]SAM_PROTO_GetFieldsCounters done [00:13:21]requested_item shift.num is exist - process it [00:13:21]requested_item shift.opened is exist - process it [00:13:21]req_shift_opened [00:13:21]FM_GetShiftState [00:13:21]SAM_PROTO_GetShiftState [00:13:21]wFMCommunicate request_size=4 [00:13:21]MH_SAM_APDU [00:13:21]CAPDU: 80 13 01 00 [00:13:21]Write to MH i2c: E2 08 00 AF 3F 80 13 01 00 00 00 00 00 6B [00:13:21]Write i2c OK [00:13:21]MH_I2C_Read... [00:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:21]Read from MH i2c: E2 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 0E 00 [00:13:21]MH_I2C_Read... [00:13:21]Read from MH i2c: E2 0E 00 AF 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B5 [00:13:21]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:13:21]wFMCommunicate OK [00:13:21]SAM_PROTO_GetShiftState done [00:13:21]FM_GetShiftState done [00:13:21]req_shift_opened done [00:13:21]requested_item shift.open_date is exist - process it [00:13:21]req_shift_open_date [00:13:21]req_shift_open_date done [00:13:21]produce_requested_data done [00:13:21]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111541,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:13:21]process_action_free close_receipt [00:13:21]json_value_free [00:13:21]json_value_free done [00:13:21]process_json_proto returns [00:13:21]Send response to host [00:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111541,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:13:21]free response buf [00:13:21]execute_script done [00:13:21]execute_script returns [00:13:21]free content buf [00:13:21]Sock 9.Close socket [00:13:21]Sock 9.Thread stoped [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:39]accept exits with 7 [00:14:39]New connection [00:14:39]New thread 3067465060 created [00:14:39]Thread 3067321700 joined [00:14:39]Waiting for new connection... [00:14:39] Sock 7.Parse request [00:14:39]Sock 7.Check first char [00:14:39]Sock 7.First char is OK [00:14:39]request: POST /json_proto HTTP/1.0 [00:14:39]Method: POST [00:14:39]URL: /json_proto [00:14:39]Method is POST - this is cgi request [00:14:39]url: /json_proto [00:14:39]query_string will be loaded in cgi processing [00:14:39]execute_cgi json_proto POST (null) [00:14:39]execute_cgi path=json_proto method=POST [00:14:39]POST find Content-Length [00:14:39]Host: 172.17.59.68:8080 [00:14:39]Content-Length: 677 [00:14:39]Content-Type: application/json [00:14:39] [00:14:39]POST finish read [00:14:39]Found Content-Length = 677 [00:14:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:39]execute_script... [00:14: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)320141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 6.030, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:39]POST & json_proto [00:14:39]process_json_proto [00:14:39]json parsed OK: [00:14:39]protocol is kg_v1.0 [00:14:39]action value=close_receipt [00:14:39]process_action close_receipt [00:14:39]cmd_close_receipt [00:14:39]MH_GetDate [00:14:39]Write to MH i2c: F0 00 00 B0 3F DE [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: F0 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: F0 09 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: F0 09 00 B0 3F 00 80 74 73 66 BC EC 60 65 21 [00:14:39]GetLastDocTimeStamp 1718842414 [00:14:39]current date 1718842496 [00:14:39]FM_GetShiftState [00:14:39]SAM_PROTO_GetShiftState [00:14:39]wFMCommunicate request_size=4 [00:14:39]MH_SAM_APDU [00:14:39]CAPDU: 80 13 01 00 [00:14:39]Write to MH i2c: E2 08 00 B1 3F 80 13 01 00 00 00 00 00 6D [00:14:39]Write i2c OK [00:14:39]MH_I2C_Read... [00:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:39]Read from MH i2c: E2 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 0E 00 [00:14:39]MH_I2C_Read... [00:14:39]Read from MH i2c: E2 0E 00 B1 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 B7 [00:14:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:14:39]wFMCommunicate OK [00:14:39]SAM_PROTO_GetShiftState done [00:14:39]FM_GetShiftState done [00:14:39]opened in 1718760753 [00:14:39]opened+sec_in_day 1718847153 [00:14:39]quantity*price = 40039 [00:14:39]sum+1 = 40040 [00:14:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 291 20.06.2024 00:14 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111542 ФПД: 98340313093861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T001456&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111542&fm=98340313093861&tin=02508201610067®Number=0000000000092771&sum=40000 [00:14:40]StoreToDocumentArchive [00:14:40]shift 388 fd 111542 [00:14:40]save to /storage/0388/doc_00111542 [00:14:40]save last doc name /storage/0388/doc_00111542 to /storage/kkm_last_doc_name [00:14:40]save OK [00:14:40]Clear old archive folders... [00:14:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:14:40]tlvbuf is 00F177A0 [00:14:40]SAM_PROTO_ClearQueue [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 09 00 00 [00:14:40]Write to MH i2c: E2 08 00 BE 3F 80 09 00 00 00 00 00 00 6F [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 03 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 03 00 BE 3F 00 90 00 71 [00:14:40]RAPDU: 90 00 [00:14:40]wFMCommunicate OK [00:14:40]SAM_PROTO_ClearQueue done [00:14:40]KKMCreateOFDPacket [00:14:40]OFDProtocolAddRootSTLVToBuf [00:14:40]FM_MakeSignedData [00:14:40]FM_MakeSignedData [00:14:40]SAM_PROTO_SignData [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 0D 01 02 [00:14:40]Write to MH i2c: E2 08 00 BF 3F 80 0D 01 02 00 00 00 00 77 [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 03 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 03 00 BF 3F 00 90 00 72 [00:14:40]RAPDU: 90 00 [00:14:40]wFMCommunicate OK [00:14:40]wFMCommunicate request_size=255 [00:14:40]MH_SAM_APDU [00:14: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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 23 01 00 00 F4 03 04 00 80 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B3 01 00 35 04 06 00 59 [00:14:40]Write to MH i2c: E2 02 01 C0 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 23 01 00 00 F4 03 04 00 80 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B3 01 00 35 04 06 00 59 00 00 32 [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 03 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 03 00 C0 3F 00 90 00 73 [00:14:41]RAPDU: 90 00 [00:14:41]wFMCommunicate OK [00:14:41]wFMCommunicate request_size=10 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 0D 02 02 05 70 A3 6D D6 E5 [00:14:41]Write to MH i2c: E2 0D 00 C1 3F 80 0D 02 02 05 00 70 A3 6D D6 E5 00 00 BF [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 03 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 03 00 C1 3F 00 90 00 74 [00:14:41]RAPDU: 90 00 [00:14:41]wFMCommunicate OK [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 0D 03 02 [00:14:41]Write to MH i2c: E2 08 00 C2 3F 80 0D 03 02 00 00 00 00 7C [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 0B 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 0B 00 C2 3F 00 5F D2 9A 28 75 BB B6 3B 90 00 91 [00:14:41]RAPDU: 5F D2 9A 28 75 BB B6 3B 90 00 [00:14:41]wFMCommunicate OK [00:14:41]SAM_PROTO_SignData done [00:14:41]FM_MakeSignedData done [00:14:41]CreateOFDProtocolMessage [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 11 00 00 [00:14:41]Write to MH i2c: E2 08 00 C3 3F 80 11 00 00 00 00 00 00 7C [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 17 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 17 00 C3 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 CE [00:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:14:41]wFMCommunicate OK [00:14:41]CreateOFDProtocolMessage done [00:14:41]OFDSenderStorePacket 111542 [00:14:41]StoreOFDPacket docnum=111542 [00:14:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 97 07 01 16 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 23 01 00 00 F4 03 04 00 80 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B3 01 00 35 04 06 00 59 70 A3 6D D6 E5 5F D2 9A 28 75 BB B6 3B [00:14:41]CheckFolder [00:14:41]dirname=/storage/ofd_packets [00:14:41]CheckFolder done [00:14:41]ProducePacketName [00:14:41]name=ofd_packets/00111542 [00:14:41]NVStorageSaveData ofd_packets/00111542 [00:14:41]File name is /storage/ofd_packets/00111542 [00:14:41]Write 301 bytes [00:14:41]NVStorageSaveData done [00:14:41]OFDSenderStorePacket done [00:14:41]KKMCreateOFDPacket done [00:14:41]NVStorageSaveData kkm_last_timestamp [00:14:41]File name is /storage/kkm_last_timestamp [00:14:41]Write 4 bytes [00:14:41]NVStorageSaveData done [00:14:41]ExternCall_PrintAddStr [00:14:41]wPrintStart [00:14:41]Write to MH i2c: 01 00 00 C4 3F 03 [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: 01 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: 01 07 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: 01 07 00 C4 3F 00 00 00 00 00 FF 0F 18 [00:14:41]RasterBufferAndPrint [00:14:41]line Счет N : (1)320141 [00:14:41]line ИНН: 02508201610067 [00:14:41]line Контрольно-Кассовый Чек [00:14:41]line ПРОДАЖА [00:14:41]line ТРК (МРК, ГНК) : 11 [00:14:41]line Товар: 2710124130 [00:14:41]line Аи-92-К-5 [00:14:41]line 6.030 * 66.40 [00:14:41]line = 400.39 [00:14:41]line НДС 12% НСП 1% [00:14:41]line > о реализуемом товаре [00:14:41]line ОКРУГЛЕНИЕ: -0.39 [00:14:41]line ИТОГО: 400.00 [00:14:41]line Внесено: 400.00 [00:14:41]line СДАЧА: 0.00 [00:14:41]line НСП 1% : 3.54 [00:14:41]line НДС 12% : 42.52 [00:14:41]line Наличными: 400.00 [00:14:41]line Безнал.: 0.00 [00:14:41]line Место: АЗС № 65 "Партнер Нефть" [00:14:41]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:14:41]line СНО: Общий режим [00:14:41]line Чек 291 20.06.2024 00:14 [00:14:41]line Смена: 388 ФФД: 1.0 [00:14:41]line ЗНМ: 0300000198 [00:14:41]line РНМ: 0000000000092771 [00:14:41]line Версия ККМ: 001 [00:14:41]line ФМ: 0000000000875083 [00:14:41]line ФД: 111542 [00:14:41]line ФПД: 98340313093861 [00:14:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T001456&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111542&fm=98340313093861&tin=02508201610067®Number=0000000000092771&sum=40000 [00:14:41]OFD Sender: Processing packet 111542 [packets to send 38, broken 37] [00:14:41]ProducePacketName [00:14:41]name=ofd_packets/00111542 [00:14:41]OFD Sender: To server: pG, [00:14:41]CommunicateWithHost lk.salyk.kg:30040 [00:14:41]ConnectInit lk.salyk.kg [00:14:41]written 0, free lines is 4095 [00:14:41]Connected sock=10 [00:14:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 84 97 07 01 16 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 8E 17 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 67 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 9C 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 23 01 00 00 F4 03 04 00 80 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B6 B3 01 00 35 04 06 00 59 70 A3 6D D6 E5 5F D2 9A 28 75 BB B6 3B [00:14:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 31 00 47 00 BF 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 35 30 38 33 10 04 04 00 B6 B3 01 00 F4 03 04 00 DB 0B 73 66 B6 04 01 00 00 78 CE 14 E6 F8 8B 8F 7C [00:14:41]CommunicateWithHost err = 0 [00:14:41]CheckOFDResponse [00:14:41]1017 (14) - 77093643461234 [00:14:41]1041 (16) - 0000000000875083 [00:14:41]1040 (4) - 111542 [00:14:41]1012 (4) - 19.06.2024 16:48 [00:14:41]1206 (1) - 0 [00:14:41]OFD Sender: Remove packet 111542 [00:14:41]ProducePacketName [00:14:41]name=ofd_packets/00111542 [00:14:41]NVStorageDeleteData [00:14:42]Write to MH i2c: 01 00 00 EF 3F 2E [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: 01 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: 01 07 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: 01 07 00 EF 3F 00 00 00 00 00 D0 0C 11 [00:14:42]RasterBufferAndPrint [00:14:42]line [00:14:42]line [00:14:42]line [00:14:42]line [00:14:42]line [00:14:42]written 0, free lines is 3288 [00:14:42]MH_Cut [00:14:42]Write to MH i2c: D1 01 00 F6 3F 01 07 [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: D1 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: D1 01 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: D1 01 00 F6 3F 00 06 [00:14:42]Write to MH i2c: 01 00 00 F7 3F 36 [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]OFD Sender: No OFD packet to send [00:14:42]*** Cut start [00:14:42]*** Partial cut [00:14:42]*** CUTSNS_PIN = 1 [00:14:42]*** CUTSNS_PIN = 0 [00:14:43]*** Brake cut motor [00:14:43]Read from MH i2c: 01 [00:14:43]MH_I2C_Read... [00:14:43]*** Stop cut motor [00:14:43]*** Cut end [00:14:43]Read from MH i2c: 01 07 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: 01 07 00 F7 3F 00 00 00 00 00 FF 0F 4B [00:14:43]process_action close_receipt done [00:14:43]requested_data is exist [00:14:43]produce_requested_data [00:14:43]requested_item fm.sn is exist - process it [00:14:43]wFMCommunicate request_size=4 [00:14:43]MH_SAM_APDU [00:14:43]CAPDU: 80 11 00 00 [00:14:43]Write to MH i2c: E2 08 00 F8 3F 80 11 00 00 00 00 00 00 B1 [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:43]Read from MH i2c: E2 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 17 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 17 00 F8 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 03 [00:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:14:43]wFMCommunicate OK [00:14:43]requested_item fd.num is exist - process it [00:14:43]SAM_PROTO_GetFieldsCounters [00:14:43]wFMCommunicate request_size=4 [00:14:43]MH_SAM_APDU [00:14:43]CAPDU: 80 13 00 00 [00:14:43]Write to MH i2c: E2 08 00 F9 3F 80 13 00 00 00 00 00 00 B4 [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:43]Read from MH i2c: E2 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 62 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 62 00 F9 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B3 01 00 0E 04 04 00 84 01 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 30 [00:14: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B6 B3 01 00 0E 04 04 00 84 01 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 [00:14:43]wFMCommunicate OK [00:14:43]SAM_PROTO_GetFieldsCounters done [00:14:43]requested_item shift.num is exist - process it [00:14:43]requested_item shift.opened is exist - process it [00:14:43]req_shift_opened [00:14:43]FM_GetShiftState [00:14:43]SAM_PROTO_GetShiftState [00:14:43]wFMCommunicate request_size=4 [00:14:43]MH_SAM_APDU [00:14:43]CAPDU: 80 13 01 00 [00:14:43]Write to MH i2c: E2 08 00 FA 3F 80 13 01 00 00 00 00 00 B6 [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:43]Read from MH i2c: E2 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 0E 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: E2 0E 00 FA 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 00 [00:14:43]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:14:43]wFMCommunicate OK [00:14:43]SAM_PROTO_GetShiftState done [00:14:43]FM_GetShiftState done [00:14:43]req_shift_opened done [00:14:43]requested_item shift.open_date is exist - process it [00:14:43]req_shift_open_date [00:14:43]req_shift_open_date done [00:14:43]produce_requested_data done [00:14:43]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111542,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:14:43]process_action_free close_receipt [00:14:43]json_value_free [00:14:43]json_value_free done [00:14:43]process_json_proto returns [00:14:43]Send response to host [00:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111542,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:14:43]free response buf [00:14:43]execute_script done [00:14:43]execute_script returns [00:14:43]free content buf [00:14:43]Sock 7.Close socket [00:14:43]Sock 7.Thread stoped [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:47]accept exits with 9 [00:15:47]New connection [00:15:47]New thread 3067321700 created [00:15:47]Thread 3067465060 joined [00:15:47]Waiting for new connection... [00:15:47] Sock 9.Parse request [00:15:47]Sock 9.Check first char [00:15:47]Sock 9.First char is OK [00:15:47]request: POST /json_proto HTTP/1.0 [00:15:47]Method: POST [00:15:47]URL: /json_proto [00:15:47]Method is POST - this is cgi request [00:15:47]url: /json_proto [00:15:47]query_string will be loaded in cgi processing [00:15:47]execute_cgi json_proto POST (null) [00:15:47]execute_cgi path=json_proto method=POST [00:15:47]POST find Content-Length [00:15:47]Host: 172.17.59.68:8080 [00:15:47]Content-Length: 677 [00:15:47]Content-Type: application/json [00:15:47] [00:15:47]POST finish read [00:15:47]Found Content-Length = 677 [00:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.640, "sum" : 640.10, "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" ] } } [00:15:47]execute_script... [00:15: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)320142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.640, "sum" : 640.10, "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" ] } } [00:15:47]POST & json_proto [00:15:47]process_json_proto [00:15:47]json parsed OK: [00:15:47]protocol is kg_v1.0 [00:15:47]action value=close_receipt [00:15:47]process_action close_receipt [00:15:47]cmd_close_receipt [00:15:47]MH_GetDate [00:15:47]Write to MH i2c: F0 00 00 FB 3F 29 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: F0 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: F0 09 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: F0 09 00 FB 3F 00 C4 74 73 66 BC EC 60 65 B0 [00:15:47]GetLastDocTimeStamp 1718842496 [00:15:47]current date 1718842564 [00:15:47]FM_GetShiftState [00:15:47]SAM_PROTO_GetShiftState [00:15:47]wFMCommunicate request_size=4 [00:15:47]MH_SAM_APDU [00:15:47]CAPDU: 80 13 01 00 [00:15:47]Write to MH i2c: E2 08 00 FC 3F 80 13 01 00 00 00 00 00 B8 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:47]Read from MH i2c: E2 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 0E 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: E2 0E 00 FC 3F 00 09 00 01 31 35 72 66 00 00 00 00 90 00 02 [00:15:47]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:15:47]wFMCommunicate OK [00:15:47]SAM_PROTO_GetShiftState done [00:15:47]FM_GetShiftState done [00:15:47]opened in 1718760753 [00:15:47]opened+sec_in_day 1718847153 [00:15:47]quantity*price = 64009 [00:15:47]sum+1 = 64011 [00:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.66 НДС 12% : 67.97 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 292 20.06.2024 00:16 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111543 ФПД: 112591055906089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T001604&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111543&fm=112591055906089&tin=02508201610067®Number=0000000000092771&sum=64000 [00:15:49]StoreToDocumentArchive [00:15:49]shift 388 fd 111543 [00:15:49]save to /storage/0388/doc_00111543 [00:15:49]save last doc name /storage/0388/doc_00111543 to /storage/kkm_last_doc_name [00:15:49]save OK [00:15:49]Clear old archive folders... [00:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:15:49]tlvbuf is 00F08470 [00:15:49]SAM_PROTO_ClearQueue [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 09 00 00 [00:15:49]Write to MH i2c: E2 08 00 09 40 80 09 00 00 00 00 00 00 BB [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 03 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 03 00 09 40 00 90 00 BD [00:15:49]RAPDU: 90 00 [00:15:49]wFMCommunicate OK [00:15:49]SAM_PROTO_ClearQueue done [00:15:49]KKMCreateOFDPacket [00:15:49]OFDProtocolAddRootSTLVToBuf [00:15:49]FM_MakeSignedData [00:15:49]FM_MakeSignedData [00:15:49]SAM_PROTO_SignData [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 0D 01 02 [00:15:49]Write to MH i2c: E2 08 00 0A 40 80 0D 01 02 00 00 00 00 C3 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 03 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 03 00 0A 40 00 90 00 BE [00:15:49]RAPDU: 90 00 [00:15:49]wFMCommunicate OK [00:15:49]wFMCommunicate request_size=255 [00:15:49]MH_SAM_APDU [00: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 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 C4 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B3 01 00 35 04 06 00 66 [00:15:49]Write to MH i2c: E2 02 01 0B 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 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 C4 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B3 01 00 35 04 06 00 66 00 00 06 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 03 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 03 00 0B 40 00 90 00 BF [00:15:49]RAPDU: 90 00 [00:15:49]wFMCommunicate OK [00:15:49]wFMCommunicate request_size=10 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 0D 02 02 05 66 A5 E4 65 29 [00:15:49]Write to MH i2c: E2 0D 00 0C 40 80 0D 02 02 05 00 66 A5 E4 65 29 00 00 4D [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 03 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 03 00 0C 40 00 90 00 C0 [00:15:49]RAPDU: 90 00 [00:15:49]wFMCommunicate OK [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 0D 03 02 [00:15:49]Write to MH i2c: E2 08 00 0D 40 80 0D 03 02 00 00 00 00 C8 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 0B 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 0B 00 0D 40 00 25 A7 3D 4F 31 80 F0 BB 90 00 7D [00:15:49]RAPDU: 25 A7 3D 4F 31 80 F0 BB 90 00 [00:15:49]wFMCommunicate OK [00:15:49]SAM_PROTO_SignData done [00:15:49]FM_MakeSignedData done [00:15:49]CreateOFDProtocolMessage [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 11 00 00 [00:15:49]Write to MH i2c: E2 08 00 0E 40 80 11 00 00 00 00 00 00 C8 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 17 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 17 00 0E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 1A [00:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:15:49]wFMCommunicate OK [00:15:49]CreateOFDProtocolMessage done [00:15:49]OFDSenderStorePacket 111543 [00:15:49]StoreOFDPacket docnum=111543 [00:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C4 A5 07 01 27 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 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 C4 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B3 01 00 35 04 06 00 66 66 A5 E4 65 29 25 A7 3D 4F 31 80 F0 BB [00:15:49]CheckFolder [00:15:49]dirname=/storage/ofd_packets [00:15:49]CheckFolder done [00:15:49]ProducePacketName [00:15:49]name=ofd_packets/00111543 [00:15:49]NVStorageSaveData ofd_packets/00111543 [00:15:49]File name is /storage/ofd_packets/00111543 [00:15:49]Write 301 bytes [00:15:49]NVStorageSaveData done [00:15:49]OFDSenderStorePacket done [00:15:49]KKMCreateOFDPacket done [00:15:49]NVStorageSaveData kkm_last_timestamp [00:15:49]File name is /storage/kkm_last_timestamp [00:15:49]Write 4 bytes [00:15:49]NVStorageSaveData done [00:15:49]ExternCall_PrintAddStr [00:15:49]wPrintStart [00:15:49]Write to MH i2c: 01 00 00 0F 40 4F [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: 01 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: 01 07 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: 01 07 00 0F 40 00 00 00 00 00 FF 0F 64 [00:15:49]RasterBufferAndPrint [00:15:49]line Счет N : (1)320142 [00:15:49]line ИНН: 02508201610067 [00:15:49]line Контрольно-Кассовый Чек [00:15:49]line ПРОДАЖА [00:15:49]line ТРК (МРК, ГНК) : 11 [00:15:49]line Товар: 2710124130 [00:15:49]line Аи-92-К-5 [00:15:49]line 9.640 * 66.40 [00:15:49]line = 640.10 [00:15:49]line НДС 12% НСП 1% [00:15:49]line > о реализуемом товаре [00:15:49]line ОКРУГЛЕНИЕ: -0.10 [00:15:49]line ИТОГО: 640.00 [00:15:49]line Внесено: 640.00 [00:15:49]line СДАЧА: 0.00 [00:15:49]line НСП 1% : 5.66 [00:15:49]line НДС 12% : 67.97 [00:15:49]line Наличными: 640.00 [00:15:49]line Безнал.: 0.00 [00:15:49]line Место: АЗС № 65 "Партнер Нефть" [00:15:49]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:15:49]line СНО: Общий режим [00:15:49]line Чек 292 20.06.2024 00:16 [00:15:49]line Смена: 388 ФФД: 1.0 [00:15:49]line ЗНМ: 0300000198 [00:15:49]line РНМ: 0000000000092771 [00:15:49]line Версия ККМ: 001 [00:15:49]line ФМ: 0000000000875083 [00:15:49]line ФД: 111543 [00:15:49]line ФПД: 112591055906089 [00:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T001604&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111543&fm=112591055906089&tin=02508201610067®Number=0000000000092771&sum=64000 [00:15:49]OFD Sender: Processing packet 111543 [packets to send 38, broken 37] [00:15:49]ProducePacketName [00:15:49]name=ofd_packets/00111543 [00:15:49]OFD Sender: To server: pG, [00:15:49]CommunicateWithHost lk.salyk.kg:30040 [00:15:49]ConnectInit lk.salyk.kg [00:15:49]written 0, free lines is 4095 [00:15:50]Connected sock=10 [00: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 35 30 38 33 0F 01 00 00 C4 A5 07 01 27 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 A8 25 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 0A FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8D 1A 00 00 00 00 07 04 06 00 00 FA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 C4 74 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B7 B3 01 00 35 04 06 00 66 66 A5 E4 65 29 25 A7 3D 4F 31 80 F0 BB [00:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DF AA 47 00 83 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 35 30 38 33 10 04 04 00 B7 B3 01 00 F4 03 04 00 1F 0C 73 66 B6 04 01 00 00 EE 7E 4A D0 5C 31 14 35 [00:15:50]CommunicateWithHost err = 0 [00:15:50]CheckOFDResponse [00:15:50]1017 (14) - 77093643461234 [00:15:50]1041 (16) - 0000000000875083 [00:15:50]1040 (4) - 111543 [00:15:50]1012 (4) - 19.06.2024 16:49 [00:15:50]1206 (1) - 0 [00:15:50]OFD Sender: Remove packet 111543 [00:15:50]ProducePacketName [00:15:50]name=ofd_packets/00111543 [00:15:50]NVStorageDeleteData [00:15:50]Write to MH i2c: 01 00 00 3A 40 7A [00:15:50]Write i2c OK [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: 01 [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: 01 07 00 [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: 01 07 00 3A 40 00 00 00 00 00 D7 0C 64 [00:15:50]RasterBufferAndPrint [00:15:50]line [00:15:50]line [00:15:50]line [00:15:50]line [00:15:50]line [00:15:50]written 0, free lines is 3290 [00:15:50]MH_Cut [00:15:50]Write to MH i2c: D1 01 00 41 40 01 53 [00:15:50]Write i2c OK [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: D1 [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: D1 01 00 [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: D1 01 00 41 40 00 52 [00:15:50]Write to MH i2c: 01 00 00 42 40 82 [00:15:50]Write i2c OK [00:15:50]MH_I2C_Read... [00:15:50]OFD Sender: No OFD packet to send [00:15:51]*** Cut start [00:15:51]*** Partial cut [00:15:51]*** CUTSNS_PIN = 1 [00:15:51]*** CUTSNS_PIN = 0 [00:15:51]*** Brake cut motor [00:15:51]Read from MH i2c: 01 [00:15:51]MH_I2C_Read... [00:15:51]*** Stop cut motor [00:15:51]*** Cut end [00:15:51]Read from MH i2c: 01 07 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: 01 07 00 42 40 00 00 00 00 00 FF 0F 97 [00:15:51]process_action close_receipt done [00:15:51]requested_data is exist [00:15:51]produce_requested_data [00:15:51]requested_item fm.sn is exist - process it [00:15:51]wFMCommunicate request_size=4 [00:15:51]MH_SAM_APDU [00:15:51]CAPDU: 80 11 00 00 [00:15:51]Write to MH i2c: E2 08 00 43 40 80 11 00 00 00 00 00 00 FD [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:51]Read from MH i2c: E2 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 17 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 17 00 43 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 4F [00:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:15:51]wFMCommunicate OK [00:15:51]requested_item fd.num is exist - process it [00:15:51]SAM_PROTO_GetFieldsCounters [00:15:51]wFMCommunicate request_size=4 [00:15:51]MH_SAM_APDU [00:15:51]CAPDU: 80 13 00 00 [00:15:51]Write to MH i2c: E2 08 00 44 40 80 13 00 00 00 00 00 00 00 [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:51]Read from MH i2c: E2 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 62 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 62 00 44 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B3 01 00 0E 04 04 00 84 01 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 80 [00:15: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B7 B3 01 00 0E 04 04 00 84 01 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 [00:15:51]wFMCommunicate OK [00:15:51]SAM_PROTO_GetFieldsCounters done [00:15:51]requested_item shift.num is exist - process it [00:15:51]requested_item shift.opened is exist - process it [00:15:51]req_shift_opened [00:15:51]FM_GetShiftState [00:15:51]SAM_PROTO_GetShiftState [00:15:51]wFMCommunicate request_size=4 [00:15:51]MH_SAM_APDU [00:15:51]CAPDU: 80 13 01 00 [00:15:51]Write to MH i2c: E2 08 00 45 40 80 13 01 00 00 00 00 00 02 [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:52]Read from MH i2c: E2 [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: E2 0E 00 [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: E2 0E 00 45 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4C [00:15:52]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:15:52]wFMCommunicate OK [00:15:52]SAM_PROTO_GetShiftState done [00:15:52]FM_GetShiftState done [00:15:52]req_shift_opened done [00:15:52]requested_item shift.open_date is exist - process it [00:15:52]req_shift_open_date [00:15:52]req_shift_open_date done [00:15:52]produce_requested_data done [00:15:52]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111543,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:15:52]process_action_free close_receipt [00:15:52]json_value_free [00:15:52]json_value_free done [00:15:52]process_json_proto returns [00:15:52]Send response to host [00:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111543,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:15:52]free response buf [00:15:52]execute_script done [00:15:52]execute_script returns [00:15:52]free content buf [00:15:52]Sock 9.Close socket [00:15:52]Sock 9.Thread stoped [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:46]accept exits with 7 [00:20:46]New connection [00:20:46]New thread 3067465060 created [00:20:46]Thread 3067321700 joined [00:20:46]Waiting for new connection... [00:20:46] Sock 7.Parse request [00:20:46]Sock 7.Check first char [00:20:46]Sock 7.First char is OK [00:20:46]request: POST /json_proto HTTP/1.0 [00:20:46]Method: POST [00:20:46]URL: /json_proto [00:20:46]Method is POST - this is cgi request [00:20:46]url: /json_proto [00:20:46]query_string will be loaded in cgi processing [00:20:46]execute_cgi json_proto POST (null) [00:20:46]execute_cgi path=json_proto method=POST [00:20:46]POST find Content-Length [00:20:46]Host: 172.17.59.68:8080 [00:20:46]Content-Length: 674 [00:20:46]Content-Type: application/json [00:20:46] [00:20:46]POST finish read [00:20:46]Found Content-Length = 674 [00:20:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:46]execute_script... [00:20:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:46]POST & json_proto [00:20:46]process_json_proto [00:20:46]json parsed OK: [00:20:46]protocol is kg_v1.0 [00:20:46]action value=close_receipt [00:20:46]process_action close_receipt [00:20:46]cmd_close_receipt [00:20:46]MH_GetDate [00:20:46]Write to MH i2c: F0 00 00 46 40 75 [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: F0 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: F0 09 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: F0 09 00 46 40 00 EF 75 73 66 BC EC 60 65 28 [00:20:46]GetLastDocTimeStamp 1718842564 [00:20:46]current date 1718842863 [00:20:46]FM_GetShiftState [00:20:46]SAM_PROTO_GetShiftState [00:20:46]wFMCommunicate request_size=4 [00:20:46]MH_SAM_APDU [00:20:46]CAPDU: 80 13 01 00 [00:20:46]Write to MH i2c: E2 08 00 47 40 80 13 01 00 00 00 00 00 04 [00:20:46]Write i2c OK [00:20:46]MH_I2C_Read... [00:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:46]Read from MH i2c: E2 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 0E 00 [00:20:46]MH_I2C_Read... [00:20:46]Read from MH i2c: E2 0E 00 47 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 4E [00:20:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:20:46]wFMCommunicate OK [00:20:46]SAM_PROTO_GetShiftState done [00:20:46]FM_GetShiftState done [00:20:46]opened in 1718760753 [00:20:46]opened+sec_in_day 1718847153 [00:20:46]quantity*price = 50009 [00:20:46]sum+1 = 50010 [00:20:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 293 20.06.2024 00:21 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111544 ФПД: 246687012059641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T002103&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111544&fm=246687012059641&tin=02508201610067®Number=0000000000092771&sum=50000 [00:20:47]StoreToDocumentArchive [00:20:47]shift 388 fd 111544 [00:20:47]save to /storage/0388/doc_00111544 [00:20:47]save last doc name /storage/0388/doc_00111544 to /storage/kkm_last_doc_name [00:20:47]save OK [00:20:47]Clear old archive folders... [00:20:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:20:47]tlvbuf is B6FD5D60 [00:20:47]SAM_PROTO_ClearQueue [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 09 00 00 [00:20:47]Write to MH i2c: E2 08 00 54 40 80 09 00 00 00 00 00 00 06 [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 03 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 03 00 54 40 00 90 00 08 [00:20:47]RAPDU: 90 00 [00:20:47]wFMCommunicate OK [00:20:47]SAM_PROTO_ClearQueue done [00:20:47]KKMCreateOFDPacket [00:20:47]OFDProtocolAddRootSTLVToBuf [00:20:47]FM_MakeSignedData [00:20:47]FM_MakeSignedData [00:20:47]SAM_PROTO_SignData [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 0D 01 02 [00:20:47]Write to MH i2c: E2 08 00 55 40 80 0D 01 02 00 00 00 00 0E [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 03 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 03 00 55 40 00 90 00 09 [00:20:47]RAPDU: 90 00 [00:20:47]wFMCommunicate OK [00:20:47]wFMCommunicate request_size=255 [00:20:47]MH_SAM_APDU [00:20: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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 EF 75 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B3 01 00 35 04 06 00 E0 5C 4B B9 [00:20:47]Write to MH i2c: E2 02 01 56 40 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 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 EF 75 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B3 01 00 35 04 06 00 E0 5C 4B B9 00 00 4C [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 03 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 03 00 56 40 00 90 00 0A [00:20:48]RAPDU: 90 00 [00:20:48]wFMCommunicate OK [00:20:48]wFMCommunicate request_size=7 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 0D 02 02 02 79 F9 [00:20:48]Write to MH i2c: E2 0A 00 57 40 80 0D 02 02 02 00 79 F9 00 00 87 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 03 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 03 00 57 40 00 90 00 0B [00:20:48]RAPDU: 90 00 [00:20:48]wFMCommunicate OK [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 0D 03 02 [00:20:48]Write to MH i2c: E2 08 00 58 40 80 0D 03 02 00 00 00 00 13 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 0B 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 0B 00 58 40 00 7D 55 76 09 B6 81 0E 7F 90 00 29 [00:20:48]RAPDU: 7D 55 76 09 B6 81 0E 7F 90 00 [00:20:48]wFMCommunicate OK [00:20:48]SAM_PROTO_SignData done [00:20:48]FM_MakeSignedData done [00:20:48]CreateOFDProtocolMessage [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 11 00 00 [00:20:48]Write to MH i2c: E2 08 00 59 40 80 11 00 00 00 00 00 00 13 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 17 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 17 00 59 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 65 [00:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:20:48]wFMCommunicate OK [00:20:48]CreateOFDProtocolMessage done [00:20:48]OFDSenderStorePacket 111544 [00:20:48]StoreOFDPacket docnum=111544 [00:20:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FC 70 04 01 9B 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 EF 75 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B3 01 00 35 04 06 00 E0 5C 4B B9 79 F9 7D 55 76 09 B6 81 0E 7F [00:20:48]CheckFolder [00:20:48]dirname=/storage/ofd_packets [00:20:48]CheckFolder done [00:20:48]ProducePacketName [00:20:48]name=ofd_packets/00111544 [00:20:48]NVStorageSaveData ofd_packets/00111544 [00:20:48]File name is /storage/ofd_packets/00111544 [00:20:48]Write 298 bytes [00:20:48]NVStorageSaveData done [00:20:48]OFDSenderStorePacket done [00:20:48]KKMCreateOFDPacket done [00:20:48]NVStorageSaveData kkm_last_timestamp [00:20:48]File name is /storage/kkm_last_timestamp [00:20:48]Write 4 bytes [00:20:48]NVStorageSaveData done [00:20:48]ExternCall_PrintAddStr [00:20:48]wPrintStart [00:20:48]Write to MH i2c: 01 00 00 5A 40 9A [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: 01 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: 01 07 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: 01 07 00 5A 40 00 00 00 00 00 FF 0F AF [00:20:48]RasterBufferAndPrint [00:20:48]line Счет N : (1)320143 [00:20:48]line ИНН: 02508201610067 [00:20:48]line Контрольно-Кассовый Чек [00:20:48]line ПРОДАЖА [00:20:48]line ТРК (МРК, ГНК) : 22 [00:20:48]line Товар: 2710194210 [00:20:48]line ДТ-К-5 [00:20:48]line 6.860 * 72.90 [00:20:48]line = 500.09 [00:20:48]line НДС 12% НСП 1% [00:20:48]line > о реализуемом товаре [00:20:48]line ОКРУГЛЕНИЕ: -0.09 [00:20:48]line ИТОГО: 500.00 [00:20:48]line Внесено: 500.00 [00:20:48]line СДАЧА: 0.00 [00:20:48]line НСП 1% : 4.43 [00:20:48]line НДС 12% : 53.11 [00:20:48]line Наличными: 500.00 [00:20:48]line Безнал.: 0.00 [00:20:48]line Место: АЗС № 65 "Партнер Нефть" [00:20:48]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:20:48]line СНО: Общий режим [00:20:48]line Чек 293 20.06.2024 00:21 [00:20:48]line Смена: 388 ФФД: 1.0 [00:20:48]line ЗНМ: 0300000198 [00:20:48]line РНМ: 0000000000092771 [00:20:48]line Версия ККМ: 001 [00:20:48]line ФМ: 0000000000875083 [00:20:48]line ФД: 111544 [00:20:48]line ФПД: 246687012059641 [00:20:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T002103&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111544&fm=246687012059641&tin=02508201610067®Number=0000000000092771&sum=50000 [00:20:48]OFD Sender: Processing packet 111544 [packets to send 38, broken 37] [00:20:48]ProducePacketName [00:20:48]name=ofd_packets/00111544 [00:20:48]OFD Sender: To server: pG, [00:20:48]CommunicateWithHost lk.salyk.kg:30040 [00:20:48]ConnectInit lk.salyk.kg [00:20:48]written 0, free lines is 4095 [00:20:48]Connected sock=10 [00:20:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 FC 70 04 01 9B 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 EF 75 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B8 B3 01 00 35 04 06 00 E0 5C 4B B9 79 F9 7D 55 76 09 B6 81 0E 7F [00:20:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 DB B9 47 00 9A 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 35 30 38 33 10 04 04 00 B8 B3 01 00 F4 03 04 00 4A 0D 73 66 B6 04 01 00 00 EF 34 45 E0 54 C1 2F 2B [00:20:49]CommunicateWithHost err = 0 [00:20:49]CheckOFDResponse [00:20:49]1017 (14) - 77093643461234 [00:20:49]1041 (16) - 0000000000875083 [00:20:49]1040 (4) - 111544 [00:20:49]1012 (4) - 19.06.2024 16:54 [00:20:49]1206 (1) - 0 [00:20:49]OFD Sender: Remove packet 111544 [00:20:49]ProducePacketName [00:20:49]name=ofd_packets/00111544 [00:20:49]NVStorageDeleteData [00:20:49]Write to MH i2c: 01 00 00 85 40 C5 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: 01 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: 01 07 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: 01 07 00 85 40 00 00 00 00 00 D8 0C B0 [00:20:49]RasterBufferAndPrint [00:20:49]line [00:20:49]line [00:20:49]line [00:20:49]line [00:20:49]line [00:20:49]written 0, free lines is 3296 [00:20:49]MH_Cut [00:20:49]Write to MH i2c: D1 01 00 8C 40 01 9E [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: D1 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: D1 01 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: D1 01 00 8C 40 00 9D [00:20:49]Write to MH i2c: 01 00 00 8D 40 CD [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]OFD Sender: No OFD packet to send [00:20:49]*** Cut start [00:20:49]*** Partial cut [00:20:49]*** CUTSNS_PIN = 1 [00:20:50]*** CUTSNS_PIN = 0 [00:20:50]*** Brake cut motor [00:20:50]Read from MH i2c: 01 [00:20:50]MH_I2C_Read... [00:20:50]*** Stop cut motor [00:20:50]*** Cut end [00:20:50]Read from MH i2c: 01 07 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: 01 07 00 8D 40 00 00 00 00 00 FF 0F E2 [00:20:50]process_action close_receipt done [00:20:50]requested_data is exist [00:20:50]produce_requested_data [00:20:50]requested_item fm.sn is exist - process it [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 11 00 00 [00:20:50]Write to MH i2c: E2 08 00 8E 40 80 11 00 00 00 00 00 00 48 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 17 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 17 00 8E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 9A [00:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:20:50]wFMCommunicate OK [00:20:50]requested_item fd.num is exist - process it [00:20:50]SAM_PROTO_GetFieldsCounters [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 13 00 00 [00:20:50]Write to MH i2c: E2 08 00 8F 40 80 13 00 00 00 00 00 00 4B [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 62 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 62 00 8F 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B3 01 00 0E 04 04 00 84 01 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 CF [00:20:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B8 B3 01 00 0E 04 04 00 84 01 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 [00:20:50]wFMCommunicate OK [00:20:50]SAM_PROTO_GetFieldsCounters done [00:20:50]requested_item shift.num is exist - process it [00:20:50]requested_item shift.opened is exist - process it [00:20:50]req_shift_opened [00:20:50]FM_GetShiftState [00:20:50]SAM_PROTO_GetShiftState [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 13 01 00 [00:20:50]Write to MH i2c: E2 08 00 90 40 80 13 01 00 00 00 00 00 4D [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 0E 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 0E 00 90 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 97 [00:20:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:20:50]wFMCommunicate OK [00:20:50]SAM_PROTO_GetShiftState done [00:20:50]FM_GetShiftState done [00:20:50]req_shift_opened done [00:20:50]requested_item shift.open_date is exist - process it [00:20:50]req_shift_open_date [00:20:50]req_shift_open_date done [00:20:50]produce_requested_data done [00:20:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111544,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:20:50]process_action_free close_receipt [00:20:50]json_value_free [00:20:50]json_value_free done [00:20:50]process_json_proto returns [00:20:50]Send response to host [00:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111544,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:20:50]free response buf [00:20:50]execute_script done [00:20:50]execute_script returns [00:20:50]free content buf [00:20:50]Sock 7.Close socket [00:20:50]Sock 7.Thread stoped [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]accept exits with 9 [00:21:54]New connection [00:21:54]New thread 3067321700 created [00:21:54]Thread 3067465060 joined [00:21:54]Waiting for new connection... [00:21:54] Sock 9.Parse request [00:21:54]Sock 9.Check first char [00:21:54]Sock 9.First char is OK [00:21:54]request: POST /json_proto HTTP/1.0 [00:21:54]Method: POST [00:21:54]URL: /json_proto [00:21:54]Method is POST - this is cgi request [00:21:54]url: /json_proto [00:21:54]query_string will be loaded in cgi processing [00:21:54]execute_cgi json_proto POST (null) [00:21:54]execute_cgi path=json_proto method=POST [00:21:54]POST find Content-Length [00:21:54]Host: 172.17.59.68:8080 [00:21:54]Content-Length: 678 [00:21:54]Content-Type: application/json [00:21:54] [00:21:54]POST finish read [00:21:54]Found Content-Length = 678 [00:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [00:21:54]execute_script... [00:21:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.550, "sum" : 700.52, "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" ] } } [00:21:54]POST & json_proto [00:21:54]process_json_proto [00:21:54]json parsed OK: [00:21:54]protocol is kg_v1.0 [00:21:54]action value=close_receipt [00:21:54]process_action close_receipt [00:21:54]cmd_close_receipt [00:21:54]MH_GetDate [00:21:54]Write to MH i2c: F0 00 00 91 40 C0 [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 09 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: F0 09 00 91 40 00 33 76 73 66 BC EC 60 65 B8 [00:21:54]GetLastDocTimeStamp 1718842863 [00:21:54]current date 1718842931 [00:21:54]FM_GetShiftState [00:21:54]SAM_PROTO_GetShiftState [00:21:54]wFMCommunicate request_size=4 [00:21:54]MH_SAM_APDU [00:21:54]CAPDU: 80 13 01 00 [00:21:54]Write to MH i2c: E2 08 00 92 40 80 13 01 00 00 00 00 00 4F [00:21:54]Write i2c OK [00:21:54]MH_I2C_Read... [00:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:54]Read from MH i2c: E2 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 0E 00 [00:21:54]MH_I2C_Read... [00:21:54]Read from MH i2c: E2 0E 00 92 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 99 [00:21:54]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:21:54]wFMCommunicate OK [00:21:54]SAM_PROTO_GetShiftState done [00:21:54]FM_GetShiftState done [00:21:54]opened in 1718760753 [00:21:54]opened+sec_in_day 1718847153 [00:21:54]quantity*price = 70052 [00:21:54]sum+1 = 70053 [00:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 294 20.06.2024 00:22 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111545 ФПД: 218422600149782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T002211&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111545&fm=218422600149782&tin=02508201610067®Number=0000000000092771&sum=70000 [00:21:55]StoreToDocumentArchive [00:21:55]shift 388 fd 111545 [00:21:55]save to /storage/0388/doc_00111545 [00:21:55]save last doc name /storage/0388/doc_00111545 to /storage/kkm_last_doc_name [00:21:55]save OK [00:21:55]Clear old archive folders... [00:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:21:55]tlvbuf is 00F30410 [00:21:55]SAM_PROTO_ClearQueue [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 09 00 00 [00:21:55]Write to MH i2c: E2 08 00 9F 40 80 09 00 00 00 00 00 00 51 [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 9F 40 00 90 00 53 [00:21:55]RAPDU: 90 00 [00:21:55]wFMCommunicate OK [00:21:55]SAM_PROTO_ClearQueue done [00:21:55]KKMCreateOFDPacket [00:21:55]OFDProtocolAddRootSTLVToBuf [00:21:55]FM_MakeSignedData [00:21:55]FM_MakeSignedData [00:21:55]SAM_PROTO_SignData [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 0D 01 02 [00:21:55]Write to MH i2c: E2 08 00 A0 40 80 0D 01 02 00 00 00 00 59 [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 A0 40 00 90 00 54 [00:21:55]RAPDU: 90 00 [00:21:55]wFMCommunicate OK [00:21:55]wFMCommunicate request_size=255 [00:21:55]MH_SAM_APDU [00:21: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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 26 01 00 00 F4 03 04 00 33 76 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B3 01 00 35 04 06 00 C6 [00:21:55]Write to MH i2c: E2 02 01 A1 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 36 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 26 01 00 00 F4 03 04 00 33 76 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B3 01 00 35 04 06 00 C6 00 00 80 [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 A1 40 00 90 00 55 [00:21:55]RAPDU: 90 00 [00:21:55]wFMCommunicate OK [00:21:55]wFMCommunicate request_size=10 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 0D 02 02 05 A7 79 7E 2B 16 [00:21:55]Write to MH i2c: E2 0D 00 A2 40 80 0D 02 02 05 00 A7 79 7E 2B 16 00 00 45 [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 03 00 A2 40 00 90 00 56 [00:21:55]RAPDU: 90 00 [00:21:55]wFMCommunicate OK [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 0D 03 02 [00:21:55]Write to MH i2c: E2 08 00 A3 40 80 0D 03 02 00 00 00 00 5E [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:55]Read from MH i2c: E2 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 0B 00 [00:21:55]MH_I2C_Read... [00:21:55]Read from MH i2c: E2 0B 00 A3 40 00 61 E0 04 36 73 0C BE 2E 90 00 45 [00:21:55]RAPDU: 61 E0 04 36 73 0C BE 2E 90 00 [00:21:55]wFMCommunicate OK [00:21:55]SAM_PROTO_SignData done [00:21:55]FM_MakeSignedData done [00:21:55]CreateOFDProtocolMessage [00:21:55]wFMCommunicate request_size=4 [00:21:55]MH_SAM_APDU [00:21:55]CAPDU: 80 11 00 00 [00:21:55]Write to MH i2c: E2 08 00 A4 40 80 11 00 00 00 00 00 00 5E [00:21:55]Write i2c OK [00:21:55]MH_I2C_Read... [00:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:56]Read from MH i2c: E2 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 17 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: E2 17 00 A4 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [00:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:21:56]wFMCommunicate OK [00:21:56]CreateOFDProtocolMessage done [00:21:56]OFDSenderStorePacket 111545 [00:21:56]StoreOFDPacket docnum=111545 [00:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 9E 07 01 44 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 26 01 00 00 F4 03 04 00 33 76 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B3 01 00 35 04 06 00 C6 A7 79 7E 2B 16 61 E0 04 36 73 0C BE 2E [00:21:56]CheckFolder [00:21:56]dirname=/storage/ofd_packets [00:21:56]CheckFolder done [00:21:56]ProducePacketName [00:21:56]name=ofd_packets/00111545 [00:21:56]NVStorageSaveData ofd_packets/00111545 [00:21:56]File name is /storage/ofd_packets/00111545 [00:21:56]Write 301 bytes [00:21:56]NVStorageSaveData done [00:21:56]OFDSenderStorePacket done [00:21:56]KKMCreateOFDPacket done [00:21:56]NVStorageSaveData kkm_last_timestamp [00:21:56]File name is /storage/kkm_last_timestamp [00:21:56]Write 4 bytes [00:21:56]NVStorageSaveData done [00:21:56]ExternCall_PrintAddStr [00:21:56]wPrintStart [00:21:56]Write to MH i2c: 01 00 00 A5 40 E5 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 07 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 07 00 A5 40 00 00 00 00 00 FF 0F FA [00:21:56]RasterBufferAndPrint [00:21:56]line Счет N : (1)320144 [00:21:56]line ИНН: 02508201610067 [00:21:56]line Контрольно-Кассовый Чек [00:21:56]line ПРОДАЖА [00:21:56]line ТРК (МРК, ГНК) : 11 [00:21:56]line Товар: 2710124130 [00:21:56]line Аи-92-К-5 [00:21:56]line 10.550 * 66.40 [00:21:56]line = 700.52 [00:21:56]line НДС 12% НСП 1% [00:21:56]line > о реализуемом товаре [00:21:56]line ОКРУГЛЕНИЕ: -0.52 [00:21:56]line ИТОГО: 700.00 [00:21:56]line Внесено: 700.00 [00:21:56]line СДАЧА: 0.00 [00:21:56]line НСП 1% : 6.20 [00:21:56]line НДС 12% : 74.39 [00:21:56]line Наличными: 700.00 [00:21:56]line Безнал.: 0.00 [00:21:56]line Место: АЗС № 65 "Партнер Нефть" [00:21:56]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:21:56]line СНО: Общий режим [00:21:56]line Чек 294 20.06.2024 00:22 [00:21:56]line Смена: 388 ФФД: 1.0 [00:21:56]line ЗНМ: 0300000198 [00:21:56]line РНМ: 0000000000092771 [00:21:56]line Версия ККМ: 001 [00:21:56]line ФМ: 0000000000875083 [00:21:56]line ФД: 111545 [00:21:56]line ФПД: 218422600149782 [00:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T002211&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111545&fm=218422600149782&tin=02508201610067®Number=0000000000092771&sum=70000 [00:21:56]OFD Sender: Processing packet 111545 [packets to send 38, broken 37] [00:21:56]ProducePacketName [00:21:56]name=ofd_packets/00111545 [00:21:56]OFD Sender: To server: pG, [00:21:56]CommunicateWithHost lk.salyk.kg:30040 [00:21:56]ConnectInit lk.salyk.kg [00:21:56]written 0, free lines is 4095 [00:21:56]Connected sock=10 [00:21:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 59 9E 07 01 44 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 29 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 A4 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 0F 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 26 01 00 00 F4 03 04 00 33 76 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 B9 B3 01 00 35 04 06 00 C6 A7 79 7E 2B 16 61 E0 04 36 73 0C BE 2E [00:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 93 D9 47 00 2D 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 35 30 38 33 10 04 04 00 B9 B3 01 00 F4 03 04 00 8D 0D 73 66 B6 04 01 00 00 A0 49 7C 21 76 50 3C 7E [00:21:56]CommunicateWithHost err = 0 [00:21:56]CheckOFDResponse [00:21:56]1017 (14) - 77093643461234 [00:21:56]1041 (16) - 0000000000875083 [00:21:56]1040 (4) - 111545 [00:21:56]1012 (4) - 19.06.2024 16:55 [00:21:56]1206 (1) - 0 [00:21:56]OFD Sender: Remove packet 111545 [00:21:56]ProducePacketName [00:21:56]name=ofd_packets/00111545 [00:21:56]NVStorageDeleteData [00:21:56]Write to MH i2c: 01 00 00 D0 40 10 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 07 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: 01 07 00 D0 40 00 00 00 00 00 DD 0C 00 [00:21:56]RasterBufferAndPrint [00:21:56]line [00:21:56]line [00:21:56]line [00:21:56]line [00:21:56]line [00:21:56]written 0, free lines is 3300 [00:21:56]MH_Cut [00:21:56]Write to MH i2c: D1 01 00 D7 40 01 E9 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: D1 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: D1 01 00 [00:21:56]MH_I2C_Read... [00:21:56]Read from MH i2c: D1 01 00 D7 40 00 E8 [00:21:56]Write to MH i2c: 01 00 00 D8 40 18 [00:21:56]Write i2c OK [00:21:56]MH_I2C_Read... [00:21:57]OFD Sender: No OFD packet to send [00:21:57]*** Cut start [00:21:57]*** Partial cut [00:21:57]*** CUTSNS_PIN = 1 [00:21:57]*** CUTSNS_PIN = 0 [00:21:57]*** Brake cut motor [00:21:58]Read from MH i2c: 01 [00:21:58]MH_I2C_Read... [00:21:58]*** Stop cut motor [00:21:58]*** Cut end [00:21:58]Read from MH i2c: 01 07 00 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: 01 07 00 D8 40 00 00 00 00 00 FF 0F 2D [00:21:58]process_action close_receipt done [00:21:58]requested_data is exist [00:21:58]produce_requested_data [00:21:58]requested_item fm.sn is exist - process it [00:21:58]wFMCommunicate request_size=4 [00:21:58]MH_SAM_APDU [00:21:58]CAPDU: 80 11 00 00 [00:21:58]Write to MH i2c: E2 08 00 D9 40 80 11 00 00 00 00 00 00 93 [00:21:58]Write i2c OK [00:21:58]MH_I2C_Read... [00:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:58]Read from MH i2c: E2 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 17 00 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 17 00 D9 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E5 [00:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:21:58]wFMCommunicate OK [00:21:58]requested_item fd.num is exist - process it [00:21:58]SAM_PROTO_GetFieldsCounters [00:21:58]wFMCommunicate request_size=4 [00:21:58]MH_SAM_APDU [00:21:58]CAPDU: 80 13 00 00 [00:21:58]Write to MH i2c: E2 08 00 DA 40 80 13 00 00 00 00 00 00 96 [00:21:58]Write i2c OK [00:21:58]MH_I2C_Read... [00:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:58]Read from MH i2c: E2 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 62 00 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 62 00 DA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B3 01 00 0E 04 04 00 84 01 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 1E [00:21: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 B9 B3 01 00 0E 04 04 00 84 01 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 [00:21:58]wFMCommunicate OK [00:21:58]SAM_PROTO_GetFieldsCounters done [00:21:58]requested_item shift.num is exist - process it [00:21:58]requested_item shift.opened is exist - process it [00:21:58]req_shift_opened [00:21:58]FM_GetShiftState [00:21:58]SAM_PROTO_GetShiftState [00:21:58]wFMCommunicate request_size=4 [00:21:58]MH_SAM_APDU [00:21:58]CAPDU: 80 13 01 00 [00:21:58]Write to MH i2c: E2 08 00 DB 40 80 13 01 00 00 00 00 00 98 [00:21:58]Write i2c OK [00:21:58]MH_I2C_Read... [00:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:58]Read from MH i2c: E2 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 0E 00 [00:21:58]MH_I2C_Read... [00:21:58]Read from MH i2c: E2 0E 00 DB 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E2 [00:21:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:21:58]wFMCommunicate OK [00:21:58]SAM_PROTO_GetShiftState done [00:21:58]FM_GetShiftState done [00:21:58]req_shift_opened done [00:21:58]requested_item shift.open_date is exist - process it [00:21:58]req_shift_open_date [00:21:58]req_shift_open_date done [00:21:58]produce_requested_data done [00:21:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111545,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:21:58]process_action_free close_receipt [00:21:58]json_value_free [00:21:58]json_value_free done [00:21:58]process_json_proto returns [00:21:58]Send response to host [00:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111545,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:21:58]free response buf [00:21:58]execute_script done [00:21:58]execute_script returns [00:21:58]free content buf [00:21:58]Sock 9.Close socket [00:21:58]Sock 9.Thread stoped [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]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:34]accept exits with 7 [00:40:34]New connection [00:40:34]New thread 3067465060 created [00:40:34]Thread 3067321700 joined [00:40:34]Waiting for new connection... [00:40:34] Sock 7.Parse request [00:40:34]Sock 7.Check first char [00:40:34]Sock 7.First char is OK [00:40:34]request: POST /json_proto HTTP/1.0 [00:40:34]Method: POST [00:40:34]URL: /json_proto [00:40:34]Method is POST - this is cgi request [00:40:34]url: /json_proto [00:40:34]query_string will be loaded in cgi processing [00:40:34]execute_cgi json_proto POST (null) [00:40:34]execute_cgi path=json_proto method=POST [00:40:34]POST find Content-Length [00:40:34]Host: 172.17.59.68:8080 [00:40:34]Content-Length: 674 [00:40:34]Content-Type: application/json [00:40:34] [00:40:34]POST finish read [00:40:34]Found Content-Length = 674 [00:40:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:34]execute_script... [00: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)320145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:34]POST & json_proto [00:40:34]process_json_proto [00:40:34]json parsed OK: [00:40:34]protocol is kg_v1.0 [00:40:34]action value=close_receipt [00:40:34]process_action close_receipt [00:40:34]cmd_close_receipt [00:40:34]MH_GetDate [00:40:34]Write to MH i2c: F0 00 00 DC 40 0B [00:40:34]Write i2c OK [00:40:34]MH_I2C_Read... [00:40:34]Read from MH i2c: F0 [00:40:34]MH_I2C_Read... [00:40:34]Read from MH i2c: F0 09 00 [00:40:34]MH_I2C_Read... [00:40:34]Read from MH i2c: F0 09 00 DC 40 00 94 7A 73 66 BC EC 60 65 68 [00:40:34]GetLastDocTimeStamp 1718842931 [00:40:34]current date 1718844052 [00:40:34]FM_GetShiftState [00:40:34]SAM_PROTO_GetShiftState [00:40:34]wFMCommunicate request_size=4 [00:40:34]MH_SAM_APDU [00:40:34]CAPDU: 80 13 01 00 [00:40:34]Write to MH i2c: E2 08 00 DD 40 80 13 01 00 00 00 00 00 9A [00:40:34]Write i2c OK [00:40:34]MH_I2C_Read... [00:40:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:34]Read from MH i2c: E2 [00:40:34]MH_I2C_Read... [00:40:34]Read from MH i2c: E2 0E 00 [00:40:34]MH_I2C_Read... [00:40:34]Read from MH i2c: E2 0E 00 DD 40 00 09 00 01 31 35 72 66 00 00 00 00 90 00 E4 [00:40:34]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:40:34]wFMCommunicate OK [00:40:34]SAM_PROTO_GetShiftState done [00:40:34]FM_GetShiftState done [00:40:34]opened in 1718760753 [00:40:34]opened+sec_in_day 1718847153 [00:40:34]quantity*price = 20047 [00:40:34]sum+1 = 20049 [00:40:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 295 20.06.2024 00:40 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111546 ФПД: 106490833750941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T004052&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111546&fm=106490833750941&tin=02508201610067®Number=0000000000092771&sum=20000 [00:40:35]StoreToDocumentArchive [00:40:35]shift 388 fd 111546 [00:40:35]save to /storage/0388/doc_00111546 [00:40:35]save last doc name /storage/0388/doc_00111546 to /storage/kkm_last_doc_name [00:40:35]save OK [00:40:35]Clear old archive folders... [00:40:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:40:35]tlvbuf is 0101D190 [00:40:35]SAM_PROTO_ClearQueue [00:40:35]wFMCommunicate request_size=4 [00:40:35]MH_SAM_APDU [00:40:35]CAPDU: 80 09 00 00 [00:40:35]Write to MH i2c: E2 08 00 EA 40 80 09 00 00 00 00 00 00 9C [00:40:35]Write i2c OK [00:40:35]MH_I2C_Read... [00:40:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:35]Read from MH i2c: E2 [00:40:35]MH_I2C_Read... [00:40:35]Read from MH i2c: E2 03 00 [00:40:35]MH_I2C_Read... [00:40:35]Read from MH i2c: E2 03 00 EA 40 00 90 00 9E [00:40:35]RAPDU: 90 00 [00:40:35]wFMCommunicate OK [00:40:35]SAM_PROTO_ClearQueue done [00:40:35]KKMCreateOFDPacket [00:40:35]OFDProtocolAddRootSTLVToBuf [00:40:35]FM_MakeSignedData [00:40:35]FM_MakeSignedData [00:40:35]SAM_PROTO_SignData [00:40:35]wFMCommunicate request_size=4 [00:40:35]MH_SAM_APDU [00:40:35]CAPDU: 80 0D 01 02 [00:40:35]Write to MH i2c: E2 08 00 EB 40 80 0D 01 02 00 00 00 00 A4 [00:40:35]Write i2c OK [00:40:35]MH_I2C_Read... [00:40:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:35]Read from MH i2c: E2 [00:40:35]MH_I2C_Read... [00:40:35]Read from MH i2c: E2 03 00 [00:40:35]MH_I2C_Read... [00:40:35]Read from MH i2c: E2 03 00 EB 40 00 90 00 9F [00:40:35]RAPDU: 90 00 [00:40:35]wFMCommunicate OK [00:40:35]wFMCommunicate request_size=255 [00:40:35]MH_SAM_APDU [00: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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 94 7A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B3 01 00 35 04 06 00 60 DA 54 51 [00:40:35]Write to MH i2c: E2 02 01 EC 40 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 94 7A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B3 01 00 35 04 06 00 60 DA 54 51 00 00 C4 [00:40:35]Write i2c OK [00:40:35]MH_I2C_Read... [00:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:36]Read from MH i2c: E2 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: E2 03 00 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: E2 03 00 EC 40 00 90 00 A0 [00:40:36]RAPDU: 90 00 [00:40:36]wFMCommunicate OK [00:40:36]wFMCommunicate request_size=7 [00:40:36]MH_SAM_APDU [00:40:36]CAPDU: 80 0D 02 02 02 4B 9D [00:40:36]Write to MH i2c: E2 0A 00 ED 40 80 0D 02 02 02 00 4B 9D 00 00 93 [00:40:36]Write i2c OK [00:40:36]MH_I2C_Read... [00:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:36]Read from MH i2c: E2 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: E2 03 00 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: E2 03 00 ED 40 00 90 00 A1 [00:40:36]RAPDU: 90 00 [00:40:36]wFMCommunicate OK [00:40:36]wFMCommunicate request_size=4 [00:40:36]MH_SAM_APDU [00:40:36]CAPDU: 80 0D 03 02 [00:40:36]Write to MH i2c: E2 08 00 EE 40 80 0D 03 02 00 00 00 00 A9 [00:40:36]Write i2c OK [00:40:36]MH_I2C_Read... [00:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:36]Read from MH i2c: E2 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: E2 0B 00 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: E2 0B 00 EE 40 00 66 5C 4B 2F CB 45 3F A7 90 00 DC [00:40:36]RAPDU: 66 5C 4B 2F CB 45 3F A7 90 00 [00:40:36]wFMCommunicate OK [00:40:36]SAM_PROTO_SignData done [00:40:36]FM_MakeSignedData done [00:40:36]CreateOFDProtocolMessage [00:40:36]wFMCommunicate request_size=4 [00:40:36]MH_SAM_APDU [00:40:36]CAPDU: 80 11 00 00 [00:40:36]Write to MH i2c: E2 08 00 EF 40 80 11 00 00 00 00 00 00 A9 [00:40:36]Write i2c OK [00:40:36]MH_I2C_Read... [00:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:36]Read from MH i2c: E2 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: E2 17 00 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: E2 17 00 EF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [00:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:40:36]wFMCommunicate OK [00:40:36]CreateOFDProtocolMessage done [00:40:36]OFDSenderStorePacket 111546 [00:40:36]StoreOFDPacket docnum=111546 [00:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 DA C6 04 01 4C 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 94 7A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B3 01 00 35 04 06 00 60 DA 54 51 4B 9D 66 5C 4B 2F CB 45 3F A7 [00:40:36]CheckFolder [00:40:36]dirname=/storage/ofd_packets [00:40:36]CheckFolder done [00:40:36]ProducePacketName [00:40:36]name=ofd_packets/00111546 [00:40:36]NVStorageSaveData ofd_packets/00111546 [00:40:36]File name is /storage/ofd_packets/00111546 [00:40:36]Write 298 bytes [00:40:36]NVStorageSaveData done [00:40:36]OFDSenderStorePacket done [00:40:36]KKMCreateOFDPacket done [00:40:36]NVStorageSaveData kkm_last_timestamp [00:40:36]File name is /storage/kkm_last_timestamp [00:40:36]Write 4 bytes [00:40:36]NVStorageSaveData done [00:40:36]ExternCall_PrintAddStr [00:40:36]wPrintStart [00:40:36]Write to MH i2c: 01 00 00 F0 40 30 [00:40:36]Write i2c OK [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: 01 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: 01 07 00 [00:40:36]MH_I2C_Read... [00:40:36]Read from MH i2c: 01 07 00 F0 40 00 00 00 00 00 FF 0F 45 [00:40:36]RasterBufferAndPrint [00:40:36]line Счет N : (1)320145 [00:40:36]line ИНН: 02508201610067 [00:40:36]line Контрольно-Кассовый Чек [00:40:36]line ПРОДАЖА [00:40:36]line ТРК (МРК, ГНК) : 22 [00:40:36]line Товар: 2710194210 [00:40:36]line ДТ-К-5 [00:40:36]line 2.750 * 72.90 [00:40:36]line = 200.48 [00:40:36]line НДС 12% НСП 1% [00:40:36]line > о реализуемом товаре [00:40:36]line ОКРУГЛЕНИЕ: -0.48 [00:40:36]line ИТОГО: 200.00 [00:40:36]line Внесено: 200.00 [00:40:36]line СДАЧА: 0.00 [00:40:36]line НСП 1% : 1.77 [00:40:36]line НДС 12% : 21.29 [00:40:36]line Наличными: 200.00 [00:40:36]line Безнал.: 0.00 [00:40:36]line Место: АЗС № 65 "Партнер Нефть" [00:40:36]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:40:36]line СНО: Общий режим [00:40:36]line Чек 295 20.06.2024 00:40 [00:40:36]line Смена: 388 ФФД: 1.0 [00:40:36]line ЗНМ: 0300000198 [00:40:36]line РНМ: 0000000000092771 [00:40:36]line Версия ККМ: 001 [00:40:36]line ФМ: 0000000000875083 [00:40:36]line ФД: 111546 [00:40:36]line ФПД: 106490833750941 [00:40:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T004052&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111546&fm=106490833750941&tin=02508201610067®Number=0000000000092771&sum=20000 [00:40:36]OFD Sender: Processing packet 111546 [packets to send 38, broken 37] [00:40:36]ProducePacketName [00:40:36]name=ofd_packets/00111546 [00:40:36]OFD Sender: To server: pG, [00:40:36]CommunicateWithHost lk.salyk.kg:30040 [00:40:36]ConnectInit lk.salyk.kg [00:40:36]written 0, free lines is 4095 [00:40:36]Connected sock=10 [00: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 35 30 38 33 0C 01 00 00 DA C6 04 01 4C 00 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 94 7A 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B3 01 00 35 04 06 00 60 DA 54 51 4B 9D 66 5C 4B 2F CB 45 3F A7 [00:40:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 58 CF 47 00 03 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BA B3 01 00 F4 03 04 00 EE 11 73 66 B6 04 01 00 00 7D EE 0E DB E6 C0 3C 5B [00:40:36]CommunicateWithHost err = 0 [00:40:36]CheckOFDResponse [00:40:36]1017 (14) - 77093643461234 [00:40:36]1041 (16) - 0000000000875083 [00:40:36]1040 (4) - 111546 [00:40:36]1012 (4) - 19.06.2024 17:14 [00:40:36]1206 (1) - 0 [00:40:36]OFD Sender: Remove packet 111546 [00:40:36]ProducePacketName [00:40:36]name=ofd_packets/00111546 [00:40:36]NVStorageDeleteData [00:40:37]Write to MH i2c: 01 00 00 1B 41 5C [00:40:37]Write i2c OK [00:40:37]MH_I2C_Read... [00:40:37]Read from MH i2c: 01 [00:40:37]MH_I2C_Read... [00:40:37]Read from MH i2c: 01 07 00 [00:40:37]MH_I2C_Read... [00:40:37]Read from MH i2c: 01 07 00 1B 41 00 00 00 00 00 D6 0C 45 [00:40:37]RasterBufferAndPrint [00:40:37]line [00:40:37]line [00:40:37]line [00:40:37]line [00:40:37]line [00:40:37]written 0, free lines is 3293 [00:40:37]MH_Cut [00:40:37]Write to MH i2c: D1 01 00 22 41 01 35 [00:40:37]Write i2c OK [00:40:37]MH_I2C_Read... [00:40:37]Read from MH i2c: D1 [00:40:37]MH_I2C_Read... [00:40:37]Read from MH i2c: D1 01 00 [00:40:37]MH_I2C_Read... [00:40:37]Read from MH i2c: D1 01 00 22 41 00 34 [00:40:37]Write to MH i2c: 01 00 00 23 41 64 [00:40:37]Write i2c OK [00:40:37]MH_I2C_Read... [00:40:37]OFD Sender: No OFD packet to send [00:40:37]*** Cut start [00:40:37]*** Partial cut [00:40:37]*** CUTSNS_PIN = 1 [00:40:37]*** CUTSNS_PIN = 0 [00:40:38]*** Brake cut motor [00:40:38]Read from MH i2c: 01 [00:40:38]MH_I2C_Read... [00:40:38]*** Stop cut motor [00:40:38]*** Cut end [00:40:38]Read from MH i2c: 01 07 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: 01 07 00 23 41 00 00 00 00 00 FF 0F 79 [00:40:38]process_action close_receipt done [00:40:38]requested_data is exist [00:40:38]produce_requested_data [00:40:38]requested_item fm.sn is exist - process it [00:40:38]wFMCommunicate request_size=4 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 11 00 00 [00:40:38]Write to MH i2c: E2 08 00 24 41 80 11 00 00 00 00 00 00 DF [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 17 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 17 00 24 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [00:40:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:40:38]wFMCommunicate OK [00:40:38]requested_item fd.num is exist - process it [00:40:38]SAM_PROTO_GetFieldsCounters [00:40:38]wFMCommunicate request_size=4 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 13 00 00 [00:40:38]Write to MH i2c: E2 08 00 25 41 80 13 00 00 00 00 00 00 E2 [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 62 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 62 00 25 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B3 01 00 0E 04 04 00 84 01 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 6E [00: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BA B3 01 00 0E 04 04 00 84 01 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 [00:40:38]wFMCommunicate OK [00:40:38]SAM_PROTO_GetFieldsCounters done [00:40:38]requested_item shift.num is exist - process it [00:40:38]requested_item shift.opened is exist - process it [00:40:38]req_shift_opened [00:40:38]FM_GetShiftState [00:40:38]SAM_PROTO_GetShiftState [00:40:38]wFMCommunicate request_size=4 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 13 01 00 [00:40:38]Write to MH i2c: E2 08 00 26 41 80 13 01 00 00 00 00 00 E4 [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 0E 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 0E 00 26 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 2E [00:40:38]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:40:38]wFMCommunicate OK [00:40:38]SAM_PROTO_GetShiftState done [00:40:38]FM_GetShiftState done [00:40:38]req_shift_opened done [00:40:38]requested_item shift.open_date is exist - process it [00:40:38]req_shift_open_date [00:40:38]req_shift_open_date done [00:40:38]produce_requested_data done [00:40:38]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111546,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:40:38]process_action_free close_receipt [00:40:38]json_value_free [00:40:38]json_value_free done [00:40:38]process_json_proto returns [00:40:38]Send response to host [00:40:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111546,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:40:38]free response buf [00:40:38]execute_script done [00:40:38]execute_script returns [00:40:38]free content buf [00:40:38]Sock 7.Close socket [00:40:38]Sock 7.Thread stoped [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:47:58]accept exits with 9 [00:47:58]New connection [00:47:58]New thread 3067321700 created [00:47:58]Thread 3067465060 joined [00:47:58]Waiting for new connection... [00:47:58] Sock 9.Parse request [00:47:58]Sock 9.Check first char [00:47:58]Sock 9.First char is OK [00:47:58]request: POST /json_proto HTTP/1.0 [00:47:58]Method: POST [00:47:58]URL: /json_proto [00:47:58]Method is POST - this is cgi request [00:47:58]url: /json_proto [00:47:58]query_string will be loaded in cgi processing [00:47:58]execute_cgi json_proto POST (null) [00:47:58]execute_cgi path=json_proto method=POST [00:47:58]POST find Content-Length [00:47:58]Host: 172.17.59.68:8080 [00:47:58]Content-Length: 677 [00:47:58]Content-Type: application/json [00:47:58] [00:47:58]POST finish read [00:47:58]Found Content-Length = 677 [00:47:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:58]execute_script... [00:47: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)320146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:47:58]POST & json_proto [00:47:58]process_json_proto [00:47:58]json parsed OK: [00:47:58]protocol is kg_v1.0 [00:47:58]action value=close_receipt [00:47:58]process_action close_receipt [00:47:58]cmd_close_receipt [00:47:58]MH_GetDate [00:47:58]Write to MH i2c: F0 00 00 27 41 57 [00:47:58]Write i2c OK [00:47:58]MH_I2C_Read... [00:47:58]Read from MH i2c: F0 [00:47:58]MH_I2C_Read... [00:47:58]Read from MH i2c: F0 09 00 [00:47:58]MH_I2C_Read... [00:47:58]Read from MH i2c: F0 09 00 27 41 00 4F 7C 73 66 BC EC 60 65 71 [00:47:58]GetLastDocTimeStamp 1718844052 [00:47:58]current date 1718844495 [00:47:58]FM_GetShiftState [00:47:58]SAM_PROTO_GetShiftState [00:47:58]wFMCommunicate request_size=4 [00:47:58]MH_SAM_APDU [00:47:58]CAPDU: 80 13 01 00 [00:47:58]Write to MH i2c: E2 08 00 28 41 80 13 01 00 00 00 00 00 E6 [00:47:58]Write i2c OK [00:47:58]MH_I2C_Read... [00:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:47:58]Read from MH i2c: E2 [00:47:58]MH_I2C_Read... [00:47:58]Read from MH i2c: E2 0E 00 [00:47:58]MH_I2C_Read... [00:47:58]Read from MH i2c: E2 0E 00 28 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 30 [00:47:58]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:47:58]wFMCommunicate OK [00:47:58]SAM_PROTO_GetShiftState done [00:47:58]FM_GetShiftState done [00:47:58]opened in 1718760753 [00:47:58]opened+sec_in_day 1718847153 [00:47:58]quantity*price = 50065 [00:47:58]sum+1 = 50067 [00:47:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 296 20.06.2024 00:48 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111547 ФПД: 12447044498734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T004816&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111547&fm=12447044498734&tin=02508201610067®Number=0000000000092771&sum=50000 [00:47:59]StoreToDocumentArchive [00:47:59]shift 388 fd 111547 [00:47:59]save to /storage/0388/doc_00111547 [00:47:59]save last doc name /storage/0388/doc_00111547 to /storage/kkm_last_doc_name [00:47:59]save OK [00:47:59]Clear old archive folders... [00:47:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:47:59]tlvbuf is 00F0CD40 [00:47:59]SAM_PROTO_ClearQueue [00:47:59]wFMCommunicate request_size=4 [00:47:59]MH_SAM_APDU [00:47:59]CAPDU: 80 09 00 00 [00:47:59]Write to MH i2c: E2 08 00 35 41 80 09 00 00 00 00 00 00 E8 [00:47:59]Write i2c OK [00:47:59]MH_I2C_Read... [00:47:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:47:59]Read from MH i2c: E2 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 03 00 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 03 00 35 41 00 90 00 EA [00:47:59]RAPDU: 90 00 [00:47:59]wFMCommunicate OK [00:47:59]SAM_PROTO_ClearQueue done [00:47:59]KKMCreateOFDPacket [00:47:59]OFDProtocolAddRootSTLVToBuf [00:47:59]FM_MakeSignedData [00:47:59]FM_MakeSignedData [00:47:59]SAM_PROTO_SignData [00:47:59]wFMCommunicate request_size=4 [00:47:59]MH_SAM_APDU [00:47:59]CAPDU: 80 0D 01 02 [00:47:59]Write to MH i2c: E2 08 00 36 41 80 0D 01 02 00 00 00 00 F0 [00:47:59]Write i2c OK [00:47:59]MH_I2C_Read... [00:47:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:47:59]Read from MH i2c: E2 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 03 00 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 03 00 36 41 00 90 00 EB [00:47:59]RAPDU: 90 00 [00:47:59]wFMCommunicate OK [00:47:59]wFMCommunicate request_size=255 [00:47:59]MH_SAM_APDU [00:47: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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 50 7C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B3 01 00 35 04 06 00 0B [00:47:59]Write to MH i2c: E2 02 01 37 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 50 7C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B3 01 00 35 04 06 00 0B 00 00 71 [00:47:59]Write i2c OK [00:47:59]MH_I2C_Read... [00:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:59]Read from MH i2c: E2 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 03 00 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 03 00 37 41 00 90 00 EC [00:47:59]RAPDU: 90 00 [00:47:59]wFMCommunicate OK [00:47:59]wFMCommunicate request_size=10 [00:47:59]MH_SAM_APDU [00:47:59]CAPDU: 80 0D 02 02 05 52 0D AA 75 2E [00:47:59]Write to MH i2c: E2 0D 00 38 41 80 0D 02 02 05 00 52 0D AA 75 2E 00 00 A9 [00:47:59]Write i2c OK [00:47:59]MH_I2C_Read... [00:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:47:59]Read from MH i2c: E2 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 03 00 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 03 00 38 41 00 90 00 ED [00:47:59]RAPDU: 90 00 [00:47:59]wFMCommunicate OK [00:47:59]wFMCommunicate request_size=4 [00:47:59]MH_SAM_APDU [00:47:59]CAPDU: 80 0D 03 02 [00:47:59]Write to MH i2c: E2 08 00 39 41 80 0D 03 02 00 00 00 00 F5 [00:47:59]Write i2c OK [00:47:59]MH_I2C_Read... [00:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:47:59]Read from MH i2c: E2 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 0B 00 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 0B 00 39 41 00 13 D5 21 BF D8 F9 DC 7E 90 00 E9 [00:47:59]RAPDU: 13 D5 21 BF D8 F9 DC 7E 90 00 [00:47:59]wFMCommunicate OK [00:47:59]SAM_PROTO_SignData done [00:47:59]FM_MakeSignedData done [00:47:59]CreateOFDProtocolMessage [00:47:59]wFMCommunicate request_size=4 [00:47:59]MH_SAM_APDU [00:47:59]CAPDU: 80 11 00 00 [00:47:59]Write to MH i2c: E2 08 00 3A 41 80 11 00 00 00 00 00 00 F5 [00:47:59]Write i2c OK [00:47:59]MH_I2C_Read... [00:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:47:59]Read from MH i2c: E2 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 17 00 [00:47:59]MH_I2C_Read... [00:47:59]Read from MH i2c: E2 17 00 3A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [00:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:47:59]wFMCommunicate OK [00:48:00]CreateOFDProtocolMessage done [00:48:00]OFDSenderStorePacket 111547 [00:48:00]StoreOFDPacket docnum=111547 [00:48:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6D A9 07 01 72 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 50 7C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B3 01 00 35 04 06 00 0B 52 0D AA 75 2E 13 D5 21 BF D8 F9 DC 7E [00:48:00]CheckFolder [00:48:00]dirname=/storage/ofd_packets [00:48:00]CheckFolder done [00:48:00]ProducePacketName [00:48:00]name=ofd_packets/00111547 [00:48:00]NVStorageSaveData ofd_packets/00111547 [00:48:00]File name is /storage/ofd_packets/00111547 [00:48:00]Write 301 bytes [00:48:00]NVStorageSaveData done [00:48:00]OFDSenderStorePacket done [00:48:00]KKMCreateOFDPacket done [00:48:00]NVStorageSaveData kkm_last_timestamp [00:48:00]File name is /storage/kkm_last_timestamp [00:48:00]Write 4 bytes [00:48:00]NVStorageSaveData done [00:48:00]ExternCall_PrintAddStr [00:48:00]wPrintStart [00:48:00]Write to MH i2c: 01 00 00 3B 41 7C [00:48:00]Write i2c OK [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: 01 [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: 01 07 00 [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: 01 07 00 3B 41 00 00 00 00 00 FF 0F 91 [00:48:00]RasterBufferAndPrint [00:48:00]line Счет N : (1)320146 [00:48:00]line ИНН: 02508201610067 [00:48:00]line Контрольно-Кассовый Чек [00:48:00]line ПРОДАЖА [00:48:00]line ТРК (МРК, ГНК) : 11 [00:48:00]line Товар: 2710124130 [00:48:00]line Аи-92-К-5 [00:48:00]line 7.540 * 66.40 [00:48:00]line = 500.66 [00:48:00]line НДС 12% НСП 1% [00:48:00]line > о реализуемом товаре [00:48:00]line ОКРУГЛЕНИЕ: -0.66 [00:48:00]line ИТОГО: 500.00 [00:48:00]line Внесено: 500.00 [00:48:00]line СДАЧА: 0.00 [00:48:00]line НСП 1% : 4.43 [00:48:00]line НДС 12% : 53.17 [00:48:00]line Наличными: 500.00 [00:48:00]line Безнал.: 0.00 [00:48:00]line Место: АЗС № 65 "Партнер Нефть" [00:48:00]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [00:48:00]line СНО: Общий режим [00:48:00]line Чек 296 20.06.2024 00:48 [00:48:00]line Смена: 388 ФФД: 1.0 [00:48:00]line ЗНМ: 0300000198 [00:48:00]line РНМ: 0000000000092771 [00:48:00]line Версия ККМ: 001 [00:48:00]line ФМ: 0000000000875083 [00:48:00]line ФД: 111547 [00:48:00]line ФПД: 12447044498734 [00:48:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T004816&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111547&fm=12447044498734&tin=02508201610067®Number=0000000000092771&sum=50000 [00:48:00]OFD Sender: Processing packet 111547 [packets to send 38, broken 37] [00:48:00]ProducePacketName [00:48:00]name=ofd_packets/00111547 [00:48:00]OFD Sender: To server: pG, [00:48:00]CommunicateWithHost lk.salyk.kg:30040 [00:48:00]ConnectInit lk.salyk.kg [00:48:00]written 0, free lines is 4095 [00:48:00]Connected sock=10 [00:48:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 6D A9 07 01 72 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 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 50 7C 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BB B3 01 00 35 04 06 00 0B 52 0D AA 75 2E 13 D5 21 BF D8 F9 DC 7E [00:48:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 3D 35 47 00 5E 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 35 30 38 33 10 04 04 00 BB B3 01 00 F4 03 04 00 A9 13 73 66 B6 04 01 00 00 65 AF A4 21 50 E1 90 2A [00:48:00]CommunicateWithHost err = 0 [00:48:00]CheckOFDResponse [00:48:00]1017 (14) - 77093643461234 [00:48:00]1041 (16) - 0000000000875083 [00:48:00]1040 (4) - 111547 [00:48:00]1012 (4) - 19.06.2024 17:21 [00:48:00]1206 (1) - 0 [00:48:00]OFD Sender: Remove packet 111547 [00:48:00]ProducePacketName [00:48:00]name=ofd_packets/00111547 [00:48:00]NVStorageDeleteData [00:48:00]Write to MH i2c: 01 00 00 66 41 A7 [00:48:00]Write i2c OK [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: 01 [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: 01 07 00 [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: 01 07 00 66 41 00 00 00 00 00 E1 0C 9B [00:48:00]RasterBufferAndPrint [00:48:00]line [00:48:00]line [00:48:00]line [00:48:00]line [00:48:00]line [00:48:00]written 0, free lines is 3306 [00:48:00]MH_Cut [00:48:00]Write to MH i2c: D1 01 00 6D 41 01 80 [00:48:00]Write i2c OK [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: D1 [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: D1 01 00 [00:48:00]MH_I2C_Read... [00:48:00]Read from MH i2c: D1 01 00 6D 41 00 7F [00:48:00]Write to MH i2c: 01 00 00 6E 41 AF [00:48:00]Write i2c OK [00:48:00]MH_I2C_Read... [00:48:01]OFD Sender: No OFD packet to send [00:48:01]*** Cut start [00:48:01]*** Partial cut [00:48:01]*** CUTSNS_PIN = 1 [00:48:01]*** CUTSNS_PIN = 0 [00:48:01]*** Brake cut motor [00:48:02]Read from MH i2c: 01 [00:48:02]MH_I2C_Read... [00:48:02]*** Stop cut motor [00:48:02]*** Cut end [00:48:02]Read from MH i2c: 01 07 00 [00:48:02]MH_I2C_Read... [00:48:02]Read from MH i2c: 01 07 00 6E 41 00 00 00 00 00 FF 0F C4 [00:48:02]process_action close_receipt done [00:48:02]requested_data is exist [00:48:02]produce_requested_data [00:48:02]requested_item fm.sn is exist - process it [00:48:02]wFMCommunicate request_size=4 [00:48:02]MH_SAM_APDU [00:48:02]CAPDU: 80 11 00 00 [00:48:02]Write to MH i2c: E2 08 00 6F 41 80 11 00 00 00 00 00 00 2A [00:48:02]Write i2c OK [00:48:02]MH_I2C_Read... [00:48:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:02]Read from MH i2c: E2 [00:48:02]MH_I2C_Read... [00:48:02]Read from MH i2c: E2 17 00 [00:48:02]MH_I2C_Read... [00:48:02]Read from MH i2c: E2 17 00 6F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [00:48:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [00:48:02]wFMCommunicate OK [00:48:02]requested_item fd.num is exist - process it [00:48:02]SAM_PROTO_GetFieldsCounters [00:48:02]wFMCommunicate request_size=4 [00:48:02]MH_SAM_APDU [00:48:02]CAPDU: 80 13 00 00 [00:48:02]Write to MH i2c: E2 08 00 70 41 80 13 00 00 00 00 00 00 2D [00:48:02]Write i2c OK [00:48:02]MH_I2C_Read... [00:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:02]Read from MH i2c: E2 [00:48:02]MH_I2C_Read... [00:48:02]Read from MH i2c: E2 62 00 [00:48:02]MH_I2C_Read... [00:48:02]Read from MH i2c: E2 62 00 70 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B3 01 00 0E 04 04 00 84 01 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 BD [00:48: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BB B3 01 00 0E 04 04 00 84 01 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 [00:48:02]wFMCommunicate OK [00:48:02]SAM_PROTO_GetFieldsCounters done [00:48:02]requested_item shift.num is exist - process it [00:48:02]requested_item shift.opened is exist - process it [00:48:02]req_shift_opened [00:48:02]FM_GetShiftState [00:48:02]SAM_PROTO_GetShiftState [00:48:02]wFMCommunicate request_size=4 [00:48:02]MH_SAM_APDU [00:48:02]CAPDU: 80 13 01 00 [00:48:02]Write to MH i2c: E2 08 00 71 41 80 13 01 00 00 00 00 00 2F [00:48:02]Write i2c OK [00:48:02]MH_I2C_Read... [00:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:02]Read from MH i2c: E2 [00:48:02]MH_I2C_Read... [00:48:02]Read from MH i2c: E2 0E 00 [00:48:02]MH_I2C_Read... [00:48:02]Read from MH i2c: E2 0E 00 71 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 79 [00:48:02]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [00:48:02]wFMCommunicate OK [00:48:02]SAM_PROTO_GetShiftState done [00:48:02]FM_GetShiftState done [00:48:02]req_shift_opened done [00:48:02]requested_item shift.open_date is exist - process it [00:48:02]req_shift_open_date [00:48:02]req_shift_open_date done [00:48:02]produce_requested_data done [00:48:02]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111547,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [00:48:02]process_action_free close_receipt [00:48:02]json_value_free [00:48:02]json_value_free done [00:48:02]process_json_proto returns [00:48:02]Send response to host [00:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111547,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [00:48:02]free response buf [00:48:02]execute_script done [00:48:02]execute_script returns [00:48:02]free content buf [00:48:02]Sock 9.Close socket [00:48:02]Sock 9.Thread stoped [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:42]accept exits with 7 [01:03:42]New connection [01:03:42]New thread 3067465060 created [01:03:42]Thread 3067321700 joined [01:03:42]Waiting for new connection... [01:03:42] Sock 7.Parse request [01:03:42]Sock 7.Check first char [01:03:42]Sock 7.First char is OK [01:03:42]request: POST /json_proto HTTP/1.0 [01:03:42]Method: POST [01:03:42]URL: /json_proto [01:03:42]Method is POST - this is cgi request [01:03:42]url: /json_proto [01:03:42]query_string will be loaded in cgi processing [01:03:42]execute_cgi json_proto POST (null) [01:03:42]execute_cgi path=json_proto method=POST [01:03:42]POST find Content-Length [01:03:42]Host: 172.17.59.68:8080 [01:03:42]Content-Length: 805 [01:03:42]Content-Type: application/json [01:03:42] [01:03:42]POST finish read [01:03:42]Found Content-Length = 805 [01:03:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:42]execute_script... [01:03: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)320147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 250.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:03:42]POST & json_proto [01:03:42]process_json_proto [01:03:42]json parsed OK: [01:03:42]protocol is kg_v1.0 [01:03:42]action value=close_receipt [01:03:42]process_action close_receipt [01:03:42]cmd_close_receipt [01:03:42]MH_GetDate [01:03:42]Write to MH i2c: F0 00 00 72 41 A2 [01:03:42]Write i2c OK [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: F0 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: F0 09 00 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: F0 09 00 72 41 00 00 80 73 66 BC EC 60 65 71 [01:03:42]GetLastDocTimeStamp 1718844496 [01:03:42]current date 1718845440 [01:03:42]FM_GetShiftState [01:03:42]SAM_PROTO_GetShiftState [01:03:42]wFMCommunicate request_size=4 [01:03:42]MH_SAM_APDU [01:03:42]CAPDU: 80 13 01 00 [01:03:42]Write to MH i2c: E2 08 00 73 41 80 13 01 00 00 00 00 00 31 [01:03:42]Write i2c OK [01:03:42]MH_I2C_Read... [01:03:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:42]Read from MH i2c: E2 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: E2 0E 00 [01:03:42]MH_I2C_Read... [01:03:42]Read from MH i2c: E2 0E 00 73 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 7B [01:03:42]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [01:03:42]wFMCommunicate OK [01:03:42]SAM_PROTO_GetShiftState done [01:03:42]FM_GetShiftState done [01:03:42]opened in 1718760753 [01:03:42]opened+sec_in_day 1718847153 [01:03:42]quantity*price = 25032 [01:03:42]sum+1 = 25034 [01:03:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.33 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 0.00 Безнал.: 250.33 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 297 20.06.2024 01:04 Смена: 388 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111548 ФПД: 62736250374635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T010400&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111548&fm=62736250374635&tin=02508201610067®Number=0000000000092771&sum=25033 [01:03:43]StoreToDocumentArchive [01:03:43]shift 388 fd 111548 [01:03:43]save to /storage/0388/doc_00111548 [01:03:43]save last doc name /storage/0388/doc_00111548 to /storage/kkm_last_doc_name [01:03:43]save OK [01:03:43]Clear old archive folders... [01:03:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:03:43]tlvbuf is 0101CA70 [01:03:43]SAM_PROTO_ClearQueue [01:03:43]wFMCommunicate request_size=4 [01:03:43]MH_SAM_APDU [01:03:43]CAPDU: 80 09 00 00 [01:03:43]Write to MH i2c: E2 08 00 80 41 80 09 00 00 00 00 00 00 33 [01:03:43]Write i2c OK [01:03:43]MH_I2C_Read... [01:03:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:03:43]Read from MH i2c: E2 [01:03:43]MH_I2C_Read... [01:03:43]Read from MH i2c: E2 03 00 [01:03:43]MH_I2C_Read... [01:03:43]Read from MH i2c: E2 03 00 80 41 00 90 00 35 [01:03:43]RAPDU: 90 00 [01:03:43]wFMCommunicate OK [01:03:43]SAM_PROTO_ClearQueue done [01:03:43]KKMCreateOFDPacket [01:03:43]OFDProtocolAddRootSTLVToBuf [01:03:43]FM_MakeSignedData [01:03:43]FM_MakeSignedData [01:03:43]SAM_PROTO_SignData [01:03:43]wFMCommunicate request_size=4 [01:03:43]MH_SAM_APDU [01:03:43]CAPDU: 80 0D 01 02 [01:03:43]Write to MH i2c: E2 08 00 81 41 80 0D 01 02 00 00 00 00 3B [01:03:43]Write i2c OK [01:03:43]MH_I2C_Read... [01:03:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:03:43]Read from MH i2c: E2 [01:03:43]MH_I2C_Read... [01:03:43]Read from MH i2c: E2 03 00 [01:03:43]MH_I2C_Read... [01:03:43]Read from MH i2c: E2 03 00 81 41 00 90 00 36 [01:03:43]RAPDU: 90 00 [01:03:43]wFMCommunicate OK [01:03:43]wFMCommunicate request_size=255 [01:03:43]MH_SAM_APDU [01:03: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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 00 80 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B3 01 00 35 04 06 00 39 [01:03:43]Write to MH i2c: E2 02 01 82 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 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 00 80 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B3 01 00 35 04 06 00 39 00 00 8E [01:03:43]Write i2c OK [01:03:43]MH_I2C_Read... [01:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:44]Read from MH i2c: E2 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: E2 03 00 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: E2 03 00 82 41 00 90 00 37 [01:03:44]RAPDU: 90 00 [01:03:44]wFMCommunicate OK [01:03:44]wFMCommunicate request_size=10 [01:03:44]MH_SAM_APDU [01:03:44]CAPDU: 80 0D 02 02 05 0E EB EB 09 EB [01:03:44]Write to MH i2c: E2 0D 00 83 41 80 0D 02 02 05 00 0E EB EB 09 EB 00 00 20 [01:03:44]Write i2c OK [01:03:44]MH_I2C_Read... [01:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:03:44]Read from MH i2c: E2 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: E2 03 00 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: E2 03 00 83 41 00 90 00 38 [01:03:44]RAPDU: 90 00 [01:03:44]wFMCommunicate OK [01:03:44]wFMCommunicate request_size=4 [01:03:44]MH_SAM_APDU [01:03:44]CAPDU: 80 0D 03 02 [01:03:44]Write to MH i2c: E2 08 00 84 41 80 0D 03 02 00 00 00 00 40 [01:03:44]Write i2c OK [01:03:44]MH_I2C_Read... [01:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:03:44]Read from MH i2c: E2 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: E2 0B 00 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: E2 0B 00 84 41 00 B8 CE 12 9D A3 18 E1 61 90 00 73 [01:03:44]RAPDU: B8 CE 12 9D A3 18 E1 61 90 00 [01:03:44]wFMCommunicate OK [01:03:44]SAM_PROTO_SignData done [01:03:44]FM_MakeSignedData done [01:03:44]CreateOFDProtocolMessage [01:03:44]wFMCommunicate request_size=4 [01:03:44]MH_SAM_APDU [01:03:44]CAPDU: 80 11 00 00 [01:03:44]Write to MH i2c: E2 08 00 85 41 80 11 00 00 00 00 00 00 40 [01:03:44]Write i2c OK [01:03:44]MH_I2C_Read... [01:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:44]Read from MH i2c: E2 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: E2 17 00 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: E2 17 00 85 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [01:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:03:44]wFMCommunicate OK [01:03:44]CreateOFDProtocolMessage done [01:03:44]OFDSenderStorePacket 111548 [01:03:44]StoreOFDPacket docnum=111548 [01:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 42 07 01 E6 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 00 80 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B3 01 00 35 04 06 00 39 0E EB EB 09 EB B8 CE 12 9D A3 18 E1 61 [01:03:44]CheckFolder [01:03:44]dirname=/storage/ofd_packets [01:03:44]CheckFolder done [01:03:44]ProducePacketName [01:03:44]name=ofd_packets/00111548 [01:03:44]NVStorageSaveData ofd_packets/00111548 [01:03:44]File name is /storage/ofd_packets/00111548 [01:03:44]Write 301 bytes [01:03:44]NVStorageSaveData done [01:03:44]OFDSenderStorePacket done [01:03:44]KKMCreateOFDPacket done [01:03:44]NVStorageSaveData kkm_last_timestamp [01:03:44]File name is /storage/kkm_last_timestamp [01:03:44]Write 4 bytes [01:03:44]NVStorageSaveData done [01:03:44]ExternCall_PrintAddStr [01:03:44]wPrintStart [01:03:44]Write to MH i2c: 01 00 00 86 41 C7 [01:03:44]Write i2c OK [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: 01 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: 01 07 00 [01:03:44]MH_I2C_Read... [01:03:44]Read from MH i2c: 01 07 00 86 41 00 00 00 00 00 FF 0F DC [01:03:44]RasterBufferAndPrint [01:03:44]line Счет N : (1)320147 [01:03:44]line ИНН: 02508201610067 [01:03:44]line Контрольно-Кассовый Чек [01:03:44]line ПРОДАЖА [01:03:44]line ТРК (МРК, ГНК) : 11 [01:03:44]line Товар: 2710124130 [01:03:44]line Аи-92-К-5 [01:03:44]line 3.770 * 66.40 [01:03:44]line = 250.33 [01:03:44]line НДС 12% НСП 1% [01:03:44]line > о реализуемом товаре [01:03:44]line ИТОГО: 250.33 [01:03:44]line НСП 1% : 2.21 [01:03:44]line НДС 12% : 26.58 [01:03:44]line Наличными: 0.00 [01:03:44]line Безнал.: 250.33 [01:03:44]line Место: АЗС № 65 "Партнер Нефть" [01:03:44]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:03:44]line СНО: Общий режим [01:03:44]line Чек 297 20.06.2024 01:04 [01:03:44]line Смена: 388 ФФД: 1.0 [01:03:44]line ЗНМ: 0300000198 [01:03:44]line РНМ: 0000000000092771 [01:03:44]line Версия ККМ: 001 [01:03:44]line Платежная система: О! деньги [01:03:44]line ФМ: 0000000000875083 [01:03:44]line ФД: 111548 [01:03:44]line ФПД: 62736250374635 [01:03:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T010400&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111548&fm=62736250374635&tin=02508201610067®Number=0000000000092771&sum=25033 [01:03:44]written 0, free lines is 4095 [01:03:44]OFD Sender: Processing packet 111548 [packets to send 38, broken 37] [01:03:44]ProducePacketName [01:03:44]name=ofd_packets/00111548 [01:03:44]OFD Sender: To server: pG, [01:03:44]CommunicateWithHost lk.salyk.kg:30040 [01:03:44]ConnectInit lk.salyk.kg [01:03:44]Connected sock=10 [01:03:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 80 42 07 01 E6 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C9 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 62 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C9 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 00 80 73 66 0E 04 04 00 84 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BC B3 01 00 35 04 06 00 39 0E EB EB 09 EB B8 CE 12 9D A3 18 E1 61 [01:03:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 66 58 47 00 D1 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 35 30 38 33 10 04 04 00 BC B3 01 00 F4 03 04 00 5A 17 73 66 B6 04 01 00 00 47 9E FF 1C CD A4 A8 A3 [01:03:44]CommunicateWithHost err = 0 [01:03:44]CheckOFDResponse [01:03:44]1017 (14) - 77093643461234 [01:03:44]1041 (16) - 0000000000875083 [01:03:44]1040 (4) - 111548 [01:03:44]1012 (4) - 19.06.2024 17:37 [01:03:44]1206 (1) - 0 [01:03:44]OFD Sender: Remove packet 111548 [01:03:44]ProducePacketName [01:03:44]name=ofd_packets/00111548 [01:03:44]NVStorageDeleteData [01:03:45]Write to MH i2c: 01 00 00 B0 41 F1 [01:03:45]Write i2c OK [01:03:45]MH_I2C_Read... [01:03:45]Read from MH i2c: 01 [01:03:45]MH_I2C_Read... [01:03:45]Read from MH i2c: 01 07 00 [01:03:45]MH_I2C_Read... [01:03:45]Read from MH i2c: 01 07 00 B0 41 00 00 00 00 00 EC 0C F0 [01:03:45]RasterBufferAndPrint [01:03:45]line [01:03:45]line [01:03:45]line [01:03:45]line [01:03:45]line [01:03:45]written 0, free lines is 3315 [01:03:45]MH_Cut [01:03:45]Write to MH i2c: D1 01 00 B7 41 01 CA [01:03:45]Write i2c OK [01:03:45]MH_I2C_Read... [01:03:45]Read from MH i2c: D1 [01:03:45]MH_I2C_Read... [01:03:45]Read from MH i2c: D1 01 00 [01:03:45]MH_I2C_Read... [01:03:45]Read from MH i2c: D1 01 00 B7 41 00 C9 [01:03:45]Write to MH i2c: 01 00 00 B8 41 F9 [01:03:45]Write i2c OK [01:03:45]MH_I2C_Read... [01:03:45]OFD Sender: No OFD packet to send [01:03:45]*** Cut start [01:03:45]*** Partial cut [01:03:45]*** CUTSNS_PIN = 1 [01:03:45]*** CUTSNS_PIN = 0 [01:03:46]*** Brake cut motor [01:03:46]Read from MH i2c: 01 [01:03:46]MH_I2C_Read... [01:03:46]*** Stop cut motor [01:03:46]*** Cut end [01:03:46]Read from MH i2c: 01 07 00 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: 01 07 00 B8 41 00 00 00 00 00 FF 0F 0E [01:03:46]process_action close_receipt done [01:03:46]requested_data is exist [01:03:46]produce_requested_data [01:03:46]requested_item fm.sn is exist - process it [01:03:46]wFMCommunicate request_size=4 [01:03:46]MH_SAM_APDU [01:03:46]CAPDU: 80 11 00 00 [01:03:46]Write to MH i2c: E2 08 00 B9 41 80 11 00 00 00 00 00 00 74 [01:03:46]Write i2c OK [01:03:46]MH_I2C_Read... [01:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:46]Read from MH i2c: E2 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: E2 17 00 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: E2 17 00 B9 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [01:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:03:46]wFMCommunicate OK [01:03:46]requested_item fd.num is exist - process it [01:03:46]SAM_PROTO_GetFieldsCounters [01:03:46]wFMCommunicate request_size=4 [01:03:46]MH_SAM_APDU [01:03:46]CAPDU: 80 13 00 00 [01:03:46]Write to MH i2c: E2 08 00 BA 41 80 13 00 00 00 00 00 00 77 [01:03:46]Write i2c OK [01:03:46]MH_I2C_Read... [01:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:46]Read from MH i2c: E2 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: E2 62 00 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: E2 62 00 BA 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 0B [01:03: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 [01:03:46]wFMCommunicate OK [01:03:46]SAM_PROTO_GetFieldsCounters done [01:03:46]requested_item shift.num is exist - process it [01:03:46]requested_item shift.opened is exist - process it [01:03:46]req_shift_opened [01:03:46]FM_GetShiftState [01:03:46]SAM_PROTO_GetShiftState [01:03:46]wFMCommunicate request_size=4 [01:03:46]MH_SAM_APDU [01:03:46]CAPDU: 80 13 01 00 [01:03:46]Write to MH i2c: E2 08 00 BB 41 80 13 01 00 00 00 00 00 79 [01:03:46]Write i2c OK [01:03:46]MH_I2C_Read... [01:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:46]Read from MH i2c: E2 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: E2 0E 00 [01:03:46]MH_I2C_Read... [01:03:46]Read from MH i2c: E2 0E 00 BB 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C3 [01:03:46]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [01:03:46]wFMCommunicate OK [01:03:46]SAM_PROTO_GetShiftState done [01:03:46]FM_GetShiftState done [01:03:46]req_shift_opened done [01:03:46]requested_item shift.open_date is exist - process it [01:03:46]req_shift_open_date [01:03:46]req_shift_open_date done [01:03:46]produce_requested_data done [01:03:46]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111548,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [01:03:46]process_action_free close_receipt [01:03:46]json_value_free [01:03:46]json_value_free done [01:03:46]process_json_proto returns [01:03:46]Send response to host [01:03:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111548,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [01:03:46]free response buf [01:03:46]execute_script done [01:03:46]execute_script returns [01:03:46]free content buf [01:03:46]Sock 7.Close socket [01:03:46]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21: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:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [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:30]accept exits with 9 [01:26:30]New connection [01:26:30]New thread 3067321700 created [01:26:30]Thread 3067465060 joined [01:26:30]Waiting for new connection... [01:26:30] Sock 9.Parse request [01:26:30]Sock 9.Check first char [01:26:30]Sock 9.First char is OK [01:26:30]request: POST /json_proto HTTP/1.0 [01:26:30]Method: POST [01:26:30]URL: /json_proto [01:26:30]Method is POST - this is cgi request [01:26:30]url: /json_proto [01:26:30]query_string will be loaded in cgi processing [01:26:30]execute_cgi json_proto POST (null) [01:26:30]execute_cgi path=json_proto method=POST [01:26:30]POST find Content-Length [01:26:30]Host: 172.17.59.68:8080 [01:26:30]Content-Length: 215 [01:26:30]Content-Type: application/json [01:26:30] [01:26:30]POST finish read [01:26:30]Found Content-Length = 215 [01:26:30]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" ] } } [01:26:30]execute_script... [01:26:30]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" ] } } [01:26:30]POST & json_proto [01:26:30]process_json_proto [01:26:30]json parsed OK: [01:26:30]protocol is kg_v1.0 [01:26:30]action value=get_value [01:26:30]process_action get_value [01:26:30]cmd_get_value [01:26:30]process_action get_value done [01:26:30]requested_data is exist [01:26:30]produce_requested_data [01:26:30]requested_item kkm.sn is exist - process it [01:26:30]requested_item kkm.ver is exist - process it [01:26:30]requested_item fm.sn is exist - process it [01:26:30]wFMCommunicate request_size=4 [01:26:30]MH_SAM_APDU [01:26:30]CAPDU: 80 11 00 00 [01:26:30]Write to MH i2c: E2 08 00 BC 41 80 11 00 00 00 00 00 00 77 [01:26:30]Write i2c OK [01:26:30]MH_I2C_Read... [01:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:30]Read from MH i2c: E2 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 17 00 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 17 00 BC 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C9 [01:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:26:30]wFMCommunicate OK [01:26:30]requested_item fd.num is exist - process it [01:26:30]SAM_PROTO_GetFieldsCounters [01:26:30]wFMCommunicate request_size=4 [01:26:30]MH_SAM_APDU [01:26:30]CAPDU: 80 13 00 00 [01:26:30]Write to MH i2c: E2 08 00 BD 41 80 13 00 00 00 00 00 00 7A [01:26:30]Write i2c OK [01:26:30]MH_I2C_Read... [01:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:30]Read from MH i2c: E2 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 62 00 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 62 00 BD 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 0E [01:26: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 [01:26:30]wFMCommunicate OK [01:26:30]SAM_PROTO_GetFieldsCounters done [01:26:30]requested_item shift.num is exist - process it [01:26:30]requested_item shift.opened is exist - process it [01:26:30]req_shift_opened [01:26:30]FM_GetShiftState [01:26:30]SAM_PROTO_GetShiftState [01:26:30]wFMCommunicate request_size=4 [01:26:30]MH_SAM_APDU [01:26:30]CAPDU: 80 13 01 00 [01:26:30]Write to MH i2c: E2 08 00 BE 41 80 13 01 00 00 00 00 00 7C [01:26:30]Write i2c OK [01:26:30]MH_I2C_Read... [01:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:30]Read from MH i2c: E2 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 0E 00 [01:26:30]MH_I2C_Read... [01:26:30]Read from MH i2c: E2 0E 00 BE 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 C6 [01:26:30]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [01:26:30]wFMCommunicate OK [01:26:30]SAM_PROTO_GetShiftState done [01:26:30]FM_GetShiftState done [01:26:30]req_shift_opened done [01:26:30]requested_item shift.open_date is exist - process it [01:26:30]req_shift_open_date [01:26:30]req_shift_open_date done [01:26:30]produce_requested_data done [01:26:30]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111548,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [01:26:30]process_action_free get_value [01:26:30]json_value_free [01:26:30]json_value_free done [01:26:30]process_json_proto returns [01:26:30]Send response to host [01:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111548,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [01:26:31]free response buf [01:26:31]execute_script done [01:26:31]execute_script returns [01:26:31]free content buf [01:26:31]Sock 9.Close socket [01:26:31]Sock 9.Thread stoped [01:26:31]accept exits with 7 [01:26:31]New connection [01:26:31]New thread 3067465060 created [01:26:31]Thread 3067321700 joined [01:26:31]Waiting for new connection... [01:26:31] Sock 7.Parse request [01:26:31]Sock 7.Check first char [01:26:31]Sock 7.First char is OK [01:26:31]request: POST /json_proto HTTP/1.0 [01:26:31]Method: POST [01:26:31]URL: /json_proto [01:26:31]Method is POST - this is cgi request [01:26:31]url: /json_proto [01:26:31]query_string will be loaded in cgi processing [01:26:31]execute_cgi json_proto POST (null) [01:26:31]execute_cgi path=json_proto method=POST [01:26:31]POST find Content-Length [01:26:31]Host: 172.17.59.68:8080 [01:26:31]Content-Length: 331 [01:26:31]Content-Type: application/json [01:26:31] [01:26:31]POST finish read [01:26:31]Found Content-Length = 331 [01:26:31]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" ] } } [01:26:31]execute_script... [01:26:31]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" ] } } [01:26:31]POST & json_proto [01:26:31]process_json_proto [01:26:31]json parsed OK: [01:26:31]protocol is kg_v1.0 [01:26:31]action value=get_value [01:26:31]process_action get_value [01:26:31]cmd_get_value [01:26:31]process_action get_value done [01:26:31]requested_data is exist [01:26:31]produce_requested_data [01:26:31]requested_item fm.sale.total is exist - process it [01:26:31]SAM_PROTO_GetFMData [01:26:31]wFMCommunicate request_size=4 [01:26:31]MH_SAM_APDU [01:26:31]CAPDU: 80 13 03 00 [01:26:31]Write to MH i2c: E2 08 00 BF 41 80 13 03 00 00 00 00 00 7F [01:26:31]Write i2c OK [01:26:31]MH_I2C_Read... [01:26:31]OFD Sender: No OFD packet to send [01:26:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:26:31]Read from MH i2c: E2 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 FD 00 [01:26:31]MH_I2C_Read... [01:26:31]Read from MH i2c: E2 FD 00 BF 41 00 BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 32 [01:26:31]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:26:31]wFMCommunicate OK [01:26:31]wFMCommunicate request_size=4 [01:26:31]MH_SAM_APDU [01:26:31]CAPDU: 80 17 00 00 [01:26:31]Write to MH i2c: E2 08 00 C0 41 80 17 00 00 00 00 00 00 81 [01:26:31]Write i2c OK [01:26:31]MH_I2C_Read... [01:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:32]Read from MH i2c: E2 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 C0 41 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [01:26:32]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:32]wFMCommunicate OK [01:26:32]wFMCommunicate request_size=4 [01:26:32]MH_SAM_APDU [01:26:32]CAPDU: 80 17 00 00 [01:26:32]Write to MH i2c: E2 08 00 C1 41 80 17 00 00 00 00 00 00 82 [01:26:32]Write i2c OK [01:26:32]MH_I2C_Read... [01:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:32]Read from MH i2c: E2 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 C1 41 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 B4 [01:26:32]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [01:26:32]wFMCommunicate OK [01:26:32]wFMCommunicate request_size=4 [01:26:32]MH_SAM_APDU [01:26:32]CAPDU: 80 17 00 00 [01:26:32]Write to MH i2c: E2 08 00 C2 41 80 17 00 00 00 00 00 00 83 [01:26:32]Write i2c OK [01:26:32]MH_I2C_Read... [01:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:32]Read from MH i2c: E2 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 FD 00 C2 41 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 FA [01:26:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [01:26:32]wFMCommunicate OK [01:26:32]wFMCommunicate request_size=4 [01:26:32]MH_SAM_APDU [01:26:32]CAPDU: 80 17 00 00 [01:26:32]Write to MH i2c: E2 08 00 C3 41 80 17 00 00 00 00 00 00 84 [01:26:32]Write i2c OK [01:26:32]MH_I2C_Read... [01:26:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:26:32]Read from MH i2c: E2 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 DA 00 [01:26:32]MH_I2C_Read... [01:26:32]Read from MH i2c: E2 DA 00 C3 41 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 65 [01:26:32]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:26:32]wFMCommunicate OK [01:26:32]SAM_PROTO_GetFMData done [01:26:32]requested_item fm.sale_refund.total is exist - process it [01:26:32]requested_item fm.buy.total is exist - process it [01:26:32]requested_item shift.sale.total is exist - process it [01:26:32]SAM_PROTO_GetShiftData [01:26:32]wFMCommunicate request_size=4 [01:26:32]MH_SAM_APDU [01:26:32]CAPDU: 80 13 02 00 [01:26:32]Write to MH i2c: E2 08 00 C4 41 80 13 02 00 00 00 00 00 83 [01:26:32]Write i2c OK [01:26:32]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 C4 41 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 84 [01:26:33]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 17 00 00 [01:26:33]Write to MH i2c: E2 08 00 C5 41 80 17 00 00 00 00 00 00 86 [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 C5 41 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 9F [01:26:33]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 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 17 00 00 [01:26:33]Write to MH i2c: E2 08 00 C6 41 80 17 00 00 00 00 00 00 87 [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:33]Read from MH i2c: E2 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 [01:26:33]MH_I2C_Read... [01:26:33]Read from MH i2c: E2 FD 00 C6 41 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 40 [01:26: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 [01:26:33]wFMCommunicate OK [01:26:33]wFMCommunicate request_size=4 [01:26:33]MH_SAM_APDU [01:26:33]CAPDU: 80 17 00 00 [01:26:33]Write to MH i2c: E2 08 00 C7 41 80 17 00 00 00 00 00 00 88 [01:26:33]Write i2c OK [01:26:33]MH_I2C_Read... [01:26:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:34]Read from MH i2c: E2 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: E2 FD 00 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: E2 FD 00 C7 41 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 00 [01:26:34]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 [01:26:34]wFMCommunicate OK [01:26:34]wFMCommunicate request_size=4 [01:26:34]MH_SAM_APDU [01:26:34]CAPDU: 80 17 00 00 [01:26:34]Write to MH i2c: E2 08 00 C8 41 80 17 00 00 00 00 00 00 89 [01:26:34]Write i2c OK [01:26:34]MH_I2C_Read... [01:26:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:26:34]Read from MH i2c: E2 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: E2 CE 00 [01:26:34]MH_I2C_Read... [01:26:34]Read from MH i2c: E2 CE 00 C8 41 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 6E [01:26: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 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:26:34]wFMCommunicate OK [01:26:34]SAM_PROTO_GetShiftData done [01:26:34]requested_item shift.sale.total_cash is exist - process it [01:26:34]requested_item shift.sale_refund.total is exist - process it [01:26:34]requested_item shift.sale_refund.total_cash is exist - process it [01:26:34]requested_item shift.buy.total is exist - process it [01:26:34]requested_item shift.buy.total_cash is exist - process it [01:26:34]produce_requested_data done [01:26:34]produce_requested_data return {"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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} [01:26:34]process_action_free get_value [01:26:34]json_value_free [01:26:34]json_value_free done [01:26:34]process_json_proto returns [01:26:34]Send response to host [01:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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}}} [01:26:34]free response buf [01:26:34]execute_script done [01:26:34]execute_script returns [01:26:34]free content buf [01:26:34]Sock 7.Close socket [01:26:34]Sock 7.Thread stoped [01:26:34]accept exits with 9 [01:26:34]New connection [01:26:34]New thread 3067321700 created [01:26:34]Thread 3067465060 joined [01:26:34]Waiting for new connection... [01:26:34] Sock 9.Parse request [01:26:34]Sock 9.Check first char [01:26:34]Sock 9.First char is OK [01:26:34]request: POST /json_proto HTTP/1.0 [01:26:34]Method: POST [01:26:34]URL: /json_proto [01:26:34]Method is POST - this is cgi request [01:26:34]url: /json_proto [01:26:34]query_string will be loaded in cgi processing [01:26:34]execute_cgi json_proto POST (null) [01:26:34]execute_cgi path=json_proto method=POST [01:26:34]POST find Content-Length [01:26:34]Host: 172.17.59.68:8080 [01:26:34]Content-Length: 331 [01:26:34]Content-Type: application/json [01:26:34] [01:26:34]POST finish read [01:26:34]Found Content-Length = 331 [01:26: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" ] } } [01:26:34]execute_script... [01:26: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" ] } } [01:26:34]POST & json_proto [01:26:34]process_json_proto [01:26:34]json parsed OK: [01:26:34]protocol is kg_v1.0 [01:26:34]action value=get_value [01:26:34]process_action get_value [01:26:34]cmd_get_value [01:26:34]process_action get_value done [01:26:34]requested_data is exist [01:26:34]produce_requested_data [01:26:34]requested_item fm.sale.total is exist - process it [01:26:34]SAM_PROTO_GetFMData [01:26:34]wFMCommunicate request_size=4 [01:26:34]MH_SAM_APDU [01:26:34]CAPDU: 80 13 03 00 [01:26:34]Write to MH i2c: E2 08 00 C9 41 80 13 03 00 00 00 00 00 89 [01:26:34]Write i2c OK [01:26:34]MH_I2C_Read... [01:26:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:26:35]Read from MH i2c: E2 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 C9 41 00 BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 3C [01:26:35]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:26:35]wFMCommunicate OK [01:26:35]wFMCommunicate request_size=4 [01:26:35]MH_SAM_APDU [01:26:35]CAPDU: 80 17 00 00 [01:26:35]Write to MH i2c: E2 08 00 CA 41 80 17 00 00 00 00 00 00 8B [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:35]Read from MH i2c: E2 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 CA 41 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DF [01:26:35]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:35]wFMCommunicate OK [01:26:35]wFMCommunicate request_size=4 [01:26:35]MH_SAM_APDU [01:26:35]CAPDU: 80 17 00 00 [01:26:35]Write to MH i2c: E2 08 00 CB 41 80 17 00 00 00 00 00 00 8C [01:26:35]Write i2c OK [01:26:35]MH_I2C_Read... [01:26:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:35]Read from MH i2c: E2 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 [01:26:35]MH_I2C_Read... [01:26:35]Read from MH i2c: E2 FD 00 CB 41 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 BE [01:26:36]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [01:26:36]wFMCommunicate OK [01:26:36]wFMCommunicate request_size=4 [01:26:36]MH_SAM_APDU [01:26:36]CAPDU: 80 17 00 00 [01:26:36]Write to MH i2c: E2 08 00 CC 41 80 17 00 00 00 00 00 00 8D [01:26:36]Write i2c OK [01:26:36]MH_I2C_Read... [01:26:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:36]Read from MH i2c: E2 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 FD 00 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 FD 00 CC 41 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 04 [01:26:36]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [01:26:36]wFMCommunicate OK [01:26:36]wFMCommunicate request_size=4 [01:26:36]MH_SAM_APDU [01:26:36]CAPDU: 80 17 00 00 [01:26:36]Write to MH i2c: E2 08 00 CD 41 80 17 00 00 00 00 00 00 8E [01:26:36]Write i2c OK [01:26:36]MH_I2C_Read... [01:26:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:26:36]Read from MH i2c: E2 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 DA 00 [01:26:36]MH_I2C_Read... [01:26:36]Read from MH i2c: E2 DA 00 CD 41 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [01:26:36]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:26:36]wFMCommunicate OK [01:26:36]SAM_PROTO_GetFMData done [01:26:36]requested_item fm.sale_refund.total is exist - process it [01:26:36]requested_item fm.buy.total is exist - process it [01:26:36]requested_item shift.sale.total is exist - process it [01:26:36]SAM_PROTO_GetShiftData [01:26:36]wFMCommunicate request_size=4 [01:26:36]MH_SAM_APDU [01:26:36]CAPDU: 80 13 02 00 [01:26:36]Write to MH i2c: E2 08 00 CE 41 80 13 02 00 00 00 00 00 8D [01:26:36]OFD Sender: No OFD packet to send [01:26:36]Write i2c OK [01:26:36]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 CE 41 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 8E [01:26:37]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 [01:26:37]wFMCommunicate OK [01:26:37]wFMCommunicate request_size=4 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 17 00 00 [01:26:37]Write to MH i2c: E2 08 00 CF 41 80 17 00 00 00 00 00 00 90 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:37]Read from MH i2c: E2 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 [01:26:37]MH_I2C_Read... [01:26:37]Read from MH i2c: E2 FD 00 CF 41 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 A9 [01:26:37]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 [01:26:37]wFMCommunicate OK [01:26:37]wFMCommunicate request_size=4 [01:26:37]MH_SAM_APDU [01:26:37]CAPDU: 80 17 00 00 [01:26:37]Write to MH i2c: E2 08 00 D0 41 80 17 00 00 00 00 00 00 91 [01:26:37]Write i2c OK [01:26:37]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 FD 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 FD 00 D0 41 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 4A [01:26:38]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 [01:26:38]wFMCommunicate OK [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 17 00 00 [01:26:38]Write to MH i2c: E2 08 00 D1 41 80 17 00 00 00 00 00 00 92 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 FD 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 FD 00 D1 41 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 0A [01:26:38]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 [01:26:38]wFMCommunicate OK [01:26:38]wFMCommunicate request_size=4 [01:26:38]MH_SAM_APDU [01:26:38]CAPDU: 80 17 00 00 [01:26:38]Write to MH i2c: E2 08 00 D2 41 80 17 00 00 00 00 00 00 93 [01:26:38]Write i2c OK [01:26:38]MH_I2C_Read... [01:26:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:26:38]Read from MH i2c: E2 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 CE 00 [01:26:38]MH_I2C_Read... [01:26:38]Read from MH i2c: E2 CE 00 D2 41 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 78 [01:26:39]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 [01:26:39]wFMCommunicate OK [01:26:39]SAM_PROTO_GetShiftData done [01:26:39]requested_item shift.sale.total_cash is exist - process it [01:26:39]requested_item shift.sale_refund.total is exist - process it [01:26:39]requested_item shift.sale_refund.total_cash is exist - process it [01:26:39]requested_item shift.buy.total is exist - process it [01:26:39]requested_item shift.buy.total_cash is exist - process it [01:26:39]produce_requested_data done [01:26:39]produce_requested_data return {"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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} [01:26:39]process_action_free get_value [01:26:39]json_value_free [01:26:39]json_value_free done [01:26:39]process_json_proto returns [01:26:39]Send response to host [01:26:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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}}} [01:26:39]free response buf [01:26:39]execute_script done [01:26:39]execute_script returns [01:26:39]free content buf [01:26:39]Sock 9.Close socket [01:26:39]Sock 9.Thread stoped [01:26:39]accept exits with 7 [01:26:39]New connection [01:26:39]New thread 3067465060 created [01:26:39]Thread 3067321700 joined [01:26:39]Waiting for new connection... [01:26:39] Sock 7.Parse request [01:26:39]Sock 7.Check first char [01:26:39]Sock 7.First char is OK [01:26:39]request: POST /json_proto HTTP/1.0 [01:26:39]Method: POST [01:26:39]URL: /json_proto [01:26:39]Method is POST - this is cgi request [01:26:39]url: /json_proto [01:26:39]query_string will be loaded in cgi processing [01:26:39]execute_cgi json_proto POST (null) [01:26:39]execute_cgi path=json_proto method=POST [01:26:39]POST find Content-Length [01:26:39]Host: 172.17.59.68:8080 [01:26:39]Content-Length: 263 [01:26:39]Content-Type: application/json [01:26:39] [01:26:39]POST finish read [01:26:39]Found Content-Length = 263 [01:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:39]execute_script... [01:26:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:26:39]POST & json_proto [01:26:39]process_json_proto [01:26:39]json parsed OK: [01:26:39]protocol is kg_v1.0 [01:26:39]action value=x_report [01:26:39]process_action x_report [01:26:39]cmd_x_report [01:26:39]MH_GetDate [01:26:39]Write to MH i2c: F0 00 00 D3 41 03 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: F0 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: F0 09 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: F0 09 00 D3 41 00 61 85 73 66 BC EC 60 65 38 [01:26:39]GetLastDocTimeStamp 1718845440 [01:26:39]current date 1718846817 [01:26:39]FM_GetShiftState [01:26:39]SAM_PROTO_GetShiftState [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 13 01 00 [01:26:39]Write to MH i2c: E2 08 00 D4 41 80 13 01 00 00 00 00 00 92 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 0E 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 0E 00 D4 41 00 09 00 01 31 35 72 66 00 00 00 00 90 00 DC [01:26:39]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [01:26:39]wFMCommunicate OK [01:26:39]SAM_PROTO_GetShiftState done [01:26:39]FM_GetShiftState done [01:26:39]KKMCreateXReportDocument [01:26:39]Load OK [01:26:39]Malloc new data [01:26:39]MH_GetDate [01:26:39]Write to MH i2c: F0 00 00 D5 41 05 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: F0 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: F0 09 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: F0 09 00 D5 41 00 61 85 73 66 BC EC 60 65 3A [01:26:39]Malloc new data [01:26:39]Malloc new data [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 11 00 00 [01:26:39]Write to MH i2c: E2 08 00 D6 41 80 11 00 00 00 00 00 00 91 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 17 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 17 00 D6 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 E3 [01:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:26:39]wFMCommunicate OK [01:26:39]SAM_PROTO_GetFieldsCounters [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 13 00 00 [01:26:39]Write to MH i2c: E2 08 00 D7 41 80 13 00 00 00 00 00 00 94 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:39]Read from MH i2c: E2 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 62 00 [01:26:39]MH_I2C_Read... [01:26:39]Read from MH i2c: E2 62 00 D7 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 28 [01:26:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 [01:26:39]wFMCommunicate OK [01:26:39]SAM_PROTO_GetFieldsCounters done [01:26:39]Malloc new data [01:26:39]Malloc new data [01:26:39]Malloc new data [01:26:39]KKMCreateXReportDocument OK [01:26:39]KKMSetXReportData OK [01:26:39]KKMPrepareXReportFMData [01:26:39]SAM_PROTO_GetShiftData [01:26:39]wFMCommunicate request_size=4 [01:26:39]MH_SAM_APDU [01:26:39]CAPDU: 80 13 02 00 [01:26:39]Write to MH i2c: E2 08 00 D8 41 80 13 02 00 00 00 00 00 97 [01:26:39]Write i2c OK [01:26:39]MH_I2C_Read... [01:26:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:26:40]Read from MH i2c: E2 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 FD 00 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 FD 00 D8 41 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 98 [01:26:40]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 [01:26:40]wFMCommunicate OK [01:26:40]wFMCommunicate request_size=4 [01:26:40]MH_SAM_APDU [01:26:40]CAPDU: 80 17 00 00 [01:26:40]Write to MH i2c: E2 08 00 D9 41 80 17 00 00 00 00 00 00 9A [01:26:40]Write i2c OK [01:26:40]MH_I2C_Read... [01:26:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:40]Read from MH i2c: E2 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 FD 00 [01:26:40]MH_I2C_Read... [01:26:40]Read from MH i2c: E2 FD 00 D9 41 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 B3 [01:26:40]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 [01:26:40]wFMCommunicate OK [01:26:40]wFMCommunicate request_size=4 [01:26:40]MH_SAM_APDU [01:26:40]CAPDU: 80 17 00 00 [01:26:40]Write to MH i2c: E2 08 00 DA 41 80 17 00 00 00 00 00 00 9B [01:26:40]Write i2c OK [01:26:40]MH_I2C_Read... [01:26:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:41]Read from MH i2c: E2 [01:26:41]MH_I2C_Read... [01:26:41]Read from MH i2c: E2 FD 00 [01:26:41]MH_I2C_Read... [01:26:41]Read from MH i2c: E2 FD 00 DA 41 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 54 [01:26:41]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 [01:26:41]wFMCommunicate OK [01:26:41]wFMCommunicate request_size=4 [01:26:41]MH_SAM_APDU [01:26:41]CAPDU: 80 17 00 00 [01:26:41]Write to MH i2c: E2 08 00 DB 41 80 17 00 00 00 00 00 00 9C [01:26:41]Write i2c OK [01:26:41]MH_I2C_Read... [01:26:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:41]Read from MH i2c: E2 [01:26:41]MH_I2C_Read... [01:26:41]Read from MH i2c: E2 FD 00 [01:26:41]MH_I2C_Read... [01:26:41]Read from MH i2c: E2 FD 00 DB 41 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 14 [01:26:41]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 [01:26:41]wFMCommunicate OK [01:26:41]wFMCommunicate request_size=4 [01:26:41]MH_SAM_APDU [01:26:41]CAPDU: 80 17 00 00 [01:26:41]Write to MH i2c: E2 08 00 DC 41 80 17 00 00 00 00 00 00 9D [01:26:41]Write i2c OK [01:26:41]MH_I2C_Read... [01:26:41]OFD Sender: No OFD packet to send [01:26:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:26:42]Read from MH i2c: E2 [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: E2 CE 00 [01:26:42]MH_I2C_Read... [01:26:42]Read from MH i2c: E2 CE 00 DC 41 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 82 [01:26:42]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 [01:26:42]wFMCommunicate OK [01:26:42]SAM_PROTO_GetShiftData done [01:26:42]1194 (1197) - счетчики итогов смены [01:26:42] 1134 (4) - 297 - количество чеков со всеми признаками расчетов [01:26:42] 1129 (158) - счетчики операций «приход» [01:26:42] 1135 (4) - 297 - количество чеков по признаку расчетов [01:26:42] 1201 (4) - 238352.92 - общая итоговая сумма в чеках [01:26:42] 1136 (4) - 203487.00 - итоговая сумма в чеках наличными [01:26:42] 1138 (3) - 34865.92 - итоговая сумма в чеках безналичными [01:26:42] 1024 (123) - суммы налогов [01:26:42] 1006 (9) - суммы НДС [01:26:42] 1010 (1) - 0% - код ставки НДС [01:26:42] 1011 (0) - 0.00 - сумма НДС по ставке [01:26:42] 1006 (12) - суммы НДС [01:26:42] 1010 (1) - 12% - код ставки НДС [01:26:42] 1011 (3) - 25323.85 - сумма НДС по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 0% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (12) - суммы НСП [01:26:42] 1014 (1) - 1% - код ставки НСП [01:26:42] 1015 (3) - 2110.04 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 2% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 3% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 5% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 0,50% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 1,50% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1130 (141) - счетчики операций «возврат прихода» [01:26:42] 1135 (4) - 0 - количество чеков по признаку расчетов [01:26:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:26:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:26:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:26:42] 1024 (117) - суммы налогов [01:26:42] 1006 (9) - суммы НДС [01:26:42] 1010 (1) - 0% - код ставки НДС [01:26:42] 1011 (0) - 0.00 - сумма НДС по ставке [01:26:42] 1006 (9) - суммы НДС [01:26:42] 1010 (1) - 12% - код ставки НДС [01:26:42] 1011 (0) - 0.00 - сумма НДС по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 0% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 1% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 2% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 3% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 5% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 0,50% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 1,50% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1131 (141) - счетчики операций «расход» [01:26:42] 1135 (4) - 0 - количество чеков по признаку расчетов [01:26:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:26:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:26:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:26:42] 1024 (117) - суммы налогов [01:26:42] 1006 (9) - суммы НДС [01:26:42] 1010 (1) - 0% - код ставки НДС [01:26:42] 1011 (0) - 0.00 - сумма НДС по ставке [01:26:42] 1006 (9) - суммы НДС [01:26:42] 1010 (1) - 12% - код ставки НДС [01:26:42] 1011 (0) - 0.00 - сумма НДС по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 0% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 1% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 2% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 3% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 5% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 0,50% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 1,50% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1132 (141) - счетчики операций «возврат расхода» [01:26:42] 1135 (4) - 0 - количество чеков по признаку расчетов [01:26:42] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:26:42] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:26:42] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:26:42] 1024 (117) - суммы налогов [01:26:42] 1006 (9) - суммы НДС [01:26:42] 1010 (1) - 0% - код ставки НДС [01:26:42] 1011 (0) - 0.00 - сумма НДС по ставке [01:26:42] 1006 (9) - суммы НДС [01:26:42] 1010 (1) - 12% - код ставки НДС [01:26:42] 1011 (0) - 0.00 - сумма НДС по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 0% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 1% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 2% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 3% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 5% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 0,50% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1007 (9) - суммы НСП [01:26:42] 1014 (1) - 1,50% - код ставки НСП [01:26:42] 1015 (0) - 0.00 - сумма НСП по ставке [01:26:42] 1133 (588) - - счетчики коррекции - не используются [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1194 (04AA) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1134 (046E) [01:26:42]Malloc new data [01:26:42]Processing tag 1129 (0469) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1135 (046F) [01:26:42]Malloc new data [01:26:42]Processing tag 1201 (04B1) [01:26:42]Malloc new data [01:26:42]Processing tag 1136 (0470) [01:26:42]Malloc new data [01:26:42]Processing tag 1138 (0472) [01:26:42]Malloc new data [01:26:42]Processing tag 1024 (0400) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1006 (03EE) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1010 (03F2) [01:26:42]Malloc new data [01:26:42]Processing tag 1011 (03F3) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1006 (03EE) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1010 (03F2) [01:26:42]Malloc new data [01:26:42]Processing tag 1011 (03F3) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]SetTLVBufToDocument err=0 [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1130 (046A) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1135 (046F) [01:26:42]Malloc new data [01:26:42]Processing tag 1201 (04B1) [01:26:42]Malloc new data [01:26:42]Processing tag 1136 (0470) [01:26:42]Malloc new data [01:26:42]Processing tag 1138 (0472) [01:26:42]Malloc new data [01:26:42]Processing tag 1024 (0400) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1006 (03EE) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1010 (03F2) [01:26:42]Malloc new data [01:26:42]Processing tag 1011 (03F3) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1006 (03EE) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1010 (03F2) [01:26:42]Malloc new data [01:26:42]Processing tag 1011 (03F3) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1007 (03EF) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:42]Processing tag 1014 (03F6) [01:26:42]Malloc new data [01:26:42]Processing tag 1015 (03F7) [01:26:42]Malloc new data [01:26:42]SetTLVBufToDocument err=0 [01:26:42]SetTLVBufToDocument err=0 [01:26:42]SetTLVBufToDocument err=0 [01:26:42]Processing tag 1131 (046B) [01:26:42]Load OK [01:26:42]SetTLVBufToDocument [01:26:43]Processing tag 1135 (046F) [01:26:43]Malloc new data [01:26:43]Processing tag 1201 (04B1) [01:26:43]Malloc new data [01:26:43]Processing tag 1136 (0470) [01:26:43]Malloc new data [01:26:43]Processing tag 1138 (0472) [01:26:43]Malloc new data [01:26:43]Processing tag 1024 (0400) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1006 (03EE) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1010 (03F2) [01:26:43]Malloc new data [01:26:43]Processing tag 1011 (03F3) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1006 (03EE) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1010 (03F2) [01:26:43]Malloc new data [01:26:43]Processing tag 1011 (03F3) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]SetTLVBufToDocument err=0 [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1132 (046C) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1135 (046F) [01:26:43]Malloc new data [01:26:43]Processing tag 1201 (04B1) [01:26:43]Malloc new data [01:26:43]Processing tag 1136 (0470) [01:26:43]Malloc new data [01:26:43]Processing tag 1138 (0472) [01:26:43]Malloc new data [01:26:43]Processing tag 1024 (0400) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1006 (03EE) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1010 (03F2) [01:26:43]Malloc new data [01:26:43]Processing tag 1011 (03F3) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1006 (03EE) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1010 (03F2) [01:26:43]Malloc new data [01:26:43]Processing tag 1011 (03F3) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1007 (03EF) [01:26:43]Load OK [01:26:43]SetTLVBufToDocument [01:26:43]Processing tag 1014 (03F6) [01:26:43]Malloc new data [01:26:43]Processing tag 1015 (03F7) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]SetTLVBufToDocument err=0 [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Processing tag 1133 (046D) [01:26:43]Malloc new data [01:26:43]SetTLVBufToDocument err=0 [01:26:43]SetTLVBufToDocument err=0 [01:26:43]Malloc new data [01:26:43]SAM_PROTO_GetFMData [01:26:43]wFMCommunicate request_size=4 [01:26:43]MH_SAM_APDU [01:26:43]CAPDU: 80 13 03 00 [01:26:43]Write to MH i2c: E2 08 00 DD 41 80 13 03 00 00 00 00 00 9D [01:26:43]Write i2c OK [01:26:43]MH_I2C_Read... [01:26:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:26:43]Read from MH i2c: E2 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 FD 00 [01:26:43]MH_I2C_Read... [01:26:43]Read from MH i2c: E2 FD 00 DD 41 00 BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 50 [01:26:44]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:26:44]wFMCommunicate OK [01:26:44]wFMCommunicate request_size=4 [01:26:44]MH_SAM_APDU [01:26:44]CAPDU: 80 17 00 00 [01:26:44]Write to MH i2c: E2 08 00 DE 41 80 17 00 00 00 00 00 00 9F [01:26:44]Write i2c OK [01:26:44]MH_I2C_Read... [01:26:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:44]Read from MH i2c: E2 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 FD 00 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 FD 00 DE 41 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F3 [01:26:44]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:26:44]wFMCommunicate OK [01:26:44]wFMCommunicate request_size=4 [01:26:44]MH_SAM_APDU [01:26:44]CAPDU: 80 17 00 00 [01:26:44]Write to MH i2c: E2 08 00 DF 41 80 17 00 00 00 00 00 00 A0 [01:26:44]Write i2c OK [01:26:44]MH_I2C_Read... [01:26:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:44]Read from MH i2c: E2 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 FD 00 [01:26:44]MH_I2C_Read... [01:26:44]Read from MH i2c: E2 FD 00 DF 41 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 D2 [01:26:45]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [01:26:45]wFMCommunicate OK [01:26:45]wFMCommunicate request_size=4 [01:26:45]MH_SAM_APDU [01:26:45]CAPDU: 80 17 00 00 [01:26:45]Write to MH i2c: E2 08 00 E0 41 80 17 00 00 00 00 00 00 A1 [01:26:45]Write i2c OK [01:26:45]MH_I2C_Read... [01:26:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:26:45]Read from MH i2c: E2 [01:26:45]MH_I2C_Read... [01:26:45]Read from MH i2c: E2 FD 00 [01:26:45]MH_I2C_Read... [01:26:45]Read from MH i2c: E2 FD 00 E0 41 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 18 [01:26:45]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [01:26:45]wFMCommunicate OK [01:26:45]wFMCommunicate request_size=4 [01:26:45]MH_SAM_APDU [01:26:45]CAPDU: 80 17 00 00 [01:26:45]Write to MH i2c: E2 08 00 E1 41 80 17 00 00 00 00 00 00 A2 [01:26:45]Write i2c OK [01:26:45]MH_I2C_Read... [01:26:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:26:46]Read from MH i2c: E2 [01:26:46]MH_I2C_Read... [01:26:46]Read from MH i2c: E2 DA 00 [01:26:46]MH_I2C_Read... [01:26:46]Read from MH i2c: E2 DA 00 E1 41 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [01:26:46]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:26:46]wFMCommunicate OK [01:26:46]SAM_PROTO_GetFMData done [01:26:46]FM_GetFMData:85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:26:46]oper:6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 OFD Sender: No OFD packet to send [01:26:47]F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:26:47]total:6F 4A F5 F3 01 [01:26:47]Malloc new data [01:26:47]oper:6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [01:26:47]total:84 4E [01:26:47]Malloc new data [01:26:47]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 [01:26:47]total: [01:26:47]Malloc new data [01:26:47]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 [01:26:47]total: [01:26:47]Malloc new data [01:26:47]KKMPrepareXReportFMData err=0 [01:26:47]Х отчет ИНН: 02508201610067 Кассир: Амантуров Р. 20.06.2024 01:26 Смена: 266 РНМ: 0000000000092771 ЗНМ: 0300000198 СНО: Общий режим Всего чеков: 297 ИТОГИ ПРИХОД Чеков: 297 Общий итог: 238352.92 Итого наличными: 203487.00 Итого безнал.: 34865.92 НДС 0% : 0.00 НДС 12% : 25323.85 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2110.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 203487.00 НС Приход: 83879061.59 НС Возвр.Прихода: 201.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875083 [01:26:47]StoreToDocumentArchive [01:26:47]MH_GetDate [01:26:47]Write to MH i2c: F0 00 00 E2 41 12 [01:26:47]Write i2c OK [01:26:47]MH_I2C_Read... [01:26:47]Read from MH i2c: F0 [01:26:47]MH_I2C_Read... [01:26:47]Read from MH i2c: F0 09 00 [01:26:47]MH_I2C_Read... [01:26:47]Read from MH i2c: F0 09 00 E2 41 00 69 85 73 66 BC EC 60 65 4F [01:26:47]shift 266 fd 1718846825 [01:26:47]Create dir for shift 0266 [01:26:47]save to /storage/0266/doc_1718846825 [01:26:47]save last doc name /storage/0266/doc_1718846825 to /storage/kkm_last_doc_name [01:26:47]save OK [01:26:47]Clear old archive folders... [01:26:47]NVStorageSaveData kkm_last_timestamp [01:26:47]File name is /storage/kkm_last_timestamp [01:26:47]Write 4 bytes [01:26:47]NVStorageSaveData done [01:26:47]ExternCall_PrintAddStr [01:26:47]wPrintStart [01:26:47]Write to MH i2c: 01 00 00 E3 41 24 [01:26:47]Write i2c OK [01:26:47]MH_I2C_Read... [01:26:47]Read from MH i2c: 01 [01:26:47]MH_I2C_Read... [01:26:47]Read from MH i2c: 01 07 00 [01:26:47]MH_I2C_Read... [01:26:47]Read from MH i2c: 01 07 00 E3 41 00 00 00 00 00 FF 0F 39 [01:26:47]RasterBufferAndPrint [01:26:47]line Х отчет [01:26:47]line ИНН: 02508201610067 [01:26:47]line Кассир: Амантуров Р. [01:26:47]line 20.06.2024 01:26 [01:26:47]line Смена: 266 [01:26:47]line РНМ: 0000000000092771 [01:26:47]line ЗНМ: 0300000198 [01:26:47]line СНО: Общий режим [01:26:47]line Всего чеков: 297 [01:26:47]line ИТОГИ ПРИХОД [01:26:47]line Чеков: 297 [01:26:47]line Общий итог: 238352.92 [01:26:47]line Итого наличными: 203487.00 [01:26:47]line Итого безнал.: 34865.92 [01:26:47]line НДС 0% : 0.00 [01:26:47]line НДС 12% : 25323.85 [01:26:47]line НСП 0% : 0.00 [01:26:47]line НСП 1,50% : 0.00 [01:26:47]line НСП 0,50% : 0.00 [01:26:47]line НСП 5% : 0.00 [01:26:47]line НСП 3% : 0.00 [01:26:47]line НСП 2% : 0.00 [01:26:47]line НСП 1% : 2110.04 [01:26:47]line ИТОГИ ВОЗВРАТ ПРИХОДА [01:26:47]line Чеков: 0 [01:26:47]line Общий итог: 0.00 [01:26:47]line Итого наличными: 0.00 [01:26:47]line Итого безнал.: 0.00 [01:26:47]line НДС 0% : 0.00 [01:26:47]line НДС 12% : 0.00 [01:26:47]line НСП 0% : 0.00 [01:26:47]line НСП 1,50% : 0.00 [01:26:47]line НСП 0,50% : 0.00 [01:26:47]line НСП 5% : 0.00 [01:26:47]line НСП 3% : 0.00 [01:26:47]line НСП 2% : 0.00 [01:26:47]line НСП 1% : 0.00 [01:26:47]line ИТОГИ РАСХОД [01:26:47]line Чеков: 0 [01:26:47]line Общий итог: 0.00 [01:26:47]line Итого наличными: 0.00 [01:26:47]line Итого безнал.: 0.00 [01:26:47]line НДС 0% : 0.00 [01:26:47]line НДС 12% : 0.00 [01:26:47]line НСП 0% : 0.00 [01:26:47]line НСП 1,50% : 0.00 [01:26:47]line НСП 0,50% : 0.00 [01:26:47]line НСП 5% : 0.00 [01:26:47]line НСП 3% : 0.00 [01:26:47]line НСП 2% : 0.00 [01:26:47]line НСП 1% : 0.00 [01:26:47]line ИТОГИ ВОЗВРАТ РАСХОДА [01:26:47]line Чеков: 0 [01:26:47]line Общий итог: 0.00 [01:26:47]line Итого наличными: 0.00 [01:26:47]line Итого безнал.: 0.00 [01:26:47]line НДС 0% : 0.00 [01:26:47]line НДС 12% : 0.00 [01:26:47]line НСП 0% : 0.00 [01:26:47]line НСП 1,50% : 0.00 [01:26:47]line НСП 0,50% : 0.00 [01:26:47]line НСП 5% : 0.00 [01:26:47]line НСП 3% : 0.00 [01:26:47]line НСП 2% : 0.00 [01:26:47]line НСП 1% : 0.00 [01:26:47]line Сумма внесений: 0.00 [01:26:47]line Сумма выплат: 0.00 [01:26:47]line Нал. в кассе: 203487.00 [01:26:47]line НС Приход: 83879061.59 [01:26:47]line НС Возвр.Прихода: 201.00 [01:26:47]line НС Расход: 0.00 [01:26:47]line НС Возвр.Расхода: 0.00 [01:26:47]line ФМ: 0000000000875083 [01:26:47]written 0, free lines is 4095 [01:26:48]Write to MH i2c: 01 00 00 2E 42 70 [01:26:48]Write i2c OK [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: 01 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: 01 07 00 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: 01 07 00 2E 42 00 00 00 00 00 A6 0A 27 [01:26:48]RasterBufferAndPrint [01:26:48]line [01:26:48]line [01:26:48]line [01:26:48]line [01:26:48]line [01:26:48]written 0, free lines is 2760 [01:26:48]MH_Cut [01:26:48]Write to MH i2c: D1 01 00 35 42 01 49 [01:26:48]Write i2c OK [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: D1 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: D1 01 00 [01:26:48]MH_I2C_Read... [01:26:48]Read from MH i2c: D1 01 00 35 42 00 48 [01:26:48]Write to MH i2c: 01 00 00 36 42 78 [01:26:48]Write i2c OK [01:26:48]MH_I2C_Read... [01:26:49]*** Cut start [01:26:49]*** Partial cut [01:26:49]*** CUTSNS_PIN = 1 [01:26:49]*** CUTSNS_PIN = 0 [01:26:49]*** Brake cut motor [01:26:49]Read from MH i2c: 01 [01:26:49]MH_I2C_Read... [01:26:49]*** Stop cut motor [01:26:49]*** Cut end [01:26:49]Read from MH i2c: 01 07 00 [01:26:49]MH_I2C_Read... [01:26:49]Read from MH i2c: 01 07 00 36 42 00 00 00 00 00 FF 0F 8D [01:26:49]process_action x_report done [01:26:49]requested_data is exist [01:26:49]produce_requested_data [01:26:49]requested_item fd.num is exist - process it [01:26:49]SAM_PROTO_GetFieldsCounters [01:26:49]wFMCommunicate request_size=4 [01:26:49]MH_SAM_APDU [01:26:49]CAPDU: 80 13 00 00 [01:26:49]Write to MH i2c: E2 08 00 37 42 80 13 00 00 00 00 00 00 F5 [01:26:49]Write i2c OK [01:26:49]MH_I2C_Read... [01:26:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:26:50]Read from MH i2c: E2 [01:26:50]MH_I2C_Read... [01:26:50]Read from MH i2c: E2 62 00 [01:26:50]MH_I2C_Read... [01:26:50]Read from MH i2c: E2 62 00 37 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 89 [01:26:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 [01:26:50]wFMCommunicate OK [01:26:50]SAM_PROTO_GetFieldsCounters done [01:26:50]requested_item shift.num is exist - process it [01:26:50]requested_item shift.opened is exist - process it [01:26:50]req_shift_opened [01:26:50]FM_GetShiftState [01:26:50]SAM_PROTO_GetShiftState [01:26:50]wFMCommunicate request_size=4 [01:26:50]MH_SAM_APDU [01:26:50]CAPDU: 80 13 01 00 [01:26:50]Write to MH i2c: E2 08 00 38 42 80 13 01 00 00 00 00 00 F7 [01:26:50]Write i2c OK [01:26:50]MH_I2C_Read... [01:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:26:50]Read from MH i2c: E2 [01:26:50]MH_I2C_Read... [01:26:50]Read from MH i2c: E2 0E 00 [01:26:50]MH_I2C_Read... [01:26:50]Read from MH i2c: E2 0E 00 38 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 41 [01:26:50]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [01:26:50]wFMCommunicate OK [01:26:50]SAM_PROTO_GetShiftState done [01:26:50]FM_GetShiftState done [01:26:50]req_shift_opened done [01:26:50]requested_item shift.open_date is exist - process it [01:26:50]req_shift_open_date [01:26:50]req_shift_open_date done [01:26:50]produce_requested_data done [01:26:50]produce_requested_data return {"fd.num":111548,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [01:26:50]process_action_free x_report [01:26:50]json_value_free [01:26:50]json_value_free done [01:26:50]process_json_proto returns [01:26:50]Send response to host [01:26:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":111548,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [01:26:50]free response buf [01:26:50]execute_script done [01:26:50]execute_script returns [01:26:50]free content buf [01:26:50]Sock 7.Close socket [01:26:50]Sock 7.Thread stoped [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:01]accept exits with 9 [01:27:01]New connection [01:27:01]New thread 3067321700 created [01:27:01]Thread 3067465060 joined [01:27:01]Waiting for new connection... [01:27:01] Sock 9.Parse request [01:27:01]Sock 9.Check first char [01:27:01]Sock 9.First char is OK [01:27:01]request: POST /json_proto HTTP/1.0 [01:27:01]Method: POST [01:27:01]URL: /json_proto [01:27:01]Method is POST - this is cgi request [01:27:01]url: /json_proto [01:27:01]query_string will be loaded in cgi processing [01:27:01]execute_cgi json_proto POST (null) [01:27:01]execute_cgi path=json_proto method=POST [01:27:01]POST find Content-Length [01:27:01]Host: 172.17.59.68:8080 [01:27:01]Content-Length: 215 [01:27:01]Content-Type: application/json [01:27:01] [01:27:01]POST finish read [01:27:01]Found Content-Length = 215 [01:27:01]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" ] } } [01:27:01]execute_script... [01:27:01]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" ] } } [01:27:01]POST & json_proto [01:27:01]process_json_proto [01:27:01]json parsed OK: [01:27:01]protocol is kg_v1.0 [01:27:01]action value=get_value [01:27:01]process_action get_value [01:27:01]cmd_get_value [01:27:01]process_action get_value done [01:27:01]requested_data is exist [01:27:01]produce_requested_data [01:27:01]requested_item kkm.sn is exist - process it [01:27:01]requested_item kkm.ver is exist - process it [01:27:01]requested_item fm.sn is exist - process it [01:27:01]wFMCommunicate request_size=4 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 11 00 00 [01:27:01]Write to MH i2c: E2 08 00 39 42 80 11 00 00 00 00 00 00 F5 [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:01]Read from MH i2c: E2 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 17 00 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 17 00 39 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [01:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:27:01]wFMCommunicate OK [01:27:01]requested_item fd.num is exist - process it [01:27:01]SAM_PROTO_GetFieldsCounters [01:27:01]wFMCommunicate request_size=4 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 13 00 00 [01:27:01]Write to MH i2c: E2 08 00 3A 42 80 13 00 00 00 00 00 00 F8 [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:27:01]Read from MH i2c: E2 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 62 00 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 62 00 3A 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 8C [01:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BC B3 01 00 0E 04 04 00 84 01 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 [01:27:01]wFMCommunicate OK [01:27:01]SAM_PROTO_GetFieldsCounters done [01:27:01]requested_item shift.num is exist - process it [01:27:01]requested_item shift.opened is exist - process it [01:27:01]req_shift_opened [01:27:01]FM_GetShiftState [01:27:01]SAM_PROTO_GetShiftState [01:27:01]wFMCommunicate request_size=4 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 13 01 00 [01:27:01]Write to MH i2c: E2 08 00 3B 42 80 13 01 00 00 00 00 00 FA [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:01]Read from MH i2c: E2 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 0E 00 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 0E 00 3B 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 44 [01:27:01]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [01:27:01]wFMCommunicate OK [01:27:01]SAM_PROTO_GetShiftState done [01:27:01]FM_GetShiftState done [01:27:01]req_shift_opened done [01:27:01]requested_item shift.open_date is exist - process it [01:27:01]req_shift_open_date [01:27:01]req_shift_open_date done [01:27:01]produce_requested_data done [01:27:01]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111548,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753} [01:27:01]process_action_free get_value [01:27:01]json_value_free [01:27:01]json_value_free done [01:27:01]process_json_proto returns [01:27:01]Send response to host [01:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111548,"shift.num":388,"shift.opened":1,"shift.open_date":1718760753}}} [01:27:01]free response buf [01:27:01]execute_script done [01:27:01]execute_script returns [01:27:01]free content buf [01:27:01]Sock 9.Close socket [01:27:01]Sock 9.Thread stoped [01:27:01]accept exits with 7 [01:27:01]New connection [01:27:01]New thread 3067465060 created [01:27:01]Thread 3067321700 joined [01:27:01]Waiting for new connection... [01:27:01] Sock 7.Parse request [01:27:01]Sock 7.Check first char [01:27:01]Sock 7.First char is OK [01:27:01]request: POST /json_proto HTTP/1.0 [01:27:01]Method: POST [01:27:01]URL: /json_proto [01:27:01]Method is POST - this is cgi request [01:27:01]url: /json_proto [01:27:01]query_string will be loaded in cgi processing [01:27:01]execute_cgi json_proto POST (null) [01:27:01]execute_cgi path=json_proto method=POST [01:27:01]POST find Content-Length [01:27:01]Host: 172.17.59.68:8080 [01:27:01]Content-Length: 331 [01:27:01]Content-Type: application/json [01:27:01] [01:27:01]POST finish read [01:27:01]Found Content-Length = 331 [01:27:01]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" ] } } [01:27:01]execute_script... [01:27:01]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" ] } } [01:27:01]POST & json_proto [01:27:01]process_json_proto [01:27:01]json parsed OK: [01:27:01]protocol is kg_v1.0 [01:27:01]action value=get_value [01:27:01]process_action get_value [01:27:01]cmd_get_value [01:27:01]process_action get_value done [01:27:01]requested_data is exist [01:27:01]produce_requested_data [01:27:01]requested_item fm.sale.total is exist - process it [01:27:01]SAM_PROTO_GetFMData [01:27:01]wFMCommunicate request_size=4 [01:27:01]MH_SAM_APDU [01:27:01]CAPDU: 80 13 03 00 [01:27:01]Write to MH i2c: E2 08 00 3C 42 80 13 03 00 00 00 00 00 FD [01:27:01]Write i2c OK [01:27:01]MH_I2C_Read... [01:27:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:27:01]Read from MH i2c: E2 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 FD 00 [01:27:01]MH_I2C_Read... [01:27:01]Read from MH i2c: E2 FD 00 3C 42 00 BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 B0 [01:27:02]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 OFD Sender: No OFD packet to send [01:27:02]04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:27:02]wFMCommunicate OK [01:27:02]wFMCommunicate request_size=4 [01:27:02]MH_SAM_APDU [01:27:02]CAPDU: 80 17 00 00 [01:27:02]Write to MH i2c: E2 08 00 3D 42 80 17 00 00 00 00 00 00 FF [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:02]Read from MH i2c: E2 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 FD 00 [01:27:02]MH_I2C_Read... [01:27:02]Read from MH i2c: E2 FD 00 3D 42 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [01:27:02]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:02]wFMCommunicate OK [01:27:02]wFMCommunicate request_size=4 [01:27:02]MH_SAM_APDU [01:27:02]CAPDU: 80 17 00 00 [01:27:02]Write to MH i2c: E2 08 00 3E 42 80 17 00 00 00 00 00 00 00 [01:27:02]Write i2c OK [01:27:02]MH_I2C_Read... [01:27:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:03]Read from MH i2c: E2 [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: E2 FD 00 [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: E2 FD 00 3E 42 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 32 [01:27:03]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [01:27:03]wFMCommunicate OK [01:27:03]wFMCommunicate request_size=4 [01:27:03]MH_SAM_APDU [01:27:03]CAPDU: 80 17 00 00 [01:27:03]Write to MH i2c: E2 08 00 3F 42 80 17 00 00 00 00 00 00 01 [01:27:03]Write i2c OK [01:27:03]MH_I2C_Read... [01:27:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:03]Read from MH i2c: E2 [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: E2 FD 00 [01:27:03]MH_I2C_Read... [01:27:03]Read from MH i2c: E2 FD 00 3F 42 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 78 [01:27:03]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [01:27:03]wFMCommunicate OK [01:27:03]wFMCommunicate request_size=4 [01:27:03]MH_SAM_APDU [01:27:03]CAPDU: 80 17 00 00 [01:27:03]Write to MH i2c: E2 08 00 40 42 80 17 00 00 00 00 00 00 02 [01:27:03]Write i2c OK [01:27:03]MH_I2C_Read... [01:27:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:27:04]Read from MH i2c: E2 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 DA 00 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 DA 00 40 42 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 [01:27:04]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:27:04]wFMCommunicate OK [01:27:04]SAM_PROTO_GetFMData done [01:27:04]requested_item fm.sale_refund.total is exist - process it [01:27:04]requested_item fm.buy.total is exist - process it [01:27:04]requested_item shift.sale.total is exist - process it [01:27:04]SAM_PROTO_GetShiftData [01:27:04]wFMCommunicate request_size=4 [01:27:04]MH_SAM_APDU [01:27:04]CAPDU: 80 13 02 00 [01:27:04]Write to MH i2c: E2 08 00 41 42 80 13 02 00 00 00 00 00 01 [01:27:04]Write i2c OK [01:27:04]MH_I2C_Read... [01:27:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:27:04]Read from MH i2c: E2 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 FD 00 [01:27:04]MH_I2C_Read... [01:27:04]Read from MH i2c: E2 FD 00 41 42 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 02 [01:27:04]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 [01:27:05]wFMCommunicate OK [01:27:05]wFMCommunicate request_size=4 [01:27:05]MH_SAM_APDU [01:27:05]CAPDU: 80 17 00 00 [01:27:05]Write to MH i2c: E2 08 00 42 42 80 17 00 00 00 00 00 00 04 [01:27:05]Write i2c OK [01:27:05]MH_I2C_Read... [01:27:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:05]Read from MH i2c: E2 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 FD 00 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 FD 00 42 42 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 1D [01:27:05]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 [01:27:05]wFMCommunicate OK [01:27:05]wFMCommunicate request_size=4 [01:27:05]MH_SAM_APDU [01:27:05]CAPDU: 80 17 00 00 [01:27:05]Write to MH i2c: E2 08 00 43 42 80 17 00 00 00 00 00 00 05 [01:27:05]Write i2c OK [01:27:05]MH_I2C_Read... [01:27:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:05]Read from MH i2c: E2 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 FD 00 [01:27:05]MH_I2C_Read... [01:27:05]Read from MH i2c: E2 FD 00 43 42 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 BE [01:27:05]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 [01:27:06]wFMCommunicate OK [01:27:06]wFMCommunicate request_size=4 [01:27:06]MH_SAM_APDU [01:27:06]CAPDU: 80 17 00 00 [01:27:06]Write to MH i2c: E2 08 00 44 42 80 17 00 00 00 00 00 00 06 [01:27:06]Write i2c OK [01:27:06]MH_I2C_Read... [01:27:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:06]Read from MH i2c: E2 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 FD 00 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 FD 00 44 42 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 7E [01:27:06]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 [01:27:06]wFMCommunicate OK [01:27:06]wFMCommunicate request_size=4 [01:27:06]MH_SAM_APDU [01:27:06]CAPDU: 80 17 00 00 [01:27:06]Write to MH i2c: E2 08 00 45 42 80 17 00 00 00 00 00 00 07 [01:27:06]Write i2c OK [01:27:06]MH_I2C_Read... [01:27:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:27:06]Read from MH i2c: E2 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 CE 00 [01:27:06]MH_I2C_Read... [01:27:06]Read from MH i2c: E2 CE 00 45 42 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 EC [01:27:07]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 [01:27:07]wFMCommunicate OK [01:27:07]SAM_PROTO_GetShiftData done [01:27:07]requested_item shift.sale.total_cash is exist - process it [01:27:07]requested_item shift.sale_refund.total is exist - process it [01:27:07]requested_item shift.sale_refund.total_cash is exist - process it [01:27:07]requested_item shift.buy.total is exist - process it [01:27:07]requested_item shift.buy.total_cash is exist - process it [01:27:07]produce_requested_data done [01:27:07]produce_requested_data return {"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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} [01:27:07]process_action_free get_value [01:27:07]json_value_free [01:27:07]json_value_free done [01:27:07]process_json_proto returns [01:27:07]Send response to host [01:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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}}} [01:27:07]free response buf [01:27:07]execute_script done [01:27:07]execute_script returns [01:27:07]free content buf [01:27:07]Sock 7.Close socket [01:27:07]Sock 7.Thread stoped [01:27:07]OFD Sender: No OFD packet to send [01:27:07]accept exits with 9 [01:27:07]New connection [01:27:07]New thread 3067321700 created [01:27:07]Thread 3067465060 joined [01:27:07]Waiting for new connection... [01:27:07] Sock 9.Parse request [01:27:07]Sock 9.Check first char [01:27:07]Sock 9.First char is OK [01:27:07]request: POST /json_proto HTTP/1.0 [01:27:07]Method: POST [01:27:07]URL: /json_proto [01:27:07]Method is POST - this is cgi request [01:27:07]url: /json_proto [01:27:07]query_string will be loaded in cgi processing [01:27:07]execute_cgi json_proto POST (null) [01:27:07]execute_cgi path=json_proto method=POST [01:27:07]POST find Content-Length [01:27:07]Host: 172.17.59.68:8080 [01:27:07]Content-Length: 331 [01:27:07]Content-Type: application/json [01:27:07] [01:27:07]POST finish read [01:27:07]Found Content-Length = 331 [01:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:27:07]execute_script... [01:27:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:27:07]POST & json_proto [01:27:07]process_json_proto [01:27:07]json parsed OK: [01:27:07]protocol is kg_v1.0 [01:27:07]action value=get_value [01:27:07]process_action get_value [01:27:07]cmd_get_value [01:27:07]process_action get_value done [01:27:07]requested_data is exist [01:27:07]produce_requested_data [01:27:07]requested_item fm.sale.total is exist - process it [01:27:07]SAM_PROTO_GetFMData [01:27:07]wFMCommunicate request_size=4 [01:27:07]MH_SAM_APDU [01:27:07]CAPDU: 80 13 03 00 [01:27:07]Write to MH i2c: E2 08 00 46 42 80 13 03 00 00 00 00 00 07 [01:27:07]Write i2c OK [01:27:07]MH_I2C_Read... [01:27:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:27:07]Read from MH i2c: E2 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 FD 00 [01:27:07]MH_I2C_Read... [01:27:07]Read from MH i2c: E2 FD 00 46 42 00 BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 BA [01:27:07]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:27:08]wFMCommunicate OK [01:27:08]wFMCommunicate request_size=4 [01:27:08]MH_SAM_APDU [01:27:08]CAPDU: 80 17 00 00 [01:27:08]Write to MH i2c: E2 08 00 47 42 80 17 00 00 00 00 00 00 09 [01:27:08]Write i2c OK [01:27:08]MH_I2C_Read... [01:27:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:08]Read from MH i2c: E2 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 47 42 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5D [01:27:08]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:08]wFMCommunicate OK [01:27:08]wFMCommunicate request_size=4 [01:27:08]MH_SAM_APDU [01:27:08]CAPDU: 80 17 00 00 [01:27:08]Write to MH i2c: E2 08 00 48 42 80 17 00 00 00 00 00 00 0A [01:27:08]Write i2c OK [01:27:08]MH_I2C_Read... [01:27:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:08]Read from MH i2c: E2 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 [01:27:08]MH_I2C_Read... [01:27:08]Read from MH i2c: E2 FD 00 48 42 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 3C [01:27:08]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [01:27:09]wFMCommunicate OK [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 17 00 00 [01:27:09]Write to MH i2c: E2 08 00 49 42 80 17 00 00 00 00 00 00 0B [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 FD 00 49 42 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 82 [01:27:09]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [01:27:09]wFMCommunicate OK [01:27:09]wFMCommunicate request_size=4 [01:27:09]MH_SAM_APDU [01:27:09]CAPDU: 80 17 00 00 [01:27:09]Write to MH i2c: E2 08 00 4A 42 80 17 00 00 00 00 00 00 0C [01:27:09]Write i2c OK [01:27:09]MH_I2C_Read... [01:27:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:27:09]Read from MH i2c: E2 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 DA 00 [01:27:09]MH_I2C_Read... [01:27:09]Read from MH i2c: E2 DA 00 4A 42 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 ED [01:27:10]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:27:10]wFMCommunicate OK [01:27:10]SAM_PROTO_GetFMData done [01:27:10]requested_item fm.sale_refund.total is exist - process it [01:27:10]requested_item fm.buy.total is exist - process it [01:27:10]requested_item shift.sale.total is exist - process it [01:27:10]SAM_PROTO_GetShiftData [01:27:10]wFMCommunicate request_size=4 [01:27:10]MH_SAM_APDU [01:27:10]CAPDU: 80 13 02 00 [01:27:10]Write to MH i2c: E2 08 00 4B 42 80 13 02 00 00 00 00 00 0B [01:27:10]Write i2c OK [01:27:10]MH_I2C_Read... [01:27:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:27:10]Read from MH i2c: E2 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 [01:27:10]MH_I2C_Read... [01:27:10]Read from MH i2c: E2 FD 00 4B 42 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 0C [01:27:10]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 [01:27:11]wFMCommunicate OK [01:27:11]wFMCommunicate request_size=4 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 17 00 00 [01:27:11]Write to MH i2c: E2 08 00 4C 42 80 17 00 00 00 00 00 00 0E [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 FD 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 FD 00 4C 42 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 27 [01:27:11]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 [01:27:11]wFMCommunicate OK [01:27:11]wFMCommunicate request_size=4 [01:27:11]MH_SAM_APDU [01:27:11]CAPDU: 80 17 00 00 [01:27:11]Write to MH i2c: E2 08 00 4D 42 80 17 00 00 00 00 00 00 0F [01:27:11]Write i2c OK [01:27:11]MH_I2C_Read... [01:27:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:11]Read from MH i2c: E2 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 FD 00 [01:27:11]MH_I2C_Read... [01:27:11]Read from MH i2c: E2 FD 00 4D 42 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 C8 [01:27: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 [01:27:12]wFMCommunicate OK [01:27:12]wFMCommunicate request_size=4 [01:27:12]MH_SAM_APDU [01:27:12]CAPDU: 80 17 00 00 [01:27:12]Write to MH i2c: E2 08 00 4E 42 80 17 00 00 00 00 00 00 10 [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:12]OFD Sender: No OFD packet to send [01:27:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:12]Read from MH i2c: E2 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 FD 00 [01:27:12]MH_I2C_Read... [01:27:12]Read from MH i2c: E2 FD 00 4E 42 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 88 [01:27:12]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 [01:27:12]wFMCommunicate OK [01:27:12]wFMCommunicate request_size=4 [01:27:12]MH_SAM_APDU [01:27:12]CAPDU: 80 17 00 00 [01:27:12]Write to MH i2c: E2 08 00 4F 42 80 17 00 00 00 00 00 00 11 [01:27:12]Write i2c OK [01:27:12]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 CE 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 CE 00 4F 42 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 F6 [01:27: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 [01:27:13]wFMCommunicate OK [01:27:13]SAM_PROTO_GetShiftData done [01:27:13]requested_item shift.sale.total_cash is exist - process it [01:27:13]requested_item shift.sale_refund.total is exist - process it [01:27:13]requested_item shift.sale_refund.total_cash is exist - process it [01:27:13]requested_item shift.buy.total is exist - process it [01:27:13]requested_item shift.buy.total_cash is exist - process it [01:27:13]produce_requested_data done [01:27:13]produce_requested_data return {"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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} [01:27:13]process_action_free get_value [01:27:13]json_value_free [01:27:13]json_value_free done [01:27:13]process_json_proto returns [01:27:13]Send response to host [01:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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}}} [01:27:13]free response buf [01:27:13]execute_script done [01:27:13]execute_script returns [01:27:13]free content buf [01:27:13]Sock 9.Close socket [01:27:13]Sock 9.Thread stoped [01:27:13]accept exits with 7 [01:27:13]New connection [01:27:13]New thread 3067465060 created [01:27:13]Thread 3067321700 joined [01:27:13]Waiting for new connection... [01:27:13] Sock 7.Parse request [01:27:13]Sock 7.Check first char [01:27:13]Sock 7.First char is OK [01:27:13]request: POST /json_proto HTTP/1.0 [01:27:13]Method: POST [01:27:13]URL: /json_proto [01:27:13]Method is POST - this is cgi request [01:27:13]url: /json_proto [01:27:13]query_string will be loaded in cgi processing [01:27:13]execute_cgi json_proto POST (null) [01:27:13]execute_cgi path=json_proto method=POST [01:27:13]POST find Content-Length [01:27:13]Host: 172.17.59.68:8080 [01:27:13]Content-Length: 266 [01:27:13]Content-Type: application/json [01:27:13] [01:27:13]POST finish read [01:27:13]Found Content-Length = 266 [01:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:13]execute_script... [01:27:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043C\u0430\u043D\u0442\u0443\u0440\u043E\u0432 \u0420. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:27:13]POST & json_proto [01:27:13]process_json_proto [01:27:13]json parsed OK: [01:27:13]protocol is kg_v1.0 [01:27:13]action value=close_shift [01:27:13]process_action close_shift [01:27:13]cmd_close_shift [01:27:13]MH_GetDate [01:27:13]Write to MH i2c: F0 00 00 50 42 81 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: F0 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: F0 09 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: F0 09 00 50 42 00 84 85 73 66 BC EC 60 65 D9 [01:27:13]GetLastDocTimeStamp 1718846817 [01:27:13]current date 1718846852 [01:27:13]FM_GetShiftState [01:27:13]SAM_PROTO_GetShiftState [01:27:13]wFMCommunicate request_size=4 [01:27:13]MH_SAM_APDU [01:27:13]CAPDU: 80 13 01 00 [01:27:13]Write to MH i2c: E2 08 00 51 42 80 13 01 00 00 00 00 00 10 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 0E 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 0E 00 51 42 00 09 00 01 31 35 72 66 00 00 00 00 90 00 5A [01:27:13]RAPDU: 09 00 01 31 35 72 66 00 00 00 00 90 00 [01:27:13]wFMCommunicate OK [01:27:13]SAM_PROTO_GetShiftState done [01:27:13]FM_GetShiftState done [01:27:13]KKMCreateCloseShiftDocument [01:27:13]Load OK [01:27:13]Malloc new data [01:27:13]MH_GetDate [01:27:13]Write to MH i2c: F0 00 00 52 42 83 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: F0 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: F0 09 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: F0 09 00 52 42 00 84 85 73 66 BC EC 60 65 DB [01:27:13]Malloc new data [01:27:13]Malloc new data [01:27:13]Malloc new data [01:27:13]Malloc new data [01:27:13]KKMCreateCloseShiftDocument OK [01:27:13]KKMSetCloseShiftData OK [01:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=73 [01:27:13]tlvbuf is 00F1A370 [01:27:13]KKMLoadAndSignCloseShiftData [01:27:13]SAM_PROTO_ProcessDocument [01:27:13]wFMCommunicate request_size=9 [01:27:13]MH_SAM_APDU [01:27:13]CAPDU: 80 15 01 00 04 05 00 49 00 [01:27:13]Write to MH i2c: E2 0C 00 53 42 80 15 01 00 04 00 05 00 49 00 00 00 6A [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 03 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 03 00 53 42 00 90 00 09 [01:27:13]RAPDU: 90 00 [01:27:13]wFMCommunicate OK [01:27:13]wFMCommunicate request_size=23 [01:27:13]MH_SAM_APDU [01:27:13]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:27:13]Write to MH i2c: E2 1A 00 54 42 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 0B [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:13]Read from MH i2c: E2 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 03 00 [01:27:13]MH_I2C_Read... [01:27:13]Read from MH i2c: E2 03 00 54 42 00 90 00 0A [01:27:13]RAPDU: 90 00 [01:27:13]wFMCommunicate OK [01:27:13]wFMCommunicate request_size=32 [01:27:13]MH_SAM_APDU [01:27:13]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 [01:27:13]Write to MH i2c: E2 23 00 55 42 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 00 00 43 [01:27:13]Write i2c OK [01:27:13]MH_I2C_Read... [01:27:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:13]Read from MH i2c: E2 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 03 00 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 03 00 55 42 00 90 00 0B [01:27:14]RAPDU: 90 00 [01:27:14]wFMCommunicate OK [01:27:14]wFMCommunicate request_size=13 [01:27:14]MH_SAM_APDU [01:27:14]CAPDU: 80 15 02 00 08 F4 03 04 00 84 85 73 66 [01:27:14]Write to MH i2c: E2 10 00 56 42 80 15 02 00 08 00 F4 03 04 00 84 85 73 66 00 00 05 [01:27:14]Write i2c OK [01:27:14]MH_I2C_Read... [01:27:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:14]Read from MH i2c: E2 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 03 00 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 03 00 56 42 00 90 00 0C [01:27:14]RAPDU: 90 00 [01:27:14]wFMCommunicate OK [01:27:14]wFMCommunicate request_size=25 [01:27:14]MH_SAM_APDU [01:27:14]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 [01:27:14]Write to MH i2c: E2 1C 00 57 42 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 00 00 7C [01:27:14]Write i2c OK [01:27:14]MH_I2C_Read... [01:27:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:27:14]Read from MH i2c: E2 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 03 00 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 03 00 57 42 00 90 00 0D [01:27:14]RAPDU: 90 00 [01:27:14]wFMCommunicate OK [01:27:14]wFMCommunicate request_size=4 [01:27:14]MH_SAM_APDU [01:27:14]CAPDU: 80 15 03 00 [01:27:14]Write to MH i2c: E2 08 00 58 42 80 15 03 00 00 00 00 00 1B [01:27:14]Write i2c OK [01:27:14]MH_I2C_Read... [01:27:14]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [01:27:14]Read from MH i2c: E2 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 FD 00 [01:27:14]MH_I2C_Read... [01:27:14]Read from MH i2c: E2 FD 00 58 42 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B3 01 00 0E 04 04 00 84 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 FA [01:27:14]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B3 01 00 0E 04 04 00 84 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 [01:27:15]wFMCommunicate OK [01:27:15]SAM_PROTO_ProcessDocument answer len = 1268 [01:27:15]SAM_PROTO_ProcessDocument remain to read = 1020 [01:27:15]wFMCommunicate request_size=4 [01:27:15]MH_SAM_APDU [01:27:15]CAPDU: 80 17 00 00 [01:27:15]Write to MH i2c: E2 08 00 59 42 80 17 00 00 00 00 00 00 1B [01:27:15]Write i2c OK [01:27:15]MH_I2C_Read... [01:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:15]Read from MH i2c: E2 [01:27:15]MH_I2C_Read... [01:27:15]Read from MH i2c: E2 FD 00 [01:27:15]MH_I2C_Read... [01:27:15]Read from MH i2c: E2 FD 00 59 42 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 6F [01:27:15]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 [01:27:15]wFMCommunicate OK [01:27:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:27:15]SAM_PROTO_ProcessDocument remain to read = 770 [01:27:15]wFMCommunicate request_size=4 [01:27:15]MH_SAM_APDU [01:27:15]CAPDU: 80 17 00 00 [01:27:15]Write to MH i2c: E2 08 00 5A 42 80 17 00 00 00 00 00 00 1C [01:27:15]Write i2c OK [01:27:15]MH_I2C_Read... [01:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:16]Read from MH i2c: E2 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 FD 00 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 FD 00 5A 42 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 7E [01:27:16]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 [01:27:16]wFMCommunicate OK [01:27:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:27:16]SAM_PROTO_ProcessDocument remain to read = 520 [01:27:16]wFMCommunicate request_size=4 [01:27:16]MH_SAM_APDU [01:27:16]CAPDU: 80 17 00 00 [01:27:16]Write to MH i2c: E2 08 00 5B 42 80 17 00 00 00 00 00 00 1D [01:27:16]Write i2c OK [01:27:16]MH_I2C_Read... [01:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:16]Read from MH i2c: E2 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 FD 00 [01:27:16]MH_I2C_Read... [01:27:16]Read from MH i2c: E2 FD 00 5B 42 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 A5 [01:27:16]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 [01:27:17]wFMCommunicate OK [01:27:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:27:17]SAM_PROTO_ProcessDocument remain to read = 270 [01:27:17]wFMCommunicate request_size=4 [01:27:17]MH_SAM_APDU [01:27:17]CAPDU: 80 17 00 00 [01:27:17]Write to MH i2c: E2 08 00 5C 42 80 17 00 00 00 00 00 00 1E [01:27:17]Write i2c OK [01:27:17]MH_I2C_Read... [01:27:17]OFD Sender: No OFD packet to send [01:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:17]Read from MH i2c: E2 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 FD 00 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 FD 00 5C 42 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 E8 [01:27:17]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 [01:27:17]wFMCommunicate OK [01:27:17]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [01:27:17]SAM_PROTO_ProcessDocument remain to read = 20 [01:27:17]wFMCommunicate request_size=4 [01:27:17]MH_SAM_APDU [01:27:17]CAPDU: 80 17 00 00 [01:27:17]Write to MH i2c: E2 08 00 5D 42 80 17 00 00 00 00 00 00 1F [01:27:17]Write i2c OK [01:27:17]MH_I2C_Read... [01:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [01:27:17]Read from MH i2c: E2 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 17 00 [01:27:17]MH_I2C_Read... [01:27:17]Read from MH i2c: E2 17 00 5D 42 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 76 60 87 6D 8F 20 90 00 D9 [01:27:17]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 76 60 87 6D 8F 20 90 00 [01:27:17]wFMCommunicate OK [01:27:17]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [01:27:17]SAM_PROTO_ProcessDocument done [01:27:17]1209 (1) - 1.0 - номер версии ФФД [01:27:17]1041 (16) - 0000000000875083 - номер ФМ [01:27:17]1040 (4) - 111549 - номер ФД [01:27:17]1038 (4) - 388 - номер смены [01:27:18]1118 (4) - 297 - количество кассовых чеков за смену [01:27:18]1111 (4) - 299 - общее количество ФД за смену [01:27:18]1194 (1197) - счетчики итогов смены [01:27:18] 1134 (4) - 297 - количество чеков со всеми признаками расчетов [01:27:18] 1129 (158) - счетчики операций «приход» [01:27:18] 1135 (4) - 297 - количество чеков по признаку расчетов [01:27:18] 1201 (4) - 238352.92 - общая итоговая сумма в чеках [01:27:18] 1136 (4) - 203487.00 - итоговая сумма в чеках наличными [01:27:18] 1138 (3) - 34865.92 - итоговая сумма в чеках безналичными [01:27:18] 1024 (123) - суммы налогов [01:27:18] 1006 (9) - суммы НДС [01:27:18] 1010 (1) - 0% - код ставки НДС [01:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [01:27:18] 1006 (12) - суммы НДС [01:27:18] 1010 (1) - 12% - код ставки НДС [01:27:18] 1011 (3) - 25323.85 - сумма НДС по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 0% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (12) - суммы НСП [01:27:18] 1014 (1) - 1% - код ставки НСП [01:27:18] 1015 (3) - 2110.04 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 2% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 3% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 5% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 0,50% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 1,50% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1130 (141) - счетчики операций «возврат прихода» [01:27:18] 1135 (4) - 0 - количество чеков по признаку расчетов [01:27:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:27:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:27:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:27:18] 1024 (117) - суммы налогов [01:27:18] 1006 (9) - суммы НДС [01:27:18] 1010 (1) - 0% - код ставки НДС [01:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [01:27:18] 1006 (9) - суммы НДС [01:27:18] 1010 (1) - 12% - код ставки НДС [01:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 0% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 1% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 2% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 3% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 5% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 0,50% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 1,50% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1131 (141) - счетчики операций «расход» [01:27:18] 1135 (4) - 0 - количество чеков по признаку расчетов [01:27:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:27:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:27:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:27:18] 1024 (117) - суммы налогов [01:27:18] 1006 (9) - суммы НДС [01:27:18] 1010 (1) - 0% - код ставки НДС [01:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [01:27:18] 1006 (9) - суммы НДС [01:27:18] 1010 (1) - 12% - код ставки НДС [01:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 0% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 1% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 2% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 3% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 5% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 0,50% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 1,50% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1132 (141) - счетчики операций «возврат расхода» [01:27:18] 1135 (4) - 0 - количество чеков по признаку расчетов [01:27:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [01:27:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [01:27:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [01:27:18] 1024 (117) - суммы налогов [01:27:18] 1006 (9) - суммы НДС [01:27:18] 1010 (1) - 0% - код ставки НДС [01:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [01:27:18] 1006 (9) - суммы НДС [01:27:18] 1010 (1) - 12% - код ставки НДС [01:27:18] 1011 (0) - 0.00 - сумма НДС по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 0% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 1% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 2% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 3% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 5% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 0,50% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1007 (9) - суммы НСП [01:27:18] 1014 (1) - 1,50% - код ставки НСП [01:27:18] 1015 (0) - 0.00 - сумма НСП по ставке [01:27:18] 1133 (588) - - счетчики коррекции - не используются [01:27:18]1077 (6) - 130156961042208 - ФПД [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1209 (04B9) [01:27:18]Malloc new data [01:27:18]Processing tag 1041 (0411) [01:27:18]Processing tag 1040 (0410) [01:27:18]Malloc new data [01:27:18]Processing tag 1038 (040E) [01:27:18]Malloc new data [01:27:18]Processing tag 1118 (045E) [01:27:18]Malloc new data [01:27:18]Processing tag 1111 (0457) [01:27:18]Malloc new data [01:27:18]Processing tag 1194 (04AA) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1134 (046E) [01:27:18]Malloc new data [01:27:18]Processing tag 1129 (0469) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1135 (046F) [01:27:18]Malloc new data [01:27:18]Processing tag 1201 (04B1) [01:27:18]Malloc new data [01:27:18]Processing tag 1136 (0470) [01:27:18]Malloc new data [01:27:18]Processing tag 1138 (0472) [01:27:18]Malloc new data [01:27:18]Processing tag 1024 (0400) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1006 (03EE) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1010 (03F2) [01:27:18]Malloc new data [01:27:18]Processing tag 1011 (03F3) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1006 (03EE) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1010 (03F2) [01:27:18]Malloc new data [01:27:18]Processing tag 1011 (03F3) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]SetTLVBufToDocument err=0 [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1130 (046A) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1135 (046F) [01:27:18]Malloc new data [01:27:18]Processing tag 1201 (04B1) [01:27:18]Malloc new data [01:27:18]Processing tag 1136 (0470) [01:27:18]Malloc new data [01:27:18]Processing tag 1138 (0472) [01:27:18]Malloc new data [01:27:18]Processing tag 1024 (0400) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1006 (03EE) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1010 (03F2) [01:27:18]Malloc new data [01:27:18]Processing tag 1011 (03F3) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1006 (03EE) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1010 (03F2) [01:27:18]Malloc new data [01:27:18]Processing tag 1011 (03F3) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]SetTLVBufToDocument err=0 [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1131 (046B) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1135 (046F) [01:27:18]Malloc new data [01:27:18]Processing tag 1201 (04B1) [01:27:18]Malloc new data [01:27:18]Processing tag 1136 (0470) [01:27:18]Malloc new data [01:27:18]Processing tag 1138 (0472) [01:27:18]Malloc new data [01:27:18]Processing tag 1024 (0400) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1006 (03EE) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1010 (03F2) [01:27:18]Malloc new data [01:27:18]Processing tag 1011 (03F3) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1006 (03EE) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1010 (03F2) [01:27:18]Malloc new data [01:27:18]Processing tag 1011 (03F3) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]SetTLVBufToDocument err=0 [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1132 (046C) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1135 (046F) [01:27:18]Malloc new data [01:27:18]Processing tag 1201 (04B1) [01:27:18]Malloc new data [01:27:18]Processing tag 1136 (0470) [01:27:18]Malloc new data [01:27:18]Processing tag 1138 (0472) [01:27:18]Malloc new data [01:27:18]Processing tag 1024 (0400) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1006 (03EE) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1010 (03F2) [01:27:18]Malloc new data [01:27:18]Processing tag 1011 (03F3) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1006 (03EE) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1010 (03F2) [01:27:18]Malloc new data [01:27:18]Processing tag 1011 (03F3) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:18]SetTLVBufToDocument [01:27:18]Processing tag 1014 (03F6) [01:27:18]Malloc new data [01:27:18]Processing tag 1015 (03F7) [01:27:18]Malloc new data [01:27:18]SetTLVBufToDocument err=0 [01:27:18]Processing tag 1007 (03EF) [01:27:18]Load OK [01:27:19]SetTLVBufToDocument [01:27:19]Processing tag 1014 (03F6) [01:27:19]Malloc new data [01:27:19]Processing tag 1015 (03F7) [01:27:19]Malloc new data [01:27:19]SetTLVBufToDocument err=0 [01:27:19]Processing tag 1007 (03EF) [01:27:19]Load OK [01:27:19]SetTLVBufToDocument [01:27:19]Processing tag 1014 (03F6) [01:27:19]Malloc new data [01:27:19]Processing tag 1015 (03F7) [01:27:19]Malloc new data [01:27:19]SetTLVBufToDocument err=0 [01:27:19]Processing tag 1007 (03EF) [01:27:19]Load OK [01:27:19]SetTLVBufToDocument [01:27:19]Processing tag 1014 (03F6) [01:27:19]Malloc new data [01:27:19]Processing tag 1015 (03F7) [01:27:19]Malloc new data [01:27:19]SetTLVBufToDocument err=0 [01:27:19]Processing tag 1007 (03EF) [01:27:19]Load OK [01:27:19]SetTLVBufToDocument [01:27:19]Processing tag 1014 (03F6) [01:27:19]Malloc new data [01:27:19]Processing tag 1015 (03F7) [01:27:19]Malloc new data [01:27:19]SetTLVBufToDocument err=0 [01:27:19]SetTLVBufToDocument err=0 [01:27:19]SetTLVBufToDocument err=0 [01:27:19]Processing tag 1133 (046D) [01:27:19]Malloc new data [01:27:19]SetTLVBufToDocument err=0 [01:27:19]Processing tag 1077 (0435) [01:27:19]Malloc new data [01:27:19]SetTLVBufToDocument err=0 [01:27:19]Malloc new data [01:27:19]SAM_PROTO_GetFMData [01:27:19]wFMCommunicate request_size=4 [01:27:19]MH_SAM_APDU [01:27:19]CAPDU: 80 13 03 00 [01:27:19]Write to MH i2c: E2 08 00 5E 42 80 13 03 00 00 00 00 00 1F [01:27:19]Write i2c OK [01:27:19]MH_I2C_Read... [01:27:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:27:19]Read from MH i2c: E2 [01:27:19]MH_I2C_Read... [01:27:19]Read from MH i2c: E2 FD 00 [01:27:19]MH_I2C_Read... [01:27:19]Read from MH i2c: E2 FD 00 5E 42 00 BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 D2 [01:27:19]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:27:20]wFMCommunicate OK [01:27:20]wFMCommunicate request_size=4 [01:27:20]MH_SAM_APDU [01:27:20]CAPDU: 80 17 00 00 [01:27:20]Write to MH i2c: E2 08 00 5F 42 80 17 00 00 00 00 00 00 21 [01:27:20]Write i2c OK [01:27:20]MH_I2C_Read... [01:27:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:20]Read from MH i2c: E2 [01:27:20]MH_I2C_Read... [01:27:20]Read from MH i2c: E2 FD 00 [01:27:20]MH_I2C_Read... [01:27:20]Read from MH i2c: E2 FD 00 5F 42 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [01:27:20]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:27:20]wFMCommunicate OK [01:27:20]wFMCommunicate request_size=4 [01:27:20]MH_SAM_APDU [01:27:20]CAPDU: 80 17 00 00 [01:27:20]Write to MH i2c: E2 08 00 60 42 80 17 00 00 00 00 00 00 22 [01:27:20]Write i2c OK [01:27:20]MH_I2C_Read... [01:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:21]Read from MH i2c: E2 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 FD 00 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 FD 00 60 42 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 54 [01:27:21]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [01:27:21]wFMCommunicate OK [01:27:21]wFMCommunicate request_size=4 [01:27:21]MH_SAM_APDU [01:27:21]CAPDU: 80 17 00 00 [01:27:21]Write to MH i2c: E2 08 00 61 42 80 17 00 00 00 00 00 00 23 [01:27:21]Write i2c OK [01:27:21]MH_I2C_Read... [01:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:27:21]Read from MH i2c: E2 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 FD 00 [01:27:21]MH_I2C_Read... [01:27:21]Read from MH i2c: E2 FD 00 61 42 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 9A [01:27:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [01:27:22]wFMCommunicate OK [01:27:22]wFMCommunicate request_size=4 [01:27:22]MH_SAM_APDU [01:27:22]CAPDU: 80 17 00 00 [01:27:22]Write to MH i2c: E2 08 00 62 42 80 17 00 00 00 00 00 00 24 [01:27:22]OFD Sender: No OFD packet to send [01:27:22]Write i2c OK [01:27:22]MH_I2C_Read... [01:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:27:22]Read from MH i2c: E2 [01:27:22]MH_I2C_Read... [01:27:22]Read from MH i2c: E2 DA 00 [01:27:22]MH_I2C_Read... [01:27:22]Read from MH i2c: E2 DA 00 62 42 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 05 [01:27:22]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:27:23]wFMCommunicate OK [01:27:23]SAM_PROTO_GetFMData done [01:27:23]Malloc new data [01:27:23]Malloc new data [01:27:23]Malloc new data [01:27:23]Malloc new data [01:27:23]KKMLoadAndSignCloseShiftData err=0 [01:27:23]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Амантуров Р. 20.06.2024 01:27 Смена: 388 РНМ: 0000000000092771 ЗНМ: 0300000198 СНО: Общий режим Чеков за смену: 297 ФД за смену: 299 Всего чеков: 297 ИТОГИ ПРИХОД Чеков: 297 Общий итог: 238352.92 Итого наличными: 203487.00 Итого безнал.: 34865.92 НДС 0% : 0.00 НДС 12% : 25323.85 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2110.04 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 203487.00 НС Приход: 83879061.59 НС Возвр.Прихода: 201.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 111549 ФМ: 0000000000875083 ФПД: 130156961042208 [01:27:23]StoreToDocumentArchive [01:27:23]shift 388 fd 111549 [01:27:23]save to /storage/0388/doc_00111549 [01:27:23]save last doc name /storage/0388/doc_00111549 to /storage/kkm_last_doc_name [01:27:23]save OK [01:27:23]Clear old archive folders... [01:27:23]Remove dir /storage/0266 [01:27:23]opendir ok [01:27:23]file . [01:27:23]file .. [01:27:23]file doc_1718846825 [01:27:23]remove file /storage/0266/doc_1718846825 [01:27:23]remove dir /storage/0266 [01:27:23]NVStorageSaveData kkm_registers [01:27:23]File name is /storage/kkm_registers [01:27:23]Write 24 bytes [01:27:23]NVStorageSaveData done [01:27:23]NVStorageSaveData kkm_registers [01:27:23]File name is /storage/kkm_registers [01:27:23]Write 24 bytes [01:27:23]NVStorageSaveData done [01:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [01:27:23]tlvbuf is 0112F090 [01:27:23]SAM_PROTO_ClearQueue [01:27:23]wFMCommunicate request_size=4 [01:27:23]MH_SAM_APDU [01:27:23]CAPDU: 80 09 00 00 [01:27:23]Write to MH i2c: E2 08 00 63 42 80 09 00 00 00 00 00 00 17 [01:27:23]Write i2c OK [01:27:23]MH_I2C_Read... [01:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:27:23]Read from MH i2c: E2 [01:27:23]MH_I2C_Read... [01:27:23]Read from MH i2c: E2 03 00 [01:27:23]MH_I2C_Read... [01:27:23]Read from MH i2c: E2 03 00 63 42 00 90 00 19 [01:27:23]RAPDU: 90 00 [01:27:23]wFMCommunicate OK [01:27:23]SAM_PROTO_ClearQueue done [01:27:23]KKMCreateOFDPacket [01:27:23]OFDProtocolAddRootSTLVToBuf [01:27:23]FM_MakeSignedData [01:27:23]FM_MakeSignedData [01:27:23]SAM_PROTO_SignData [01:27:23]wFMCommunicate request_size=4 [01:27:23]MH_SAM_APDU [01:27:23]CAPDU: 80 0D 01 02 [01:27:23]Write to MH i2c: E2 08 00 64 42 80 0D 01 02 00 00 00 00 1F [01:27:23]Write i2c OK [01:27:23]MH_I2C_Read... [01:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:27:23]Read from MH i2c: E2 [01:27:23]MH_I2C_Read... [01:27:23]Read from MH i2c: E2 03 00 [01:27:23]MH_I2C_Read... [01:27:23]Read from MH i2c: E2 03 00 64 42 00 90 00 1A [01:27:23]RAPDU: 90 00 [01:27:23]wFMCommunicate OK [01:27:23]wFMCommunicate request_size=255 [01:27:23]MH_SAM_APDU [01:27:23]CAPDU: 80 0D 02 02 FA 05 00 68 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F4 03 04 00 84 85 73 66 0E 04 04 00 84 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 D8 04 6E 04 04 00 29 01 00 00 69 04 A5 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 [01:27:23]Write to MH i2c: E2 02 01 65 42 80 0D 02 02 FA 00 05 00 68 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F4 03 04 00 84 85 73 66 0E 04 04 00 84 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 D8 04 6E 04 04 00 29 01 00 00 69 04 A5 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 00 E6 [01:27:24]Write i2c OK [01:27:24]MH_I2C_Read... [01:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:24]Read from MH i2c: E2 [01:27:24]MH_I2C_Read... [01:27:24]Read from MH i2c: E2 03 00 [01:27:24]MH_I2C_Read... [01:27:24]Read from MH i2c: E2 03 00 65 42 00 90 00 1B [01:27:24]RAPDU: 90 00 [01:27:24]wFMCommunicate OK [01:27:24]wFMCommunicate request_size=255 [01:27:24]MH_SAM_APDU [01:27:24]CAPDU: 80 0D 02 02 FA 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 3C 38 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:27:24]Write to MH i2c: E2 02 01 66 42 80 0D 02 02 FA 00 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 3C 38 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 00 00 07 [01:27:24]Write i2c OK [01:27:24]MH_I2C_Read... [01:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:25]Read from MH i2c: E2 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 03 00 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 03 00 66 42 00 90 00 1C [01:27:25]RAPDU: 90 00 [01:27:25]wFMCommunicate OK [01:27:25]wFMCommunicate request_size=255 [01:27:25]MH_SAM_APDU [01:27:25]CAPDU: 80 0D 02 02 FA 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:27:25]Write to MH i2c: E2 02 01 67 42 80 0D 02 02 FA 00 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 00 00 E9 [01:27:25]Write i2c OK [01:27:25]MH_I2C_Read... [01:27:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:25]Read from MH i2c: E2 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 03 00 [01:27:25]MH_I2C_Read... [01:27:25]Read from MH i2c: E2 03 00 67 42 00 90 00 1D [01:27:25]RAPDU: 90 00 [01:27:25]wFMCommunicate OK [01:27:25]wFMCommunicate request_size=255 [01:27:25]MH_SAM_APDU [01:27:25]CAPDU: 80 0D 02 02 FA 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 [01:27:26]Write to MH i2c: E2 02 01 68 42 80 0D 02 02 FA 00 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 00 00 E6 [01:27:26]Write i2c OK [01:27:26]MH_I2C_Read... [01:27:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:26]Read from MH i2c: E2 [01:27:26]MH_I2C_Read... [01:27:26]Read from MH i2c: E2 03 00 [01:27:26]MH_I2C_Read... [01:27:26]Read from MH i2c: E2 03 00 68 42 00 90 00 1E [01:27:26]RAPDU: 90 00 [01:27:26]wFMCommunicate OK [01:27:26]wFMCommunicate request_size=255 [01:27:26]MH_SAM_APDU [01:27:26]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 [01:27:26]Write to MH i2c: E2 02 01 69 42 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 BE [01:27:27]Write i2c OK [01:27:27]MH_I2C_Read... [01:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:27]Read from MH i2c: E2 [01:27:27]MH_I2C_Read... [01:27:27]Read from MH i2c: E2 03 00 [01:27:27]MH_I2C_Read... [01:27:27]Read from MH i2c: E2 03 00 69 42 00 90 00 1F [01:27:27]RAPDU: 90 00 [01:27:27]wFMCommunicate OK [01:27:27]wFMCommunicate request_size=143 [01:27:27]MH_SAM_APDU [01:27:27]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BD OFD Sender: No OFD packet to send [01:27:27]B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 76 60 87 6D 8F 20 [01:27:27]Write to MH i2c: E2 92 00 6A 42 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BD B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 76 60 87 6D 8F 20 00 00 4A [01:27:27]Write i2c OK [01:27:27]MH_I2C_Read... [01:27:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:27:28]Read from MH i2c: E2 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: E2 03 00 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: E2 03 00 6A 42 00 90 00 20 [01:27:28]RAPDU: 90 00 [01:27:28]wFMCommunicate OK [01:27:28]wFMCommunicate request_size=4 [01:27:28]MH_SAM_APDU [01:27:28]CAPDU: 80 0D 03 02 [01:27:28]Write to MH i2c: E2 08 00 6B 42 80 0D 03 02 00 00 00 00 28 [01:27:28]Write i2c OK [01:27:28]MH_I2C_Read... [01:27:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:27:28]Read from MH i2c: E2 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: E2 0B 00 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: E2 0B 00 6B 42 00 B2 23 95 75 AE 0B 42 78 90 00 7B [01:27:28]RAPDU: B2 23 95 75 AE 0B 42 78 90 00 [01:27:28]wFMCommunicate OK [01:27:28]SAM_PROTO_SignData done [01:27:28]FM_MakeSignedData done [01:27:28]CreateOFDProtocolMessage [01:27:28]wFMCommunicate request_size=4 [01:27:28]MH_SAM_APDU [01:27:28]CAPDU: 80 11 00 00 [01:27:28]Write to MH i2c: E2 08 00 6C 42 80 11 00 00 00 00 00 00 28 [01:27:28]Write i2c OK [01:27:28]MH_I2C_Read... [01:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:27:28]Read from MH i2c: E2 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: E2 17 00 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: E2 17 00 6C 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7A [01:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:27:28]wFMCommunicate OK [01:27:28]CreateOFDProtocolMessage done [01:27:28]OFDSenderStorePacket 111549 [01:27:28]StoreOFDPacket docnum=111549 [01:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 7C 05 00 00 C3 58 74 05 F4 72 5A 05 01 00 05 00 68 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F4 03 04 00 84 85 73 66 0E 04 04 00 84 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 D8 04 6E 04 04 00 29 01 00 00 69 04 A5 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 BD B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 76 60 87 6D 8F 20 B2 23 95 75 AE 0B 42 78 [01:27:28]CheckFolder [01:27:28]dirname=/storage/ofd_packets [01:27:28]CheckFolder done [01:27:28]ProducePacketName [01:27:28]name=ofd_packets/00111549 [01:27:28]NVStorageSaveData ofd_packets/00111549 [01:27:28]File name is /storage/ofd_packets/00111549 [01:27:28]Write 1434 bytes [01:27:28]NVStorageSaveData done [01:27:28]OFDSenderStorePacket done [01:27:28]KKMCreateOFDPacket done [01:27:28]NVStorageSaveData kkm_last_timestamp [01:27:28]File name is /storage/kkm_last_timestamp [01:27:28]Write 4 bytes [01:27:28]NVStorageSaveData done [01:27:28]ExternCall_PrintAddStr [01:27:28]wPrintStart [01:27:28]Write to MH i2c: 01 00 00 6D 42 AF [01:27:28]Write i2c OK [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: 01 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: 01 07 00 [01:27:28]MH_I2C_Read... [01:27:28]Read from MH i2c: 01 07 00 6D 42 00 00 00 00 00 FF 0F C4 [01:27:28]RasterBufferAndPrint [01:27:28]line Отчет о закрытии смены [01:27:28]line ФФД: 1.0 [01:27:28]line ИНН: 02508201610067 [01:27:28]line Кассир: Амантуров Р. [01:27:28]line 20.06.2024 01:27 [01:27:28]line Смена: 388 [01:27:28]line РНМ: 0000000000092771 [01:27:28]line ЗНМ: 0300000198 [01:27:28]line СНО: Общий режим [01:27:28]line Чеков за смену: 297 [01:27:28]line ФД за смену: 299 [01:27:28]line Всего чеков: 297 [01:27:28]line ИТОГИ ПРИХОД [01:27:28]line Чеков: 297 [01:27:28]line Общий итог: 238352.92 [01:27:28]line Итого наличными: 203487.00 [01:27:28]line Итого безнал.: 34865.92 [01:27:28]line НДС 0% : 0.00 [01:27:28]line НДС 12% : 25323.85 [01:27:28]line НСП 0% : 0.00 [01:27:28]line НСП 1,50% : 0.00 [01:27:28]line НСП 0,50% : 0.00 [01:27:28]line НСП 5% : 0.00 [01:27:28]line НСП 3% : 0.00 [01:27:28]line НСП 2% : 0.00 [01:27:28]line НСП 1% : 2110.04 [01:27:28]line ИТОГИ ВОЗВРАТ ПРИХОДА [01:27:28]line Чеков: 0 [01:27:28]line Общий итог: 0.00 [01:27:28]line Итого наличными: 0.00 [01:27:28]line Итого безнал.: 0.00 [01:27:28]line НДС 0% : 0.00 [01:27:28]line НДС 12% : 0.00 [01:27:28]line НСП 0% : 0.00 [01:27:28]line НСП 1,50% : 0.00 [01:27:28]line НСП 0,50% : 0.00 [01:27:28]line НСП 5% : 0.00 [01:27:28]line НСП 3% : 0.00 [01:27:28]line НСП 2% : 0.00 [01:27:28]line НСП 1% : 0.00 [01:27:28]line ИТОГИ РАСХОД [01:27:28]line Чеков: 0 [01:27:28]line Общий итог: 0.00 [01:27:28]line Итого наличными: 0.00 [01:27:28]line Итого безнал.: 0.00 [01:27:28]line НДС 0% : 0.00 [01:27:28]line НДС 12% : 0.00 [01:27:28]line НСП 0% : 0.00 [01:27:28]line НСП 1,50% : 0.00 [01:27:28]line НСП 0,50% : 0.00 [01:27:28]line НСП 5% : 0.00 [01:27:28]line НСП 3% : 0.00 [01:27:28]line НСП 2% : 0.00 [01:27:28]line НСП 1% : 0.00 [01:27:28]line ИТОГИ ВОЗВРАТ РАСХОДА [01:27:28]line Чеков: 0 [01:27:28]line Общий итог: 0.00 [01:27:28]line Итого наличными: 0.00 [01:27:28]line Итого безнал.: 0.00 [01:27:28]line НДС 0% : 0.00 [01:27:28]line НДС 12% : 0.00 [01:27:28]line НСП 0% : 0.00 [01:27:28]line НСП 1,50% : 0.00 [01:27:28]line НСП 0,50% : 0.00 [01:27:28]line НСП 5% : 0.00 [01:27:28]line НСП 3% : 0.00 [01:27:28]line НСП 2% : 0.00 [01:27:28]line НСП 1% : 0.00 [01:27:28]line Сумма внесений: 0.00 [01:27:28]line Сумма выплат: 0.00 [01:27:28]line Нал. в кассе: 203487.00 [01:27:28]line НС Приход: 83879061.59 [01:27:28]line НС Возвр.Прихода: 201.00 [01:27:28]line НС Расход: 0.00 [01:27:28]line НС Возвр.Расхода: 0.00 [01:27:28]line ФД: 111549 [01:27:28]line ФМ: 0000000000875083 [01:27:28]line ФПД: 130156961042208 [01:27:28]OFD Sender: Processing packet 111549 [packets to send 38, broken 37] [01:27:28]ProducePacketName [01:27:28]name=ofd_packets/00111549 [01:27:28]OFD Sender: To server: pG, [01:27:28]CommunicateWithHost lk.salyk.kg:30040 [01:27:28]ConnectInit lk.salyk.kg [01:27:28]written 0, free lines is 4095 [01:27:29]Connected sock=10 [01:27:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 7C 05 00 00 C3 58 74 05 F4 72 5A 05 01 00 05 00 68 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 17 00 D0 90 D0 BC D0 B0 D0 BD D1 82 D1 83 D1 80 D0 BE D0 B2 20 D0 A0 2E 20 F4 03 04 00 84 85 73 66 0E 04 04 00 84 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 AA 04 D8 04 6E 04 04 00 29 01 00 00 69 04 A5 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 Write to MH i2c: F6 01 03 00 01 00 00 BD 02 F7 03 01 00 00 EF 03 0A 00 F6 42 03 FF 01 [01:27:29]00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 Write i2c OK [01:27:29]00 MH_I2C_Read... [01:27:29]00 Read from MH i2c: 00 01 00 [01:27:29]MH_I2C_Read... [01:27:29]B1 04 01 00 00 70 04 01 Read from MH i2c: 00 01 00 07 72 00 04 [01:27:29]01 00 00 00 04 7E 00 EE 03 0A 00 MH_I2C_Read... [01:27:29]F2 03 01 00 00 F3 03 01 Read from MH i2c: 00 01 00 07 EE 00 03 BD 0A 42 00 00 F2 00 03 00 01 00 00 00 01 4E F3 0B 03 5F 01 [01:27:30]00 RasterBufferAndPrint [01:27:30]00 line [01:27:30]EF line [01:27:30]03 line [01:27:30]0A line [01:27:30]00 line [01:27:30]F6 03 written 0, free lines is 3116 [01:27:30]01 00 00 F7 03 01 00 00 EF 03 MH_Cut [01:27:30]0A Write to MH i2c: 00 D1 F6 01 03 00 01 C4 00 42 06 F7 03 01 00 00 EF 03 0A 00 F6 01 03 D8 01 [01:27:30]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 Write i2c OK [01:27:30]00 MH_I2C_Read... [01:27:30]00 Read from MH i2c: 00 D1 00 [01:27:30]79 04 8D 00 6F 04 04 00 00 00 00 MH_I2C_Read... [01:27:30]00 Read from MH i2c: B1 D1 04 01 00 00 00 [01:27:30]70 MH_I2C_Read... [01:27:30]04 Read from MH i2c: 00 D1 00 01 00 C4 42 00 D7 [01:27:30]Write to MH i2c: 72 01 04 00 00 00 00 C5 00 42 04 07 75 00 EE 03 09 00 F2 03 01 00 00 [01:27:30]F3 03 00 00 EE 03 09 00 F2 03 Write i2c OK [01:27:30]01 MH_I2C_Read... [01:27:30]00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [01:27:30]00 *** Partial cut [01:27:30]00 B1 04 00 00 70 04 *** CUTSNS_PIN = 1 [01:27:31]00 00 *** CUTSNS_PIN = 0 [01:27:31]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BD B3 01 00 11 04 *** Brake cut motor [01:27:31]10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 76 60 87 6D 8F 20 B2 23 95 75 AE 0B 42 78 [01:27:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B4 B5 47 00 09 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BD B3 01 00 F4 03 04 00 EC 1C 73 66 *** Stop cut motor [01:27:31]B6 *** Cut end [01:27:31]04 01 00 00 6F BC E9 42 72 0C 3C F0 [01:27:31]CommunicateWithHost err = 0 [01:27:31]CheckOFDResponse [01:27:31]1017 (14) - 77093643461234 [01:27:31]1041 (16) - 0000000000875083 [01:27:31]1040 (4) - 111549 [01:27:31]1012 (4) - 19.06.2024 18:01 [01:27:31]1206 (1) - 0 [01:27:31]OFD Sender: Remove packet 111549 [01:27:31]ProducePacketName [01:27:31]name=ofd_packets/00111549 [01:27:31]NVStorageDeleteData [01:27:31]Read from MH i2c: 01 [01:27:31]MH_I2C_Read... [01:27:31]Read from MH i2c: 01 07 00 [01:27:31]MH_I2C_Read... [01:27:31]Read from MH i2c: 01 07 00 C5 42 00 00 00 00 00 FF 0F 1C [01:27:31]process_action close_shift done [01:27:31]requested_data is exist [01:27:31]produce_requested_data [01:27:31]requested_item fd.num is exist - process it [01:27:31]SAM_PROTO_GetFieldsCounters [01:27:31]wFMCommunicate request_size=4 [01:27:31]MH_SAM_APDU [01:27:31]CAPDU: 80 13 00 00 [01:27:31]Write to MH i2c: E2 08 00 C6 42 80 13 00 00 00 00 00 00 84 [01:27:31]Write i2c OK [01:27:31]MH_I2C_Read... [01:27:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:27:31]Read from MH i2c: E2 [01:27:31]MH_I2C_Read... [01:27:31]Read from MH i2c: E2 62 00 [01:27:31]MH_I2C_Read... [01:27:31]Read from MH i2c: E2 62 00 C6 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [01:27: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:27:31]wFMCommunicate OK [01:27:31]SAM_PROTO_GetFieldsCounters done [01:27:31]requested_item shift.num is exist - process it [01:27:31]requested_item shift.opened is exist - process it [01:27:31]req_shift_opened [01:27:31]FM_GetShiftState [01:27:31]SAM_PROTO_GetShiftState [01:27:31]wFMCommunicate request_size=4 [01:27:31]MH_SAM_APDU [01:27:31]CAPDU: 80 13 01 00 [01:27:31]Write to MH i2c: E2 08 00 C7 42 80 13 01 00 00 00 00 00 86 [01:27:31]Write i2c OK [01:27:31]MH_I2C_Read... [01:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:32]Read from MH i2c: E2 [01:27:32]MH_I2C_Read... [01:27:32]Read from MH i2c: E2 0E 00 [01:27:32]MH_I2C_Read... [01:27:32]Read from MH i2c: E2 0E 00 C7 42 00 09 00 00 00 00 00 00 00 00 00 00 90 00 91 [01:27:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 OFD Sender: No OFD packet to send [01:27:32]00 [01:27:32]wFMCommunicate OK [01:27:32]SAM_PROTO_GetShiftState done [01:27:32]FM_GetShiftState done [01:27:32]req_shift_opened done [01:27:32]requested_item shift.open_date is exist - process it [01:27:32]req_shift_open_date [01:27:32]FM_GetShiftState [01:27:32]SAM_PROTO_GetShiftState [01:27:32]wFMCommunicate request_size=4 [01:27:32]MH_SAM_APDU [01:27:32]CAPDU: 80 13 01 00 [01:27:32]Write to MH i2c: E2 08 00 C8 42 80 13 01 00 00 00 00 00 87 [01:27:32]Write i2c OK [01:27:32]MH_I2C_Read... [01:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:27:32]Read from MH i2c: E2 [01:27:32]MH_I2C_Read... [01:27:32]Read from MH i2c: E2 0E 00 [01:27:32]MH_I2C_Read... [01:27:32]Read from MH i2c: E2 0E 00 C8 42 00 09 00 00 00 00 00 00 00 00 00 00 90 00 92 [01:27:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:27:32]wFMCommunicate OK [01:27:32]SAM_PROTO_GetShiftState done [01:27:32]FM_GetShiftState done [01:27:32]req_shift_open_date done [01:27:32]produce_requested_data done [01:27:32]produce_requested_data return {"fd.num":111549,"shift.num":388,"shift.opened":0,"shift.open_date":0} [01:27:32]process_action_free close_shift [01:27:32]json_value_free [01:27:32]json_value_free done [01:27:32]process_json_proto returns [01:27:32]Send response to host [01:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":111549,"shift.num":388,"shift.opened":0,"shift.open_date":0}}} [01:27:32]free response buf [01:27:32]execute_script done [01:27:32]execute_script returns [01:27:32]free content buf [01:27:32]Sock 7.Close socket [01:27:32]Sock 7.Thread stoped [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32: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:45]accept exits with 9 [01:33:45]New connection [01:33:45]New thread 3067321700 created [01:33:45]Thread 3067465060 joined [01:33:45]Waiting for new connection... [01:33:45] Sock 9.Parse request [01:33:45]Sock 9.Check first char [01:33:45]Sock 9.First char is OK [01:33:45]request: POST /json_proto HTTP/1.0 [01:33:45]Method: POST [01:33:45]URL: /json_proto [01:33:45]Method is POST - this is cgi request [01:33:45]url: /json_proto [01:33:45]query_string will be loaded in cgi processing [01:33:45]execute_cgi json_proto POST (null) [01:33:45]execute_cgi path=json_proto method=POST [01:33:45]POST find Content-Length [01:33:45]Host: 172.17.59.68:8080 [01:33:45]Content-Length: 215 [01:33:45]Content-Type: application/json [01:33:45] [01:33:45]POST finish read [01:33:45]Found Content-Length = 215 [01:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:33:45]execute_script... [01:33:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:33:45]POST & json_proto [01:33:45]process_json_proto [01:33:45]json parsed OK: [01:33:45]protocol is kg_v1.0 [01:33:45]action value=get_value [01:33:45]process_action get_value [01:33:45]cmd_get_value [01:33:45]process_action get_value done [01:33:45]requested_data is exist [01:33:45]produce_requested_data [01:33:45]requested_item kkm.sn is exist - process it [01:33:45]requested_item kkm.ver is exist - process it [01:33:45]requested_item fm.sn is exist - process it [01:33:45]wFMCommunicate request_size=4 [01:33:45]MH_SAM_APDU [01:33:45]CAPDU: 80 11 00 00 [01:33:45]Write to MH i2c: E2 08 00 C9 42 80 11 00 00 00 00 00 00 85 [01:33:45]Write i2c OK [01:33:45]MH_I2C_Read... [01:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:33:45]Read from MH i2c: E2 [01:33:45]MH_I2C_Read... [01:33:45]Read from MH i2c: E2 17 00 [01:33:45]MH_I2C_Read... [01:33:45]Read from MH i2c: E2 17 00 C9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 D7 [01:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:33:45]wFMCommunicate OK [01:33:45]requested_item fd.num is exist - process it [01:33:45]SAM_PROTO_GetFieldsCounters [01:33:45]wFMCommunicate request_size=4 [01:33:45]MH_SAM_APDU [01:33:45]CAPDU: 80 13 00 00 [01:33:45]Write to MH i2c: E2 08 00 CA 42 80 13 00 00 00 00 00 00 88 [01:33:45]Write i2c OK [01:33:45]MH_I2C_Read... [01:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:33:45]Read from MH i2c: E2 [01:33:45]MH_I2C_Read... [01:33:45]Read from MH i2c: E2 62 00 [01:33:45]MH_I2C_Read... [01:33:45]Read from MH i2c: E2 62 00 CA 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [01:33:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BD B3 01 00 0E 04 04 00 84 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [01:33:45]wFMCommunicate OK [01:33:45]SAM_PROTO_GetFieldsCounters done [01:33:45]requested_item shift.num is exist - process it [01:33:45]requested_item shift.opened is exist - process it [01:33:45]req_shift_opened [01:33:45]FM_GetShiftState [01:33:45]SAM_PROTO_GetShiftState [01:33:45]wFMCommunicate request_size=4 [01:33:45]MH_SAM_APDU [01:33:45]CAPDU: 80 13 01 00 [01:33:45]Write to MH i2c: E2 08 00 CB 42 80 13 01 00 00 00 00 00 8A [01:33:45]Write i2c OK [01:33:45]MH_I2C_Read... [01:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:33:45]Read from MH i2c: E2 [01:33:45]MH_I2C_Read... [01:33:45]Read from MH i2c: E2 0E 00 [01:33:45]MH_I2C_Read... [01:33:45]Read from MH i2c: E2 0E 00 CB 42 00 09 00 00 00 00 00 00 00 00 00 00 90 00 95 [01:33:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:33:45]wFMCommunicate OK [01:33:45]SAM_PROTO_GetShiftState done [01:33:45]FM_GetShiftState done [01:33:45]req_shift_opened done [01:33:45]requested_item shift.open_date is exist - process it [01:33:45]req_shift_open_date [01:33:45]FM_GetShiftState [01:33:45]SAM_PROTO_GetShiftState [01:33:45]wFMCommunicate request_size=4 [01:33:45]MH_SAM_APDU [01:33:45]CAPDU: 80 13 01 00 [01:33:45]Write to MH i2c: E2 08 00 CC 42 80 13 01 00 00 00 00 00 8B [01:33:45]Write i2c OK [01:33:45]MH_I2C_Read... [01:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:33:45]Read from MH i2c: E2 [01:33:45]MH_I2C_Read... [01:33:45]Read from MH i2c: E2 0E 00 [01:33:45]MH_I2C_Read... [01:33:45]Read from MH i2c: E2 0E 00 CC 42 00 09 00 00 00 00 00 00 00 00 00 00 90 00 96 [01:33:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:33:45]wFMCommunicate OK [01:33:45]SAM_PROTO_GetShiftState done [01:33:45]FM_GetShiftState done [01:33:45]req_shift_open_date done [01:33:45]produce_requested_data done [01:33:45]produce_requested_data return {"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111549,"shift.num":388,"shift.opened":0,"shift.open_date":0} [01:33:45]process_action_free get_value [01:33:45]json_value_free [01:33:45]json_value_free done [01:33:45]process_json_proto returns [01:33:45]Send response to host [01:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000198","kkm.ver":"001","fm.sn":"0000000000875083","fd.num":111549,"shift.num":388,"shift.opened":0,"shift.open_date":0}}} [01:33:45]free response buf [01:33:45]execute_script done [01:33:45]execute_script returns [01:33:45]free content buf [01:33:45]Sock 9.Close socket [01:33:45]Sock 9.Thread stoped [01:33:45]accept exits with 7 [01:33:45]New connection [01:33:45]New thread 3067465060 created [01:33:45]Thread 3067321700 joined [01:33:45]Waiting for new connection... [01:33:45] Sock 7.Parse request [01:33:45]Sock 7.Check first char [01:33:45]Sock 7.First char is OK [01:33:45]request: POST /json_proto HTTP/1.0 [01:33:45]Method: POST [01:33:45]URL: /json_proto [01:33:45]Method is POST - this is cgi request [01:33:45]url: /json_proto [01:33:45]query_string will be loaded in cgi processing [01:33:45]execute_cgi json_proto POST (null) [01:33:45]execute_cgi path=json_proto method=POST [01:33:45]POST find Content-Length [01:33:45]Host: 172.17.59.68:8080 [01:33:45]Content-Length: 331 [01:33:45]Content-Type: application/json [01:33:45] [01:33:45]POST finish read [01:33:45]Found Content-Length = 331 [01:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:33:45]execute_script... [01:33:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:33:45]POST & json_proto [01:33:45]process_json_proto [01:33:45]json parsed OK: [01:33:45]protocol is kg_v1.0 [01:33:45]action value=get_value [01:33:45]process_action get_value [01:33:45]cmd_get_value [01:33:45]process_action get_value done [01:33:45]requested_data is exist [01:33:45]produce_requested_data [01:33:45]requested_item fm.sale.total is exist - process it [01:33:45]SAM_PROTO_GetFMData [01:33:45]wFMCommunicate request_size=4 [01:33:45]MH_SAM_APDU [01:33:45]CAPDU: 80 13 03 00 [01:33:45]Write to MH i2c: E2 08 00 CD 42 80 13 03 00 00 00 00 00 8E [01:33:45]Write i2c OK [01:33:45]MH_I2C_Read... [01:33:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:33:46]Read from MH i2c: E2 [01:33:46]MH_I2C_Read... [01:33:46]Read from MH i2c: E2 FD 00 [01:33:46]MH_I2C_Read... [01:33:46]Read from MH i2c: E2 FD 00 CD 42 00 BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 41 [01:33:46]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:33:46]wFMCommunicate OK [01:33:46]wFMCommunicate request_size=4 [01:33:46]MH_SAM_APDU [01:33:46]CAPDU: 80 17 00 00 [01:33:46]Write to MH i2c: E2 08 00 CE 42 80 17 00 00 00 00 00 00 90 [01:33:46]Write i2c OK [01:33:46]MH_I2C_Read... [01:33:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:46]Read from MH i2c: E2 [01:33:46]MH_I2C_Read... [01:33:46]Read from MH i2c: E2 FD 00 [01:33:46]MH_I2C_Read... [01:33:46]Read from MH i2c: E2 FD 00 CE 42 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E4 [01:33:46]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:33:46]wFMCommunicate OK [01:33:46]wFMCommunicate request_size=4 [01:33:46]MH_SAM_APDU [01:33:46]CAPDU: 80 17 00 00 [01:33:46]Write to MH i2c: E2 08 00 CF 42 80 17 00 00 00 00 00 00 91 [01:33:46]Write i2c OK [01:33:46]MH_I2C_Read... [01:33:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:46]Read from MH i2c: E2 [01:33:46]MH_I2C_Read... [01:33:46]Read from MH i2c: E2 FD 00 [01:33:46]MH_I2C_Read... [01:33:46]Read from MH i2c: E2 FD 00 CF 42 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 C3 [01:33:46]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [01:33:46]wFMCommunicate OK [01:33:46]wFMCommunicate request_size=4 [01:33:46]MH_SAM_APDU [01:33:46]CAPDU: 80 17 00 00 [01:33:46]Write to MH i2c: E2 08 00 D0 42 80 17 00 00 00 00 00 00 92 [01:33:46]Write i2c OK [01:33:46]MH_I2C_Read... [01:33:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:47]Read from MH i2c: E2 [01:33:47]MH_I2C_Read... [01:33:47]Read from MH i2c: E2 FD 00 [01:33:47]MH_I2C_Read... [01:33:47]Read from MH i2c: E2 FD 00 D0 42 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 09 [01:33:47]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [01:33:47]wFMCommunicate OK [01:33:47]wFMCommunicate request_size=4 [01:33:47]MH_SAM_APDU [01:33:47]CAPDU: 80 17 00 00 [01:33:47]Write to MH i2c: E2 08 00 D1 42 80 17 00 00 00 00 00 00 93 [01:33:47]Write i2c OK [01:33:47]MH_I2C_Read... [01:33:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:33:47]Read from MH i2c: E2 [01:33:47]MH_I2C_Read... [01:33:47]Read from MH i2c: E2 DA 00 [01:33:47]MH_I2C_Read... [01:33:47]Read from MH i2c: E2 DA 00 D1 42 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 74 [01:33:47]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:33:47]wFMCommunicate OK [01:33:47]SAM_PROTO_GetFMData done [01:33:47]requested_item fm.sale_refund.total is exist - process it [01:33:47]requested_item fm.buy.total is exist - process it [01:33:47]requested_item shift.sale.total is exist - process it [01:33:47]SAM_PROTO_GetShiftData [01:33:47]wFMCommunicate request_size=4 [01:33:47]MH_SAM_APDU [01:33:47]CAPDU: 80 13 02 00 [01:33:47]Write to MH i2c: E2 08 00 D2 42 80 13 02 00 00 00 00 00 92 [01:33:47]Write i2c OK [01:33:47]MH_I2C_Read... [01:33:47]OFD Sender: No OFD packet to send [01:33:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:33:47]Read from MH i2c: E2 [01:33:47]MH_I2C_Read... [01:33:47]Read from MH i2c: E2 FD 00 [01:33:47]MH_I2C_Read... [01:33:47]Read from MH i2c: E2 FD 00 D2 42 00 B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 93 [01:33:47]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 29 01 00 00 69 04 9E 00 6F 04 04 00 29 01 00 00 B1 04 04 00 9C B2 6B 01 70 04 04 00 1C 7F 36 01 72 04 03 00 80 33 35 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 21 A4 26 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 3C 38 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 [01:33:47]wFMCommunicate OK [01:33:47]wFMCommunicate request_size=4 [01:33:47]MH_SAM_APDU [01:33:47]CAPDU: 80 17 00 00 [01:33:47]Write to MH i2c: E2 08 00 D3 42 80 17 00 00 00 00 00 00 95 [01:33:47]Write i2c OK [01:33:47]MH_I2C_Read... [01:33:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:48]Read from MH i2c: E2 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: E2 FD 00 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: E2 FD 00 D3 42 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 AE [01:33:48]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 [01:33:48]wFMCommunicate OK [01:33:48]wFMCommunicate request_size=4 [01:33:48]MH_SAM_APDU [01:33:48]CAPDU: 80 17 00 00 [01:33:48]Write to MH i2c: E2 08 00 D4 42 80 17 00 00 00 00 00 00 96 [01:33:48]Write i2c OK [01:33:48]MH_I2C_Read... [01:33:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:48]Read from MH i2c: E2 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: E2 FD 00 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: E2 FD 00 D4 42 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 4F [01:33:48]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 [01:33:48]wFMCommunicate OK [01:33:48]wFMCommunicate request_size=4 [01:33:48]MH_SAM_APDU [01:33:48]CAPDU: 80 17 00 00 [01:33:48]Write to MH i2c: E2 08 00 D5 42 80 17 00 00 00 00 00 00 97 [01:33:48]Write i2c OK [01:33:48]MH_I2C_Read... [01:33:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:48]Read from MH i2c: E2 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: E2 FD 00 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: E2 FD 00 D5 42 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 0F [01:33:48]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 [01:33:48]wFMCommunicate OK [01:33:48]wFMCommunicate request_size=4 [01:33:48]MH_SAM_APDU [01:33:48]CAPDU: 80 17 00 00 [01:33:48]Write to MH i2c: E2 08 00 D6 42 80 17 00 00 00 00 00 00 98 [01:33:48]Write i2c OK [01:33:48]MH_I2C_Read... [01:33:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [01:33:48]Read from MH i2c: E2 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: E2 CE 00 [01:33:48]MH_I2C_Read... [01:33:48]Read from MH i2c: E2 CE 00 D6 42 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 7D [01:33:48]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 [01:33:49]wFMCommunicate OK [01:33:49]SAM_PROTO_GetShiftData done [01:33:49]requested_item shift.sale.total_cash is exist - process it [01:33:49]requested_item shift.sale_refund.total is exist - process it [01:33:49]requested_item shift.sale_refund.total_cash is exist - process it [01:33:49]requested_item shift.buy.total is exist - process it [01:33:49]requested_item shift.buy.total_cash is exist - process it [01:33:49]produce_requested_data done [01:33:49]produce_requested_data return {"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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} [01:33:49]process_action_free get_value [01:33:49]json_value_free [01:33:49]json_value_free done [01:33:49]process_json_proto returns [01:33:49]Send response to host [01:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83879061.59,"fm.sale_refund.total":201.00,"fm.buy.total":0.00,"shift.sale.total":238352.92,"shift.sale.total_cash":203487.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}}} [01:33:49]free response buf [01:33:49]execute_script done [01:33:49]execute_script returns [01:33:49]free content buf [01:33:49]Sock 7.Close socket [01:33:49]Sock 7.Thread stoped [01:33:49]accept exits with 9 [01:33:49]New connection [01:33:49]New thread 3067321700 created [01:33:49]Thread 3067465060 joined [01:33:49]Waiting for new connection... [01:33:49] Sock 9.Parse request [01:33:49]Sock 9.Check first char [01:33:49]Sock 9.First char is OK [01:33:49]request: POST /json_proto HTTP/1.0 [01:33:49]Method: POST [01:33:49]URL: /json_proto [01:33:49]Method is POST - this is cgi request [01:33:49]url: /json_proto [01:33:49]query_string will be loaded in cgi processing [01:33:49]execute_cgi json_proto POST (null) [01:33:49]execute_cgi path=json_proto method=POST [01:33:49]POST find Content-Length [01:33:49]Host: 172.17.59.68:8080 [01:33:49]Content-Length: 277 [01:33:49]Content-Type: application/json [01:33:49] [01:33:49]POST finish read [01:33:49]Found Content-Length = 277 [01:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:33:49]execute_script... [01:33:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0435\u0439\u0448\u0435\u043D\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:33:49]POST & json_proto [01:33:49]process_json_proto [01:33:49]json parsed OK: [01:33:49]protocol is kg_v1.0 [01:33:49]action value=open_shift [01:33:49]process_action open_shift [01:33:49]cmd_open_shift [01:33:49]MH_GetDate [01:33:49]Write to MH i2c: F0 00 00 D7 42 08 [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: F0 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: F0 09 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: F0 09 00 D7 42 00 0F 87 73 66 BC EC 60 65 ED [01:33:49]GetLastDocTimeStamp 1718846852 [01:33:49]current date 1718847247 [01:33:49]FM_GetShiftState [01:33:49]SAM_PROTO_GetShiftState [01:33:49]wFMCommunicate request_size=4 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 13 01 00 [01:33:49]Write to MH i2c: E2 08 00 D8 42 80 13 01 00 00 00 00 00 97 [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:33:49]Read from MH i2c: E2 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 0E 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 0E 00 D8 42 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A2 [01:33:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [01:33:49]wFMCommunicate OK [01:33:49]SAM_PROTO_GetShiftState done [01:33:49]FM_GetShiftState done [01:33:49]KKMCreateOpenShiftDocument [01:33:49]Load OK [01:33:49]Malloc new data [01:33:49]MH_GetDate [01:33:49]Write to MH i2c: F0 00 00 D9 42 0A [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: F0 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: F0 09 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: F0 09 00 D9 42 00 0F 87 73 66 BC EC 60 65 EF [01:33:49]Malloc new data [01:33:49]KKMCreateOpenShiftDocument OK [01:33:49]KKMSetOpenShiftData OK [01:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=210 [01:33:49]tlvbuf is 010389F0 [01:33:49]KKMLoadAndSignOpenShiftData [01:33:49]SAM_PROTO_ProcessDocument [01:33:49]wFMCommunicate request_size=9 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 15 01 00 04 02 00 D2 00 [01:33:49]Write to MH i2c: E2 0C 00 DA 42 80 15 01 00 04 00 02 00 D2 00 00 00 77 [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [01:33:49]Read from MH i2c: E2 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 DA 42 00 90 00 90 [01:33:49]RAPDU: 90 00 [01:33:49]wFMCommunicate OK [01:33:49]wFMCommunicate request_size=23 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [01:33:49]Write to MH i2c: E2 1A 00 DB 42 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 92 [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:33:49]Read from MH i2c: E2 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 DB 42 00 90 00 91 [01:33:49]RAPDU: 90 00 [01:33:49]wFMCommunicate OK [01:33:49]wFMCommunicate request_size=36 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 [01:33:49]Write to MH i2c: E2 27 00 DC 42 80 15 02 00 1F 00 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 00 00 3F [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:33:49]Read from MH i2c: E2 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 DC 42 00 90 00 92 [01:33:49]RAPDU: 90 00 [01:33:49]wFMCommunicate OK [01:33:49]wFMCommunicate request_size=93 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 15 02 00 58 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 [01:33:49]Write to MH i2c: E2 60 00 DD 42 80 15 02 00 58 00 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 00 00 6A [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:33:49]Read from MH i2c: E2 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 DD 42 00 90 00 93 [01:33:49]RAPDU: 90 00 [01:33:49]wFMCommunicate OK [01:33:49]wFMCommunicate request_size=50 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [01:33:49]Write to MH i2c: E2 35 00 DE 42 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 1A [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:33:49]Read from MH i2c: E2 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 DE 42 00 90 00 94 [01:33:49]RAPDU: 90 00 [01:33:49]wFMCommunicate OK [01:33:49]wFMCommunicate request_size=13 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 15 02 00 08 F4 03 04 00 0F 87 73 66 [01:33:49]Write to MH i2c: E2 10 00 DF 42 80 15 02 00 08 00 F4 03 04 00 0F 87 73 66 00 00 1B [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:33:49]Read from MH i2c: E2 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 DF 42 00 90 00 95 [01:33:49]RAPDU: 90 00 [01:33:49]wFMCommunicate OK [01:33:49]wFMCommunicate request_size=25 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 [01:33:49]Write to MH i2c: E2 1C 00 E0 42 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 00 00 05 [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [01:33:49]Read from MH i2c: E2 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 [01:33:49]MH_I2C_Read... [01:33:49]Read from MH i2c: E2 03 00 E0 42 00 90 00 96 [01:33:49]RAPDU: 90 00 [01:33:49]wFMCommunicate OK [01:33:49]wFMCommunicate request_size=4 [01:33:49]MH_SAM_APDU [01:33:49]CAPDU: 80 15 03 00 [01:33:49]Write to MH i2c: E2 08 00 E1 42 80 15 03 00 00 00 00 00 A4 [01:33:49]Write i2c OK [01:33:49]MH_I2C_Read... [01:33:50]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [01:33:50]Read from MH i2c: E2 [01:33:50]MH_I2C_Read... [01:33:50]Read from MH i2c: E2 38 00 [01:33:50]MH_I2C_Read... [01:33:50]Read from MH i2c: E2 38 00 E1 42 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B3 01 00 0E 04 04 00 85 01 00 00 35 04 06 00 BB 60 BF D1 A8 0D 90 00 C7 [01:33:50]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BE B3 01 00 0E 04 04 00 85 01 00 00 35 04 06 00 BB 60 BF D1 A8 0D 90 00 [01:33:50]wFMCommunicate OK [01:33:50]SAM_PROTO_ProcessDocument answer len = 51 [01:33:50]SAM_PROTO_ProcessDocument done [01:33:50]SetTLVBufToDocument [01:33:50]Processing tag 1209 (04B9) [01:33:50]Malloc new data [01:33:50]Processing tag 1041 (0411) [01:33:50]Processing tag 1040 (0410) [01:33:50]Malloc new data [01:33:50]Processing tag 1038 (040E) [01:33:50]Malloc new data [01:33:50]Processing tag 1077 (0435) [01:33:50]Malloc new data [01:33:50]SetTLVBufToDocument err=0 [01:33:50]KKMLoadAndSignOpenShiftData store KKM data [01:33:50]KKMLoadAndSignOpenShiftData err=0 [01:33:50]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Бейшенбеков А. Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 Место: АЗС № 65 "Партнер Нефть" 20.06.2024 01:34 Смена: 389 РНМ: 0000000000092771 ЗНМ: 0300000198 ФД: 111550 ФМ: 0000000000875083 ФПД: 206024209442829 [01:33:50]StoreToDocumentArchive [01:33:50]shift 389 fd 111550 [01:33:50]Create dir for shift 0389 [01:33:50]save to /storage/0389/doc_00111550 [01:33:50]save last doc name /storage/0389/doc_00111550 to /storage/kkm_last_doc_name [01:33:50]save OK [01:33:50]Clear old archive folders... [01:33:50]Remove dir /storage/0388 [01:33:50]opendir ok [01:33:50]file . [01:33:50]file .. [01:33:50]file doc_00111251 [01:33:50]remove file /storage/0388/doc_00111251 [01:33:50]file doc_00111252 [01:33:50]remove file /storage/0388/doc_00111252 [01:33:50]file doc_00111253 [01:33:50]remove file /storage/0388/doc_00111253 [01:33:50]file doc_00111254 [01:33:50]remove file /storage/0388/doc_00111254 [01:33:50]file doc_00111255 [01:33:50]remove file /storage/0388/doc_00111255 [01:33:50]file doc_00111256 [01:33:50]remove file /storage/0388/doc_00111256 [01:33:50]file doc_00111257 [01:33:50]remove file /storage/0388/doc_00111257 [01:33:50]file doc_00111258 [01:33:50]remove file /storage/0388/doc_00111258 [01:33:50]file doc_00111259 [01:33:50]remove file /storage/0388/doc_00111259 [01:33:50]file doc_00111260 [01:33:50]remove file /storage/0388/doc_00111260 [01:33:50]file doc_00111261 [01:33:50]remove file /storage/0388/doc_00111261 [01:33:50]file doc_00111262 [01:33:50]remove file /storage/0388/doc_00111262 [01:33:50]file doc_00111263 [01:33:50]remove file /storage/0388/doc_00111263 [01:33:50]file doc_00111264 [01:33:50]remove file /storage/0388/doc_00111264 [01:33:50]file doc_00111265 [01:33:50]remove file /storage/0388/doc_00111265 [01:33:50]file doc_00111266 [01:33:50]remove file /storage/0388/doc_00111266 [01:33:50]file doc_00111267 [01:33:50]remove file /storage/0388/doc_00111267 [01:33:50]file doc_00111268 [01:33:50]remove file /storage/0388/doc_00111268 [01:33:50]file doc_00111269 [01:33:50]remove file /storage/0388/doc_00111269 [01:33:50]file doc_00111270 [01:33:50]remove file /storage/0388/doc_00111270 [01:33:50]file doc_00111271 [01:33:50]remove file /storage/0388/doc_00111271 [01:33:50]file doc_00111272 [01:33:50]remove file /storage/0388/doc_00111272 [01:33:50]file doc_00111273 [01:33:50]remove file /storage/0388/doc_00111273 [01:33:50]file doc_00111274 [01:33:50]remove file /storage/0388/doc_00111274 [01:33:50]file doc_00111275 [01:33:50]remove file /storage/0388/doc_00111275 [01:33:50]file doc_00111276 [01:33:50]remove file /storage/0388/doc_00111276 [01:33:50]file doc_00111277 [01:33:50]remove file /storage/0388/doc_00111277 [01:33:50]file doc_00111278 [01:33:50]remove file /storage/0388/doc_00111278 [01:33:50]file doc_00111279 [01:33:50]remove file /storage/0388/doc_00111279 [01:33:50]file doc_00111280 [01:33:50]remove file /storage/0388/doc_00111280 [01:33:50]file doc_00111281 [01:33:50]remove file /storage/0388/doc_00111281 [01:33:50]file doc_00111282 [01:33:50]remove file /storage/0388/doc_00111282 [01:33:50]file doc_00111283 [01:33:50]remove file /storage/0388/doc_00111283 [01:33:50]file doc_00111284 [01:33:50]remove file /storage/0388/doc_00111284 [01:33:50]file doc_00111285 [01:33:50]remove file /storage/0388/doc_00111285 [01:33:50]file doc_00111286 [01:33:50]remove file /storage/0388/doc_00111286 [01:33:50]file doc_00111287 [01:33:50]remove file /storage/0388/doc_00111287 [01:33:50]file doc_00111288 [01:33:50]remove file /storage/0388/doc_00111288 [01:33:50]file doc_00111289 [01:33:50]remove file /storage/0388/doc_00111289 [01:33:50]file doc_00111290 [01:33:50]remove file /storage/0388/doc_00111290 [01:33:50]file doc_00111291 [01:33:50]remove file /storage/0388/doc_00111291 [01:33:50]file doc_00111292 [01:33:50]remove file /storage/0388/doc_00111292 [01:33:50]file doc_00111293 [01:33:50]remove file /storage/0388/doc_00111293 [01:33:50]file doc_00111294 [01:33:50]remove file /storage/0388/doc_00111294 [01:33:50]file doc_00111295 [01:33:50]remove file /storage/0388/doc_00111295 [01:33:50]file doc_00111296 [01:33:50]remove file /storage/0388/doc_00111296 [01:33:50]file doc_00111297 [01:33:50]remove file /storage/0388/doc_00111297 [01:33:50]file doc_00111298 [01:33:50]remove file /storage/0388/doc_00111298 [01:33:50]file doc_00111299 [01:33:50]remove file /storage/0388/doc_00111299 [01:33:50]file doc_00111300 [01:33:50]remove file /storage/0388/doc_00111300 [01:33:50]file doc_00111301 [01:33:50]remove file /storage/0388/doc_00111301 [01:33:50]file doc_00111302 [01:33:50]remove file /storage/0388/doc_00111302 [01:33:50]file doc_00111303 [01:33:50]remove file /storage/0388/doc_00111303 [01:33:50]file doc_00111304 [01:33:50]remove file /storage/0388/doc_00111304 [01:33:50]file doc_00111305 [01:33:50]remove file /storage/0388/doc_00111305 [01:33:50]file doc_00111306 [01:33:50]remove file /storage/0388/doc_00111306 [01:33:50]file doc_00111307 [01:33:50]remove file /storage/0388/doc_00111307 [01:33:50]file doc_00111308 [01:33:50]remove file /storage/0388/doc_00111308 [01:33:50]file doc_00111309 [01:33:50]remove file /storage/0388/doc_00111309 [01:33:50]file doc_00111310 [01:33:50]remove file /storage/0388/doc_00111310 [01:33:50]file doc_00111311 [01:33:50]remove file /storage/0388/doc_00111311 [01:33:50]file doc_00111312 [01:33:50]remove file /storage/0388/doc_00111312 [01:33:50]file doc_00111313 [01:33:50]remove file /storage/0388/doc_00111313 [01:33:50]file doc_00111314 [01:33:50]remove file /storage/0388/doc_00111314 [01:33:50]file doc_00111315 [01:33:50]remove file /storage/0388/doc_00111315 [01:33:50]file doc_00111316 [01:33:50]remove file /storage/0388/doc_00111316 [01:33:50]file doc_00111317 [01:33:50]remove file /storage/0388/doc_00111317 [01:33:50]file doc_00111318 [01:33:50]remove file /storage/0388/doc_00111318 [01:33:50]file doc_00111319 [01:33:50]remove file /storage/0388/doc_00111319 [01:33:50]file doc_00111320 [01:33:50]remove file /storage/0388/doc_00111320 [01:33:50]file doc_00111321 [01:33:50]remove file /storage/0388/doc_00111321 [01:33:50]file doc_00111322 [01:33:50]remove file /storage/0388/doc_00111322 [01:33:50]file doc_00111323 [01:33:50]remove file /storage/0388/doc_00111323 [01:33:50]file doc_00111324 [01:33:50]remove file /storage/0388/doc_00111324 [01:33:50]file doc_00111325 [01:33:50]remove file /storage/0388/doc_00111325 [01:33:50]file doc_00111326 [01:33:50]remove file /storage/0388/doc_00111326 [01:33:50]file doc_00111327 [01:33:50]remove file /storage/0388/doc_00111327 [01:33:50]file doc_00111328 [01:33:50]remove file /storage/0388/doc_00111328 [01:33:50]file doc_00111329 [01:33:50]remove file /storage/0388/doc_00111329 [01:33:50]file doc_00111330 [01:33:50]remove file /storage/0388/doc_00111330 [01:33:50]file doc_00111331 [01:33:50]remove file /storage/0388/doc_00111331 [01:33:50]file doc_00111332 [01:33:50]remove file /storage/0388/doc_00111332 [01:33:50]file doc_00111333 [01:33:50]remove file /storage/0388/doc_00111333 [01:33:50]file doc_00111334 [01:33:50]remove file /storage/0388/doc_00111334 [01:33:50]file doc_00111335 [01:33:50]remove file /storage/0388/doc_00111335 [01:33:50]file doc_00111336 [01:33:50]remove file /storage/0388/doc_00111336 [01:33:50]file doc_00111337 [01:33:50]remove file /storage/0388/doc_00111337 [01:33:50]file doc_00111338 [01:33:50]remove file /storage/0388/doc_00111338 [01:33:50]file doc_00111339 [01:33:50]remove file /storage/0388/doc_00111339 [01:33:50]file doc_00111340 [01:33:50]remove file /storage/0388/doc_00111340 [01:33:50]file doc_00111341 [01:33:50]remove file /storage/0388/doc_00111341 [01:33:50]file doc_00111342 [01:33:50]remove file /storage/0388/doc_00111342 [01:33:50]file doc_00111343 [01:33:50]remove file /storage/0388/doc_00111343 [01:33:50]file doc_00111344 [01:33:50]remove file /storage/0388/doc_00111344 [01:33:50]file doc_00111345 [01:33:50]remove file /storage/0388/doc_00111345 [01:33:50]file doc_00111346 [01:33:50]remove file /storage/0388/doc_00111346 [01:33:50]file doc_00111347 [01:33:50]remove file /storage/0388/doc_00111347 [01:33:50]file doc_00111348 [01:33:50]remove file /storage/0388/doc_00111348 [01:33:50]file doc_00111349 [01:33:50]remove file /storage/0388/doc_00111349 [01:33:50]file doc_00111350 [01:33:50]remove file /storage/0388/doc_00111350 [01:33:50]file doc_00111351 [01:33:50]remove file /storage/0388/doc_00111351 [01:33:50]file doc_00111352 [01:33:50]remove file /storage/0388/doc_00111352 [01:33:50]file doc_00111353 [01:33:50]remove file /storage/0388/doc_00111353 [01:33:50]file doc_00111354 [01:33:50]remove file /storage/0388/doc_00111354 [01:33:50]file doc_00111355 [01:33:50]remove file /storage/0388/doc_00111355 [01:33:50]file doc_00111356 [01:33:50]remove file /storage/0388/doc_00111356 [01:33:50]file doc_00111357 [01:33:50]remove file /storage/0388/doc_00111357 [01:33:50]file doc_00111358 [01:33:50]remove file /storage/0388/doc_00111358 [01:33:50]file doc_00111359 [01:33:50]remove file /storage/0388/doc_00111359 [01:33:50]file doc_00111360 [01:33:50]remove file /storage/0388/doc_00111360 [01:33:50]file doc_00111361 [01:33:50]remove file /storage/0388/doc_00111361 [01:33:50]file doc_00111362 [01:33:50]remove file /storage/0388/doc_00111362 [01:33:50]file doc_00111363 [01:33:50]remove file /storage/0388/doc_00111363 [01:33:50]file doc_00111364 [01:33:50]remove file /storage/0388/doc_00111364 [01:33:50]file doc_00111365 [01:33:50]remove file /storage/0388/doc_00111365 [01:33:50]file doc_00111366 [01:33:50]remove file /storage/0388/doc_00111366 [01:33:50]file doc_00111367 [01:33:50]remove file /storage/0388/doc_00111367 [01:33:50]file doc_00111368 [01:33:50]remove file /storage/0388/doc_00111368 [01:33:50]file doc_00111369 [01:33:50]remove file /storage/0388/doc_00111369 [01:33:50]file doc_00111370 [01:33:50]remove file /storage/0388/doc_00111370 [01:33:50]file doc_00111371 [01:33:50]remove file /storage/0388/doc_00111371 [01:33:50]file doc_00111372 [01:33:50]remove file /storage/0388/doc_00111372 [01:33:50]file doc_00111373 [01:33:50]remove file /storage/0388/doc_00111373 [01:33:50]file doc_00111374 [01:33:50]remove file /storage/0388/doc_00111374 [01:33:50]file doc_00111375 [01:33:50]remove file /storage/0388/doc_00111375 [01:33:50]file doc_00111376 [01:33:50]remove file /storage/0388/doc_00111376 [01:33:50]file doc_00111377 [01:33:50]remove file /storage/0388/doc_00111377 [01:33:50]file doc_00111378 [01:33:50]remove file /storage/0388/doc_00111378 [01:33:50]file doc_00111379 [01:33:50]remove file /storage/0388/doc_00111379 [01:33:50]file doc_00111380 [01:33:50]remove file /storage/0388/doc_00111380 [01:33:50]file doc_00111381 [01:33:50]remove file /storage/0388/doc_00111381 [01:33:50]file doc_00111382 [01:33:50]remove file /storage/0388/doc_00111382 [01:33:50]file doc_00111383 [01:33:50]remove file /storage/0388/doc_00111383 [01:33:50]file doc_00111384 [01:33:50]remove file /storage/0388/doc_00111384 [01:33:50]file doc_00111385 [01:33:50]remove file /storage/0388/doc_00111385 [01:33:50]file doc_00111386 [01:33:50]remove file /storage/0388/doc_00111386 [01:33:50]file doc_00111387 [01:33:50]remove file /storage/0388/doc_00111387 [01:33:50]file doc_00111388 [01:33:50]remove file /storage/0388/doc_00111388 [01:33:50]file doc_00111389 [01:33:50]remove file /storage/0388/doc_00111389 [01:33:50]file doc_00111390 [01:33:50]remove file /storage/0388/doc_00111390 [01:33:50]file doc_00111391 [01:33:50]remove file /storage/0388/doc_00111391 [01:33:50]file doc_00111392 [01:33:50]remove file /storage/0388/doc_00111392 [01:33:50]file doc_00111393 [01:33:50]remove file /storage/0388/doc_00111393 [01:33:50]file doc_00111394 [01:33:50]remove file /storage/0388/doc_00111394 [01:33:50]file doc_00111395 [01:33:50]remove file /storage/0388/doc_00111395 [01:33:50]file doc_00111396 [01:33:50]remove file /storage/0388/doc_00111396 [01:33:50]file doc_00111397 [01:33:50]remove file /storage/0388/doc_00111397 [01:33:50]file doc_00111398 [01:33:50]remove file /storage/0388/doc_00111398 [01:33:50]file doc_00111399 [01:33:50]remove file /storage/0388/doc_00111399 [01:33:50]file doc_00111400 [01:33:50]remove file /storage/0388/doc_00111400 [01:33:50]file doc_00111401 [01:33:50]remove file /storage/0388/doc_00111401 [01:33:50]file doc_00111402 [01:33:50]remove file /storage/0388/doc_00111402 [01:33:50]file doc_00111403 [01:33:50]remove file /storage/0388/doc_00111403 [01:33:50]file doc_00111404 [01:33:50]remove file /storage/0388/doc_00111404 [01:33:50]file doc_00111405 [01:33:50]remove file /storage/0388/doc_00111405 [01:33:50]file doc_00111406 [01:33:50]remove file /storage/0388/doc_00111406 [01:33:50]file doc_00111407 [01:33:50]remove file /storage/0388/doc_00111407 [01:33:50]file doc_00111408 [01:33:50]remove file /storage/0388/doc_00111408 [01:33:50]file doc_00111409 [01:33:50]remove file /storage/0388/doc_00111409 [01:33:50]file doc_00111410 [01:33:50]remove file /storage/0388/doc_00111410 [01:33:50]file doc_00111411 [01:33:50]remove file /storage/0388/doc_00111411 [01:33:50]file doc_00111412 [01:33:50]remove file /storage/0388/doc_00111412 [01:33:50]file doc_00111413 [01:33:50]remove file /storage/0388/doc_00111413 [01:33:50]file doc_00111414 [01:33:51]remove file /storage/0388/doc_00111414 [01:33:51]file doc_00111415 [01:33:51]remove file /storage/0388/doc_00111415 [01:33:51]file doc_00111416 [01:33:51]remove file /storage/0388/doc_00111416 [01:33:51]file doc_00111417 [01:33:51]remove file /storage/0388/doc_00111417 [01:33:51]file doc_00111418 [01:33:51]remove file /storage/0388/doc_00111418 [01:33:51]file doc_00111419 [01:33:51]remove file /storage/0388/doc_00111419 [01:33:51]file doc_00111420 [01:33:51]remove file /storage/0388/doc_00111420 [01:33:51]file doc_00111421 [01:33:51]remove file /storage/0388/doc_00111421 [01:33:51]file doc_00111422 [01:33:51]remove file /storage/0388/doc_00111422 [01:33:51]file doc_00111423 [01:33:51]remove file /storage/0388/doc_00111423 [01:33:51]file doc_00111424 [01:33:51]remove file /storage/0388/doc_00111424 [01:33:51]file doc_00111425 [01:33:51]remove file /storage/0388/doc_00111425 [01:33:51]file doc_00111426 [01:33:51]remove file /storage/0388/doc_00111426 [01:33:51]file doc_00111427 [01:33:51]remove file /storage/0388/doc_00111427 [01:33:51]file doc_00111428 [01:33:51]remove file /storage/0388/doc_00111428 [01:33:51]file doc_00111429 [01:33:51]remove file /storage/0388/doc_00111429 [01:33:51]file doc_00111430 [01:33:51]remove file /storage/0388/doc_00111430 [01:33:51]file doc_00111431 [01:33:51]remove file /storage/0388/doc_00111431 [01:33:51]file doc_00111432 [01:33:51]remove file /storage/0388/doc_00111432 [01:33:51]file doc_00111433 [01:33:51]remove file /storage/0388/doc_00111433 [01:33:51]file doc_00111434 [01:33:51]remove file /storage/0388/doc_00111434 [01:33:51]file doc_00111435 [01:33:51]remove file /storage/0388/doc_00111435 [01:33:51]file doc_00111436 [01:33:51]remove file /storage/0388/doc_00111436 [01:33:51]file doc_00111437 [01:33:51]remove file /storage/0388/doc_00111437 [01:33:51]file doc_00111438 [01:33:51]remove file /storage/0388/doc_00111438 [01:33:51]file doc_00111439 [01:33:51]remove file /storage/0388/doc_00111439 [01:33:51]file doc_00111440 [01:33:51]remove file /storage/0388/doc_00111440 [01:33:51]file doc_00111441 [01:33:51]remove file /storage/0388/doc_00111441 [01:33:51]file doc_00111442 [01:33:51]remove file /storage/0388/doc_00111442 [01:33:51]file doc_00111443 [01:33:51]remove file /storage/0388/doc_00111443 [01:33:51]file doc_00111444 [01:33:51]remove file /storage/0388/doc_00111444 [01:33:51]file doc_00111445 [01:33:51]remove file /storage/0388/doc_00111445 [01:33:51]file doc_00111446 [01:33:51]remove file /storage/0388/doc_00111446 [01:33:51]file doc_00111447 [01:33:51]remove file /storage/0388/doc_00111447 [01:33:51]file doc_00111448 [01:33:51]remove file /storage/0388/doc_00111448 [01:33:51]file doc_00111449 [01:33:51]remove file /storage/0388/doc_00111449 [01:33:51]file doc_00111450 [01:33:51]remove file /storage/0388/doc_00111450 [01:33:51]file doc_00111451 [01:33:51]remove file /storage/0388/doc_00111451 [01:33:51]file doc_00111452 [01:33:51]remove file /storage/0388/doc_00111452 [01:33:51]file doc_00111453 [01:33:51]remove file /storage/0388/doc_00111453 [01:33:51]file doc_00111454 [01:33:51]remove file /storage/0388/doc_00111454 [01:33:51]file doc_00111455 [01:33:51]remove file /storage/0388/doc_00111455 [01:33:51]file doc_00111456 [01:33:51]remove file /storage/0388/doc_00111456 [01:33:51]file doc_00111457 [01:33:51]remove file /storage/0388/doc_00111457 [01:33:51]file doc_00111458 [01:33:51]remove file /storage/0388/doc_00111458 [01:33:51]file doc_00111459 [01:33:51]remove file /storage/0388/doc_00111459 [01:33:51]file doc_00111460 [01:33:51]remove file /storage/0388/doc_00111460 [01:33:51]file doc_00111461 [01:33:51]remove file /storage/0388/doc_00111461 [01:33:51]file doc_00111462 [01:33:51]remove file /storage/0388/doc_00111462 [01:33:51]file doc_00111463 [01:33:51]remove file /storage/0388/doc_00111463 [01:33:51]file doc_00111464 [01:33:51]remove file /storage/0388/doc_00111464 [01:33:51]file doc_00111465 [01:33:51]remove file /storage/0388/doc_00111465 [01:33:51]file doc_00111466 [01:33:51]remove file /storage/0388/doc_00111466 [01:33:51]file doc_00111467 [01:33:51]remove file /storage/0388/doc_00111467 [01:33:51]file doc_00111468 [01:33:51]remove file /storage/0388/doc_00111468 [01:33:51]file doc_00111469 [01:33:51]remove file /storage/0388/doc_00111469 [01:33:51]file doc_00111470 [01:33:51]remove file /storage/0388/doc_00111470 [01:33:51]file doc_00111471 [01:33:51]remove file /storage/0388/doc_00111471 [01:33:51]file doc_00111472 [01:33:51]remove file /storage/0388/doc_00111472 [01:33:51]file doc_00111473 [01:33:51]remove file /storage/0388/doc_00111473 [01:33:51]file doc_00111474 [01:33:51]remove file /storage/0388/doc_00111474 [01:33:51]file doc_00111475 [01:33:51]remove file /storage/0388/doc_00111475 [01:33:51]file doc_00111476 [01:33:51]remove file /storage/0388/doc_00111476 [01:33:51]file doc_00111477 [01:33:51]remove file /storage/0388/doc_00111477 [01:33:51]file doc_00111478 [01:33:51]remove file /storage/0388/doc_00111478 [01:33:51]file doc_00111479 [01:33:51]remove file /storage/0388/doc_00111479 [01:33:51]file doc_00111480 [01:33:51]remove file /storage/0388/doc_00111480 [01:33:51]file doc_00111481 [01:33:51]remove file /storage/0388/doc_00111481 [01:33:51]file doc_00111482 [01:33:51]remove file /storage/0388/doc_00111482 [01:33:51]file doc_00111483 [01:33:51]remove file /storage/0388/doc_00111483 [01:33:51]file doc_00111484 [01:33:51]remove file /storage/0388/doc_00111484 [01:33:51]file doc_00111485 [01:33:51]remove file /storage/0388/doc_00111485 [01:33:51]file doc_00111486 [01:33:51]remove file /storage/0388/doc_00111486 [01:33:51]file doc_00111487 [01:33:51]remove file /storage/0388/doc_00111487 [01:33:51]file doc_00111488 [01:33:51]remove file /storage/0388/doc_00111488 [01:33:51]file doc_00111489 [01:33:51]remove file /storage/0388/doc_00111489 [01:33:51]file doc_00111490 [01:33:51]remove file /storage/0388/doc_00111490 [01:33:51]file doc_00111491 [01:33:51]remove file /storage/0388/doc_00111491 [01:33:51]file doc_00111492 [01:33:51]remove file /storage/0388/doc_00111492 [01:33:51]file doc_00111493 [01:33:51]remove file /storage/0388/doc_00111493 [01:33:51]file doc_00111494 [01:33:51]remove file /storage/0388/doc_00111494 [01:33:51]file doc_00111495 [01:33:51]remove file /storage/0388/doc_00111495 [01:33:51]file doc_00111496 [01:33:51]remove file /storage/0388/doc_00111496 [01:33:51]file doc_00111497 [01:33:51]remove file /storage/0388/doc_00111497 [01:33:51]file doc_00111498 [01:33:51]remove file /storage/0388/doc_00111498 [01:33:51]file doc_00111499 [01:33:51]remove file /storage/0388/doc_00111499 [01:33:51]file doc_00111500 [01:33:51]remove file /storage/0388/doc_00111500 [01:33:51]file doc_00111501 [01:33:51]remove file /storage/0388/doc_00111501 [01:33:51]file doc_00111502 [01:33:51]remove file /storage/0388/doc_00111502 [01:33:51]file doc_00111503 [01:33:51]remove file /storage/0388/doc_00111503 [01:33:51]file doc_00111504 [01:33:51]remove file /storage/0388/doc_00111504 [01:33:51]file doc_00111505 [01:33:51]remove file /storage/0388/doc_00111505 [01:33:51]file doc_00111506 [01:33:51]remove file /storage/0388/doc_00111506 [01:33:51]file doc_00111507 [01:33:51]remove file /storage/0388/doc_00111507 [01:33:51]file doc_00111508 [01:33:51]remove file /storage/0388/doc_00111508 [01:33:51]file doc_00111509 [01:33:51]remove file /storage/0388/doc_00111509 [01:33:51]file doc_00111510 [01:33:51]remove file /storage/0388/doc_00111510 [01:33:51]file doc_00111511 [01:33:51]remove file /storage/0388/doc_00111511 [01:33:51]file doc_00111512 [01:33:51]remove file /storage/0388/doc_00111512 [01:33:51]file doc_00111513 [01:33:51]remove file /storage/0388/doc_00111513 [01:33:51]file doc_00111514 [01:33:51]remove file /storage/0388/doc_00111514 [01:33:51]file doc_00111515 [01:33:51]remove file /storage/0388/doc_00111515 [01:33:51]file doc_00111516 [01:33:51]remove file /storage/0388/doc_00111516 [01:33:51]file doc_00111517 [01:33:51]remove file /storage/0388/doc_00111517 [01:33:51]file doc_00111518 [01:33:51]remove file /storage/0388/doc_00111518 [01:33:51]file doc_00111519 [01:33:51]remove file /storage/0388/doc_00111519 [01:33:51]file doc_00111520 [01:33:51]remove file /storage/0388/doc_00111520 [01:33:51]file doc_00111521 [01:33:51]remove file /storage/0388/doc_00111521 [01:33:51]file doc_00111522 [01:33:51]remove file /storage/0388/doc_00111522 [01:33:51]file doc_00111523 [01:33:51]remove file /storage/0388/doc_00111523 [01:33:51]file doc_00111524 [01:33:51]remove file /storage/0388/doc_00111524 [01:33:51]file doc_00111525 [01:33:51]remove file /storage/0388/doc_00111525 [01:33:51]file doc_00111526 [01:33:51]remove file /storage/0388/doc_00111526 [01:33:51]file doc_00111527 [01:33:51]remove file /storage/0388/doc_00111527 [01:33:51]file doc_00111528 [01:33:51]remove file /storage/0388/doc_00111528 [01:33:51]file doc_00111529 [01:33:51]remove file /storage/0388/doc_00111529 [01:33:51]file doc_00111530 [01:33:51]remove file /storage/0388/doc_00111530 [01:33:51]file doc_00111531 [01:33:51]remove file /storage/0388/doc_00111531 [01:33:51]file doc_00111532 [01:33:51]remove file /storage/0388/doc_00111532 [01:33:51]file doc_00111533 [01:33:51]remove file /storage/0388/doc_00111533 [01:33:51]file doc_00111534 [01:33:51]remove file /storage/0388/doc_00111534 [01:33:51]file doc_00111535 [01:33:51]remove file /storage/0388/doc_00111535 [01:33:51]file doc_00111536 [01:33:51]remove file /storage/0388/doc_00111536 [01:33:51]file doc_00111537 [01:33:51]remove file /storage/0388/doc_00111537 [01:33:51]file doc_00111538 [01:33:51]remove file /storage/0388/doc_00111538 [01:33:51]file doc_00111539 [01:33:51]remove file /storage/0388/doc_00111539 [01:33:51]file doc_00111540 [01:33:51]remove file /storage/0388/doc_00111540 [01:33:51]file doc_00111541 [01:33:51]remove file /storage/0388/doc_00111541 [01:33:51]file doc_00111542 [01:33:51]remove file /storage/0388/doc_00111542 [01:33:51]file doc_00111543 [01:33:51]remove file /storage/0388/doc_00111543 [01:33:51]file doc_00111544 [01:33:51]remove file /storage/0388/doc_00111544 [01:33:51]file doc_00111545 [01:33:51]remove file /storage/0388/doc_00111545 [01:33:51]file doc_00111546 [01:33:51]remove file /storage/0388/doc_00111546 [01:33:51]file doc_00111547 [01:33:51]remove file /storage/0388/doc_00111547 [01:33:51]file doc_00111548 [01:33:51]remove file /storage/0388/doc_00111548 [01:33:51]file doc_00111549 [01:33:51]remove file /storage/0388/doc_00111549 [01:33:51]remove dir /storage/0388 [01:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=261 [01:33:51]tlvbuf is 01055A30 [01:33:51]SAM_PROTO_ClearQueue [01:33:51]wFMCommunicate request_size=4 [01:33:51]MH_SAM_APDU [01:33:51]CAPDU: 80 09 00 00 [01:33:51]Write to MH i2c: E2 08 00 E2 42 80 09 00 00 00 00 00 00 96 [01:33:51]Write i2c OK [01:33:51]MH_I2C_Read... [01:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:33:51]Read from MH i2c: E2 [01:33:51]MH_I2C_Read... [01:33:51]Read from MH i2c: E2 03 00 [01:33:51]MH_I2C_Read... [01:33:51]Read from MH i2c: E2 03 00 E2 42 00 90 00 98 [01:33:51]RAPDU: 90 00 [01:33:51]wFMCommunicate OK [01:33:51]SAM_PROTO_ClearQueue done [01:33:51]KKMCreateOFDPacket [01:33:51]OFDProtocolAddRootSTLVToBuf [01:33:51]FM_MakeSignedData [01:33:51]FM_MakeSignedData [01:33:51]SAM_PROTO_SignData [01:33:51]wFMCommunicate request_size=4 [01:33:51]MH_SAM_APDU [01:33:51]CAPDU: 80 0D 01 02 [01:33:51]Write to MH i2c: E2 08 00 E3 42 80 0D 01 02 00 00 00 00 9E [01:33:51]Write i2c OK [01:33:51]MH_I2C_Read... [01:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:33:52]Read from MH i2c: E2 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 03 00 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 03 00 E3 42 00 90 00 99 [01:33:52]RAPDU: 90 00 [01:33:52]wFMCommunicate OK [01:33:52]wFMCommunicate request_size=255 [01:33:52]MH_SAM_APDU [01:33:52]CAPDU: 80 0D 02 02 FA 02 00 05 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 0F 87 73 66 0E 04 04 00 85 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [01:33:52]Write to MH i2c: E2 02 01 E4 42 80 0D 02 02 FA 00 02 00 05 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 0F 87 73 66 0E 04 04 00 85 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 D3 [01:33:52]Write i2c OK [01:33:52]MH_I2C_Read... [01:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:33:52]Read from MH i2c: E2 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 03 00 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 03 00 E4 42 00 90 00 9A [01:33:52]RAPDU: 90 00 [01:33:52]wFMCommunicate OK [01:33:52]wFMCommunicate request_size=20 [01:33:52]MH_SAM_APDU [01:33:52]CAPDU: 80 0D 02 02 0F 37 35 30 38 33 35 04 06 00 BB 60 BF D1 A8 0D [01:33:52]Write to MH i2c: E2 17 00 E5 42 80 0D 02 02 0F 00 37 35 30 38 33 35 04 06 00 BB 60 BF D1 A8 0D 00 00 65 [01:33:52]Write i2c OK [01:33:52]MH_I2C_Read... [01:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:33:52]Read from MH i2c: E2 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 03 00 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 03 00 E5 42 00 90 00 9B [01:33:52]RAPDU: 90 00 [01:33:52]wFMCommunicate OK [01:33:52]wFMCommunicate request_size=4 [01:33:52]MH_SAM_APDU [01:33:52]CAPDU: 80 0D 03 02 [01:33:52]Write to MH i2c: E2 08 00 E6 42 80 0D 03 02 00 00 00 00 A3 [01:33:52]Write i2c OK [01:33:52]MH_I2C_Read... [01:33:52]OFD Sender: No OFD packet to send [01:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:33:52]Read from MH i2c: E2 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 0B 00 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 0B 00 E6 42 00 1C 2D 6A 07 AA C9 AA 12 90 00 8D [01:33:52]RAPDU: 1C 2D 6A 07 AA C9 AA 12 90 00 [01:33:52]wFMCommunicate OK [01:33:52]SAM_PROTO_SignData done [01:33:52]FM_MakeSignedData done [01:33:52]CreateOFDProtocolMessage [01:33:52]wFMCommunicate request_size=4 [01:33:52]MH_SAM_APDU [01:33:52]CAPDU: 80 11 00 00 [01:33:52]Write to MH i2c: E2 08 00 E7 42 80 11 00 00 00 00 00 00 A3 [01:33:52]Write i2c OK [01:33:52]MH_I2C_Read... [01:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:33:52]Read from MH i2c: E2 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 17 00 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: E2 17 00 E7 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 F5 [01:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:33:52]wFMCommunicate OK [01:33:52]CreateOFDProtocolMessage done [01:33:52]OFDSenderStorePacket 111550 [01:33:52]StoreOFDPacket docnum=111550 [01:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 19 01 00 00 6D 5B 11 01 E3 6F 5A 02 01 00 02 00 05 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 0F 87 73 66 0E 04 04 00 85 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 BB 60 BF D1 A8 0D 1C 2D 6A 07 AA C9 AA 12 [01:33:52]CheckFolder [01:33:52]dirname=/storage/ofd_packets [01:33:52]CheckFolder done [01:33:52]ProducePacketName [01:33:52]name=ofd_packets/00111550 [01:33:52]NVStorageSaveData ofd_packets/00111550 [01:33:52]File name is /storage/ofd_packets/00111550 [01:33:52]Write 311 bytes [01:33:52]NVStorageSaveData done [01:33:52]OFDSenderStorePacket done [01:33:52]KKMCreateOFDPacket done [01:33:52]NVStorageSaveData kkm_last_timestamp [01:33:52]File name is /storage/kkm_last_timestamp [01:33:52]Write 4 bytes [01:33:52]NVStorageSaveData done [01:33:52]ExternCall_PrintAddStr [01:33:52]wPrintStart [01:33:52]Write to MH i2c: 01 00 00 E8 42 2A [01:33:52]Write i2c OK [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: 01 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: 01 07 00 [01:33:52]MH_I2C_Read... [01:33:52]Read from MH i2c: 01 07 00 E8 42 00 00 00 00 00 FF 0F 3F [01:33:52]RasterBufferAndPrint [01:33:52]line Отчет об открытии смены [01:33:52]line ФФД: 1.0 [01:33:52]line ИНН: 02508201610067 [01:33:52]line Кассир: Бейшенбеков А. [01:33:52]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:33:52]line Место: АЗС № 65 "Партнер Нефть" [01:33:52]line 20.06.2024 01:34 [01:33:52]line Смена: 389 [01:33:52]line РНМ: 0000000000092771 [01:33:52]line ЗНМ: 0300000198 [01:33:52]line ФД: 111550 [01:33:52]line ФМ: 0000000000875083 [01:33:52]line ФПД: 206024209442829 [01:33:52]written 0, free lines is 4095 [01:33:52]OFD Sender: Processing packet 111550 [packets to send 38, broken 37] [01:33:52]ProducePacketName [01:33:52]name=ofd_packets/00111550 [01:33:52]OFD Sender: To server: pG, [01:33:52]CommunicateWithHost lk.salyk.kg:30040 [01:33:52]ConnectInit lk.salyk.kg [01:33:52]Connected sock=10 [01:33:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 19 01 00 00 6D 5B 11 01 E3 6F 5A 02 01 00 02 00 05 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 54 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D1 82 2D D0 91 D0 B0 D1 88 D0 B8 2C 20 D1 83 D0 BB 2E 20 D0 A2 2E 20 D0 9E D0 BC D1 83 D1 80 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 33 33 2F 32 2C 20 34 31 2E 32 30 34 31 37 37 2C 20 37 35 2E 38 35 39 32 30 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 0F 87 73 66 0E 04 04 00 85 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 35 04 06 00 BB 60 BF D1 A8 0D 1C 2D 6A 07 AA C9 AA 12 [01:33:52]Write to MH i2c: 01 00 00 FA 42 3C [01:33:53]Write i2c OK [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: 01 [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: 01 07 00 [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: 01 07 00 FA 42 00 00 00 00 00 D3 0E 24 [01:33:53]RasterBufferAndPrint [01:33:53]line [01:33:53]line [01:33:53]line [01:33:53]line [01:33:53]line [01:33:53]written 0, free lines is 3816 [01:33:53]MH_Cut [01:33:53]Write to MH i2c: D1 01 00 01 43 01 16 [01:33:53]Write i2c OK [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: D1 [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: D1 01 00 [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: D1 01 00 01 43 00 15 [01:33:53]Write to MH i2c: 01 00 00 02 43 45 [01:33:53]Write i2c OK [01:33:53]MH_I2C_Read... [01:33:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F5 1F 47 00 E5 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 35 30 38 33 10 04 04 00 BE B3 01 00 F4 03 04 00 6A 1E 73 66 B6 04 01 00 00 B1 E2 10 DA 22 6E 04 95 [01:33:53]CommunicateWithHost err = 0 [01:33:53]CheckOFDResponse [01:33:53]1017 (14) - 77093643461234 [01:33:53]1041 (16) - 0000000000875083 [01:33:53]1040 (4) - 111550 [01:33:53]1012 (4) - 19.06.2024 18:07 [01:33:53]1206 (1) - 0 [01:33:53]OFD Sender: Remove packet 111550 [01:33:53]ProducePacketName [01:33:53]name=ofd_packets/00111550 [01:33:53]NVStorageDeleteData [01:33:53]*** Cut start [01:33:53]*** Partial cut [01:33:53]*** CUTSNS_PIN = 1 [01:33:53]*** CUTSNS_PIN = 0 [01:33:53]*** Brake cut motor [01:33:53]OFD Sender: No OFD packet to send [01:33:53]Read from MH i2c: 01 [01:33:53]MH_I2C_Read... [01:33:53]*** Stop cut motor [01:33:53]*** Cut end [01:33:53]Read from MH i2c: 01 07 00 [01:33:53]MH_I2C_Read... [01:33:53]Read from MH i2c: 01 07 00 02 43 00 00 00 00 00 FF 0F 5A [01:33:53]process_action open_shift done [01:33:53]requested_data is exist [01:33:53]produce_requested_data [01:33:53]requested_item fd.num is exist - process it [01:33:53]SAM_PROTO_GetFieldsCounters [01:33:53]wFMCommunicate request_size=4 [01:33:53]MH_SAM_APDU [01:33:53]CAPDU: 80 13 00 00 [01:33:53]Write to MH i2c: E2 08 00 03 43 80 13 00 00 00 00 00 00 C2 [01:33:53]Write i2c OK [01:33:53]MH_I2C_Read... [01:33:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:33:54]Read from MH i2c: E2 [01:33:54]MH_I2C_Read... [01:33:54]Read from MH i2c: E2 62 00 [01:33:54]MH_I2C_Read... [01:33:54]Read from MH i2c: E2 62 00 03 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [01:33: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BE B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:33:54]wFMCommunicate OK [01:33:54]SAM_PROTO_GetFieldsCounters done [01:33:54]requested_item shift.num is exist - process it [01:33:54]requested_item shift.opened is exist - process it [01:33:54]req_shift_opened [01:33:54]FM_GetShiftState [01:33:54]SAM_PROTO_GetShiftState [01:33:54]wFMCommunicate request_size=4 [01:33:54]MH_SAM_APDU [01:33:54]CAPDU: 80 13 01 00 [01:33:54]Write to MH i2c: E2 08 00 04 43 80 13 01 00 00 00 00 00 C4 [01:33:54]Write i2c OK [01:33:54]MH_I2C_Read... [01:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:33:54]Read from MH i2c: E2 [01:33:54]MH_I2C_Read... [01:33:54]Read from MH i2c: E2 0E 00 [01:33:54]MH_I2C_Read... [01:33:54]Read from MH i2c: E2 0E 00 04 43 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 3F [01:33:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [01:33:54]wFMCommunicate OK [01:33:54]SAM_PROTO_GetShiftState done [01:33:54]FM_GetShiftState done [01:33:54]req_shift_opened done [01:33:54]requested_item shift.open_date is exist - process it [01:33:54]req_shift_open_date [01:33:54]req_shift_open_date done [01:33:54]produce_requested_data done [01:33:54]produce_requested_data return {"fd.num":111550,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [01:33:54]process_action_free open_shift [01:33:54]json_value_free [01:33:54]json_value_free done [01:33:54]process_json_proto returns [01:33:54]Send response to host [01:33:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":111550,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [01:33:54]free response buf [01:33:54]execute_script done [01:33:54]execute_script returns [01:33:54]free content buf [01:33:54]Sock 9.Close socket [01:33:54]Sock 9.Thread stoped [01:33:54]accept exits with 7 [01:33:54]New connection [01:33:54]New thread 3067465060 created [01:33:54]Thread 3067321700 joined [01:33:54]Waiting for new connection... [01:33:54] Sock 7.Parse request [01:33:54]Sock 7.Check first char [01:33:54]Sock 7.First char is OK [01:33:54]request: POST /json_proto HTTP/1.0 [01:33:54]Method: POST [01:33:54]URL: /json_proto [01:33:54]Method is POST - this is cgi request [01:33:54]url: /json_proto [01:33:54]query_string will be loaded in cgi processing [01:33:54]execute_cgi json_proto POST (null) [01:33:54]execute_cgi path=json_proto method=POST [01:33:54]POST find Content-Length [01:33:54]Host: 172.17.59.68:8080 [01:33:54]Content-Length: 331 [01:33:54]Content-Type: application/json [01:33:54] [01:33:54]POST finish read [01:33:54]Found Content-Length = 331 [01:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:33:54]execute_script... [01:33:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:33:54]POST & json_proto [01:33:54]process_json_proto [01:33:54]json parsed OK: [01:33:54]protocol is kg_v1.0 [01:33:54]action value=get_value [01:33:54]process_action get_value [01:33:54]cmd_get_value [01:33:54]process_action get_value done [01:33:54]requested_data is exist [01:33:54]produce_requested_data [01:33:54]requested_item fm.sale.total is exist - process it [01:33:54]SAM_PROTO_GetFMData [01:33:54]wFMCommunicate request_size=4 [01:33:54]MH_SAM_APDU [01:33:54]CAPDU: 80 13 03 00 [01:33:54]Write to MH i2c: E2 08 00 05 43 80 13 03 00 00 00 00 00 C7 [01:33:54]Write i2c OK [01:33:54]MH_I2C_Read... [01:33:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:33:54]Read from MH i2c: E2 [01:33:54]MH_I2C_Read... [01:33:54]Read from MH i2c: E2 FD 00 [01:33:54]MH_I2C_Read... [01:33:54]Read from MH i2c: E2 FD 00 05 43 00 BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 7A [01:33:54]RAPDU: BD 04 85 04 B9 04 6E 04 04 00 B5 B0 01 00 69 04 A3 00 6F 04 04 00 B3 B0 01 00 B1 04 05 00 6F 4A F5 F3 01 70 04 05 00 5C 09 93 E2 01 72 04 04 00 13 41 62 11 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 96 9E 1C 35 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 C5 EB 6C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 94 00 6F 04 04 00 02 00 00 00 B1 04 02 00 84 4E 70 04 02 00 84 4E 72 04 00 00 00 04 78 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 08 EF 03 09 00 F6 03 01 00 00 90 00 [01:33:54]wFMCommunicate OK [01:33:54]wFMCommunicate request_size=4 [01:33:54]MH_SAM_APDU [01:33:54]CAPDU: 80 17 00 00 [01:33:54]Write to MH i2c: E2 08 00 06 43 80 17 00 00 00 00 00 00 C9 [01:33:54]Write i2c OK [01:33:54]MH_I2C_Read... [01:33:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:55]Read from MH i2c: E2 [01:33:55]MH_I2C_Read... [01:33:55]Read from MH i2c: E2 FD 00 [01:33:55]MH_I2C_Read... [01:33:55]Read from MH i2c: E2 FD 00 06 43 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1D [01:33:55]RAPDU: F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 B2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:33:55]wFMCommunicate OK [01:33:55]wFMCommunicate request_size=4 [01:33:55]MH_SAM_APDU [01:33:55]CAPDU: 80 17 00 00 [01:33:55]Write to MH i2c: E2 08 00 07 43 80 17 00 00 00 00 00 00 CA [01:33:55]Write i2c OK [01:33:55]MH_I2C_Read... [01:33:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:55]Read from MH i2c: E2 [01:33:55]MH_I2C_Read... [01:33:55]Read from MH i2c: E2 FD 00 [01:33:55]MH_I2C_Read... [01:33:55]Read from MH i2c: E2 FD 00 07 43 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 FC [01:33:55]RAPDU: 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 90 00 [01:33:55]wFMCommunicate OK [01:33:55]wFMCommunicate request_size=4 [01:33:55]MH_SAM_APDU [01:33:55]CAPDU: 80 17 00 00 [01:33:55]Write to MH i2c: E2 08 00 08 43 80 17 00 00 00 00 00 00 CB [01:33:55]Write i2c OK [01:33:55]MH_I2C_Read... [01:33:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:55]Read from MH i2c: E2 [01:33:55]MH_I2C_Read... [01:33:55]Read from MH i2c: E2 FD 00 [01:33:55]MH_I2C_Read... [01:33:55]Read from MH i2c: E2 FD 00 08 43 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 42 [01:33:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 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 90 00 [01:33:56]wFMCommunicate OK [01:33:56]wFMCommunicate request_size=4 [01:33:56]MH_SAM_APDU [01:33:56]CAPDU: 80 17 00 00 [01:33:56]Write to MH i2c: E2 08 00 09 43 80 17 00 00 00 00 00 00 CC [01:33:56]Write i2c OK [01:33:56]MH_I2C_Read... [01:33:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 215! [01:33:56]Read from MH i2c: E2 [01:33:56]MH_I2C_Read... [01:33:56]Read from MH i2c: E2 DA 00 [01:33:56]MH_I2C_Read... [01:33:56]Read from MH i2c: E2 DA 00 09 43 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AD [01:33:56]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [01:33:56]wFMCommunicate OK [01:33:56]SAM_PROTO_GetFMData done [01:33:56]requested_item fm.sale_refund.total is exist - process it [01:33:56]requested_item fm.buy.total is exist - process it [01:33:56]requested_item shift.sale.total is exist - process it [01:33:56]SAM_PROTO_GetShiftData [01:33:56]wFMCommunicate request_size=4 [01:33:56]MH_SAM_APDU [01:33:56]CAPDU: 80 13 02 00 [01:33:56]Write to MH i2c: E2 08 00 0A 43 80 13 02 00 00 00 00 00 CB [01:33:56]Write i2c OK [01:33:56]MH_I2C_Read... [01:33:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:33:56]Read from MH i2c: E2 [01:33:56]MH_I2C_Read... [01:33:56]Read from MH i2c: E2 FD 00 [01:33:56]MH_I2C_Read... [01:33:56]Read from MH i2c: E2 FD 00 0A 43 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 3E [01:33:57]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 [01:33:57]wFMCommunicate OK [01:33:57]wFMCommunicate request_size=4 [01:33:57]MH_SAM_APDU [01:33:57]CAPDU: 80 17 00 00 [01:33:57]Write to MH i2c: E2 08 00 0B 43 80 17 00 00 00 00 00 00 CE [01:33:57]Write i2c OK [01:33:57]MH_I2C_Read... [01:33:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:57]Read from MH i2c: E2 [01:33:57]MH_I2C_Read... [01:33:57]Read from MH i2c: E2 FD 00 [01:33:57]MH_I2C_Read... [01:33:57]Read from MH i2c: E2 FD 00 0B 43 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 D6 [01:33:57]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 [01:33:57]wFMCommunicate OK [01:33:57]wFMCommunicate request_size=4 [01:33:57]MH_SAM_APDU [01:33:57]CAPDU: 80 17 00 00 [01:33:57]Write to MH i2c: E2 08 00 0C 43 80 17 00 00 00 00 00 00 CF [01:33:57]Write i2c OK [01:33:57]MH_I2C_Read... [01:33:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:57]Read from MH i2c: E2 [01:33:57]MH_I2C_Read... [01:33:57]Read from MH i2c: E2 FD 00 [01:33:57]MH_I2C_Read... [01:33:57]Read from MH i2c: E2 FD 00 0C 43 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 A1 [01:33:58]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 [01:33:58]wFMCommunicate OK [01:33:58]wFMCommunicate request_size=4 [01:33:58]MH_SAM_APDU [01:33:58]CAPDU: 80 17 00 00 [01:33:58]Write to MH i2c: E2 08 00 0D 43 80 17 00 00 00 00 00 00 D0 [01:33:58]Write i2c OK [01:33:58]MH_I2C_Read... [01:33:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:33:58]Read from MH i2c: E2 [01:33:58]MH_I2C_Read... [01:33:58]Read from MH i2c: E2 FD 00 [01:33:58]MH_I2C_Read... [01:33:58]Read from MH i2c: E2 FD 00 0D 43 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 42 [01:33:58]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 [01:33:58]wFMCommunicate OK [01:33:58]wFMCommunicate request_size=4 [01:33:58]MH_SAM_APDU [01:33:58]CAPDU: 80 17 00 00 [01:33:58]Write to MH i2c: E2 08 00 0E 43 80 17 00 00 00 00 00 00 D1 [01:33:58]Write i2c OK [01:33:58]MH_I2C_Read... [01:33:58]OFD Sender: No OFD packet to send [01:33:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [01:33:58]Read from MH i2c: E2 [01:33:58]MH_I2C_Read... [01:33:58]Read from MH i2c: E2 BD 00 [01:33:58]MH_I2C_Read... [01:33:58]Read from MH i2c: E2 BD 00 0E 43 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 B7 [01:33:58]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 [01:33:59]wFMCommunicate OK [01:33:59]SAM_PROTO_GetShiftData done [01:33:59]requested_item shift.sale.total_cash is exist - process it [01:33:59]requested_item shift.sale_refund.total is exist - process it [01:33:59]requested_item shift.sale_refund.total_cash is exist - process it [01:33:59]requested_item shift.buy.total is exist - process it [01:33:59]requested_item shift.buy.total_cash is exist - process it [01:33:59]produce_requested_data done [01:33:59]produce_requested_data return {"fm.sale.total":83879061.59,"fm.sale_refund.total":201.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} [01:33:59]process_action_free get_value [01:33:59]json_value_free [01:33:59]json_value_free done [01:33:59]process_json_proto returns [01:33:59]Send response to host [01:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":83879061.59,"fm.sale_refund.total":201.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}}} [01:33:59]free response buf [01:33:59]execute_script done [01:33:59]execute_script returns [01:33:59]free content buf [01:33:59]Sock 7.Close socket [01:33:59]Sock 7.Thread stoped [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]accept exits with 9 [01:41:54]New connection [01:41:54]New thread 3067321700 created [01:41:54]Thread 3067465060 joined [01:41:54]Waiting for new connection... [01:41:54] Sock 9.Parse request [01:41:54]Sock 9.Check first char [01:41:54]Sock 9.First char is OK [01:41:54]request: POST /json_proto HTTP/1.0 [01:41:54]Method: POST [01:41:54]URL: /json_proto [01:41:54]Method is POST - this is cgi request [01:41:54]url: /json_proto [01:41:54]query_string will be loaded in cgi processing [01:41:54]execute_cgi json_proto POST (null) [01:41:54]execute_cgi path=json_proto method=POST [01:41:54]POST find Content-Length [01:41:54]Host: 172.17.59.68:8080 [01:41:54]Content-Length: 684 [01:41:54]Content-Type: application/json [01:41:54] [01:41:54]POST finish read [01:41:54]Found Content-Length = 684 [01:41:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 205.770, "sum" : 15000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:54]execute_script... [01:41: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)320148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 205.770, "sum" : 15000.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:54]POST & json_proto [01:41:54]process_json_proto [01:41:54]json parsed OK: [01:41:54]protocol is kg_v1.0 [01:41:54]action value=close_receipt [01:41:54]process_action close_receipt [01:41:54]cmd_close_receipt [01:41:54]MH_GetDate [01:41:54]Write to MH i2c: F0 00 00 0F 43 41 [01:41:54]Write i2c OK [01:41:54]MH_I2C_Read... [01:41:54]Read from MH i2c: F0 [01:41:54]MH_I2C_Read... [01:41:54]Read from MH i2c: F0 09 00 [01:41:54]MH_I2C_Read... [01:41:54]Read from MH i2c: F0 09 00 0F 43 00 F5 88 73 66 BC EC 60 65 0D [01:41:54]GetLastDocTimeStamp 1718847247 [01:41:54]current date 1718847733 [01:41:54]FM_GetShiftState [01:41:54]SAM_PROTO_GetShiftState [01:41:54]wFMCommunicate request_size=4 [01:41:54]MH_SAM_APDU [01:41:54]CAPDU: 80 13 01 00 [01:41:54]Write to MH i2c: E2 08 00 10 43 80 13 01 00 00 00 00 00 D0 [01:41:54]Write i2c OK [01:41:54]MH_I2C_Read... [01:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:54]Read from MH i2c: E2 [01:41:54]MH_I2C_Read... [01:41:54]Read from MH i2c: E2 0E 00 [01:41:54]MH_I2C_Read... [01:41:54]Read from MH i2c: E2 0E 00 10 43 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 4B [01:41:54]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [01:41:54]wFMCommunicate OK [01:41:54]SAM_PROTO_GetShiftState done [01:41:54]FM_GetShiftState done [01:41:54]opened in 1718847247 [01:41:54]opened+sec_in_day 1718933647 [01:41:54]quantity*price = 1500063 [01:41:54]sum+1 = 1500064 [01:41:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 15000.00 Внесено: 15000.00 СДАЧА: 0.00 НСП 1% : 132.75 НДС 12% : 1592.99 Наличными: 15000.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 1 20.06.2024 01:42 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111551 ФПД: 96751168912603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T014213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111551&fm=96751168912603&tin=02508201610067®Number=0000000000092771&sum=1500000 [01:41:55]StoreToDocumentArchive [01:41:55]shift 389 fd 111551 [01:41:55]save to /storage/0389/doc_00111551 [01:41:55]save last doc name /storage/0389/doc_00111551 to /storage/kkm_last_doc_name [01:41:55]save OK [01:41:55]Clear old archive folders... [01:41:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:41:55]tlvbuf is 00F00610 [01:41:55]SAM_PROTO_ClearQueue [01:41:55]wFMCommunicate request_size=4 [01:41:55]MH_SAM_APDU [01:41:55]CAPDU: 80 09 00 00 [01:41:55]Write to MH i2c: E2 08 00 1D 43 80 09 00 00 00 00 00 00 D2 [01:41:55]Write i2c OK [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 [01:41:55]MH_I2C_Read... [01:41:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:41:55]Read from MH i2c: E2 03 00 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 03 00 1D 43 00 90 00 D4 [01:41:55]RAPDU: 90 00 [01:41:55]wFMCommunicate OK [01:41:55]SAM_PROTO_ClearQueue done [01:41:55]KKMCreateOFDPacket [01:41:55]OFDProtocolAddRootSTLVToBuf [01:41:55]FM_MakeSignedData [01:41:55]FM_MakeSignedData [01:41:55]SAM_PROTO_SignData [01:41:55]wFMCommunicate request_size=4 [01:41:55]MH_SAM_APDU [01:41:55]CAPDU: 80 0D 01 02 [01:41:55]Write to MH i2c: E2 08 00 1E 43 80 0D 01 02 00 00 00 00 DA [01:41:55]Write i2c OK [01:41:55]MH_I2C_Read... [01:41:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:41:55]Read from MH i2c: E2 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 03 00 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 03 00 1E 43 00 90 00 D5 [01:41:55]RAPDU: 90 00 [01:41:55]wFMCommunicate OK [01:41:55]wFMCommunicate request_size=255 [01:41:55]MH_SAM_APDU [01:41: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 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 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 F5 88 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B3 01 00 35 04 06 00 57 FE A3 0D [01:41:55]Write to MH i2c: E2 02 01 1F 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 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 F5 88 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B3 01 00 35 04 06 00 57 FE A3 0D 00 00 1D [01:41:55]Write i2c OK [01:41:55]MH_I2C_Read... [01:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:55]Read from MH i2c: E2 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 03 00 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 03 00 1F 43 00 90 00 D6 [01:41:55]RAPDU: 90 00 [01:41:55]wFMCommunicate OK [01:41:55]wFMCommunicate request_size=7 [01:41:55]MH_SAM_APDU [01:41:55]CAPDU: 80 0D 02 02 02 FC DB [01:41:55]Write to MH i2c: E2 0A 00 20 43 80 0D 02 02 02 00 FC DB 00 00 B8 [01:41:55]Write i2c OK [01:41:55]MH_I2C_Read... [01:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:55]Read from MH i2c: E2 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 03 00 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 03 00 20 43 00 90 00 D7 [01:41:55]RAPDU: 90 00 [01:41:55]wFMCommunicate OK [01:41:55]wFMCommunicate request_size=4 [01:41:55]MH_SAM_APDU [01:41:55]CAPDU: 80 0D 03 02 [01:41:55]Write to MH i2c: E2 08 00 21 43 80 0D 03 02 00 00 00 00 DF [01:41:55]Write i2c OK [01:41:55]MH_I2C_Read... [01:41:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:41:55]Read from MH i2c: E2 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 0B 00 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 0B 00 21 43 00 FC D5 82 AB 7A D0 23 5D 90 00 A8 [01:41:55]RAPDU: FC D5 82 AB 7A D0 23 5D 90 00 [01:41:55]wFMCommunicate OK [01:41:55]SAM_PROTO_SignData done [01:41:55]FM_MakeSignedData done [01:41:55]CreateOFDProtocolMessage [01:41:55]wFMCommunicate request_size=4 [01:41:55]MH_SAM_APDU [01:41:55]CAPDU: 80 11 00 00 [01:41:55]Write to MH i2c: E2 08 00 22 43 80 11 00 00 00 00 00 00 DF [01:41:55]Write i2c OK [01:41:55]MH_I2C_Read... [01:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:55]Read from MH i2c: E2 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 17 00 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: E2 17 00 22 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 31 [01:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:41:55]wFMCommunicate OK [01:41:55]CreateOFDProtocolMessage done [01:41:55]OFDSenderStorePacket 111551 [01:41:55]StoreOFDPacket docnum=111551 [01:41:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B9 56 04 01 8A DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 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 F5 88 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B3 01 00 35 04 06 00 57 FE A3 0D FC DB FC D5 82 AB 7A D0 23 5D [01:41:55]CheckFolder [01:41:55]dirname=/storage/ofd_packets [01:41:55]CheckFolder done [01:41:55]ProducePacketName [01:41:55]name=ofd_packets/00111551 [01:41:55]NVStorageSaveData ofd_packets/00111551 [01:41:55]File name is /storage/ofd_packets/00111551 [01:41:55]Write 298 bytes [01:41:55]NVStorageSaveData done [01:41:55]OFDSenderStorePacket done [01:41:55]KKMCreateOFDPacket done [01:41:55]NVStorageSaveData kkm_last_timestamp [01:41:55]File name is /storage/kkm_last_timestamp [01:41:55]Write 4 bytes [01:41:55]NVStorageSaveData done [01:41:55]ExternCall_PrintAddStr [01:41:55]wPrintStart [01:41:55]Write to MH i2c: 01 00 00 23 43 66 [01:41:55]Write i2c OK [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: 01 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: 01 07 00 [01:41:55]MH_I2C_Read... [01:41:55]Read from MH i2c: 01 07 00 23 43 00 00 00 00 00 FF 0F 7B [01:41:55]RasterBufferAndPrint [01:41:55]line Счет N : (1)320148 [01:41:55]line ИНН: 02508201610067 [01:41:55]line Контрольно-Кассовый Чек [01:41:55]line ПРОДАЖА [01:41:55]line ТРК (МРК, ГНК) : 22 [01:41:55]line Товар: 2710194210 [01:41:55]line ДТ-К-5 [01:41:55]line 205.770 * 72.90 [01:41:55]line = 15000.63 [01:41:55]line НДС 12% НСП 1% [01:41:55]line > о реализуемом товаре [01:41:55]line ОКРУГЛЕНИЕ: -0.63 [01:41:55]line ИТОГО: 15000.00 [01:41:55]line Внесено: 15000.00 [01:41:55]line СДАЧА: 0.00 [01:41:55]line НСП 1% : 132.75 [01:41:55]line НДС 12% : 1592.99 [01:41:55]line Наличными: 15000.00 [01:41:55]line Безнал.: 0.00 [01:41:55]line Место: АЗС № 65 "Партнер Нефть" [01:41:55]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [01:41:55]line СНО: Общий режим [01:41:55]line Чек 1 20.06.2024 01:42 [01:41:55]line Смена: 389 ФФД: 1.0 [01:41:55]line ЗНМ: 0300000198 [01:41:55]line РНМ: 0000000000092771 [01:41:55]line Версия ККМ: 001 [01:41:55]line ФМ: 0000000000875083 [01:41:55]line ФД: 111551 [01:41:55]line ФПД: 96751168912603 [01:41:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T014213&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111551&fm=96751168912603&tin=02508201610067®Number=0000000000092771&sum=1500000 [01:41:56]OFD Sender: Processing packet 111551 [packets to send 38, broken 37] [01:41:56]ProducePacketName [01:41:56]name=ofd_packets/00111551 [01:41:56]OFD Sender: To server: pG, [01:41:56]CommunicateWithHost lk.salyk.kg:30040 [01:41:56]ConnectInit lk.salyk.kg [01:41:56]written 0, free lines is 4095 [01:41:56]Connected sock=10 [01:41:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 B9 56 04 01 8A DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA 23 03 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 9F E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 6E 02 00 00 00 07 04 06 00 60 E3 16 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 F5 88 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 BF B3 01 00 35 04 06 00 57 FE A3 0D FC DB FC D5 82 AB 7A D0 23 5D [01:41:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 45 5C 47 00 F6 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 35 30 38 33 10 04 04 00 BF B3 01 00 F4 03 04 00 4D 20 73 66 B6 04 01 00 00 FB F4 1E 02 29 50 44 1F [01:41:56]CommunicateWithHost err = 0 [01:41:56]CheckOFDResponse [01:41:56]1017 (14) - 77093643461234 [01:41:56]1041 (16) - 0000000000875083 [01:41:56]1040 (4) - 111551 [01:41:56]1012 (4) - 19.06.2024 18:15 [01:41:56]1206 (1) - 0 [01:41:56]OFD Sender: Remove packet 111551 [01:41:56]ProducePacketName [01:41:56]name=ofd_packets/00111551 [01:41:56]NVStorageDeleteData [01:41:56]Write to MH i2c: 01 00 00 4E 43 91 [01:41:56]Write i2c OK [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: 01 [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: 01 07 00 [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: 01 07 00 4E 43 00 00 00 00 00 DF 0C 83 [01:41:56]RasterBufferAndPrint [01:41:56]line [01:41:56]line [01:41:56]line [01:41:56]line [01:41:56]line [01:41:56]written 0, free lines is 3303 [01:41:56]MH_Cut [01:41:56]Write to MH i2c: D1 01 00 55 43 01 6A [01:41:56]Write i2c OK [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: D1 [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: D1 01 00 [01:41:56]MH_I2C_Read... [01:41:56]Read from MH i2c: D1 01 00 55 43 00 69 [01:41:56]Write to MH i2c: 01 00 00 56 43 99 [01:41:56]Write i2c OK [01:41:56]MH_I2C_Read... [01:41:56]OFD Sender: No OFD packet to send [01:41:57]*** Cut start [01:41:57]*** Partial cut [01:41:57]*** CUTSNS_PIN = 1 [01:41:57]*** CUTSNS_PIN = 0 [01:41:57]*** Brake cut motor [01:41:57]Read from MH i2c: 01 [01:41:57]MH_I2C_Read... [01:41:57]*** Stop cut motor [01:41:57]*** Cut end [01:41:57]Read from MH i2c: 01 07 00 [01:41:57]MH_I2C_Read... [01:41:57]Read from MH i2c: 01 07 00 56 43 00 00 00 00 00 FF 0F AE [01:41:57]process_action close_receipt done [01:41:57]requested_data is exist [01:41:57]produce_requested_data [01:41:57]requested_item fm.sn is exist - process it [01:41:57]wFMCommunicate request_size=4 [01:41:57]MH_SAM_APDU [01:41:57]CAPDU: 80 11 00 00 [01:41:57]Write to MH i2c: E2 08 00 57 43 80 11 00 00 00 00 00 00 14 [01:41:57]Write i2c OK [01:41:57]MH_I2C_Read... [01:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:58]Read from MH i2c: E2 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 17 00 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 17 00 57 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 66 [01:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [01:41:58]wFMCommunicate OK [01:41:58]requested_item fd.num is exist - process it [01:41:58]SAM_PROTO_GetFieldsCounters [01:41:58]wFMCommunicate request_size=4 [01:41:58]MH_SAM_APDU [01:41:58]CAPDU: 80 13 00 00 [01:41:58]Write to MH i2c: E2 08 00 58 43 80 13 00 00 00 00 00 00 17 [01:41:58]Write i2c OK [01:41:58]MH_I2C_Read... [01:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:41:58]Read from MH i2c: E2 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 62 00 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 62 00 58 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [01:41: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 BF B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:41:58]wFMCommunicate OK [01:41:58]SAM_PROTO_GetFieldsCounters done [01:41:58]requested_item shift.num is exist - process it [01:41:58]requested_item shift.opened is exist - process it [01:41:58]req_shift_opened [01:41:58]FM_GetShiftState [01:41:58]SAM_PROTO_GetShiftState [01:41:58]wFMCommunicate request_size=4 [01:41:58]MH_SAM_APDU [01:41:58]CAPDU: 80 13 01 00 [01:41:58]Write to MH i2c: E2 08 00 59 43 80 13 01 00 00 00 00 00 19 [01:41:58]Write i2c OK [01:41:58]MH_I2C_Read... [01:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:58]Read from MH i2c: E2 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 0E 00 [01:41:58]MH_I2C_Read... [01:41:58]Read from MH i2c: E2 0E 00 59 43 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 94 [01:41:58]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [01:41:58]wFMCommunicate OK [01:41:58]SAM_PROTO_GetShiftState done [01:41:58]FM_GetShiftState done [01:41:58]req_shift_opened done [01:41:58]requested_item shift.open_date is exist - process it [01:41:58]req_shift_open_date [01:41:58]req_shift_open_date done [01:41:58]produce_requested_data done [01:41:58]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111551,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [01:41:58]process_action_free close_receipt [01:41:58]json_value_free [01:41:58]json_value_free done [01:41:58]process_json_proto returns [01:41:58]Send response to host [01:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111551,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [01:41:58]free response buf [01:41:58]execute_script done [01:41:58]execute_script returns [01:41:58]free content buf [01:41:58]Sock 9.Close socket [01:41:58]Sock 9.Thread stoped [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:23]accept exits with 7 [02:41:23]New connection [02:41:23]New thread 3067465060 created [02:41:23]Thread 3067321700 joined [02:41:23]Waiting for new connection... [02:41:23] Sock 7.Parse request [02:41:23]Sock 7.Check first char [02:41:23]Sock 7.First char is OK [02:41:23]request: POST /json_proto HTTP/1.0 [02:41:23]Method: POST [02:41:23]URL: /json_proto [02:41:23]Method is POST - this is cgi request [02:41:23]url: /json_proto [02:41:23]query_string will be loaded in cgi processing [02:41:23]execute_cgi json_proto POST (null) [02:41:23]execute_cgi path=json_proto method=POST [02:41:23]POST find Content-Length [02:41:23]Host: 172.17.59.68:8080 [02:41:23]Content-Length: 805 [02:41:23]Content-Type: application/json [02:41:23] [02:41:23]POST finish read [02:41:23]Found Content-Length = 805 [02:41:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:23]execute_script... [02:41:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:41:23]POST & json_proto [02:41:23]process_json_proto [02:41:23]json parsed OK: [02:41:23]protocol is kg_v1.0 [02:41:23]action value=close_receipt [02:41:23]process_action close_receipt [02:41:23]cmd_close_receipt [02:41:23]MH_GetDate [02:41:23]Write to MH i2c: F0 00 00 5A 43 8C [02:41:23]Write i2c OK [02:41:23]MH_I2C_Read... [02:41:23]Read from MH i2c: F0 [02:41:23]MH_I2C_Read... [02:41:23]Read from MH i2c: F0 09 00 [02:41:23]MH_I2C_Read... [02:41:23]Read from MH i2c: F0 09 00 5A 43 00 E7 96 73 66 BC EC 60 65 58 [02:41:23]GetLastDocTimeStamp 1718847733 [02:41:23]current date 1718851303 [02:41:23]FM_GetShiftState [02:41:23]SAM_PROTO_GetShiftState [02:41:23]wFMCommunicate request_size=4 [02:41:23]MH_SAM_APDU [02:41:23]CAPDU: 80 13 01 00 [02:41:23]Write to MH i2c: E2 08 00 5B 43 80 13 01 00 00 00 00 00 1B [02:41:23]Write i2c OK [02:41:23]MH_I2C_Read... [02:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:23]Read from MH i2c: E2 [02:41:23]MH_I2C_Read... [02:41:23]Read from MH i2c: E2 0E 00 [02:41:23]MH_I2C_Read... [02:41:23]Read from MH i2c: E2 0E 00 5B 43 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 96 [02:41:23]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:41:23]wFMCommunicate OK [02:41:23]SAM_PROTO_GetShiftState done [02:41:23]FM_GetShiftState done [02:41:23]opened in 1718847247 [02:41:23]opened+sec_in_day 1718933647 [02:41:23]quantity*price = 20052 [02:41:23]sum+1 = 20054 [02:41:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.53 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 0.00 Безнал.: 200.53 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 2 20.06.2024 02:41 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875083 ФД: 111552 ФПД: 190523424506592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T024143&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111552&fm=190523424506592&tin=02508201610067®Number=0000000000092771&sum=20053 [02:41:24]StoreToDocumentArchive [02:41:24]shift 389 fd 111552 [02:41:24]save to /storage/0389/doc_00111552 [02:41:24]save last doc name /storage/0389/doc_00111552 to /storage/kkm_last_doc_name [02:41:24]save OK [02:41:24]Clear old archive folders... [02:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:41:24]tlvbuf is 00FA2A40 [02:41:24]SAM_PROTO_ClearQueue [02:41:24]wFMCommunicate request_size=4 [02:41:24]MH_SAM_APDU [02:41:24]CAPDU: 80 09 00 00 [02:41:24]Write to MH i2c: E2 08 00 68 43 80 09 00 00 00 00 00 00 1D [02:41:24]Write i2c OK [02:41:24]MH_I2C_Read... [02:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:41:24]Read from MH i2c: E2 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 03 00 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 03 00 68 43 00 90 00 1F [02:41:24]RAPDU: 90 00 [02:41:24]wFMCommunicate OK [02:41:24]SAM_PROTO_ClearQueue done [02:41:24]KKMCreateOFDPacket [02:41:24]OFDProtocolAddRootSTLVToBuf [02:41:24]FM_MakeSignedData [02:41:24]FM_MakeSignedData [02:41:24]SAM_PROTO_SignData [02:41:24]wFMCommunicate request_size=4 [02:41:24]MH_SAM_APDU [02:41:24]CAPDU: 80 0D 01 02 [02:41:24]Write to MH i2c: E2 08 00 69 43 80 0D 01 02 00 00 00 00 25 [02:41:24]Write i2c OK [02:41:24]MH_I2C_Read... [02:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:41:24]Read from MH i2c: E2 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 03 00 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 03 00 69 43 00 90 00 20 [02:41:24]RAPDU: 90 00 [02:41:24]wFMCommunicate OK [02:41:24]wFMCommunicate request_size=255 [02:41:24]MH_SAM_APDU [02:41:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E7 96 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B3 01 00 35 04 06 00 AD [02:41:24]Write to MH i2c: E2 02 01 6A 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E7 96 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B3 01 00 35 04 06 00 AD 00 00 01 [02:41:24]Write i2c OK [02:41:24]MH_I2C_Read... [02:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:24]Read from MH i2c: E2 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 03 00 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 03 00 6A 43 00 90 00 21 [02:41:24]RAPDU: 90 00 [02:41:24]wFMCommunicate OK [02:41:24]wFMCommunicate request_size=10 [02:41:24]MH_SAM_APDU [02:41:24]CAPDU: 80 0D 02 02 05 47 B1 0A 02 E0 [02:41:24]Write to MH i2c: E2 0D 00 6B 43 80 0D 02 02 05 00 47 B1 0A 02 E0 00 00 16 [02:41:24]Write i2c OK [02:41:24]MH_I2C_Read... [02:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:41:24]Read from MH i2c: E2 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 03 00 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 03 00 6B 43 00 90 00 22 [02:41:24]RAPDU: 90 00 [02:41:24]wFMCommunicate OK [02:41:24]wFMCommunicate request_size=4 [02:41:24]MH_SAM_APDU [02:41:24]CAPDU: 80 0D 03 02 [02:41:24]Write to MH i2c: E2 08 00 6C 43 80 0D 03 02 00 00 00 00 2A [02:41:24]Write i2c OK [02:41:24]MH_I2C_Read... [02:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:41:24]Read from MH i2c: E2 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 0B 00 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 0B 00 6C 43 00 0D 74 F4 F4 AD DA E3 7A 90 00 78 [02:41:24]RAPDU: 0D 74 F4 F4 AD DA E3 7A 90 00 [02:41:24]wFMCommunicate OK [02:41:24]SAM_PROTO_SignData done [02:41:24]FM_MakeSignedData done [02:41:24]CreateOFDProtocolMessage [02:41:24]wFMCommunicate request_size=4 [02:41:24]MH_SAM_APDU [02:41:24]CAPDU: 80 11 00 00 [02:41:24]Write to MH i2c: E2 08 00 6D 43 80 11 00 00 00 00 00 00 2A [02:41:24]Write i2c OK [02:41:24]MH_I2C_Read... [02:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:24]Read from MH i2c: E2 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 17 00 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: E2 17 00 6D 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 7C [02:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:41:24]wFMCommunicate OK [02:41:24]CreateOFDProtocolMessage done [02:41:24]OFDSenderStorePacket 111552 [02:41:24]StoreOFDPacket docnum=111552 [02:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BE 46 07 01 BA 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E7 96 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B3 01 00 35 04 06 00 AD 47 B1 0A 02 E0 0D 74 F4 F4 AD DA E3 7A [02:41:24]CheckFolder [02:41:24]dirname=/storage/ofd_packets [02:41:24]CheckFolder done [02:41:24]ProducePacketName [02:41:24]name=ofd_packets/00111552 [02:41:24]NVStorageSaveData ofd_packets/00111552 [02:41:24]File name is /storage/ofd_packets/00111552 [02:41:24]Write 301 bytes [02:41:24]NVStorageSaveData done [02:41:24]OFDSenderStorePacket done [02:41:24]KKMCreateOFDPacket done [02:41:24]NVStorageSaveData kkm_last_timestamp [02:41:24]File name is /storage/kkm_last_timestamp [02:41:24]Write 4 bytes [02:41:24]NVStorageSaveData done [02:41:24]ExternCall_PrintAddStr [02:41:24]wPrintStart [02:41:24]Write to MH i2c: 01 00 00 6E 43 B1 [02:41:24]Write i2c OK [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: 01 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: 01 07 00 [02:41:24]MH_I2C_Read... [02:41:24]Read from MH i2c: 01 07 00 6E 43 00 00 00 00 00 FF 0F C6 [02:41:24]RasterBufferAndPrint [02:41:24]line Счет N : (1)320149 [02:41:24]line ИНН: 02508201610067 [02:41:24]line Контрольно-Кассовый Чек [02:41:24]line ПРОДАЖА [02:41:24]line ТРК (МРК, ГНК) : 11 [02:41:24]line Товар: 2710124130 [02:41:24]line Аи-92-К-5 [02:41:24]line 3.020 * 66.40 [02:41:24]line = 200.53 [02:41:24]line НДС 12% НСП 1% [02:41:24]line > о реализуемом товаре [02:41:24]line ИТОГО: 200.53 [02:41:24]line НСП 1% : 1.77 [02:41:24]line НДС 12% : 21.29 [02:41:24]line Наличными: 0.00 [02:41:24]line Безнал.: 200.53 [02:41:24]line Место: АЗС № 65 "Партнер Нефть" [02:41:24]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [02:41:24]line СНО: Общий режим [02:41:24]line Чек 2 20.06.2024 02:41 [02:41:24]line Смена: 389 ФФД: 1.0 [02:41:24]line ЗНМ: 0300000198 [02:41:24]line РНМ: 0000000000092771 [02:41:24]line Версия ККМ: 001 [02:41:24]line Платежная система: О! деньги [02:41:24]line ФМ: 0000000000875083 [02:41:24]line ФД: 111552 [02:41:24]line ФПД: 190523424506592 [02:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T024143&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111552&fm=190523424506592&tin=02508201610067®Number=0000000000092771&sum=20053 [02:41:25]OFD Sender: Processing packet 111552 [packets to send 38, broken 37] [02:41:25]ProducePacketName [02:41:25]name=ofd_packets/00111552 [02:41:25]OFD Sender: To server: pG, [02:41:25]CommunicateWithHost lk.salyk.kg:30040 [02:41:25]ConnectInit lk.salyk.kg [02:41:25]written 0, free lines is 4095 [02:41:25]Connected sock=10 [02:41:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 BE 46 07 01 BA 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 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 E7 96 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B3 01 00 35 04 06 00 AD 47 B1 0A 02 E0 0D 74 F4 F4 AD DA E3 7A [02:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 23 81 47 00 FC 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C0 B3 01 00 F4 03 04 00 3E 2E 73 66 B6 04 01 00 00 5F DF 5F EA BE 90 A7 33 [02:41:25]CommunicateWithHost err = 0 [02:41:25]CheckOFDResponse [02:41:25]1017 (14) - 77093643461234 [02:41:25]1041 (16) - 0000000000875083 [02:41:25]1040 (4) - 111552 [02:41:25]1012 (4) - 19.06.2024 19:15 [02:41:25]1206 (1) - 0 [02:41:25]OFD Sender: Remove packet 111552 [02:41:25]ProducePacketName [02:41:25]name=ofd_packets/00111552 [02:41:25]NVStorageDeleteData [02:41:25]Write to MH i2c: 01 00 00 98 43 DB [02:41:25]Write i2c OK [02:41:25]MH_I2C_Read... [02:41:25]Read from MH i2c: 01 [02:41:25]MH_I2C_Read... [02:41:25]Read from MH i2c: 01 07 00 [02:41:25]MH_I2C_Read... [02:41:25]Read from MH i2c: 01 07 00 98 43 00 00 00 00 00 E7 0C D5 [02:41:25]RasterBufferAndPrint [02:41:25]line [02:41:25]line [02:41:25]line [02:41:25]line [02:41:25]line [02:41:25]written 0, free lines is 3310 [02:41:25]MH_Cut [02:41:25]Write to MH i2c: D1 01 00 9F 43 01 B4 [02:41:25]Write i2c OK [02:41:25]MH_I2C_Read... [02:41:25]Read from MH i2c: D1 [02:41:25]MH_I2C_Read... [02:41:25]Read from MH i2c: D1 01 00 [02:41:25]MH_I2C_Read... [02:41:25]Read from MH i2c: D1 01 00 9F 43 00 B3 [02:41:25]Write to MH i2c: 01 00 00 A0 43 E3 [02:41:25]Write i2c OK [02:41:25]MH_I2C_Read... [02:41:26]OFD Sender: No OFD packet to send [02:41:26]*** Cut start [02:41:26]*** Partial cut [02:41:26]*** CUTSNS_PIN = 1 [02:41:26]*** CUTSNS_PIN = 0 [02:41:26]*** Brake cut motor [02:41:27]Read from MH i2c: 01 [02:41:27]MH_I2C_Read... [02:41:27]*** Stop cut motor [02:41:27]*** Cut end [02:41:27]Read from MH i2c: 01 07 00 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: 01 07 00 A0 43 00 00 00 00 00 FF 0F F8 [02:41:27]process_action close_receipt done [02:41:27]requested_data is exist [02:41:27]produce_requested_data [02:41:27]requested_item fm.sn is exist - process it [02:41:27]wFMCommunicate request_size=4 [02:41:27]MH_SAM_APDU [02:41:27]CAPDU: 80 11 00 00 [02:41:27]Write to MH i2c: E2 08 00 A1 43 80 11 00 00 00 00 00 00 5E [02:41:27]Write i2c OK [02:41:27]MH_I2C_Read... [02:41:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:41:27]Read from MH i2c: E2 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 17 00 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 17 00 A1 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 B0 [02:41:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:41:27]wFMCommunicate OK [02:41:27]requested_item fd.num is exist - process it [02:41:27]SAM_PROTO_GetFieldsCounters [02:41:27]wFMCommunicate request_size=4 [02:41:27]MH_SAM_APDU [02:41:27]CAPDU: 80 13 00 00 [02:41:27]Write to MH i2c: E2 08 00 A2 43 80 13 00 00 00 00 00 00 61 [02:41:27]Write i2c OK [02:41:27]MH_I2C_Read... [02:41:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:41:27]Read from MH i2c: E2 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 62 00 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 62 00 A2 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [02:41:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C0 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:41:27]wFMCommunicate OK [02:41:27]SAM_PROTO_GetFieldsCounters done [02:41:27]requested_item shift.num is exist - process it [02:41:27]requested_item shift.opened is exist - process it [02:41:27]req_shift_opened [02:41:27]FM_GetShiftState [02:41:27]SAM_PROTO_GetShiftState [02:41:27]wFMCommunicate request_size=4 [02:41:27]MH_SAM_APDU [02:41:27]CAPDU: 80 13 01 00 [02:41:27]Write to MH i2c: E2 08 00 A3 43 80 13 01 00 00 00 00 00 63 [02:41:27]Write i2c OK [02:41:27]MH_I2C_Read... [02:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:41:27]Read from MH i2c: E2 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 0E 00 [02:41:27]MH_I2C_Read... [02:41:27]Read from MH i2c: E2 0E 00 A3 43 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 DE [02:41:27]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:41:27]wFMCommunicate OK [02:41:27]SAM_PROTO_GetShiftState done [02:41:27]FM_GetShiftState done [02:41:27]req_shift_opened done [02:41:27]requested_item shift.open_date is exist - process it [02:41:27]req_shift_open_date [02:41:27]req_shift_open_date done [02:41:27]produce_requested_data done [02:41:27]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111552,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [02:41:27]process_action_free close_receipt [02:41:27]json_value_free [02:41:27]json_value_free done [02:41:27]process_json_proto returns [02:41:27]Send response to host [02:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111552,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [02:41:27]free response buf [02:41:27]execute_script done [02:41:27]execute_script returns [02:41:27]free content buf [02:41:27]Sock 7.Close socket [02:41:27]Sock 7.Thread stoped [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]accept exits with 9 [02:45:16]New connection [02:45:16]New thread 3067321700 created [02:45:16]Thread 3067465060 joined [02:45:16]Waiting for new connection... [02:45:16] Sock 9.Parse request [02:45:16]Sock 9.Check first char [02:45:16]Sock 9.First char is OK [02:45:16]request: POST /json_proto HTTP/1.0 [02:45:16]Method: POST [02:45:16]URL: /json_proto [02:45:16]Method is POST - this is cgi request [02:45:16]url: /json_proto [02:45:16]query_string will be loaded in cgi processing [02:45:16]execute_cgi json_proto POST (null) [02:45:16]execute_cgi path=json_proto method=POST [02:45:16]POST find Content-Length [02:45:16]Host: 172.17.59.68:8080 [02:45:16]Content-Length: 682 [02:45:16]Content-Type: application/json [02:45:16] [02:45:16]POST finish read [02:45:16]Found Content-Length = 682 [02:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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" ] } } [02:45:16]execute_script... [02:45: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)320150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 16.570, "sum" : 1100.25, "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" ] } } [02:45:16]POST & json_proto [02:45:16]process_json_proto [02:45:16]json parsed OK: [02:45:16]protocol is kg_v1.0 [02:45:16]action value=close_receipt [02:45:16]process_action close_receipt [02:45:16]cmd_close_receipt [02:45:16]MH_GetDate [02:45:16]Write to MH i2c: F0 00 00 A4 43 D6 [02:45:16]Write i2c OK [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: F0 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: F0 09 00 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: F0 09 00 A4 43 00 D0 97 73 66 BC EC 60 65 8C [02:45:16]GetLastDocTimeStamp 1718851303 [02:45:16]current date 1718851536 [02:45:16]FM_GetShiftState [02:45:16]SAM_PROTO_GetShiftState [02:45:16]wFMCommunicate request_size=4 [02:45:16]MH_SAM_APDU [02:45:16]CAPDU: 80 13 01 00 [02:45:16]Write to MH i2c: E2 08 00 A5 43 80 13 01 00 00 00 00 00 65 [02:45:16]Write i2c OK [02:45:16]MH_I2C_Read... [02:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:16]Read from MH i2c: E2 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: E2 0E 00 [02:45:16]MH_I2C_Read... [02:45:16]Read from MH i2c: E2 0E 00 A5 43 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 E0 [02:45:16]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:45:16]wFMCommunicate OK [02:45:16]SAM_PROTO_GetShiftState done [02:45:16]FM_GetShiftState done [02:45:16]opened in 1718847247 [02:45:16]opened+sec_in_day 1718933647 [02:45:16]quantity*price = 110024 [02:45:16]sum+1 = 110026 [02:45:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.84 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 3 20.06.2024 02:45 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111553 ФПД: 85188298174790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T024536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111553&fm=85188298174790&tin=02508201610067®Number=0000000000092771&sum=110000 [02:45:17]StoreToDocumentArchive [02:45:17]shift 389 fd 111553 [02:45:17]save to /storage/0389/doc_00111553 [02:45:17]save last doc name /storage/0389/doc_00111553 to /storage/kkm_last_doc_name [02:45:17]save OK [02:45:17]Clear old archive folders... [02:45:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:45:17]tlvbuf is 00F0CBA0 [02:45:17]SAM_PROTO_ClearQueue [02:45:17]wFMCommunicate request_size=4 [02:45:17]MH_SAM_APDU [02:45:17]CAPDU: 80 09 00 00 [02:45:17]Write to MH i2c: E2 08 00 B2 43 80 09 00 00 00 00 00 00 67 [02:45:17]Write i2c OK [02:45:17]MH_I2C_Read... [02:45:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:45:17]Read from MH i2c: E2 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 03 00 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 03 00 B2 43 00 90 00 69 [02:45:17]RAPDU: 90 00 [02:45:17]wFMCommunicate OK [02:45:17]SAM_PROTO_ClearQueue done [02:45:17]KKMCreateOFDPacket [02:45:17]OFDProtocolAddRootSTLVToBuf [02:45:17]FM_MakeSignedData [02:45:17]FM_MakeSignedData [02:45:17]SAM_PROTO_SignData [02:45:17]wFMCommunicate request_size=4 [02:45:17]MH_SAM_APDU [02:45:17]CAPDU: 80 0D 01 02 [02:45:17]Write to MH i2c: E2 08 00 B3 43 80 0D 01 02 00 00 00 00 6F [02:45:17]Write i2c OK [02:45:17]MH_I2C_Read... [02:45:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:45:17]Read from MH i2c: E2 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 03 00 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 03 00 B3 43 00 90 00 6A [02:45:17]RAPDU: 90 00 [02:45:17]wFMCommunicate OK [02:45:17]wFMCommunicate request_size=255 [02:45:17]MH_SAM_APDU [02:45: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 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 03 00 00 00 F4 03 04 00 D0 97 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B3 01 00 35 04 06 00 4D [02:45:17]Write to MH i2c: E2 02 01 B4 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 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 03 00 00 00 F4 03 04 00 D0 97 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B3 01 00 35 04 06 00 4D 00 00 DC [02:45:17]Write i2c OK [02:45:17]MH_I2C_Read... [02:45:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:17]Read from MH i2c: E2 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 03 00 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 03 00 B4 43 00 90 00 6B [02:45:17]RAPDU: 90 00 [02:45:17]wFMCommunicate OK [02:45:17]wFMCommunicate request_size=10 [02:45:17]MH_SAM_APDU [02:45:17]CAPDU: 80 0D 02 02 05 7A 72 40 71 46 [02:45:17]Write to MH i2c: E2 0D 00 B5 43 80 0D 02 02 05 00 7A 72 40 71 46 00 00 5F [02:45:17]Write i2c OK [02:45:17]MH_I2C_Read... [02:45:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:17]Read from MH i2c: E2 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 03 00 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 03 00 B5 43 00 90 00 6C [02:45:17]RAPDU: 90 00 [02:45:17]wFMCommunicate OK [02:45:17]wFMCommunicate request_size=4 [02:45:17]MH_SAM_APDU [02:45:17]CAPDU: 80 0D 03 02 [02:45:17]Write to MH i2c: E2 08 00 B6 43 80 0D 03 02 00 00 00 00 74 [02:45:17]Write i2c OK [02:45:17]MH_I2C_Read... [02:45:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:45:17]Read from MH i2c: E2 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 0B 00 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 0B 00 B6 43 00 D8 CD 2C 82 AD 52 14 F2 90 00 CD [02:45:17]RAPDU: D8 CD 2C 82 AD 52 14 F2 90 00 [02:45:17]wFMCommunicate OK [02:45:17]SAM_PROTO_SignData done [02:45:17]FM_MakeSignedData done [02:45:17]CreateOFDProtocolMessage [02:45:17]wFMCommunicate request_size=4 [02:45:17]MH_SAM_APDU [02:45:17]CAPDU: 80 11 00 00 [02:45:17]Write to MH i2c: E2 08 00 B7 43 80 11 00 00 00 00 00 00 74 [02:45:17]Write i2c OK [02:45:17]MH_I2C_Read... [02:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:17]Read from MH i2c: E2 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 17 00 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: E2 17 00 B7 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 C6 [02:45:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:45:17]wFMCommunicate OK [02:45:17]CreateOFDProtocolMessage done [02:45:17]OFDSenderStorePacket 111553 [02:45:17]StoreOFDPacket docnum=111553 [02:45:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C6 3D 07 01 1F 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 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 03 00 00 00 F4 03 04 00 D0 97 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B3 01 00 35 04 06 00 4D 7A 72 40 71 46 D8 CD 2C 82 AD 52 14 F2 [02:45:17]CheckFolder [02:45:17]dirname=/storage/ofd_packets [02:45:17]CheckFolder done [02:45:17]ProducePacketName [02:45:17]name=ofd_packets/00111553 [02:45:17]NVStorageSaveData ofd_packets/00111553 [02:45:17]File name is /storage/ofd_packets/00111553 [02:45:17]Write 301 bytes [02:45:17]NVStorageSaveData done [02:45:17]OFDSenderStorePacket done [02:45:17]KKMCreateOFDPacket done [02:45:17]NVStorageSaveData kkm_last_timestamp [02:45:17]File name is /storage/kkm_last_timestamp [02:45:17]Write 4 bytes [02:45:17]NVStorageSaveData done [02:45:17]ExternCall_PrintAddStr [02:45:17]wPrintStart [02:45:17]Write to MH i2c: 01 00 00 B8 43 FB [02:45:17]Write i2c OK [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: 01 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: 01 07 00 [02:45:17]MH_I2C_Read... [02:45:17]Read from MH i2c: 01 07 00 B8 43 00 00 00 00 00 FF 0F 10 [02:45:17]RasterBufferAndPrint [02:45:17]line Счет N : (1)320150 [02:45:17]line ИНН: 02508201610067 [02:45:17]line Контрольно-Кассовый Чек [02:45:17]line ПРОДАЖА [02:45:17]line ТРК (МРК, ГНК) : 11 [02:45:17]line Товар: 2710124130 [02:45:17]line Аи-92-К-5 [02:45:17]line 16.570 * 66.40 [02:45:17]line = 1100.25 [02:45:17]line НДС 12% НСП 1% [02:45:17]line > о реализуемом товаре [02:45:17]line ОКРУГЛЕНИЕ: -0.25 [02:45:17]line ИТОГО: 1100.00 [02:45:17]line Внесено: 1100.00 [02:45:17]line СДАЧА: 0.00 [02:45:17]line НСП 1% : 9.74 [02:45:17]line НДС 12% : 116.84 [02:45:17]line Наличными: 1100.00 [02:45:17]line Безнал.: 0.00 [02:45:17]line Место: АЗС № 65 "Партнер Нефть" [02:45:17]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [02:45:17]line СНО: Общий режим [02:45:17]line Чек 3 20.06.2024 02:45 [02:45:17]line Смена: 389 ФФД: 1.0 [02:45:17]line ЗНМ: 0300000198 [02:45:17]line РНМ: 0000000000092771 [02:45:17]line Версия ККМ: 001 [02:45:17]line ФМ: 0000000000875083 [02:45:17]line ФД: 111553 [02:45:17]line ФПД: 85188298174790 [02:45:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T024536&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111553&fm=85188298174790&tin=02508201610067®Number=0000000000092771&sum=110000 [02:45:18]OFD Sender: Processing packet 111553 [packets to send 38, broken 37] [02:45:18]ProducePacketName [02:45:18]name=ofd_packets/00111553 [02:45:18]OFD Sender: To server: pG, [02:45:18]CommunicateWithHost lk.salyk.kg:30040 [02:45:18]ConnectInit lk.salyk.kg [02:45:18]written 0, free lines is 4095 [02:45:18]Connected sock=10 [02:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 C6 3D 07 01 1F 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 BA 40 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 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 A4 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 03 00 00 00 F4 03 04 00 D0 97 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C1 B3 01 00 35 04 06 00 4D 7A 72 40 71 46 D8 CD 2C 82 AD 52 14 F2 [02:45:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 F4 FF 47 00 1B 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 35 30 38 33 10 04 04 00 C1 B3 01 00 F4 03 04 00 27 2F 73 66 B6 04 01 00 00 6A EC E7 95 D6 F5 61 33 [02:45:18]CommunicateWithHost err = 0 [02:45:18]CheckOFDResponse [02:45:18]1017 (14) - 77093643461234 [02:45:18]1041 (16) - 0000000000875083 [02:45:18]1040 (4) - 111553 [02:45:18]1012 (4) - 19.06.2024 19:19 [02:45:18]1206 (1) - 0 [02:45:18]OFD Sender: Remove packet 111553 [02:45:18]ProducePacketName [02:45:18]name=ofd_packets/00111553 [02:45:18]NVStorageDeleteData [02:45:18]Write to MH i2c: 01 00 00 E3 43 26 [02:45:18]Write i2c OK [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: 01 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: 01 07 00 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: 01 07 00 E3 43 00 00 00 00 00 CD 0C 06 [02:45:18]RasterBufferAndPrint [02:45:18]line [02:45:18]line [02:45:18]line [02:45:18]line [02:45:18]line [02:45:18]written 0, free lines is 3283 [02:45:18]MH_Cut [02:45:18]Write to MH i2c: D1 01 00 EA 43 01 FF [02:45:18]Write i2c OK [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: D1 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: D1 01 00 [02:45:18]MH_I2C_Read... [02:45:18]Read from MH i2c: D1 01 00 EA 43 00 FE [02:45:18]Write to MH i2c: 01 00 00 EB 43 2E [02:45:18]Write i2c OK [02:45:18]MH_I2C_Read... [02:45:18]OFD Sender: No OFD packet to send [02:45:19]*** Cut start [02:45:19]*** Partial cut [02:45:19]*** CUTSNS_PIN = 1 [02:45:19]*** CUTSNS_PIN = 0 [02:45:19]*** Brake cut motor [02:45:19]Read from MH i2c: 01 [02:45:19]MH_I2C_Read... [02:45:19]*** Stop cut motor [02:45:19]*** Cut end [02:45:19]Read from MH i2c: 01 07 00 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: 01 07 00 EB 43 00 00 00 00 00 FF 0F 43 [02:45:19]process_action close_receipt done [02:45:19]requested_data is exist [02:45:19]produce_requested_data [02:45:19]requested_item fm.sn is exist - process it [02:45:19]wFMCommunicate request_size=4 [02:45:19]MH_SAM_APDU [02:45:19]CAPDU: 80 11 00 00 [02:45:19]Write to MH i2c: E2 08 00 EC 43 80 11 00 00 00 00 00 00 A9 [02:45:19]Write i2c OK [02:45:19]MH_I2C_Read... [02:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:19]Read from MH i2c: E2 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 17 00 [02:45:19]MH_I2C_Read... [02:45:19]Read from MH i2c: E2 17 00 EC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 FB [02:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:45:19]wFMCommunicate OK [02:45:19]requested_item fd.num is exist - process it [02:45:19]SAM_PROTO_GetFieldsCounters [02:45:19]wFMCommunicate request_size=4 [02:45:19]MH_SAM_APDU [02:45:19]CAPDU: 80 13 00 00 [02:45:19]Write to MH i2c: E2 08 00 ED 43 80 13 00 00 00 00 00 00 AC [02:45:19]Write i2c OK [02:45:19]MH_I2C_Read... [02:45:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:45:20]Read from MH i2c: E2 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 62 00 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 62 00 ED 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [02:45: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C1 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:45:20]wFMCommunicate OK [02:45:20]SAM_PROTO_GetFieldsCounters done [02:45:20]requested_item shift.num is exist - process it [02:45:20]requested_item shift.opened is exist - process it [02:45:20]req_shift_opened [02:45:20]FM_GetShiftState [02:45:20]SAM_PROTO_GetShiftState [02:45:20]wFMCommunicate request_size=4 [02:45:20]MH_SAM_APDU [02:45:20]CAPDU: 80 13 01 00 [02:45:20]Write to MH i2c: E2 08 00 EE 43 80 13 01 00 00 00 00 00 AE [02:45:20]Write i2c OK [02:45:20]MH_I2C_Read... [02:45:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:20]Read from MH i2c: E2 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 0E 00 [02:45:20]MH_I2C_Read... [02:45:20]Read from MH i2c: E2 0E 00 EE 43 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 29 [02:45:20]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:45:20]wFMCommunicate OK [02:45:20]SAM_PROTO_GetShiftState done [02:45:20]FM_GetShiftState done [02:45:20]req_shift_opened done [02:45:20]requested_item shift.open_date is exist - process it [02:45:20]req_shift_open_date [02:45:20]req_shift_open_date done [02:45:20]produce_requested_data done [02:45:20]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111553,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [02:45:20]process_action_free close_receipt [02:45:20]json_value_free [02:45:20]json_value_free done [02:45:20]process_json_proto returns [02:45:20]Send response to host [02:45:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111553,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [02:45:20]free response buf [02:45:20]execute_script done [02:45:20]execute_script returns [02:45:20]free content buf [02:45:20]Sock 9.Close socket [02:45:20]Sock 9.Thread stoped [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:49]accept exits with 7 [02:45:49]New connection [02:45:49]New thread 3067465060 created [02:45:49]Thread 3067321700 joined [02:45:49]Waiting for new connection... [02:45:49] Sock 7.Parse request [02:45:49]Sock 7.Check first char [02:45:49]Sock 7.First char is OK [02:45:49]request: POST /json_proto HTTP/1.0 [02:45:49]Method: POST [02:45:49]URL: /json_proto [02:45:49]Method is POST - this is cgi request [02:45:49]url: /json_proto [02:45:49]query_string will be loaded in cgi processing [02:45:49]execute_cgi json_proto POST (null) [02:45:49]execute_cgi path=json_proto method=POST [02:45:49]POST find Content-Length [02:45:49]Host: 172.17.59.68:8080 [02:45:49]Content-Length: 674 [02:45:49]Content-Type: application/json [02:45:49] [02:45:49]POST finish read [02:45:49]Found Content-Length = 674 [02:45:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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" ] } } [02:45:49]execute_script... [02:45: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)320151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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" ] } } [02:45:49]POST & json_proto [02:45:49]process_json_proto [02:45:49]json parsed OK: [02:45:49]protocol is kg_v1.0 [02:45:49]action value=close_receipt [02:45:49]process_action close_receipt [02:45:49]cmd_close_receipt [02:45:49]MH_GetDate [02:45:49]Write to MH i2c: F0 00 00 EF 43 21 [02:45:49]Write i2c OK [02:45:49]MH_I2C_Read... [02:45:49]Read from MH i2c: F0 [02:45:49]MH_I2C_Read... [02:45:49]Read from MH i2c: F0 09 00 [02:45:49]MH_I2C_Read... [02:45:49]Read from MH i2c: F0 09 00 EF 43 00 F1 97 73 66 BC EC 60 65 F8 [02:45:49]GetLastDocTimeStamp 1718851536 [02:45:49]current date 1718851569 [02:45:49]FM_GetShiftState [02:45:49]SAM_PROTO_GetShiftState [02:45:49]wFMCommunicate request_size=4 [02:45:49]MH_SAM_APDU [02:45:49]CAPDU: 80 13 01 00 [02:45:49]Write to MH i2c: E2 08 00 F0 43 80 13 01 00 00 00 00 00 B0 [02:45:49]Write i2c OK [02:45:49]MH_I2C_Read... [02:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:49]Read from MH i2c: E2 [02:45:49]MH_I2C_Read... [02:45:49]Read from MH i2c: E2 0E 00 [02:45:49]MH_I2C_Read... [02:45:49]Read from MH i2c: E2 0E 00 F0 43 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 2B [02:45:49]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:45:49]wFMCommunicate OK [02:45:49]SAM_PROTO_GetShiftState done [02:45:49]FM_GetShiftState done [02:45:49]opened in 1718847247 [02:45:49]opened+sec_in_day 1718933647 [02:45:49]quantity*price = 20047 [02:45:49]sum+1 = 20049 [02:45:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 4 20.06.2024 02:46 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111554 ФПД: 52835383077390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T024609&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111554&fm=52835383077390&tin=02508201610067®Number=0000000000092771&sum=20000 [02:45:50]StoreToDocumentArchive [02:45:50]shift 389 fd 111554 [02:45:50]save to /storage/0389/doc_00111554 [02:45:50]save last doc name /storage/0389/doc_00111554 to /storage/kkm_last_doc_name [02:45:50]save OK [02:45:50]Clear old archive folders... [02:45:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:45:50]tlvbuf is 00F303B0 [02:45:50]SAM_PROTO_ClearQueue [02:45:50]wFMCommunicate request_size=4 [02:45:50]MH_SAM_APDU [02:45:50]CAPDU: 80 09 00 00 [02:45:50]Write to MH i2c: E2 08 00 FD 43 80 09 00 00 00 00 00 00 B2 [02:45:50]Write i2c OK [02:45:50]MH_I2C_Read... [02:45:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:45:50]Read from MH i2c: E2 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 03 00 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 03 00 FD 43 00 90 00 B4 [02:45:50]RAPDU: 90 00 [02:45:50]wFMCommunicate OK [02:45:50]SAM_PROTO_ClearQueue done [02:45:50]KKMCreateOFDPacket [02:45:50]OFDProtocolAddRootSTLVToBuf [02:45:50]FM_MakeSignedData [02:45:50]FM_MakeSignedData [02:45:50]SAM_PROTO_SignData [02:45:50]wFMCommunicate request_size=4 [02:45:50]MH_SAM_APDU [02:45:50]CAPDU: 80 0D 01 02 [02:45:50]Write to MH i2c: E2 08 00 FE 43 80 0D 01 02 00 00 00 00 BA [02:45:50]Write i2c OK [02:45:50]MH_I2C_Read... [02:45:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:45:50]Read from MH i2c: E2 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 03 00 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 03 00 FE 43 00 90 00 B5 [02:45:50]RAPDU: 90 00 [02:45:50]wFMCommunicate OK [02:45:50]wFMCommunicate request_size=255 [02:45:50]MH_SAM_APDU [02:45: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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F1 97 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B3 01 00 35 04 06 00 30 0D B2 3D [02:45:50]Write to MH i2c: E2 02 01 FF 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F1 97 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B3 01 00 35 04 06 00 30 0D B2 3D 00 00 86 [02:45:50]Write i2c OK [02:45:50]MH_I2C_Read... [02:45:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:50]Read from MH i2c: E2 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 03 00 [02:45:50]MH_I2C_Read... [02:45:50]Read from MH i2c: E2 03 00 FF 43 00 90 00 B6 [02:45:50]RAPDU: 90 00 [02:45:50]wFMCommunicate OK [02:45:50]wFMCommunicate request_size=7 [02:45:50]MH_SAM_APDU [02:45:50]CAPDU: 80 0D 02 02 02 6A 0E [02:45:50]Write to MH i2c: E2 0A 00 00 44 80 0D 02 02 02 00 6A 0E 00 00 3A [02:45:50]Write i2c OK [02:45:50]MH_I2C_Read... [02:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:45:51]Read from MH i2c: E2 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: E2 03 00 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: E2 03 00 00 44 00 90 00 B8 [02:45:51]RAPDU: 90 00 [02:45:51]wFMCommunicate OK [02:45:51]wFMCommunicate request_size=4 [02:45:51]MH_SAM_APDU [02:45:51]CAPDU: 80 0D 03 02 [02:45:51]Write to MH i2c: E2 08 00 01 44 80 0D 03 02 00 00 00 00 C0 [02:45:51]Write i2c OK [02:45:51]MH_I2C_Read... [02:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:45:51]Read from MH i2c: E2 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: E2 0B 00 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: E2 0B 00 01 44 00 0A B2 A9 4D F3 39 41 37 90 00 17 [02:45:51]RAPDU: 0A B2 A9 4D F3 39 41 37 90 00 [02:45:51]wFMCommunicate OK [02:45:51]SAM_PROTO_SignData done [02:45:51]FM_MakeSignedData done [02:45:51]CreateOFDProtocolMessage [02:45:51]wFMCommunicate request_size=4 [02:45:51]MH_SAM_APDU [02:45:51]CAPDU: 80 11 00 00 [02:45:51]Write to MH i2c: E2 08 00 02 44 80 11 00 00 00 00 00 00 C0 [02:45:51]Write i2c OK [02:45:51]MH_I2C_Read... [02:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:51]Read from MH i2c: E2 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: E2 17 00 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: E2 17 00 02 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 12 [02:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:45:51]wFMCommunicate OK [02:45:51]CreateOFDProtocolMessage done [02:45:51]OFDSenderStorePacket 111554 [02:45:51]StoreOFDPacket docnum=111554 [02:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 6C B6 04 01 FB 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F1 97 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B3 01 00 35 04 06 00 30 0D B2 3D 6A 0E 0A B2 A9 4D F3 39 41 37 [02:45:51]CheckFolder [02:45:51]dirname=/storage/ofd_packets [02:45:51]CheckFolder done [02:45:51]ProducePacketName [02:45:51]name=ofd_packets/00111554 [02:45:51]NVStorageSaveData ofd_packets/00111554 [02:45:51]File name is /storage/ofd_packets/00111554 [02:45:51]Write 298 bytes [02:45:51]NVStorageSaveData done [02:45:51]OFDSenderStorePacket done [02:45:51]KKMCreateOFDPacket done [02:45:51]NVStorageSaveData kkm_last_timestamp [02:45:51]File name is /storage/kkm_last_timestamp [02:45:51]Write 4 bytes [02:45:51]NVStorageSaveData done [02:45:51]ExternCall_PrintAddStr [02:45:51]wPrintStart [02:45:51]Write to MH i2c: 01 00 00 03 44 47 [02:45:51]Write i2c OK [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: 01 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: 01 07 00 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: 01 07 00 03 44 00 00 00 00 00 FF 0F 5C [02:45:51]RasterBufferAndPrint [02:45:51]line Счет N : (1)320151 [02:45:51]line ИНН: 02508201610067 [02:45:51]line Контрольно-Кассовый Чек [02:45:51]line ПРОДАЖА [02:45:51]line ТРК (МРК, ГНК) : 22 [02:45:51]line Товар: 2710194210 [02:45:51]line ДТ-К-5 [02:45:51]line 2.750 * 72.90 [02:45:51]line = 200.48 [02:45:51]line НДС 12% НСП 1% [02:45:51]line > о реализуемом товаре [02:45:51]line ОКРУГЛЕНИЕ: -0.48 [02:45:51]line ИТОГО: 200.00 [02:45:51]line Внесено: 200.00 [02:45:51]line СДАЧА: 0.00 [02:45:51]line НСП 1% : 1.77 [02:45:51]line НДС 12% : 21.29 [02:45:51]line Наличными: 200.00 [02:45:51]line Безнал.: 0.00 [02:45:51]line Место: АЗС № 65 "Партнер Нефть" [02:45:51]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [02:45:51]line СНО: Общий режим [02:45:51]line Чек 4 20.06.2024 02:46 [02:45:51]line Смена: 389 ФФД: 1.0 [02:45:51]line ЗНМ: 0300000198 [02:45:51]line РНМ: 0000000000092771 [02:45:51]line Версия ККМ: 001 [02:45:51]line ФМ: 0000000000875083 [02:45:51]line ФД: 111554 [02:45:51]line ФПД: 52835383077390 [02:45:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T024609&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111554&fm=52835383077390&tin=02508201610067®Number=0000000000092771&sum=20000 [02:45:51]OFD Sender: Processing packet 111554 [packets to send 38, broken 37] [02:45:51]ProducePacketName [02:45:51]name=ofd_packets/00111554 [02:45:51]OFD Sender: To server: pG, [02:45:51]CommunicateWithHost lk.salyk.kg:30040 [02:45:51]ConnectInit lk.salyk.kg [02:45:51]written 0, free lines is 4095 [02:45:51]Connected sock=10 [02:45:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 6C B6 04 01 FB 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 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 F1 97 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C2 B3 01 00 35 04 06 00 30 0D B2 3D 6A 0E 0A B2 A9 4D F3 39 41 37 [02:45:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 46 BD 47 00 DA 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 35 30 38 33 10 04 04 00 C2 B3 01 00 F4 03 04 00 49 2F 73 66 B6 04 01 00 00 90 58 AB E0 03 AC 09 0C [02:45:51]CommunicateWithHost err = 0 [02:45:51]CheckOFDResponse [02:45:51]1017 (14) - 77093643461234 [02:45:51]1041 (16) - 0000000000875083 [02:45:51]1040 (4) - 111554 [02:45:51]1012 (4) - 19.06.2024 19:19 [02:45:51]1206 (1) - 0 [02:45:51]OFD Sender: Remove packet 111554 [02:45:51]ProducePacketName [02:45:51]name=ofd_packets/00111554 [02:45:51]NVStorageDeleteData [02:45:51]Write to MH i2c: 01 00 00 2E 44 72 [02:45:51]Write i2c OK [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: 01 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: 01 07 00 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: 01 07 00 2E 44 00 00 00 00 00 D0 0C 55 [02:45:51]RasterBufferAndPrint [02:45:51]line [02:45:51]line [02:45:51]line [02:45:51]line [02:45:51]line [02:45:51]written 0, free lines is 3288 [02:45:51]MH_Cut [02:45:51]Write to MH i2c: D1 01 00 35 44 01 4B [02:45:51]Write i2c OK [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: D1 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: D1 01 00 [02:45:51]MH_I2C_Read... [02:45:51]Read from MH i2c: D1 01 00 35 44 00 4A [02:45:51]Write to MH i2c: 01 00 00 36 44 7A [02:45:51]Write i2c OK [02:45:51]MH_I2C_Read... [02:45:52]OFD Sender: No OFD packet to send [02:45:52]*** Cut start [02:45:52]*** Partial cut [02:45:52]*** CUTSNS_PIN = 1 [02:45:52]*** CUTSNS_PIN = 0 [02:45:52]*** Brake cut motor [02:45:53]Read from MH i2c: 01 [02:45:53]MH_I2C_Read... [02:45:53]*** Stop cut motor [02:45:53]*** Cut end [02:45:53]Read from MH i2c: 01 07 00 [02:45:53]MH_I2C_Read... [02:45:53]Read from MH i2c: 01 07 00 36 44 00 00 00 00 00 FF 0F 8F [02:45:53]process_action close_receipt done [02:45:53]requested_data is exist [02:45:53]produce_requested_data [02:45:53]requested_item fm.sn is exist - process it [02:45:53]wFMCommunicate request_size=4 [02:45:53]MH_SAM_APDU [02:45:53]CAPDU: 80 11 00 00 [02:45:53]Write to MH i2c: E2 08 00 37 44 80 11 00 00 00 00 00 00 F5 [02:45:53]Write i2c OK [02:45:53]MH_I2C_Read... [02:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:45:53]Read from MH i2c: E2 [02:45:53]MH_I2C_Read... [02:45:53]Read from MH i2c: E2 17 00 [02:45:53]MH_I2C_Read... [02:45:53]Read from MH i2c: E2 17 00 37 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 47 [02:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:45:53]wFMCommunicate OK [02:45:53]requested_item fd.num is exist - process it [02:45:53]SAM_PROTO_GetFieldsCounters [02:45:53]wFMCommunicate request_size=4 [02:45:53]MH_SAM_APDU [02:45:53]CAPDU: 80 13 00 00 [02:45:53]Write to MH i2c: E2 08 00 38 44 80 13 00 00 00 00 00 00 F8 [02:45:53]Write i2c OK [02:45:53]MH_I2C_Read... [02:45:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:45:53]Read from MH i2c: E2 [02:45:53]MH_I2C_Read... [02:45:53]Read from MH i2c: E2 62 00 [02:45:53]MH_I2C_Read... [02:45:53]Read from MH i2c: E2 62 00 38 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [02:45: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C2 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:45:53]wFMCommunicate OK [02:45:53]SAM_PROTO_GetFieldsCounters done [02:45:53]requested_item shift.num is exist - process it [02:45:53]requested_item shift.opened is exist - process it [02:45:53]req_shift_opened [02:45:53]FM_GetShiftState [02:45:53]SAM_PROTO_GetShiftState [02:45:53]wFMCommunicate request_size=4 [02:45:53]MH_SAM_APDU [02:45:53]CAPDU: 80 13 01 00 [02:45:53]Write to MH i2c: E2 08 00 39 44 80 13 01 00 00 00 00 00 FA [02:45:53]Write i2c OK [02:45:53]MH_I2C_Read... [02:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:45:53]Read from MH i2c: E2 [02:45:53]MH_I2C_Read... [02:45:53]Read from MH i2c: E2 0E 00 [02:45:53]MH_I2C_Read... [02:45:53]Read from MH i2c: E2 0E 00 39 44 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 75 [02:45:53]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:45:53]wFMCommunicate OK [02:45:53]SAM_PROTO_GetShiftState done [02:45:53]FM_GetShiftState done [02:45:53]req_shift_opened done [02:45:53]requested_item shift.open_date is exist - process it [02:45:53]req_shift_open_date [02:45:53]req_shift_open_date done [02:45:53]produce_requested_data done [02:45:53]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111554,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [02:45:53]process_action_free close_receipt [02:45:53]json_value_free [02:45:53]json_value_free done [02:45:53]process_json_proto returns [02:45:53]Send response to host [02:45:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111554,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [02:45:53]free response buf [02:45:53]execute_script done [02:45:53]execute_script returns [02:45:53]free content buf [02:45:53]Sock 7.Close socket [02:45:53]Sock 7.Thread stoped [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:46]accept exits with 9 [02:50:46]New connection [02:50:46]New thread 3067321700 created [02:50:46]Thread 3067465060 joined [02:50:46]Waiting for new connection... [02:50:46] Sock 9.Parse request [02:50:46]Sock 9.Check first char [02:50:46]Sock 9.First char is OK [02:50:46]request: POST /json_proto HTTP/1.0 [02:50:46]Method: POST [02:50:46]URL: /json_proto [02:50:46]Method is POST - this is cgi request [02:50:46]url: /json_proto [02:50:46]query_string will be loaded in cgi processing [02:50:46]execute_cgi json_proto POST (null) [02:50:46]execute_cgi path=json_proto method=POST [02:50:46]POST find Content-Length [02:50:46]Host: 172.17.59.68:8080 [02:50:46]Content-Length: 674 [02:50:46]Content-Type: application/json [02:50:46] [02:50:46]POST finish read [02:50:46]Found Content-Length = 674 [02:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [02:50:46]execute_script... [02:50: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)320152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 9.610, "sum" : 700.57, "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" ] } } [02:50:46]POST & json_proto [02:50:46]process_json_proto [02:50:46]json parsed OK: [02:50:46]protocol is kg_v1.0 [02:50:46]action value=close_receipt [02:50:46]process_action close_receipt [02:50:46]cmd_close_receipt [02:50:46]MH_GetDate [02:50:46]Write to MH i2c: F0 00 00 3A 44 6D [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: F0 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: F0 09 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: F0 09 00 3A 44 00 1A 99 73 66 BC EC 60 65 6F [02:50:46]GetLastDocTimeStamp 1718851569 [02:50:46]current date 1718851866 [02:50:46]FM_GetShiftState [02:50:46]SAM_PROTO_GetShiftState [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 13 01 00 [02:50:46]Write to MH i2c: E2 08 00 3B 44 80 13 01 00 00 00 00 00 FC [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 0E 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 0E 00 3B 44 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 77 [02:50:46]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:50:46]wFMCommunicate OK [02:50:46]SAM_PROTO_GetShiftState done [02:50:46]FM_GetShiftState done [02:50:46]opened in 1718847247 [02:50:46]opened+sec_in_day 1718933647 [02:50:46]quantity*price = 70056 [02:50:46]sum+1 = 70058 [02:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 5 20.06.2024 02:51 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111555 ФПД: 145121165058027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T025106&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111555&fm=145121165058027&tin=02508201610067®Number=0000000000092771&sum=70000 [02:50:47]StoreToDocumentArchive [02:50:47]shift 389 fd 111555 [02:50:47]save to /storage/0389/doc_00111555 [02:50:47]save last doc name /storage/0389/doc_00111555 to /storage/kkm_last_doc_name [02:50:47]save OK [02:50:47]Clear old archive folders... [02:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:50:47]tlvbuf is 00F0A470 [02:50:47]SAM_PROTO_ClearQueue [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 09 00 00 [02:50:47]Write to MH i2c: E2 08 00 48 44 80 09 00 00 00 00 00 00 FE [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 48 44 00 90 00 00 [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]SAM_PROTO_ClearQueue done [02:50:47]KKMCreateOFDPacket [02:50:47]OFDProtocolAddRootSTLVToBuf [02:50:47]FM_MakeSignedData [02:50:47]FM_MakeSignedData [02:50:47]SAM_PROTO_SignData [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 0D 01 02 [02:50:47]Write to MH i2c: E2 08 00 49 44 80 0D 01 02 00 00 00 00 06 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 49 44 00 90 00 01 [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]wFMCommunicate request_size=255 [02:50:47]MH_SAM_APDU [02:50: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 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 05 00 00 00 F4 03 04 00 1A 99 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B3 01 00 35 04 06 00 83 FC A7 7E [02:50:47]Write to MH i2c: E2 02 01 4A 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 05 00 00 00 F4 03 04 00 1A 99 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B3 01 00 35 04 06 00 83 FC A7 7E 00 00 34 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]OFD Sender: No OFD packet to send [02:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 4A 44 00 90 00 02 [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]wFMCommunicate request_size=7 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 0D 02 02 02 1F EB [02:50:47]Write to MH i2c: E2 0A 00 4B 44 80 0D 02 02 02 00 1F EB 00 00 17 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 03 00 4B 44 00 90 00 03 [02:50:47]RAPDU: 90 00 [02:50:47]wFMCommunicate OK [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 0D 03 02 [02:50:47]Write to MH i2c: E2 08 00 4C 44 80 0D 03 02 00 00 00 00 0B [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 0B 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 0B 00 4C 44 00 86 53 D3 16 0A 72 04 17 90 00 65 [02:50:47]RAPDU: 86 53 D3 16 0A 72 04 17 90 00 [02:50:47]wFMCommunicate OK [02:50:47]SAM_PROTO_SignData done [02:50:47]FM_MakeSignedData done [02:50:47]CreateOFDProtocolMessage [02:50:47]wFMCommunicate request_size=4 [02:50:47]MH_SAM_APDU [02:50:47]CAPDU: 80 11 00 00 [02:50:47]Write to MH i2c: E2 08 00 4D 44 80 11 00 00 00 00 00 00 0B [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:47]Read from MH i2c: E2 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 17 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: E2 17 00 4D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 5D [02:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:50:47]wFMCommunicate OK [02:50:47]CreateOFDProtocolMessage done [02:50:47]OFDSenderStorePacket 111555 [02:50:47]StoreOFDPacket docnum=111555 [02:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 17 D0 04 01 E2 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 05 00 00 00 F4 03 04 00 1A 99 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B3 01 00 35 04 06 00 83 FC A7 7E 1F EB 86 53 D3 16 0A 72 04 17 [02:50:47]CheckFolder [02:50:47]dirname=/storage/ofd_packets [02:50:47]CheckFolder done [02:50:47]ProducePacketName [02:50:47]name=ofd_packets/00111555 [02:50:47]NVStorageSaveData ofd_packets/00111555 [02:50:47]File name is /storage/ofd_packets/00111555 [02:50:47]Write 298 bytes [02:50:47]NVStorageSaveData done [02:50:47]OFDSenderStorePacket done [02:50:47]KKMCreateOFDPacket done [02:50:47]NVStorageSaveData kkm_last_timestamp [02:50:47]File name is /storage/kkm_last_timestamp [02:50:47]Write 4 bytes [02:50:47]NVStorageSaveData done [02:50:47]ExternCall_PrintAddStr [02:50:47]wPrintStart [02:50:47]Write to MH i2c: 01 00 00 4E 44 92 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 4E 44 00 00 00 00 00 FF 0F A7 [02:50:47]RasterBufferAndPrint [02:50:47]line Счет N : (1)320152 [02:50:47]line ИНН: 02508201610067 [02:50:47]line Контрольно-Кассовый Чек [02:50:47]line ПРОДАЖА [02:50:47]line ТРК (МРК, ГНК) : 22 [02:50:47]line Товар: 2710194210 [02:50:47]line ДТ-К-5 [02:50:47]line 9.610 * 72.90 [02:50:47]line = 700.57 [02:50:47]line НДС 12% НСП 1% [02:50:47]line > о реализуемом товаре [02:50:47]line ОКРУГЛЕНИЕ: -0.57 [02:50:47]line ИТОГО: 700.00 [02:50:47]line Внесено: 700.00 [02:50:47]line СДАЧА: 0.00 [02:50:47]line НСП 1% : 6.20 [02:50:47]line НДС 12% : 74.40 [02:50:47]line Наличными: 700.00 [02:50:47]line Безнал.: 0.00 [02:50:47]line Место: АЗС № 65 "Партнер Нефть" [02:50:47]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [02:50:48]line СНО: Общий режим [02:50:48]line Чек 5 20.06.2024 02:51 [02:50:48]line Смена: 389 ФФД: 1.0 [02:50:48]line ЗНМ: 0300000198 [02:50:48]line РНМ: 0000000000092771 [02:50:48]line Версия ККМ: 001 [02:50:48]line ФМ: 0000000000875083 [02:50:48]line ФД: 111555 [02:50:48]line ФПД: 145121165058027 [02:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T025106&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111555&fm=145121165058027&tin=02508201610067®Number=0000000000092771&sum=70000 [02:50:48]OFD Sender: Processing packet 111555 [packets to send 38, broken 37] [02:50:48]ProducePacketName [02:50:48]name=ofd_packets/00111555 [02:50:48]OFD Sender: To server: pG, [02:50:48]CommunicateWithHost lk.salyk.kg:30040 [02:50:48]ConnectInit lk.salyk.kg [02:50:48]written 0, free lines is 4095 [02:50:48]Connected sock=10 [02:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0C 01 00 00 17 D0 04 01 E2 FD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 25 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A9 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 10 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 05 00 00 00 F4 03 04 00 1A 99 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C3 B3 01 00 35 04 06 00 83 FC A7 7E 1F EB 86 53 D3 16 0A 72 04 17 [02:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 B6 B7 47 00 4A 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 35 30 38 33 10 04 04 00 C3 B3 01 00 F4 03 04 00 71 30 73 66 B6 04 01 00 00 C8 06 DB F4 FB 80 7D B5 [02:50:48]CommunicateWithHost err = 0 [02:50:48]CheckOFDResponse [02:50:48]1017 (14) - 77093643461234 [02:50:48]1041 (16) - 0000000000875083 [02:50:48]1040 (4) - 111555 [02:50:48]1012 (4) - 19.06.2024 19:24 [02:50:48]1206 (1) - 0 [02:50:48]OFD Sender: Remove packet 111555 [02:50:48]ProducePacketName [02:50:48]name=ofd_packets/00111555 [02:50:48]NVStorageDeleteData [02:50:48]Write to MH i2c: 01 00 00 79 44 BD [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 07 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: 01 07 00 79 44 00 00 00 00 00 C8 0C 98 [02:50:48]RasterBufferAndPrint [02:50:48]line [02:50:48]line [02:50:48]line [02:50:48]line [02:50:48]line [02:50:48]written 0, free lines is 3278 [02:50:48]MH_Cut [02:50:48]Write to MH i2c: D1 01 00 80 44 01 96 [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: D1 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: D1 01 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: D1 01 00 80 44 00 95 [02:50:48]Write to MH i2c: 01 00 00 81 44 C5 [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]OFD Sender: No OFD packet to send [02:50:49]*** Cut start [02:50:49]*** Partial cut [02:50:49]*** CUTSNS_PIN = 1 [02:50:49]*** CUTSNS_PIN = 0 [02:50:49]*** Brake cut motor [02:50:49]Read from MH i2c: 01 [02:50:49]MH_I2C_Read... [02:50:49]*** Stop cut motor [02:50:49]*** Cut end [02:50:49]Read from MH i2c: 01 07 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: 01 07 00 81 44 00 00 00 00 00 FF 0F DA [02:50:49]process_action close_receipt done [02:50:49]requested_data is exist [02:50:49]produce_requested_data [02:50:49]requested_item fm.sn is exist - process it [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 11 00 00 [02:50:49]Write to MH i2c: E2 08 00 82 44 80 11 00 00 00 00 00 00 40 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 17 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 17 00 82 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 92 [02:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:50:50]wFMCommunicate OK [02:50:50]requested_item fd.num is exist - process it [02:50:50]SAM_PROTO_GetFieldsCounters [02:50:50]wFMCommunicate request_size=4 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 13 00 00 [02:50:50]Write to MH i2c: E2 08 00 83 44 80 13 00 00 00 00 00 00 43 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 62 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 62 00 83 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C3 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [02:50:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C3 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:50:50]wFMCommunicate OK [02:50:50]SAM_PROTO_GetFieldsCounters done [02:50:50]requested_item shift.num is exist - process it [02:50:50]requested_item shift.opened is exist - process it [02:50:50]req_shift_opened [02:50:50]FM_GetShiftState [02:50:50]SAM_PROTO_GetShiftState [02:50:50]wFMCommunicate request_size=4 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 13 01 00 [02:50:50]Write to MH i2c: E2 08 00 84 44 80 13 01 00 00 00 00 00 45 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 0E 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 0E 00 84 44 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C0 [02:50:50]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:50:50]wFMCommunicate OK [02:50:50]SAM_PROTO_GetShiftState done [02:50:50]FM_GetShiftState done [02:50:50]req_shift_opened done [02:50:50]requested_item shift.open_date is exist - process it [02:50:50]req_shift_open_date [02:50:50]req_shift_open_date done [02:50:50]produce_requested_data done [02:50:50]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111555,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [02:50:50]process_action_free close_receipt [02:50:50]json_value_free [02:50:50]json_value_free done [02:50:50]process_json_proto returns [02:50:50]Send response to host [02:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111555,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [02:50:50]free response buf [02:50:50]execute_script done [02:50:50]execute_script returns [02:50:50]free content buf [02:50:50]Sock 9.Close socket [02:50:50]Sock 9.Thread stoped [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:38]accept exits with 7 [02:58:38]New connection [02:58:38]New thread 3067465060 created [02:58:38]Thread 3067321700 joined [02:58:38]Waiting for new connection... [02:58:38] Sock 7.Parse request [02:58:38]Sock 7.Check first char [02:58:38]Sock 7.First char is OK [02:58:38]request: POST /json_proto HTTP/1.0 [02:58:38]Method: POST [02:58:38]URL: /json_proto [02:58:38]Method is POST - this is cgi request [02:58:38]url: /json_proto [02:58:38]query_string will be loaded in cgi processing [02:58:38]execute_cgi json_proto POST (null) [02:58:38]execute_cgi path=json_proto method=POST [02:58:38]POST find Content-Length [02:58:38]Host: 172.17.59.68:8080 [02:58:38]Content-Length: 678 [02:58:38]Content-Type: application/json [02:58:38] [02:58:38]POST finish read [02:58:38]Found Content-Length = 678 [02:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)320153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:38]execute_script... [02:58: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)320153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 10.020, "sum" : 665.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:58:38]POST & json_proto [02:58:38]process_json_proto [02:58:38]json parsed OK: [02:58:38]protocol is kg_v1.0 [02:58:38]action value=close_receipt [02:58:38]process_action close_receipt [02:58:38]cmd_close_receipt [02:58:38]MH_GetDate [02:58:38]Write to MH i2c: F0 00 00 85 44 B8 [02:58:38]Write i2c OK [02:58:38]MH_I2C_Read... [02:58:38]Read from MH i2c: F0 [02:58:38]MH_I2C_Read... [02:58:38]Read from MH i2c: F0 09 00 [02:58:38]MH_I2C_Read... [02:58:38]Read from MH i2c: F0 09 00 85 44 00 F3 9A 73 66 BC EC 60 65 94 [02:58:38]GetLastDocTimeStamp 1718851866 [02:58:38]current date 1718852339 [02:58:38]FM_GetShiftState [02:58:38]SAM_PROTO_GetShiftState [02:58:38]wFMCommunicate request_size=4 [02:58:38]MH_SAM_APDU [02:58:38]CAPDU: 80 13 01 00 [02:58:38]Write to MH i2c: E2 08 00 86 44 80 13 01 00 00 00 00 00 47 [02:58:38]Write i2c OK [02:58:38]MH_I2C_Read... [02:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:38]Read from MH i2c: E2 [02:58:38]MH_I2C_Read... [02:58:38]Read from MH i2c: E2 0E 00 [02:58:38]MH_I2C_Read... [02:58:38]Read from MH i2c: E2 0E 00 86 44 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 C2 [02:58:38]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:58:38]wFMCommunicate OK [02:58:38]SAM_PROTO_GetShiftState done [02:58:38]FM_GetShiftState done [02:58:38]opened in 1718847247 [02:58:38]opened+sec_in_day 1718933647 [02:58:38]quantity*price = 66532 [02:58:38]sum+1 = 66534 [02:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.65 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 65 "Партнер Нефть" Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 СНО: Общий режим Чек 6 20.06.2024 02:58 Смена: 389 ФФД: 1.0 ЗНМ: 0300000198 РНМ: 0000000000092771 Версия ККМ: 001 ФМ: 0000000000875083 ФД: 111556 ФПД: 266644352850953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T025859&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111556&fm=266644352850953&tin=02508201610067®Number=0000000000092771&sum=66500 [02:58:39]StoreToDocumentArchive [02:58:39]shift 389 fd 111556 [02:58:39]save to /storage/0389/doc_00111556 [02:58:39]save last doc name /storage/0389/doc_00111556 to /storage/kkm_last_doc_name [02:58:39]save OK [02:58:39]Clear old archive folders... [02:58:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:58:39]tlvbuf is 00F303A0 [02:58:39]SAM_PROTO_ClearQueue [02:58:39]wFMCommunicate request_size=4 [02:58:39]MH_SAM_APDU [02:58:39]CAPDU: 80 09 00 00 [02:58:39]Write to MH i2c: E2 08 00 93 44 80 09 00 00 00 00 00 00 49 [02:58:39]Write i2c OK [02:58:39]MH_I2C_Read... [02:58:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:58:39]Read from MH i2c: E2 [02:58:39]MH_I2C_Read... [02:58:39]Read from MH i2c: E2 03 00 [02:58:39]MH_I2C_Read... [02:58:39]Read from MH i2c: E2 03 00 93 44 00 90 00 4B [02:58:39]RAPDU: 90 00 [02:58:39]wFMCommunicate OK [02:58:39]SAM_PROTO_ClearQueue done [02:58:39]KKMCreateOFDPacket [02:58:39]OFDProtocolAddRootSTLVToBuf [02:58:39]FM_MakeSignedData [02:58:39]FM_MakeSignedData [02:58:39]SAM_PROTO_SignData [02:58:39]wFMCommunicate request_size=4 [02:58:39]MH_SAM_APDU [02:58:39]CAPDU: 80 0D 01 02 [02:58:39]Write to MH i2c: E2 08 00 94 44 80 0D 01 02 00 00 00 00 51 [02:58:39]Write i2c OK [02:58:39]MH_I2C_Read... [02:58:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:58:39]Read from MH i2c: E2 [02:58:39]MH_I2C_Read... [02:58:39]Read from MH i2c: E2 03 00 [02:58:39]MH_I2C_Read... [02:58:39]Read from MH i2c: E2 03 00 94 44 00 90 00 4C [02:58:39]RAPDU: 90 00 [02:58:39]wFMCommunicate OK [02:58:39]wFMCommunicate request_size=255 [02:58:39]MH_SAM_APDU [02:58: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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 9A 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B3 01 00 35 04 06 00 F2 [02:58:39]Write to MH i2c: E2 02 01 95 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 9A 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B3 01 00 35 04 06 00 F2 00 00 87 [02:58:39]Write i2c OK [02:58:39]MH_I2C_Read... [02:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:39]Read from MH i2c: E2 [02:58:39]MH_I2C_Read... [02:58:39]Read from MH i2c: E2 03 00 [02:58:39]MH_I2C_Read... [02:58:39]Read from MH i2c: E2 03 00 95 44 00 90 00 4D [02:58:39]RAPDU: 90 00 [02:58:39]wFMCommunicate OK [02:58:39]wFMCommunicate request_size=10 [02:58:39]MH_SAM_APDU [02:58:39]CAPDU: 80 0D 02 02 05 82 F9 EE DC 09 [02:58:39]Write to MH i2c: E2 0D 00 96 44 80 0D 02 02 05 00 82 F9 EE DC 09 00 00 AC [02:58:39]Write i2c OK [02:58:39]MH_I2C_Read... [02:58:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:39]Read from MH i2c: E2 [02:58:39]MH_I2C_Read... [02:58:39]Read from MH i2c: E2 03 00 [02:58:39]MH_I2C_Read... [02:58:39]Read from MH i2c: E2 03 00 96 44 00 90 00 4E [02:58:39]RAPDU: 90 00 [02:58:39]wFMCommunicate OK [02:58:39]wFMCommunicate request_size=4 [02:58:39]MH_SAM_APDU [02:58:39]CAPDU: 80 0D 03 02 [02:58:39]Write to MH i2c: E2 08 00 97 44 80 0D 03 02 00 00 00 00 56 [02:58:39]Write i2c OK [02:58:39]MH_I2C_Read... [02:58:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:58:40]Read from MH i2c: E2 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: E2 0B 00 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: E2 0B 00 97 44 00 56 CA A9 FA 48 67 D9 E1 90 00 83 [02:58:40]RAPDU: 56 CA A9 FA 48 67 D9 E1 90 00 [02:58:40]wFMCommunicate OK [02:58:40]SAM_PROTO_SignData done [02:58:40]FM_MakeSignedData done [02:58:40]CreateOFDProtocolMessage [02:58:40]wFMCommunicate request_size=4 [02:58:40]MH_SAM_APDU [02:58:40]CAPDU: 80 11 00 00 [02:58:40]Write to MH i2c: E2 08 00 98 44 80 11 00 00 00 00 00 00 56 [02:58:40]Write i2c OK [02:58:40]MH_I2C_Read... [02:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:40]Read from MH i2c: E2 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: E2 17 00 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: E2 17 00 98 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 A8 [02:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:58:40]wFMCommunicate OK [02:58:40]CreateOFDProtocolMessage done [02:58:40]OFDSenderStorePacket 111556 [02:58:40]StoreOFDPacket docnum=111556 [02:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 F5 07 01 F7 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 9A 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B3 01 00 35 04 06 00 F2 82 F9 EE DC 09 56 CA A9 FA 48 67 D9 E1 [02:58:40]CheckFolder [02:58:40]dirname=/storage/ofd_packets [02:58:40]CheckFolder done [02:58:40]ProducePacketName [02:58:40]name=ofd_packets/00111556 [02:58:40]NVStorageSaveData ofd_packets/00111556 [02:58:40]File name is /storage/ofd_packets/00111556 [02:58:40]Write 301 bytes [02:58:40]NVStorageSaveData done [02:58:40]OFDSenderStorePacket done [02:58:40]KKMCreateOFDPacket done [02:58:40]NVStorageSaveData kkm_last_timestamp [02:58:40]File name is /storage/kkm_last_timestamp [02:58:40]Write 4 bytes [02:58:40]NVStorageSaveData done [02:58:40]ExternCall_PrintAddStr [02:58:40]wPrintStart [02:58:40]Write to MH i2c: 01 00 00 99 44 DD [02:58:40]Write i2c OK [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: 01 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: 01 07 00 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: 01 07 00 99 44 00 00 00 00 00 FF 0F F2 [02:58:40]RasterBufferAndPrint [02:58:40]line Счет N : (1)320153 [02:58:40]line ИНН: 02508201610067 [02:58:40]line Контрольно-Кассовый Чек [02:58:40]line ПРОДАЖА [02:58:40]line ТРК (МРК, ГНК) : 11 [02:58:40]line Товар: 2710124130 [02:58:40]line Аи-92-К-5 [02:58:40]line 10.020 * 66.40 [02:58:40]line = 665.33 [02:58:40]line НДС 12% НСП 1% [02:58:40]line > о реализуемом товаре [02:58:40]line ОКРУГЛЕНИЕ: -0.33 [02:58:40]line ИТОГО: 665.00 [02:58:40]line Внесено: 665.00 [02:58:40]line СДАЧА: 0.00 [02:58:40]line НСП 1% : 5.89 [02:58:40]line НДС 12% : 70.65 [02:58:40]line Наличными: 665.00 [02:58:40]line Безнал.: 0.00 [02:58:40]line Место: АЗС № 65 "Партнер Нефть" [02:58:40]line Адрес: 720001, с. Ат-Баши, ул. Т. Омурзакова 33/2, 41.204177, 75.859209 [02:58:40]line СНО: Общий режим [02:58:40]line Чек 6 20.06.2024 02:58 [02:58:40]line Смена: 389 ФФД: 1.0 [02:58:40]line ЗНМ: 0300000198 [02:58:40]line РНМ: 0000000000092771 [02:58:40]line Версия ККМ: 001 [02:58:40]line ФМ: 0000000000875083 [02:58:40]line ФД: 111556 [02:58:40]line ФПД: 266644352850953 [02:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240620T025859&type=1&operation_type=1&fn_number=0000000000875083&fd_number=111556&fm=266644352850953&tin=02508201610067®Number=0000000000092771&sum=66500 [02:58:40]OFD Sender: Processing packet 111556 [packets to send 38, broken 37] [02:58:40]ProducePacketName [02:58:40]name=ofd_packets/00111556 [02:58:40]OFD Sender: To server: pG, [02:58:40]CommunicateWithHost lk.salyk.kg:30040 [02:58:40]ConnectInit lk.salyk.kg [02:58:40]written 0, free lines is 4095 [02:58:40]Write to MH i2c: 01 00 00 C4 44 08 [02:58:40]Write i2c OK [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: 01 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: 01 07 00 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: 01 07 00 C4 44 00 00 00 00 00 CF 0C EA [02:58:40]RasterBufferAndPrint [02:58:40]line [02:58:40]line [02:58:40]line [02:58:40]line [02:58:40]line [02:58:40]written 0, free lines is 3282 [02:58:40]MH_Cut [02:58:40]Write to MH i2c: D1 01 00 CB 44 01 E1 [02:58:40]Write i2c OK [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: D1 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: D1 01 00 [02:58:40]MH_I2C_Read... [02:58:40]Read from MH i2c: D1 01 00 CB 44 00 E0 [02:58:40]Write to MH i2c: 01 00 00 CC 44 10 [02:58:40]Write i2c OK [02:58:40]MH_I2C_Read... [02:58:41]*** Cut start [02:58:41]*** Partial cut [02:58:41]*** CUTSNS_PIN = 1 [02:58:41]*** CUTSNS_PIN = 0 [02:58:41]*** Brake cut motor [02:58:42]Read from MH i2c: 01 [02:58:42]MH_I2C_Read... [02:58:42]Read from MH i2c: 01 07 00 [02:58:42]MH_I2C_Read... [02:58:42]*** Stop cut motor [02:58:42]*** Cut end [02:58:42]Read from MH i2c: 01 07 00 CC 44 00 00 00 00 00 FF 0F 25 [02:58:42]process_action close_receipt done [02:58:42]requested_data is exist [02:58:42]produce_requested_data [02:58:42]requested_item fm.sn is exist - process it [02:58:42]wFMCommunicate request_size=4 [02:58:42]MH_SAM_APDU [02:58:42]CAPDU: 80 11 00 00 [02:58:42]Write to MH i2c: E2 08 00 CD 44 80 11 00 00 00 00 00 00 8B [02:58:42]Write i2c OK [02:58:42]MH_I2C_Read... [02:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:42]Read from MH i2c: E2 [02:58:42]MH_I2C_Read... [02:58:42]Read from MH i2c: E2 17 00 [02:58:42]MH_I2C_Read... [02:58:42]Read from MH i2c: E2 17 00 CD 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 DD [02:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 90 00 [02:58:42]wFMCommunicate OK [02:58:42]requested_item fd.num is exist - process it [02:58:42]SAM_PROTO_GetFieldsCounters [02:58:42]wFMCommunicate request_size=4 [02:58:42]MH_SAM_APDU [02:58:42]CAPDU: 80 13 00 00 [02:58:42]Write to MH i2c: E2 08 00 CE 44 80 13 00 00 00 00 00 00 8E [02:58:42]Write i2c OK [02:58:42]MH_I2C_Read... [02:58:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:58:42]Read from MH i2c: E2 [02:58:42]MH_I2C_Read... [02:58:42]Read from MH i2c: E2 62 00 [02:58:42]MH_I2C_Read... [02:58:42]Read from MH i2c: E2 62 00 CE 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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C4 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [02:58: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 35 30 38 33 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 10 04 04 00 C4 B3 01 00 0E 04 04 00 85 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:58:42]wFMCommunicate OK [02:58:42]SAM_PROTO_GetFieldsCounters done [02:58:42]requested_item shift.num is exist - process it [02:58:42]requested_item shift.opened is exist - process it [02:58:42]req_shift_opened [02:58:42]FM_GetShiftState [02:58:42]SAM_PROTO_GetShiftState [02:58:42]wFMCommunicate request_size=4 [02:58:42]MH_SAM_APDU [02:58:42]CAPDU: 80 13 01 00 [02:58:42]Write to MH i2c: E2 08 00 CF 44 80 13 01 00 00 00 00 00 90 [02:58:42]Write i2c OK [02:58:42]MH_I2C_Read... [02:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:42]Read from MH i2c: E2 [02:58:42]MH_I2C_Read... [02:58:42]Read from MH i2c: E2 0E 00 [02:58:42]MH_I2C_Read... [02:58:42]Read from MH i2c: E2 0E 00 CF 44 00 09 00 01 0F 87 73 66 00 00 00 00 90 00 0B [02:58:42]RAPDU: 09 00 01 0F 87 73 66 00 00 00 00 90 00 [02:58:42]wFMCommunicate OK [02:58:42]SAM_PROTO_GetShiftState done [02:58:42]FM_GetShiftState done [02:58:42]req_shift_opened done [02:58:42]requested_item shift.open_date is exist - process it [02:58:42]req_shift_open_date [02:58:42]req_shift_open_date done [02:58:42]produce_requested_data done [02:58:42]produce_requested_data return {"fm.sn":"0000000000875083","fd.num":111556,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247} [02:58:42]process_action_free close_receipt [02:58:42]json_value_free [02:58:42]json_value_free done [02:58:42]process_json_proto returns [02:58:42]Send response to host [02:58:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875083","fd.num":111556,"shift.num":389,"shift.opened":1,"shift.open_date":1718847247}}} [02:58:42]free response buf [02:58:42]execute_script done [02:58:42]execute_script returns [02:58:42]free content buf [02:58:42]Sock 7.Close socket [02:58:42]Sock 7.Thread stoped [03:00:50]ConnectInit Can't connect to host [03:00:50]CommunicateWithHost connect error [03:00:50]CommunicateWithHost err = -1 [03:00:50]OFD Sender: Server communicate error [03:00:55]OFD Sender: Processing packet 111556 [packets to send 38, broken 37] [03:00:55]ProducePacketName [03:00:55]name=ofd_packets/00111556 [03:00:55]OFD Sender: To server: pG, [03:00:55]CommunicateWithHost lk.salyk.kg:30040 [03:00:55]ConnectInit lk.salyk.kg [03:00:55]Connected sock=7 [03:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 0F 01 00 00 38 F5 07 01 F7 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 24 27 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 9A 73 66 0E 04 04 00 85 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 37 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 10 04 04 00 C4 B3 01 00 35 04 06 00 F2 82 F9 EE DC 09 56 CA A9 FA 48 67 D9 E1 [03:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 38 33 4F 00 00 00 6A 19 47 00 A0 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 35 30 38 33 10 04 04 00 C4 B3 01 00 F4 03 04 00 D0 32 73 66 B6 04 01 00 00 79 C3 15 63 7F 35 72 10 [03:00:55]CommunicateWithHost err = 0 [03:00:55]CheckOFDResponse [03:00:55]1017 (14) - 77093643461234 [03:00:55]1041 (16) - 0000000000875083 [03:00:55]1040 (4) - 111556 [03:00:55]1012 (4) - 19.06.2024 19:34 [03:00:55]1206 (1) - 0 [03:00:55]OFD Sender: Remove packet 111556 [03:00:55]ProducePacketName [03:00:55]name=ofd_packets/00111556 [03:00:55]NVStorageDeleteData [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send [03:19:02]OFD Sender: No OFD packet to send [03:19:07]OFD Sender: No OFD packet to send [03:19:12]OFD Sender: No OFD packet to send [03:19:17]OFD Sender: No OFD packet to send [03:19:22]OFD Sender: No OFD packet to send [03:19:27]OFD Sender: No OFD packet to send [03:19:32]OFD Sender: No OFD packet to send [03:19:37]OFD Sender: No OFD packet to send [03:19:42]OFD Sender: No OFD packet to send [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send